/* ==========================================================================
   Dental Studio By Dr Fatima — design system
   Clinic blue & white. Navy headlines, azure actions, pale blue art panels.
   Fraunces = headlines · Public Sans = detail · Caveat = handwritten accents
   Desktop values are the 1440px design frame, 1:1.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy:        #0E3A5A;
  --navy-deep:   #0B2C45;
  /* --azure and --azure-ink now resolve to the same ink. They stay two tokens
     because they answer two questions — "what colour is a filled action?" and
     "what colour is azure text/iconography?" — and only --azure is pinned to
     the 4.5:1 floor for white 14.5px/600 button labels (5.03:1 on white). */
  --azure:       #1473B8;   /* buttons */
  --azure-ink:   #1473B8;   /* small text, icons */
  --ice:         #EAF3FB;
  --cloud:       #F7FAFD;
  --art-1:       #E3F1FC;
  --art-2:       #EDF4FA;
  --circle-1:    #CBE4F7;
  --circle-2:    #D8E7F3;
  --ink:         #1A3B50;
  --muted:       #5C6B78;
  --muted-2:     #6C7A87;   /* decorative / non-text only */
  --placeholder: #66737F;   /* form placeholders — 4.64:1 on --cloud */
  --line:        #E4EAF0;
  --line-strong: #DCE4EC;
  --star:        #F0A93B;   /* decorative stars on --ice (google card only) */
  --star-ink:    #C77C0B;   /* review-card stars — 3.33:1 on white */
  --script:      #2C7FB8;
  --script-soft: #5FA3CE;
  --on-navy:     #A8C6DC;
  --on-navy-2:   #BCD5E6;
  --on-navy-ico: #7FB6DE;
  --required:    #A8432B;
  --brand-red:   #AB0C0D;   /* the clinic mark's red — required asterisk only */

  --shadow-card:   0 6px 18px rgba(14, 58, 90, .05);
  --shadow-panel:  0 8px 24px rgba(14, 58, 90, .06);
  --shadow-soft:   0 5px 14px rgba(14, 58, 90, .05);
  --shadow-btn:    0 10px 22px rgba(14, 58, 90, .20);
  --shadow-btn-sm: 0 8px 18px rgba(14, 58, 90, .20);
  --shadow-float:  0 16px 34px rgba(14, 58, 90, .16);

  --serif: Fraunces, Georgia, "Times New Roman", serif;
  --sans:  "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand:  Caveat, "Segoe Script", cursive;

  --gutter: 56px;   /* page side padding — shrinks on smaller screens */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-deep); }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Page frame ----------
   The design frame is 1440 wide; the page centres at that width and the body
   background (the same cloud tone) carries on beyond it, so the seam is
   invisible and full-bleed bands keep their designed proportions. */
.page {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--cloud);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--azure-ink);
  font-weight: 600;
}

