/* Valley Orthodontics: shared site system
   ------------------------------------------------------------------
   This file owns STRUCTURE for every shared section. concept-1.css owns the
   colour strategy and the signature device, and may remap the semantic tokens
   on the body class (.c1). Values come from tokens.css; a literal here is a bug.

   Rules this file enforces so nobody has to remember them:
   - body 18px, lede 20px, nothing that reads as body under 16px
   - no eyebrow labels, no numbered section markers, no icon rows
   - no gradients as grounds
   - one radius (4px), one accent (gold), typography carries hierarchy
   - every control has default, hover, focus-visible and active
   - one authored motion moment per page, visible by default, off under
     prefers-reduced-motion */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--slate) var(--paper); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-body);
  font-feature-settings: 'kern', 'liga';
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--gold); color: var(--ink); }
.on-dark ::selection { background: var(--mist); color: var(--ink); }

h1, h2, h3, p, figure, ul, ol, dl, address, blockquote, table { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.02; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: var(--lh-tight); }
p { text-wrap: pretty; max-width: 68ch; }
p + p { margin-top: 1em; }
.lede { font-size: var(--fs-lede); line-height: 1.55; }
/* One display-face label role for everything that is a title but not a heading. */
.label { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-label); line-height: var(--lh-tight); letter-spacing: var(--track-label); }

/* ---- emphasis scheme -------------------------------------------------------
   Three inline treatments, in descending weight. All three are <b>: visual
   prominence with no announced semantics, so a screen reader hears the sentence
   exactly as written and the FAQ answers still mirror the FAQPage node.

   .hl       the swipe. A gold marker stroke seated under the x-height, behind
             the one phrase a section is really making. At most one per section.
             Flat gold; the two-stop linear-gradient exists only so the fill can
             be sized, and renders as a solid, never as a gradient ground.
   .hl-rule  the rule. The same 3px gold as the fact dashes and the board
             caption, under a fact that is repeated elsewhere on the page.
   .num      the figure. Every number in running prose set in the display face,
             so prices, times and counts match the values on the hours board.
             1.12em is an optical match to Nunito, not a new step in the scale.

   Budget: one swipe per section, two rules, figures wherever a number appears.
   Never two treatments on one phrase. Never inside a repeated service card, a
   verbatim review, or the proof band, which is display face already. */
