/* ==========================================================================
   responsive.css — breakpoints recompose layouts rather than shrink them
   Tested composition targets: 320 / 375 / 390 / 430 / 768 / 1024 / 1280 / 1440+
   ========================================================================== */

/* ---------- 1180px and below: tighter nav, 3-up team ---------------------- */
@media (max-width: 1180px) {
  .primary-nav__list { gap: 1.1rem; }
  .primary-nav__link { font-size: 0.78125rem; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 1024px and below: drawer navigation -------------------------- */
@media (max-width: 1024px) {
  :root { --header-h: 72px; }

  .primary-nav,
  .header__cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__figure { order: 2; }
  .hero__body { order: 1; }
  .hero__figure img { aspect-ratio: 4 / 3; }
  .hero__plate { position: static; max-width: none; }

  .factline { grid-template-columns: repeat(2, 1fr); }
  .factline > div { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
  .factline > div:nth-child(2n) { border-right: 0; padding-right: 0; }
  .factline > div:nth-last-child(-n+2) { border-bottom: 0; }

  .head { grid-template-columns: 1fr; gap: 0; }
  .head__aside { padding-top: 0; }
  .head__note { display: none; }

  .split,
  .split--wide-left,
  .split--wide-right,
  .prose-pair,
  .contact-grid,
  .profile-grid,
  .cta-band__grid,
  .page-hero__grid { grid-template-columns: 1fr; }

  .split__media { order: -1; }
  .split__media--tall img { aspect-ratio: 4 / 3; }
  .order-first { order: 0; }

  .page-hero__grid { gap: 1.75rem; align-items: start; }
  .page-hero h1 { max-width: 18ch; }

  .svc-row {
    grid-template-columns: 3rem minmax(0, 1fr) 1.5rem;
    grid-template-areas:
      "num name arrow"
      ".   desc desc";
    gap: 0.5rem 1.25rem;
    align-items: baseline;
  }
  .svc-row__num { grid-area: num; }
  .svc-row__name { grid-area: name; }
  .svc-row__desc { grid-area: desc; margin-top: 0.35rem; }
  .svc-row__arrow { grid-area: arrow; }
  .svc-row:hover .svc-row__name { transform: none; }
  .svc-preview { display: none; }

  .values__row,
  .steps__row {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.4rem 1.25rem;
  }
  .values__num, .steps__num { grid-row: 1; }
  .values__desc, .steps__desc { grid-column: 2; }

  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons > li:nth-child(3n) { border-right: 1px solid var(--line); padding-right: clamp(1.25rem, 2.5vw, 2.25rem); }
  .reasons > li:nth-child(2n) { border-right: 0; padding-right: 0; }

  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }

  .mosaic { gap: 1.25rem; }
  .m-left  { grid-column: 1 / span 7; }
  .m-right { grid-column: 6 / span 7; }
  .m-tall  { grid-column: 1 / span 6; }
  .m-wide  { grid-column: 7 / span 6; }
}

/* ---------- 820px and below: stack remaining grids ----------------------- */
@media (max-width: 820px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band__grid { gap: 1.75rem; }
}

/* ---------- 680px and below: single column, larger touch targets --------- */
@media (max-width: 680px) {
  :root { --header-h: 66px; }

  h1 { font-size: clamp(2.375rem, 1.6rem + 4vw, 3rem); }

  .brand__mark { width: 26px; height: 26px; }
  .brand__name { font-size: 1.1875rem; }
  .brand__name span { font-size: 0.5rem; letter-spacing: 0.18em; }

  .mobile-nav__link { font-size: 1.5rem; padding: 0.95rem 0; }

  .factline { grid-template-columns: 1fr; }
  .factline > div { padding-right: 0; border-right: 0; }
  .factline > div:last-child { border-bottom: 0; }

  .form-grid { grid-template-columns: 1fr; }

  .reasons { grid-template-columns: 1fr; }
  .reasons > li,
  .reasons > li:nth-child(3n) { border-right: 0; padding-right: 0; }

  .mosaic { grid-template-columns: 1fr; }
  .m-lead, .m-left, .m-right, .m-tall, .m-wide, .m-half { grid-column: 1 / -1; }
  .m-lead img, .m-left img, .m-right img, .m-wide img, .m-half img { aspect-ratio: 3 / 2; }
  .m-tall img { aspect-ratio: 4 / 5; }

  .footer__top { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .btn-row .btn { flex: 1 1 100%; }

  .profile__meta div { flex-direction: column; gap: 0.2rem; }
  .profile__meta dd { text-align: left; }

  .hours div { gap: 1rem; }
}

/* ---------- 480px and below: smallest phones ----------------------------- */
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; gap: 2rem; }
  .person__media img { aspect-ratio: 3 / 2; }

  .svc-row {
    grid-template-columns: 2.5rem minmax(0, 1fr) 1.25rem;
  }
  .svc-row__name { font-size: 1.375rem; }

  .values__row, .steps__row { grid-template-columns: 2.5rem minmax(0, 1fr); }

  .hero__plate { padding: 1.25rem; }
  .accordion__trigger { font-size: 1.0625rem; }
}

/* ---------- 360px and below: guard against overflow ---------------------- */
@media (max-width: 360px) {
  :root { --gutter: 1.125rem; }
  .nav-toggle__label { display: none; }
  .contact-phone { font-size: 1.625rem; }
}

/* ---------- Wide screens: let the measure breathe ------------------------ */
@media (min-width: 1600px) {
  :root { --max: 1440px; }
}