.script { font-family: var(--hand); color: var(--script); font-weight: 500; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.361vw, 34px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
.section-sub { font-size: 15px; color: var(--muted); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 30px;
}
.section-head .head-text { display: flex; flex-direction: column; gap: 7px; }

.text-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.text-link svg { transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(3px); }
/* Two separate links rather than one reordered link: the 390 frame puts this
   after the cards and the desktop head puts it top-right. Each is display:none
   at the other breakpoint, so DOM order always matches visual order and only
   one is ever in the tab order. */
.viewall-sm { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease,
              box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--azure); color: #fff; }
.btn-primary:hover { background: #10608F; color: #fff; box-shadow: var(--shadow-btn-sm); }

.btn-lg { height: 54px; padding: 0 26px; font-size: 15.5px; gap: 10px; }
.btn-primary.btn-lg { box-shadow: var(--shadow-btn); }

.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

.btn-navy-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-navy-outline:hover { background: var(--navy); color: #fff; }

.btn-white { background: #fff; color: var(--navy); height: 50px; padding: 0 24px; font-size: 15px; }
.btn-white:hover { background: var(--ice); color: var(--navy); }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55);
  height: 50px; padding: 0 24px; font-size: 15px;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* WhatsApp pill — white pill with an azure circle holding the glyph */
.btn-wa {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--line-strong);
  height: 54px;
  padding: 0 24px 0 10px;
  gap: 12px;
  font-size: 15.5px;
}
.btn-wa:hover { border-color: var(--azure-ink); color: var(--navy); }
.btn-wa .wa-inline { display: none; }   /* shown instead of .wa-dot on phones */
.btn-wa .wa-dot {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--azure-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.site-header {
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cloud);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.site-header.scrolled {
  box-shadow: 0 6px 20px rgba(14, 58, 90, .07);
  background: rgba(247, 250, 253, .92);
  backdrop-filter: saturate(180%) blur(10px);
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
/* The clinic's real mark. Its natural ratio is 1.267:1, so `contain` keeps it
   undistorted inside the slightly different box the design allots it. */
.brand-logo { width: 40px; height: 32px; object-fit: contain; flex-shrink: 0; }
.site-footer .brand-logo { width: 36px; height: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--navy); }
.brand-sub  { font-size: 10.5px; letter-spacing: .1em; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 34px; font-size: 14.5px; font-weight: 500; }
.main-nav a { color: var(--muted); padding-bottom: 4px; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--navy); }
.main-nav a.active { color: var(--navy); border-bottom-color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn-wa {
  width: 46px; height: 46px;
  border-radius: 999px;
  background: var(--azure-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color .18s ease;
}
.icon-btn-wa:hover { background: #10608F; color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(14, 58, 90, .38);
  opacity: 0;
  visibility: hidden;
  /* visibility must flip the instant .open lands, or the panel is still
     unfocusable when the script tries to move focus into it and focus() is a
     silent no-op. Delaying it only on the way out keeps the fade-out intact. */
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .22s ease, visibility 0s linear 0s;
}
.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 86vw);
  height: 100%;
  background: #fff;
  padding: 20px 22px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(14, 58, 90, .18);
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mobile-nav-close {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.m-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.m-link.active { color: var(--navy); font-weight: 600; }
.mobile-nav-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.mobile-nav-cta .btn { width: 100%; }
.mobile-nav-meta { margin-top: auto; padding-top: 22px; font-size: 13px; line-height: 1.6; color: var(--muted); }
body.nav-open { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero {
  padding: 34px 0 62px var(--gutter);
  display: flex;
  gap: 48px;
  align-items: center;
}
.hero-copy { width: 560px; flex-shrink: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.028vw, 58px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--navy);
}
.hero-lead { font-size: 16.5px; line-height: 1.7; color: var(--muted); max-width: 500px; }
/* Two leads, one exposed at a time — the 390 frame names the landmark and the
   price promise, which does not fit the desktop measure. `display:none` keeps
   the hidden one out of the accessibility tree as well as out of the layout. */
.lead-mobile { display: none; }
.hero-actions { display: flex; align-items: center; gap: 14px; padding-top: 6px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 26px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; align-items: center; gap: 12px; }
.stat-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--art-1);
  color: var(--azure-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-text { display: flex; flex-direction: column; line-height: 1.25; }
.stat-num { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--navy); }
.stat-label { font-size: 12.5px; color: var(--muted); }
.stat-divider { width: 1px; height: 38px; background: var(--line); flex-shrink: 0; }

/* The figure wrapper is not clipped, so the doctor card can hang past the
   left edge of the photo; only .hero-media clips the image itself. */
.hero-figure { flex-grow: 1; position: relative; min-width: 0; }
.hero-media {
  height: 520px;
  border-radius: 30px 0 0 30px;
  background: var(--art-1);
  overflow: hidden;
}
/* 62% keeps the logo wall in frame on the tall crops; on the wide desktop crop
   the image is width-bound, so only the vertical half of this value applies. */
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero-script {
  position: absolute;
  top: 44px; right: 54px;
  font-family: var(--hand);
  font-size: 36px;
  line-height: 1.12;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(14, 58, 90, .55);
  text-align: right;
  pointer-events: none;
}
.hero-card {
  position: absolute;
  bottom: 52px; left: -30px;
  background: #fff;
  border-radius: 18px;
  padding: 16px 22px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-float);
}
.hero-card-avatar {
  width: 56px; height: 56px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
}
.hero-card-text { display: flex; flex-direction: column; gap: 2px; }
.hero-card-name { font-family: var(--hand); font-size: 25px; color: var(--navy); line-height: 1.2; }
.hero-card-role { font-size: 12px; color: var(--muted); }

/* ---------- Service cards (home) ---------- */
.services-home { padding: 20px var(--gutter) 64px; }
.svc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }

.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(14, 58, 90, .10);
  border-color: var(--line-strong);
}
.svc-thumb { height: 108px; overflow: hidden; display: block; flex-shrink: 0; }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.svc-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}
.svc-text { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.svc-title { font-size: 15px; font-weight: 600; color: var(--navy); }
.svc-desc  { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.svc-arrow {
  color: var(--azure-ink);
  align-self: flex-end;
  display: inline-flex;
  transition: transform .2s ease;
}
.svc-card:hover .svc-arrow { transform: translateX(3px); }

/* ---------- Why choose (full-bleed band) ---------- */
.why { display: flex; align-items: stretch; min-height: 370px; }
.why-panel {
  width: 45.8333%;                /* 660 / 1440 */
  flex-shrink: 0;
  background: var(--navy);
  padding: 52px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--on-navy-2);
}
.why-panel h2 { font-family: var(--serif); font-size: clamp(25px, 2.222vw, 32px); font-weight: 600; color: #fff; line-height: 1.2; }
.why-panel > p { font-size: 15.5px; line-height: 1.7; color: var(--on-navy); max-width: 460px; }
.why-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: auto;
}
.why-point { display: flex; flex-direction: column; gap: 9px; }
.why-point span { font-size: 13.5px; font-weight: 600; color: #fff; line-height: 1.4; }
.why-photo { width: 31.9444%; flex-shrink: 0; overflow: hidden; position: relative; }   /* 460 / 1440 */
.why-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why-script {
  flex-grow: 1;
  background: var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-width: 0;
}
.why-script span {
  font-family: var(--hand);
  font-size: 36px;
  line-height: 1.2;
  color: var(--script);
  text-align: center;
}

/* ---------- Your visit, step by step ---------- */
.steps-band { padding: 64px var(--gutter) 4px; }
.steps-band .section-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 28px;
}
.step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
}
.step-num {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--art-1);
  color: var(--azure-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  flex-shrink: 0;
}
.step-card h3 { font-size: 16px; font-weight: 600; color: var(--navy); }
.step-card p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonials { padding: 64px var(--gutter) 60px; scroll-margin-top: 110px; }
.testimonials .section-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 28px;
}
.review-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ---------- Review slider ----------
   The design's 4-up row is kept: the first three columns become a sliding
   viewport, the fourth stays the Google score card. --per-view is the single
   source of truth for how many cards show; the script reads it back. */