.hl, .hl-rule, .num { font-style: normal; }
.hl {
  font-weight: 700;
  padding-inline: .1em;
  margin-inline: -.1em;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 100% var(--hl-size);
  background-position: 0 var(--hl-seat);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
h1 .hl { --hl-size: .76em; --hl-seat: 98%; }
/* On a dark ground the marker fills the word instead of striking under it: the
   swiped text flips to ink, and a partial stroke would leave its ascenders in ink
   against the dark, where they disappear. */
.on-dark .hl { color: var(--ink); --hl-size: 1.02em; --hl-seat: 84%; }
.hl-rule { font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: var(--rule); text-underline-offset: .22em; text-decoration-skip-ink: none; }
.num { font-family: var(--font-display); font-weight: 700; font-size: 1.12em; letter-spacing: var(--track-label); }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:active { opacity: .82; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--focus-on-dark); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.plain { list-style: none; padding: 0; margin: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main:focus { outline: 0; }

/* Icons: one drawn family (sprite at the top of <body>), currentColor, 2px stroke, square caps. */
.i { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; flex-shrink: 0; }
.i--fill { fill: currentColor; stroke: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: min(var(--wrap), 100% - (var(--gutter) * 2)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: var(--space-4); z-index: var(--z-skip); padding: var(--space-3) var(--space-4); background: var(--white); color: var(--ink); border-radius: var(--radius); }
.skip-link:focus { top: var(--space-3); }

/* ---- buttons and links ---- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  min-height: 56px; padding: var(--space-3) var(--space-5);
  background: var(--ink); color: var(--white);
  font: 700 var(--fs-body)/1.2 var(--font-body);
  text-decoration: none; border-radius: var(--radius);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.button:hover { background: var(--slate); color: var(--white); }
.button:active { transform: translateY(1px); opacity: 1; }
.button--gold { background: var(--gold); color: var(--ink); }
.button--gold:hover { background: var(--white); color: var(--ink); }
.button--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.button--ghost:hover { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 2px var(--ink); }
.on-dark .button--ghost:hover { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--white); }
.text-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-weight: 700; font-size: var(--fs-body); }
.text-link .i { transition: transform var(--dur-fast) var(--ease-out); }
.text-link:hover .i { transform: translateX(4px); }

/* ---- header ---- */
.header { position: sticky; top: 0; z-index: var(--z-header); background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(16px, 2vw, 32px); min-height: 92px; }
.brand { display: block; flex-shrink: 0; padding: var(--space-2) 0; }
.brand img { width: 186px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); }
.nav a { text-decoration: none; font-weight: 700; font-size: var(--fs-small); min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.header-phone { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; white-space: nowrap; text-decoration: none; }
.header-phone .i { width: 20px; height: 20px; }
.header-phone:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.header .button { min-height: 50px; padding-block: var(--space-3); }

/* ---- nav dropdowns ----
   Services is a dropdown of money pages and Meet the Doctor sits under Why Valley,
   because those are the two pages patients look for by name. Single location, so the
   fourth item is an address anchor rather than a Locations dropdown. Opens on hover
   and on keyboard focus; the caret is a drawn chevron from the sprite, never a glyph. */
.nav-dd { position: relative; }
.nav-dd > .dd-trigger { gap: var(--space-2); }
.nav-dd .i--chev { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out); }
.dd { position: absolute; top: 100%; left: calc(-1 * var(--space-3)); min-width: 15rem; display: none; flex-direction: column; padding: var(--space-2); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.nav-dd:hover > .dd, .nav-dd:focus-within > .dd { display: flex; }
.nav-dd:hover .i--chev, .nav-dd:focus-within .i--chev { transform: rotate(180deg); }
.dd a { font-weight: 400; padding-inline: var(--space-3); }
.dd a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; min-width: 44px; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; font-size: var(--fs-small); transition: background var(--dur-fast) var(--ease-out); }
.menu-toggle:hover { background: var(--paper); }
.menu-toggle[aria-expanded="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.menu-toggle .i { width: 18px; height: 18px; }
.menu-toggle[aria-expanded="true"] .i--menu, .menu-toggle:not([aria-expanded="true"]) .i--close { display: none; }

/* ---- hero base (each skin positions it) ---- */
/* One hero rhythm: the copy column sets the hero's height, on the section
   padding scale, and the photo bleeds past the wrap to the viewport edge. */
.hero { position: relative; }
.hero .hero-copy { padding-block: var(--pad-m); }
.hero .intro { margin-top: var(--space-5); }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); margin-top: var(--space-6); }
.hero .phone-link { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; text-decoration: none; font-size: 24px; }
.hero .phone-link small { display: block; font: 600 var(--fs-small)/1.2 var(--font-body); letter-spacing: 0; margin-bottom: 2px; }
.hero .phone-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.hero figure { position: relative; }
.hero figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero figcaption { position: absolute; left: 0; bottom: 0; padding: var(--space-3) var(--space-4); background: var(--ink); color: var(--white); font-size: var(--fs-caption); max-width: 36ch; }

/* Fact chips: proof next to the CTA. Plain text behind a gold chevron.
   Numbers come from CLIENT-BRIEF.md. */
.facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-6); font-weight: 700; font-size: var(--fs-body); }
.facts li, .creds li { position: relative; padding-left: 22px; }
/* The marker is the logo's chevron rather than a dash: two sides of a square
   turned 45 degrees, in the same gold and the same 3px rule as everything else. */
.facts li::before, .creds li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-right: var(--rule) solid var(--gold); border-bottom: var(--rule) solid var(--gold); transform: rotate(45deg); }

/* ---- proof band: three verified claims, typography only ---- */
.proof { background: var(--dark); color: var(--on-dark); }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: var(--pad-s); }
.proof-cell { padding-inline: var(--space-6); border-left: 1px solid var(--line-on-dark); }
.proof-cell:first-child { padding-inline-start: 0; border-left: 0; }
.proof-cell:last-child { padding-inline-end: 0; }
.proof-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.05; letter-spacing: var(--track-label); text-wrap: balance; }
.proof-note { margin-top: var(--space-2); font-size: var(--fs-small); line-height: 1.5; color: var(--on-dark-2); max-width: 34ch; }

/* ---- sections ---- */
.section { padding-block: var(--pad-m); }
.section--l { padding-block: var(--pad-l); }
/* The measure belongs on the type, not on the container. Capping .section-head
   itself also capped the lede inside it, so the lede's own 58ch never applied and
   both sat in a 30ch column on a 1240px page. */
.section-head { margin-bottom: var(--gap-m); }
.section-head h2 { max-width: 22ch; }
.section-head .lede { margin-top: var(--space-4); max-width: 58ch; }
/* On a wide screen the lede sits beside the heading rather than under it, which is
   where the room already was. Heads with no lede are unaffected: the h2 keeps the
   left column and the right one stays empty. Stacked again below 1100. */
@media (min-width: 1101px) {
  .section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-l); align-items: start; }
  .section-head .lede { margin-top: .35em; }
}

/* ---- meet the doctor (teaser) ---- */
.doctor { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--gap-l); align-items: center; }
.doctor figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.doctor figcaption { margin-top: var(--space-2); font-size: var(--fs-caption); color: var(--text-2); }
.doctor .lede { margin-top: var(--space-4); }
.creds { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--fs-body); line-height: 1.45; }
.doctor .button { margin-top: var(--space-5); }

/* ---- USP rows: real photo + one claim + its own CTA ---- */
.usp { display: grid; gap: clamp(40px, 6vw, 96px); }
.usp-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-l); align-items: center; }
.usp-row:nth-child(even) figure { order: 2; }
.usp-row figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.usp-row figure img.pos-mid { object-position: 50% 32%; }
.usp-row figcaption { margin-top: var(--space-2); font-size: var(--fs-caption); color: var(--text-2); }
.usp-row h2 { font-size: clamp(32px, 3.4vw, 50px); }
.usp-row .lede { margin-top: var(--space-4); }
.usp-row p + p { margin-top: var(--space-3); }
.usp-row .text-link { margin-top: var(--space-5); }

/* ---- CTA band: one line, one button ---- */
/* ---- arrow notch ----
   A chevron cut into the top edge of a band, pointing down into it, taken from the
   mark. --ridge-from is the colour of the band above, which is what the notch is cut
   out of.

   The span is CAPPED, and that is the whole trick. Drawn full-width it looked right on
   a laptop and collapsed on a wide monitor: 56px of drop across 960px is a three degree
   slope, which stops reading as an arrow and becomes two long stray diagonals. Fixing
   the span at 420px keeps the angle near twelve degrees at any viewport, so it reads the
   same on every screen. Do not make this full-width again. */
.ridge { position: relative; }
.ridge > * { position: relative; z-index: 1; }
.ridge::before {
  content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0;
  width: var(--ridge-span); height: var(--ridge);
  background: var(--ridge-from, var(--bg));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  pointer-events: none; z-index: 0;
}

.cta-band { background: var(--dark); color: var(--on-dark); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5) var(--space-7); flex-wrap: wrap; padding-block: clamp(34px, 4vw, 56px); }
.cta-band h2 { font-size: clamp(30px, 3.2vw, 46px); max-width: 24ch; }
.cta-band .button { flex-shrink: 0; }

/* ---- services: three cards, whole card clickable ---- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-s); }
.svc { position: relative; display: grid; gap: var(--space-3); align-content: start; }
.svc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: transform var(--dur) var(--ease-out); }
.svc h3 { margin-top: var(--space-1); }
.svc h3 a { text-decoration: none; }
.svc h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.svc h3 a:focus-visible { outline: 0; }
.svc h3 a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 4px; }
.svc:hover h3 a { text-decoration: underline; text-decoration-thickness: 2px; }
.svc:active img { transform: scale(.995); }
.svc p { font-size: var(--fs-body); line-height: 1.55; }
.svc .more { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; font-size: var(--fs-small); justify-self: start; }
.svc .more .i { transition: transform var(--dur-fast) var(--ease-out); }
.svc:hover .more .i { transform: translateX(4px); }
/* A row of links, not prose: the 68ch measure on p was breaking it into three short
   lines while half the page sat empty. */