.review-slider {
  grid-column: span 3;
  position: relative;
  min-width: 0;
  --per-view: 3;
  --gap: 20px;
}
.review-viewport { overflow: hidden; }
.review-track {
  display: flex;
  gap: var(--gap);
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.review-track > .review {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  min-width: 0;
}

.review-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(14, 58, 90, .12);
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, opacity .18s ease;
}
.review-arrow:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.review-arrow.prev { left: -18px; }
.review-arrow.next { right: -18px; }
.review-arrow[disabled] { opacity: .35; cursor: default; }
.review-arrow[disabled]:hover { background: #fff; border-color: var(--line-strong); color: var(--navy); }

/* a light lift so it is obvious which card the pointer is on */
.review-track > .review {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.review-track > .review:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(14, 58, 90, .12);
  border-color: var(--line-strong);
}

.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}
/* Stars alone carried the whole rating, at 2.01:1. On the review cards they are
   now darker and paired with a readable numeral; the pale --star survives only
   inside .google-card, where a 42px "4.9/5" states the score in text. */
.stars { color: var(--star-ink); font-size: 14px; letter-spacing: .1em; }
.review-rating { display: flex; align-items: center; gap: 8px; }
.rating-score { font-size: 13px; font-weight: 700; color: var(--navy); }
.review p { font-size: 14.5px; line-height: 1.65; color: var(--ink); flex-grow: 1; }
.review footer { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--art-1);
  color: var(--azure-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.review-who { display: flex; flex-direction: column; min-width: 0; }
.review-name { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.review-role { font-size: 12px; color: var(--muted); }

.google-card {
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  transition: background-color .18s ease;
}
.google-card:hover { background: #DFEEFB; }
.google-word { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); }
.google-score { font-family: var(--serif); font-size: 42px; font-weight: 600; color: var(--navy); line-height: 1; }
.google-score small { font-size: 20px; color: var(--muted); font-weight: 600; }
.google-note { font-size: 12.5px; color: var(--muted); }
.google-card .stars { font-size: 18px; letter-spacing: .12em; color: var(--star); }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 0 var(--gutter);
  background: var(--navy);
  border-radius: 22px;
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -60px; right: 180px;
  width: 200px; height: 200px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}
/* the design nudges the decorative circle per page */
.cta-band.pos-services::before { top: -70px; right: 240px; width: 210px; height: 210px; }
.cta-band.pos-about::before { top: auto; bottom: -90px; right: 260px; width: 220px; height: 220px; }

.cta-copy { display: flex; flex-direction: column; gap: 6px; position: relative; }
.cta-copy h2 { font-family: var(--serif); font-size: clamp(23px, 1.944vw, 28px); font-weight: 600; color: #fff; line-height: 1.25; }
.cta-copy p { font-size: 15px; color: var(--on-navy); }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; position: relative; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  padding: 40px var(--gutter) 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-nav { display: flex; gap: 30px; font-size: 14.5px; flex-wrap: wrap; }
/* 23px of line-box + 12px of padding clears the 24px tap-target floor */
.footer-nav a { color: var(--muted); display: inline-block; padding: 6px 0; }
.footer-nav a:hover { color: var(--navy); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: background-color .18s ease, border-color .18s ease;
}
.footer-social a:hover { background: var(--ice); border-color: var(--azure-ink); }

/* Hours, deep links and the email — "are they open now?" is the question a
   local clinic gets most, and it had fallen off every page but contact. */
.footer-cols {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer-col-title {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 1.6; }
.footer-col li { color: var(--muted); }
.footer-col a { color: var(--muted); display: inline-block; padding: 4px 0; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--navy); }
.footer-hours li { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; }
.footer-hours .hours-day { color: var(--muted); }
.footer-hours .hours-time { color: var(--navy); font-weight: 500; }
.footer-contact li { padding: 4px 0; }

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--muted); display: inline-block; padding: 5px 0; }
.footer-bottom a:hover { color: var(--navy); }