.services-more { max-width: none; margin-top: var(--gap-m); padding-top: var(--space-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); align-items: center; font-size: var(--fs-body); }
.services-more strong { margin-right: var(--space-1); }
.services-more a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---- proof wall: the credentials as they hang on the office wall ---- */
.wall-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-s); }
.wall-grid figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.wall-grid figcaption { margin-top: var(--space-2); font-size: var(--fs-body); font-weight: 700; }
.wall-grid figcaption span { display: block; font-weight: 400; font-size: var(--fs-small); color: var(--text-2); margin-top: 2px; }
.on-dark .wall-grid figcaption span { color: var(--on-dark-2); }
/* Affiliation logos, the strip his previous site ran on the homepage, the contact page and the
   Palmer page. The official files, cropped and set in one tone: white on ink, ink on light
   grounds, as the old site showed them. Originals are kept in _source/affiliation-logos-original/. */
.logo-strip { margin-top: var(--gap-m); padding-top: var(--space-6); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-6) var(--gap-s); align-items: start; }
.on-dark .logo-strip { border-top-color: var(--line-on-dark); }
.logo-strip figure { display: grid; justify-items: center; align-content: start; gap: var(--space-3); text-align: center; }
.logo-strip .logo-box { display: flex; align-items: center; justify-content: center; height: var(--space-8); width: 100%; }
.logo-strip img { display: block; width: auto; height: auto; max-width: 100%; max-height: var(--space-8); }
.logo-strip figcaption { font-size: var(--fs-small); font-weight: 600; line-height: 1.35; }

/* ---- reviews: grid, never a carousel; no review schema ---- */
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-7); margin-bottom: var(--gap-m); }
.rating { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; font-size: var(--fs-body); white-space: nowrap; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .i { width: 18px; height: 18px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-s); }
.review { display: grid; gap: var(--space-4); align-content: start; padding: var(--space-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.on-dark .review { background: transparent; border-color: var(--line-on-dark); }
.review blockquote p { font-size: var(--fs-body); line-height: 1.55; max-width: none; }
.review blockquote p::before { content: "\201C"; }
.review blockquote p::after { content: "\201D"; }
.review cite { font-style: normal; font-weight: 700; font-size: var(--fs-small); }
.review cite span { display: block; font-weight: 400; color: var(--text-2); }
.on-dark .review cite span { color: var(--on-dark-2); }
.reviews-more { margin-top: var(--space-5); }

/* ---- FAQ: single column, question is the visible control ---- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) 0; min-height: 44px;
  font-weight: 700; font-size: var(--fs-lede); line-height: 1.35;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--slate); }
.faq summary .i { width: 22px; height: 22px; color: var(--slate); }
.faq summary .i line:last-child { transform-origin: center; transition: transform var(--dur-fast) var(--ease-out); }
.faq details[open] summary .i line:last-child { transform: rotate(90deg); }
.faq details p { padding: 0 56px var(--space-5) 0; font-size: var(--fs-body); line-height: var(--lh-body); max-width: 64ch; }
.faq .text-link { margin-top: var(--space-5); }

/* ---- schedule: phone, hours as a real table, address, directions, map ---- */
/* Both columns run to the same depth: the map grows to meet the bottom of the hours
   and address beside it, rather than stopping a third of the way down. */
.schedule { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-l); align-items: stretch; }
.schedule > div:last-child { display: flex; flex-direction: column; }
.schedule .lede { margin-top: var(--space-4); }
.big-phone { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--space-5); font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 4.2vw, 60px); line-height: 1; text-decoration: none; letter-spacing: var(--track-label); }
.big-phone:hover { text-decoration: underline; text-decoration-thickness: var(--rule); text-underline-offset: .12em; }
.hours { width: 100%; max-width: 520px; margin-top: var(--space-5); border-collapse: collapse; font-size: var(--fs-body); }
.hours caption { text-align: left; padding-bottom: var(--space-2); }
.hours th, .hours td { text-align: left; padding: var(--space-3) 0; border-top: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 700; padding-right: var(--space-5); }
.hours-note { max-width: 520px; margin-top: var(--space-3); color: var(--text-2); }
.hours td small { display: block; font-size: var(--fs-caption); color: var(--text-2); margin-top: 2px; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--line); }
.hours-note { margin-top: var(--space-3); font-size: var(--fs-small); color: var(--text-2); }
.on-dark .hours th, .on-dark .hours td { border-color: var(--line-on-dark); }
.on-dark .hours-note, .on-dark .hours td small { color: var(--on-dark-2); }
.address-block { margin-top: var(--space-5); display: grid; gap: var(--space-4); }
.address-block address { font-style: normal; font-size: var(--fs-body); line-height: 1.5; }
.address-block .landmark { color: var(--text-2); font-size: var(--fs-small); }
.on-dark .address-block .landmark { color: var(--on-dark-2); }
.map { position: relative; width: 100%; flex: 1; min-height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--mist-tint); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-caption { margin-top: var(--space-2); font-size: var(--fs-small); color: var(--text-2); }