/* ---------- Mobile bottom bar ---------- */
.tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(20px + env(safe-area-inset-bottom));
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -8px 24px rgba(14, 58, 90, .10);
}
.tabbar a {
  width: 60px;
  min-height: 48px;          /* was 37px — under the 44px touch minimum */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #56636E;            /* 6.17:1 on white; --muted-2 was 4.20:1 */
  font-size: 11px;
  line-height: 1.2;
}
.tabbar a.active { color: var(--navy); font-weight: 600; }
.tabbar .tab-wa {
  width: 58px; height: 58px;
  min-height: 58px;
  border-radius: 999px;
  background: var(--azure-ink);
  color: #fff;
  justify-content: center;
  margin-top: -26px;
  box-shadow: 0 8px 20px rgba(20, 115, 184, .35);
  gap: 0;
}

/* ---------- Breadcrumbs & page heroes ---------- */
.crumbs { padding: 22px var(--gutter) 0; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.crumbs .here { color: var(--navy); }
.crumbs.tight { padding-top: 10px; }

.page-hero {
  margin: 8px var(--gutter) 0;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  min-height: 210px;
}
.page-hero-copy {
  width: 54.2169%;                /* 720 / 1328 */
  flex-shrink: 0;
  background: var(--navy);
  padding: 46px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.page-hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 2.917vw, 42px);
  font-weight: 600;
  color: #fff;
  line-height: 1.14;
}
.page-hero-copy p { font-size: 16px; line-height: 1.6; color: var(--on-navy); max-width: 440px; }
/* The photo is taken out of flow so the copy panel — not the image's own
   aspect ratio — decides how tall the band is (210px in the design). */
.page-hero-media { flex-grow: 1; overflow: hidden; min-width: 0; position: relative; }
.page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* clinic-room and clinic-reception are reused across pages; each placement gets
   its own focal point so the same room does not read as the same picture twice */
.page-hero .page-hero-media img { object-position: center 45%; }        /* services */
.page-hero.light .page-hero-media img { object-position: center 42%; }  /* contact  */

/* Light variant — contact */
.page-hero.light { background: var(--ice); min-height: 230px; }
.page-hero.light .page-hero-copy {
  width: 55.7229%;                /* 740 / 1328 */
  background: transparent;
  padding: 48px;
}
.page-hero.light .page-hero-copy h1 { color: var(--navy); font-size: clamp(30px, 3.056vw, 44px); }
.page-hero.light .page-hero-copy p { color: var(--muted); font-size: 16.5px; max-width: 500px; }

/* ---------- Services page ---------- */
.services-page { padding: 26px var(--gutter) 60px; }
.treatments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.treatment {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
  scroll-margin-top: 110px;
}
.treatment:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(14, 58, 90, .10); }
.treatment-media { height: 132px; overflow: hidden; flex-shrink: 0; }
.treatment-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.treatment-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.treatment-body h2,
.treatment-body h3 { font-size: 17px; font-weight: 600; color: var(--navy); }
.treatment-body p { font-size: 13.5px; line-height: 1.6; color: var(--muted); flex-grow: 1; }
.treatment-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
}
.treatment-link svg { transition: transform .2s ease; }
.treatment-link:hover svg { transform: translateX(3px); }

/* Art panel — the fallback where no photograph exists yet:
   tinted base, two offset circles, one line glyph. */
.art-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--art-1);
}
.art-panel.tint-2 { background: var(--art-2); }
.art-panel .blob { position: absolute; border-radius: 999px; background: var(--circle-1); }
.art-panel.tint-2 .blob { background: var(--circle-2); }
.art-panel .blob.b2 { background: var(--art-2); }
.art-panel.tint-2 .blob.b2 { background: var(--art-1); }
.art-panel svg { position: relative; }

/* ---------- About page ---------- */
.story {
  padding: 34px var(--gutter) 56px;
  display: flex;
  gap: 56px;
  align-items: center;
}
.story-copy { width: 560px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.story-copy h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.611vw, 52px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--navy);
}
.story-copy p { font-size: 17px; line-height: 1.75; color: var(--muted); }
.story-copy .script { font-size: 30px; }
.story-media { flex-grow: 1; height: 360px; border-radius: 24px; overflow: hidden; min-width: 0; }
.story-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }

.who {
  padding: 0 var(--gutter) 56px;
  display: flex;
  gap: 56px;
  align-items: flex-start;
}
.who-copy { width: 480px; flex-shrink: 0; display: flex; flex-direction: column; gap: 18px; }
.who-copy h2 {
  font-family: var(--serif);
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 1.14;
  font-weight: 600;
  color: var(--navy);
}
.who-copy p { font-size: 16px; line-height: 1.75; color: var(--muted); }
.value-grid { flex-grow: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; min-width: 0; }
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}
.value-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--art-1);
  color: var(--azure-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.value-card h3 { font-size: 18px; font-weight: 600; color: var(--navy); }
.value-card p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }

.stat-band {
  margin: 0 var(--gutter);
  background: var(--navy);
  border-radius: 24px;
  padding: 40px 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.stat-band::before {
  content: "";
  position: absolute;
  top: -80px; right: 120px;
  width: 240px; height: 240px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}
.stat-band > div { display: flex; flex-direction: column; gap: 6px; position: relative; }
.stat-band .big { font-family: var(--serif); font-size: clamp(30px, 2.778vw, 40px); font-weight: 600; color: #fff; line-height: 1; }
.stat-band .cap { font-size: 14px; color: var(--on-navy); }

.team { padding: 56px var(--gutter) 48px; }
.team .section-head { margin-bottom: 32px; gap: 48px; }
.team .head-text { gap: 12px; }
.team .head-text h2 {
  font-family: var(--serif);
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 1.14;
  font-weight: 600;
  color: var(--navy);
}
.team .script { font-size: 30px; white-space: nowrap; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.team-photo { height: 260px; overflow: hidden; flex-shrink: 0; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.team-body { padding: 24px; display: flex; flex-direction: column; gap: 9px; flex-grow: 1; }
.team-role {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--azure-ink);
  font-weight: 600;
}
.team-body h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--navy); }
.team-body p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }

.tech {
  margin: 0 var(--gutter) 48px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  min-height: 300px;
  background: var(--ice);
  border: 1px solid var(--line);
}
.tech-media { width: 39.1566%; flex-shrink: 0; overflow: hidden; position: relative; }   /* 520 / 1328 */
.tech-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
/* .media-full: the box follows the photo's own 4:3 shape instead of a fixed
   strip, so the whole treatment room (wall logo and chair unit) stays in frame */
.tech-media.media-full,
.story-media.media-full { height: auto; }
.tech-media.media-full img,
.story-media.media-full img { position: relative; inset: auto; display: block; height: 100%; aspect-ratio: 1448 / 1086; object-position: 45% center; }
@media (min-width: 980px) {
  .tech-media.media-full { width: 46%; }
}
.tech-copy {
  flex-grow: 1;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 0;
}
.tech-copy h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.361vw, 34px);
  line-height: 1.15;
  font-weight: 600;
  color: var(--navy);
}
.tech-copy p { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 520px; }
.tech-copy .btn { align-self: flex-start; height: 48px; }

/* ---------- Contact page ---------- */
.contact-layout {
  padding: 36px var(--gutter) 56px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  scroll-margin-top: 100px;
}
.form-card {
  width: 49.6988%;                /* 660 / 1328 */
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-panel);
}
.card-title { font-family: var(--serif); font-size: 25px; font-weight: 600; color: var(--navy); line-height: 1.25; }

#appointment-form { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink); }
.req { color: var(--brand-red); }
.opt { font-weight: 400; color: var(--muted); }
.field-pair { display: flex; gap: 16px; }
.field-pair .field { flex-grow: 1; min-width: 0; }