/* ---- footer: mirrors the header, NAP, legal ---- */
.footer { background: var(--dark); color: var(--on-dark); padding-block: clamp(48px, 5vw, 72px) 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 60px); }
.footer-brand a { display: inline-block; }
.footer img { width: 176px; height: auto; }
.footer-brand p { margin-top: var(--space-4); font-size: var(--fs-body); max-width: 32ch; }
.footer .label { display: block; margin-bottom: var(--space-3); }
.footer nav { display: grid; gap: 0; }
.footer nav a, .footer-nap a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; font-size: var(--fs-body); }
.footer nav a:hover, .footer-nap a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.footer-nap address { font-style: normal; font-size: var(--fs-body); line-height: 1.55; }
.footer-nap .footer-hours { margin-top: var(--space-3); font-size: var(--fs-small); color: var(--on-dark-2); line-height: 1.5; }
.footer .footer-social { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); margin-top: var(--space-2); }
.footer-bottom { margin-top: var(--gap-m); border-top: 1px solid var(--line-on-dark); padding-block: var(--space-4); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-5); font-size: var(--fs-caption); color: var(--on-dark-2); }
.footer-bottom nav { display: flex; gap: var(--space-5); }
.footer-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- mobile action bar: Call · Schedule · Directions ---- */
.mobile-bar { display: none; }

/* ---- motion: one authored moment ----
   On load the hero copy rises in, one child after another. Then the page gets
   at most one observed moment on its signature device (.moment). Nothing
   else moves. Without JS nothing is hidden; under reduced motion nothing animates. */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-copy > * { animation: rise var(--dur) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms); }
  html.js .moment > * { opacity: 0; transform: translateY(12px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  html.js .moment.in > * { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  html { scroll-padding-top: 76px; }
  .header-inner { min-height: 68px; flex-wrap: wrap; gap: 0 var(--space-4); }
  .brand img { width: 150px; }
  /* The CTA is pinned to the bottom of the drawer, so it stays in the drawer
     rather than the collapsed bar. The action bar hides while the drawer is open so
     two booking surfaces never sit on screen together. */
  .header .header-cta { width: 100%; justify-content: center; margin-top: var(--space-4); }
  .header-phone { margin-left: auto; min-width: 44px; justify-content: center; }
  .header-phone span { display: none; }
  .header-phone .i { width: 24px; height: 24px; }
  .menu-toggle { display: inline-flex; margin-left: var(--space-3); }
  /* align-items must be restated: the desktop rule centres the row, and left as
     centre in a column it shrink-wraps every drawer link. Long dropdown items also
     need to wrap here, or one of them sets the drawer wider than the screen. */
  .nav { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) 0 var(--space-4); }
  .nav a { white-space: normal; }
  .nav-dd { position: static; }
  .nav-dd > .dd-trigger { width: 100%; justify-content: space-between; }
  .dd { position: static; min-width: 0; margin-left: var(--space-2); padding: 0 0 var(--space-2) var(--space-4); background: none; border: 0; border-left: var(--rule) solid var(--gold); border-radius: 0; }
  .nav-dd:hover > .dd, .nav-dd:focus-within > .dd { display: none; }
  .nav-dd:hover .i--chev, .nav-dd:focus-within .i--chev { transform: none; }
  .nav-dd[data-open="true"] > .dd { display: flex; }
  .nav-dd[data-open="true"] .i--chev { transform: rotate(180deg); }
  .nav a { min-height: 48px; }
  .nav[hidden] { display: none; }
  body.nav-open { overflow: hidden; }
  .proof-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .proof-cell { padding-inline: 0; border-left: 0; border-top: 1px solid var(--line-on-dark); padding-top: var(--space-5); }
  .proof-cell:first-child { border-top: 0; padding-top: 0; }
  .services, .wall-grid, .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero figure { min-height: 480px; }
}
@media (min-width: 1101px) { .menu-toggle { display: none !important; } .nav[hidden] { display: flex !important; } }

@media (max-width: 760px) {
  :root { --fs-h1: clamp(40px, 12vw, 60px); --fs-h2: clamp(30px, 8.4vw, 40px); }
  .doctor, .usp-row, .schedule { grid-template-columns: 1fr; }
  /* Stacked, the map has no column to match, so it goes back to its own proportion. */
  .map { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .usp-row:nth-child(even) figure { order: 0; }
  .hero .hero-copy { padding-block: var(--space-6) var(--space-7); }
  .hero figcaption { left: var(--bleed); }
  .usp-row figure img { aspect-ratio: 3 / 2; }
  /* The rating line is nowrap so it reads as one statement; at 390 it is a pixel
     too wide for that, so let it break rather than push the page sideways. */
  .rating { flex-wrap: wrap; white-space: normal; }
  .services, .wall-grid, .reviews-grid { grid-template-columns: 1fr; }
  .logo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-strip .logo-box { height: var(--space-7); }
  .logo-strip img { max-height: var(--space-7); max-width: 80%; }
  .cta-band .wrap { display: grid; }
  .cta-band .button { width: 100%; }
  .faq summary { font-size: var(--fs-body); }
  .faq details p { padding-right: 0; }
  .hours { font-size: var(--fs-small); }
  .hours th, .hours td { display: block; padding: 0; border: 0; }
  .hours tr { display: block; padding: var(--space-3) 0; border-top: 1px solid var(--line); }
  .hours tr:last-child { border-bottom: 1px solid var(--line); }
  .hours tr:last-child th, .hours tr:last-child td { border: 0; }
  .hours td { margin-top: 2px; }
  .on-dark .hours tr { border-color: var(--line-on-dark); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer { padding-bottom: 72px; }
  .mobile-bar {
    position: fixed; z-index: var(--z-bar); left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1.6fr 1fr;
    background: var(--white); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-weight: 700; font-size: var(--fs-small); text-decoration: none; color: var(--ink); transition: background var(--dur-fast) var(--ease-out); }
  .mobile-bar a + a { border-left: 1px solid var(--line); }
  .mobile-bar a:hover { background: var(--paper); }
  .mobile-bar a:active { background: var(--mist-tint); opacity: 1; }
  body.nav-open .mobile-bar { display: none; }
  .mobile-bar .mobile-bar-book { background: var(--gold); color: var(--ink); }
  .mobile-bar .mobile-bar-book:hover, .mobile-bar .mobile-bar-book:active { background: var(--ink); color: var(--white); }
  .mobile-bar a:focus-visible { outline-offset: -4px; }
}
@media (max-width: 420px) {
  .facts { font-size: var(--fs-small); gap: var(--space-2) var(--space-4); }
  .review { padding: var(--space-5) var(--space-4); }
}