.field input,
.field select,
.field textarea {
  height: 50px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--cloud);
  padding: 0 16px;
  font-size: 15.5px;
  font-family: inherit;
  color: var(--ink);
  width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.field select {
  padding: 0 42px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231473B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field input[type="date"],
.field input[type="time"] { padding: 0 14px; }
.field textarea {
  height: auto;
  min-height: 92px;
  padding: 12px 16px;
  line-height: 1.6;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(20, 115, 184, .16);
}
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.char-count { font-size: 12px; font-weight: 500; color: var(--muted); }
.char-count.limit { color: var(--required); }

/* Hints stay put; a placeholder vanishes the moment the field is focused, which
   is exactly when the person needs the format. */
.field-hint { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.field-pair + .field-hint { margin-top: -8px; }   /* pull it under the pair it explains */
.form-error {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--required);
  background: #FDF1EE;
  border: 1px solid #F2D6CE;
  border-radius: 12px;
  padding: 10px 14px;
}
.form-error[hidden] { display: none; }

.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.submit-btn { width: 100%; height: 54px; font-size: 16px; }

.wa-fallback {
  border: 1px solid var(--line);
  background: var(--ice);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
}
.wa-fallback[hidden] { display: none; }
.wa-fallback textarea {
  width: 100%;
  min-height: 110px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  resize: vertical;
}
.wa-fallback-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.contact-side { flex-grow: 1; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-panel);
}
.info-head { display: flex; flex-direction: column; gap: 6px; }
.info-head p { font-size: 14.5px; color: var(--muted); }
.info-row { display: flex; align-items: flex-start; gap: 14px; }
.info-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--art-1);
  color: var(--azure-ink);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.info-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.info-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.info-value { font-size: 16px; color: var(--navy); font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.info-value.sm { font-size: 15px; }

.map-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-panel);
}
.map-frame {
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  background: #EAF2F8;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-card .btn { height: 48px; }

/* FAQ */
.faq-section {
  scroll-margin-top: 110px;
  padding: 0 var(--gutter) 56px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.faq-main { flex-grow: 1; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.faq-main h2 { font-family: var(--serif); font-size: clamp(24px, 2.083vw, 30px); font-weight: 600; color: var(--navy); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { color: var(--azure-ink); flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] summary { font-weight: 600; color: var(--navy); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item p { margin-top: 10px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }

.faq-aside {
  width: 380px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.faq-aside .script { font-size: 30px; line-height: 1.2; text-align: center; }
.faq-aside-media { width: 100%; height: 230px; border-radius: 20px; overflow: hidden; }
.faq-aside-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ---------- Reveal on scroll ----------
   Scoped to .js, which main.js's inline bootstrap adds to <html> before the
   first paint. Without scripting the class never lands, the hidden state never
   applies, and every .reveal element — the booking form included — renders. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }


/* ==========================================================================
   Responsive — the 1440 frame above, the 390 frame at the bottom
   ========================================================================== */

/* --- 1280 and below: tighten the gutter --- */
@media (max-width: 1279px) {
  :root { --gutter: 40px; }
  .hero { gap: 40px; }
  .hero-copy { width: 46%; }
  .story-copy { width: 46%; }
  .who-copy { width: 40%; }
  .why-panel { padding: 44px var(--gutter); }

  /* The copy column is a percentage here, so the three stats lose ~90px and
     "Average Rating" starts wrapping to four lines while the others stay on
     one. Shrink the furniture rather than let the row break unevenly. */
  .hero-stats { gap: 18px; }
  .stat-icon { width: 36px; height: 36px; }
  .stat-num { white-space: nowrap; }
  .stat-label { font-size: 12px; }
}

/* --- the tightest part of that squeeze: drop the rules, not the labels --- */
@media (min-width: 980px) and (max-width: 1139px) {
  .hero-stats { gap: 22px; }
  .stat-divider { display: none; }
}

/* --- 1100 and below: 6-up service grid becomes 3-up --- */
@media (max-width: 1099px) {
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-grid { grid-template-columns: 1fr; }
  .review-slider { grid-column: auto; --per-view: 2; }
  .treatments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav { gap: 24px; }
}

/* --- 980 and below: stack the two-column layouts --- */
@media (max-width: 979px) {
  :root { --gutter: 32px; }

  .hero {
    flex-direction: column;
    align-items: stretch;
    padding: 24px var(--gutter) 48px;
    gap: 32px;
  }
  .hero-copy { width: 100%; }
  .hero-media { height: 420px; border-radius: 24px; }
  .hero-card { left: 16px; bottom: 24px; }
  .hero-script { top: 28px; right: 28px; font-size: 30px; }

  .why { flex-direction: column; }
  .why-panel { width: 100%; padding: 44px var(--gutter); }
  .why-photo { width: 100%; height: 260px; }
  .why-script { padding: 40px 24px; }

  .story, .who { flex-direction: column; gap: 32px; }
  .story-copy, .who-copy { width: 100%; }
  .story-media { width: 100%; height: 320px; }
  .value-grid { width: 100%; }

  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 32px; }

  .tech { flex-direction: column; }
  .tech-media { width: 100%; height: 260px; }
  .tech-copy { padding: 36px 32px; }

  .page-hero { flex-direction: column; }
  .page-hero-copy,
  .page-hero.light .page-hero-copy { width: 100%; padding: 36px 32px; }
  .page-hero-media { height: 200px; flex-grow: 0; }

  .contact-layout { flex-direction: column; }
  .form-card { width: 100%; }

  .faq-section { flex-direction: column; }
  .faq-aside { width: 100%; }

  .cta-band { flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px; }
  .cta-band::before { right: -40px; }

  .team .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .team .script { white-space: normal; }
}

/* --- 860 and below: mobile chrome takes over --- */
@media (max-width: 859px) {
  .main-nav { display: none; }
  .header-actions .btn-header { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-header { padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
  /* the WhatsApp action lives in the bottom bar on phones, not the header */
  .header-actions .icon-btn-wa { display: none; }
  .site-header .brand-logo { width: 36px; height: 28px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 9.5px; }

  .tabbar { display: flex; }
  /* clear the fixed bottom bar */
  .site-footer { padding-bottom: 110px; }

  .why-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

  .footer-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
  .footer-hours li { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* --- 640 and below: the 390px design --- */
@media (max-width: 639px) {
  :root { --gutter: 18px; }

  body { font-size: 15px; }

  /* Hero: photo first, then headline, eyebrow, lead, buttons */
  .hero { padding: 18px var(--gutter) 22px; gap: 16px; }
  .hero-copy { gap: 16px; }
  .hero-figure { order: -1; }
  .hero-media { height: 220px; border-radius: 20px; }
  .hero-media img { object-position: center 18%; }
  .hero h1 { font-size: 32px; line-height: 1.1; order: 1; }
  .hero-copy .eyebrow { font-size: 11px; letter-spacing: .2em; order: 2; }
  .hero-lead { font-size: 15px; line-height: 1.65; order: 3; }
  .hero-actions { order: 4; gap: 10px; padding-top: 0; flex-wrap: nowrap; }
  .hero-stats { order: 5; }
  .hero-script {
    top: 18px; left: 18px; right: auto;
    font-size: 24px;
    text-align: left;
  }
  .hero-card { display: none; }

  .hero-actions .btn-lg { height: 50px; font-size: 14.5px; flex-grow: 1; padding: 0 16px; gap: 8px; }
  /* .btn-wa keeps its 54px desktop height otherwise, and the pair sits crooked */
  .hero-actions .btn-wa { height: 50px; flex-grow: 0; padding: 0 16px; gap: 8px; }
  .hero-actions .btn-wa .wa-dot { display: none; }
  .hero-actions .btn-wa .wa-inline { display: inline-flex; color: var(--azure-ink); }

  /* Stats become the ice-tinted strip from the mobile design */
  .hero-stats {
    background: var(--ice);
    border-radius: 16px;
    border-top: none;
    padding: 16px;
    margin-top: 4px;
    gap: 0;
    justify-content: space-between;
  }
  .stat {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-grow: 1;
    text-align: center;
  }
  .stat-icon { width: auto; height: auto; background: none; border-radius: 0; }
  .stat-icon svg { width: 18px; height: 18px; }
  .stat-text { align-items: center; }
  .stat-num { font-size: 18px; }
  .stat-label { font-size: 11px; }
  .stat-divider { height: 44px; }

  /* Services become horizontal rows. The 390 frame puts the "view all" button
     AFTER the cards, so flatten .section-head with display:contents and reorder
     its children as siblings of the grid. */
  .services-home { padding: 26px var(--gutter) 24px; }
  .services-home .section-head { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 14px; }
  .services-home .head-text { gap: 4px; }
  .section-title { font-size: 25px; }
  .section-sub { font-size: 13.5px; }

  /* the 390 frame promotes this from a text link to a full-width outline button */
  .viewall-lg { display: none; }
  .viewall-sm {
    display: inline-flex;
    margin-top: 14px;
    height: 48px;
    border-radius: 999px;
    border: 1.5px solid var(--navy);
    justify-content: center;
    font-size: 14.5px;
  }

  .lead-desktop { display: none; }
  .lead-mobile { display: inline; }

  .steps-band { padding: 26px var(--gutter) 0; }
  .steps-band .section-head { margin-bottom: 14px; }
  .step-grid { gap: 14px; }
  .step-card { padding: 20px; border-radius: 16px; box-shadow: var(--shadow-soft); }

  .svc-grid { grid-template-columns: 1fr; gap: 14px; }
  .treatments { grid-template-columns: 1fr; }
  .review-slider { --per-view: 1; }
  .review-arrow { width: 36px; height: 36px; }
  .review-arrow.prev { left: -6px; }
  .review-arrow.next { right: -6px; }
  .review-track > .review:hover { transform: none; }
  .value-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .svc-card {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
  }
  .svc-card:hover { transform: none; }
  /* 792x192 landscape stock squeezed into a 64px square turned the X-ray into
     a grey blob. 72px plus a per-card focal point keeps the subject. */
  .svc-thumb { width: 72px; height: 72px; border-radius: 13px; flex-shrink: 0; }
  .thumb-general  img { object-position: 52% 42%; }
  .thumb-scaling  img { object-position: 48% center; }
  .thumb-rct      img { object-position: 42% center; }
  .thumb-whitening img { object-position: 50% 45%; }
  .thumb-braces   img { object-position: 55% center; }
  .thumb-implants img { object-position: 50% 40%; }
  .svc-body {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0;
  }
  .svc-text { gap: 3px; }
  .svc-desc { font-size: 12.5px; }
  .svc-arrow { align-self: center; }

  .why { min-height: 0; }
  .why-panel { border-radius: 20px; margin: 0 var(--gutter); width: auto; padding: 24px; gap: 18px; position: relative; overflow: hidden; }
  .why-panel h2 { font-size: 22px; }
  .why-panel > p { font-size: 14.5px; }
  .why-points { gap: 16px; }
  .why-point span { font-size: 13px; }
  .why-photo { height: 200px; margin-top: 26px; }
  .why-script { padding: 30px 20px; }
  .why-script span { font-size: 28px; }

  .testimonials { padding: 26px var(--gutter) 30px; }
  .testimonials .section-head { margin-bottom: 14px; }
  .review { border-radius: 16px; padding: 20px; gap: 12px; box-shadow: var(--shadow-soft); }
  .google-card { padding: 22px; }

  .cta-band { margin: 0 var(--gutter); border-radius: 20px; padding: 26px 22px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex-grow: 1; }

  .crumbs { padding: 14px var(--gutter) 0; font-size: 12.5px; }

  .page-hero { margin: 8px var(--gutter) 0; border-radius: 20px; min-height: 0; }
  .page-hero-copy,
  .page-hero.light .page-hero-copy { padding: 26px 22px; }
  .page-hero-media { height: 170px; }

  .services-page { padding: 18px var(--gutter) 30px; }
  .treatments { gap: 16px; }
  .treatment { border-radius: 18px; }
  .treatment-media { height: 150px; }
  .treatment-body { padding: 18px; }

  .story { padding: 20px var(--gutter) 30px; gap: 20px; }
  .story-copy { gap: 14px; }
  .story-copy p { font-size: 15.5px; line-height: 1.7; }
  .story-copy .script, .team .script, .faq-aside .script { font-size: 26px; }
  .story-media { height: 220px; border-radius: 20px; }

  .who { padding: 0 var(--gutter) 30px; gap: 20px; }
  .who-copy { gap: 14px; }
  .who-copy p { font-size: 15.5px; }
  .value-grid { gap: 14px; }
  .value-card { padding: 20px; border-radius: 18px; }

  .stat-band { margin: 0 var(--gutter); border-radius: 20px; padding: 26px 22px; gap: 20px; }

  .team { padding: 30px var(--gutter) 26px; }
  .team .section-head { margin-bottom: 18px; }
  .team-grid { gap: 16px; }
  .team-card { border-radius: 18px; }
  .team-photo { height: 280px; }
  .team-body { padding: 20px; }

  .tech { margin: 0 var(--gutter) 30px; border-radius: 20px; min-height: 0; }
  .tech-media { height: 200px; }
  .tech-copy { padding: 24px 22px; gap: 14px; }
  .tech-copy p { font-size: 15.5px; }

  .contact-layout { padding: 20px var(--gutter) 30px; gap: 16px; }
  .form-card, .info-card { padding: 22px; border-radius: 18px; gap: 16px; }
  .card-title { font-size: 22px; }
  .field-pair { flex-direction: column; gap: 16px; }
  .map-card { border-radius: 18px; }

  .faq-section { padding: 0 var(--gutter) 30px; gap: 24px; }
  .faq-item { padding: 16px 18px; border-radius: 14px; }
  .faq-item summary { font-size: 14.5px; gap: 14px; }
  .faq-aside-media { height: 200px; }

  .site-footer { padding: 26px var(--gutter) 120px; gap: 14px; }
  .footer-row { gap: 18px; }
  .footer-nav { gap: 18px; font-size: 14px; }
  .footer-cols { padding-top: 18px; gap: 22px; }
  .footer-col ul { font-size: 13px; }
  .footer-bottom { font-size: 12px; }
}

/* --- 380 and below --- */
@media (max-width: 379px) {
  .hero h1 { font-size: 28px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn-wa { width: 100%; justify-content: center; }
  .tabbar a { width: 52px; }
  .stat-label { font-size: 10px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .tabbar, .mobile-nav, .cta-band, .btn { display: none !important; }
  .page { max-width: none; }
  body { background: #fff; }
}
