/* Gentle Dentistry, Lawrence KS - homepage per v2-specs/homepage-spec.md (r1).
   Ratios / flex / grid mechanisms + @media live here; fixed values in tokens.css.
   No window.innerWidth gates anywhere (quincy law): pure CSS @media. */

/* ================= base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--body-ink);
  background: #fff;
}
img { border: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
a { color: var(--teal); }

/* container: 1200 fixed above ~1220 viewport, percentage below (belladental) */
.container { width: 1200px; max-width: 98%; margin: 0 auto; }

/* focus: custom ring on every focusable (delta 1.5) */
:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
/* on dark surfaces the teal-deep ring cannot pass; white is the compliant material
   (delta G1, class B - recorded in the spec delta additions) */
.reviews :focus-visible, .contact :focus-visible, .site-footer :focus-visible,
.drawer :focus-visible, .action-bar :focus-visible { outline-color: #fff; }

/* skip link (delta 1.6): off-canvas at x-999, left-offset :focus swap */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 300;
  background: #fff; color: var(--teal-deep); padding: 12px 20px;
  font-weight: 700; text-decoration: underline;
}
.skip-link:focus { left: 8px; }

/* pill atom: ONE recipe sitewide */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--pill-h); padding: 0 28px;
  border-radius: 9999px; border: var(--pill-border);
  background: #fff; color: var(--teal);
  font-family: var(--font-body); font-weight: 700; font-size: 18px;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--pill-transition), color var(--pill-transition),
              border-color var(--pill-transition);
}
.pill:hover, .pill:focus-visible {
  background: var(--teal-deep); color: #fff; border-color: var(--teal-deep);
}

/* ================= 00 header : belladental/00 + interactive/02+03 ================= */
.masthead { position: static; }
.ribbon {
  background: var(--teal); min-height: var(--ribbon-min-h);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 400; line-height: 19.5px;
  text-transform: uppercase; text-align: center;
}
.ribbon .sep { margin: 0 10px; opacity: 0.7; }
.ribbon a {
  color: #fff; text-decoration: underline;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 6px;                 /* 44px+ hit area (delta 1.4); fits inside 46 */
}
.ribbon svg { width: 15px; height: 15px; flex: none; }

.navbar { background: #fff; border-bottom: 1px solid var(--hairline); }
.navbar.pinned { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding: 3px 0; }
/* logo: authored fixed px, chosen once at install (spec S1: intrinsic height ~80px
   in the 97px bar governs; installed 460px -> 74.75px at the lockup's 2400x390) */
.brand { display: block; line-height: 0; }
.brand img { width: 460px; height: auto; display: block; }
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; height: var(--nav-link-box-h); padding: 40px 9px 0;
  font-size: 13px; font-weight: 400; text-transform: uppercase;
  color: var(--grey-structural); text-decoration: none; line-height: 19.5px;
}
.nav a:hover { color: var(--teal); }                       /* colour swap only (delta 1.3) */
.nav a.current { box-shadow: inset 0 4px 0 var(--teal); color: var(--teal); } /* every page (delta 1.2) */

/* compact track 901-1180 (delta 1.8) */
@media (max-width: 1180px) {
  .brand img { width: 200px; }
  .nav a { font-size: 12px; padding: 40px 6px 0; }
}

/* ================= 01 hero : mahwah register, mvendo golden-ratio placement ========= */
/* Owner ruling 2026-09-24 (permanent, all designs): the title card is NEVER
   bottom-docked. mvendo/01 mechanism: card group centered with its visual
   center ~56% of hero height (padding-top offsets the centering downward). */
.hero { position: relative; width: 100%; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-stack {
  height: 100vh; max-width: 1120px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2%; padding-bottom: 20vh;
  /* anchor = the VIEWPORT: with the in-flow header above, this lands the card
     group's center at ~55% of the first screen (never low, never bottom) */
  text-align: center; position: relative;
}
.frost-card {
  background: var(--frost);
  padding: 24px;                       /* no radius / border / shadow */
  display: flex; flex-direction: column; align-items: center;
}
.frost-card img { width: var(--hero-card-logo-w); max-width: 100%; height: auto; display: block; }
.hero-slogan {
  font-family: var(--font-display); font-weight: 400; font-size: 22px;
  color: var(--teal-deep); margin-top: 12px; white-space: nowrap;
}
.pill--hero { width: var(--hero-pill-w); }

/* ================= canvas device (belladental/02 mechanism, wash baked in) ======= */
.canvas-wrap {
  background-image: url(../assets/canvas-lawrence.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3% 0;                    /* canvas reveal above the first sheet: 3% of WIDTH (belladental-int/00) */
}
/* floating sheets (r2 ADDENDUM 4, belladental-int/00 anatomy): min(94%, 1200) wide,
   0.9 white, radius 2, 26px-class soft shadow; 3%-of-width canvas reveal between them */
.sheet {
  width: 1200px; max-width: 94%; margin: 0 auto;
  background: var(--sheet); border-radius: var(--radius-sheet); box-shadow: var(--shadow-sheet);
  padding: 48px 36px;               /* 1128 inner well (belladental inner container) */
}
.sheet + .sheet { margin-top: 3%; }
.sheet > .container { width: auto; max-width: none; padding: 0; }

/* ================= 02 welcome split : mahwah/02 ================= */
/* 2:1 tracks of the 1200 well, authored as fr tracks (mechanism re-author, spec S3:
   gate compares tracks, not display values). Grid areas carry the phone restructure. */
.welcome-split {
  display: grid; grid-template-columns: 2fr 1fr;
  grid-template-areas: "photo head" "photo body";
  grid-template-rows: auto 1fr;
}
/* photo column = the doctor band's mist-panel device (wave A carried fix, class A4
   "too empty"): the 2/3 track's SURFACE fills the column height, the photo centres
   on it, so the text column's extra height no longer opens white slabs above and
   below the photo. Same values as .doc-photo (padding 32, mist, radius 2). */
.wl-panel {
  grid-area: photo; min-width: 0;
  padding: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-mist); border-radius: var(--radius-sheet);
}
.wl-photo { padding: 0; position: relative; align-self: center; flex: 1 1 auto; min-width: 0; }
.wl-photo::before {
  content: ""; position: absolute; z-index: 3;
  width: 1.5em; height: var(--accent-bar-h);
  top: -3em; left: 0.3em; background: var(--teal);
}
.wl-photo img, .doc-fig img { max-width: 100%; height: auto; display: block; }
.wl-head { grid-area: head; padding: 0 32px; }
.wl-body { grid-area: body; padding: 0 32px; }
.welcome h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 45.7px; line-height: 50.3px; letter-spacing: -1px; color: var(--teal);
}
hr.gap { height: 20px; border: 0; margin: 0; }
.support-line { font-weight: 700; font-size: 16px; line-height: 27.2px; color: var(--teal-deep); }
.wl-body p { font-size: 16px; line-height: 27.2px; margin: 0 0 14px; }
.wl-body p:last-child { margin-bottom: 0; }

/* reveal curtain (one-shot, JS-gated so a no-JS page never hides the photo) */
.wipe {
  display: none;
  position: absolute; top: 0; right: 0; width: 100%; height: 100%;
  background: #fff; z-index: 4; transition: width 0.9s ease;
}
.js .wipe { display: block; }
.revealed .wipe { width: 0; }   /* curtain exits right; no offscreen residue over the text column */
@media (prefers-reduced-motion: reduce) { .wipe { display: none !important; } }

/* ================= 03 doctor band : mahwah/03 mirrored ================= */
.doctor-split { display: flex; }
/* basis-percentage tracks: the table-cell equivalent (border-box outer = 1/3 : 2/3) */
.doc-text { flex: 0 0 33.3333%; min-width: 0; padding: 0 32px; align-self: center; }
/* the 2/3 column reads as a filled mist plate (r2 A4.4): the recipe's photo fills this
   track; our honest portrait cannot (delta 4.1), so the track's surface carries the fill */
.doc-photo {
  flex: 0 0 66.6667%; min-width: 0; padding: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-mist); border-radius: var(--radius-sheet);
}
.doc-fig { position: relative; max-width: 380px; }        /* delta 4.1 */
.doc-fig::before {
  content: ""; position: absolute; z-index: 3;
  width: 1.5em; height: var(--accent-bar-h);
  top: 50%; transform: translateY(-50%); right: 0.3em;    /* transform-centred, never a landed top */
  background: var(--teal);
}
.doc-kicker {
  font-family: var(--font-display); font-weight: 400;
  font-size: 36.56px; line-height: 40.2px; letter-spacing: -0.99px; color: var(--teal);
}
.doc-statement {
  font-family: var(--font-display); font-weight: 400;
  font-size: 27.4px; line-height: 30.2px; letter-spacing: -0.99px; color: var(--teal-deep);
  margin-top: 14px;
}
.doc-support { font-size: 16px; line-height: 27.2px; margin-top: 14px; }
.doc-text .pill { margin-top: 24px; }                     /* delta 4.2 */

/* ================= 04 services tiles : humphries/03 + interactive/03 ============ */
/* r2: heading + tiles sit directly on the canvas (tiles are the cards); 3% reveal above */
.services { text-align: center; padding-top: 3%; }
.services h2, .reviews h2 {
  font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.2;
}
.services h2 { color: var(--teal-deep); }
.svc-well { padding: 0 30px; }                            /* well = viewport - 60 */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  margin-top: 40px;
}
.tile {
  position: relative; overflow: hidden; display: block;
  aspect-ratio: 16 / 9; border-radius: var(--radius-tile);
  background: var(--teal-deep);                            /* dark underlay */
  text-decoration: none;
  box-shadow: var(--shadow-sheet);                         /* r2: cards on the canvas take the sheet shadow */
}
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity var(--tile-duration), transform var(--tile-duration);
}
.tile-strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: var(--tile-scrim); color: #fff;
  padding: 12px 16px 14px; text-align: center;
  transition: opacity var(--tile-duration);
}
.tile-cat {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: 30px; letter-spacing: 1px; line-height: 1.25; color: #fff;
}
.tile-sub { display: block; font-size: 14px; font-weight: 400; line-height: 20px; margin-top: 4px; }
@media (hover: none) { .tile-cat::after { content: " \203A"; } }   /* touch affordance (delta 5.3) */
.tile-key { position: absolute; inset: var(--tile-border-margin); z-index: 3; pointer-events: none; }
.tile-key::before, .tile-key::after {
  content: ""; position: absolute; inset: 0;
  transition: transform var(--tile-duration);
}
.tile-key::before {
  border-top: var(--tile-border-width) solid rgba(255, 255, 255, 0.9);
  border-bottom: var(--tile-border-width) solid rgba(255, 255, 255, 0.9);
  transform: scaleX(0); transform-origin: center center;   /* draws from centre */
}
.tile-key::after {
  border-left: var(--tile-border-width) solid rgba(255, 255, 255, 0.9);
  border-right: var(--tile-border-width) solid rgba(255, 255, 255, 0.9);
  transform: scaleY(0); transform-origin: center center;
}
.tile-learn {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 32px; overflow: hidden; pointer-events: none;
}
.tile-learn span {
  font-family: var(--font-display); font-weight: 400; font-size: 26px; color: #fff;
  opacity: 0; transform: translateX(120%);                 /* reveals from the RIGHT */
  transition: opacity var(--tile-duration), transform var(--tile-duration);
  transition-delay: 200ms;                                 /* the 200ms beat */
}
.tile:hover img, .tile:focus-visible img {
  opacity: var(--tile-image-opacity); transform: scale(1.25);
}
.tile:hover .tile-strip, .tile:focus-visible .tile-strip { opacity: 0; }
.tile:hover .tile-key::before, .tile:focus-visible .tile-key::before { transform: scaleX(1); }
.tile:hover .tile-key::after, .tile:focus-visible .tile-key::after { transform: scaleY(1); }
.tile:hover .tile-learn span, .tile:focus-visible .tile-learn span {
  opacity: 1; transform: translateX(0);
}
.svc-teaser { font-size: 18px; line-height: 1.5; margin: 32px auto 0; }    /* delta 5.2 */
.pill--services { width: var(--services-pill-w); margin-top: 24px; }

/* ================= 05 reviews : HOUSE component (class C) ================= */
.reviews { background: var(--teal-deep); padding: 64px 0; text-align: center; color: #fff; }
.rv-well { width: 90%; margin: 0 auto; }
.reviews h2 { color: #fff; }
.rv-summary {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin: 16px 0 40px; font-size: 20px; font-weight: 400; color: var(--on-dark-soft);
}
.g-mark { width: 22px; height: 22px; display: inline-flex; flex: none; }
.g-mark svg { width: 100%; height: 100%; }
.g-mark--sm { width: 16px; height: 16px; }
.stars-frac { position: relative; display: inline-block; font-size: 20px; letter-spacing: 2px; line-height: 1; }
.stars-frac .bg { color: rgba(255, 255, 255, 0.25); }
.stars-frac .fg {
  position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap;
  color: var(--g-star-amber); width: 86%;                  /* fractional 4.3 / 5 (delta 6.4) */
}
.rv-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  align-items: stretch;
}
.rv-card {
  background: var(--card-on-dark); border: 1px solid var(--card-on-dark-b);
  border-radius: var(--radius-review-card); padding: 28px; text-align: left;
  display: flex; flex-direction: column; min-width: 0;
}
.rv-top { display: flex; align-items: center; gap: 12px; }
.rv-av {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
}
.rv-who { display: flex; flex-direction: column; min-width: 0; }
.rv-who b { font-size: 17px; font-weight: 700; color: #fff; }
.rv-who span { font-size: 15px; font-weight: 400; color: var(--on-dark-soft); }
.rv-stars { margin-top: 14px; font-size: 16px; letter-spacing: 2px; color: var(--g-star-amber); }
.rv-card blockquote {
  margin: 10px 0 18px; font-size: 17px; font-weight: 400;
  line-height: 27px; color: var(--on-dark-quote);
}
.rv-card blockquote p { margin: 0 0 10px; }
.rv-card blockquote p:last-child { margin-bottom: 0; }
.rv-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto;                                        /* the three foot tops agree */
  padding-top: 14px; border-top: 1px solid var(--on-dark-line);
  font-size: 13px; color: var(--on-dark-soft);
}
.rv-more { display: inline-block; margin-top: 36px; color: #fff; text-decoration: underline; font-size: 16px; }

/* ================= 06 contact : humphries-int/08 recoloured + mvendo hours (r2 rebuild) == */
/* band surface: the precedent's radial device inside our one hue (luminance only) */
.contact {
  background: radial-gradient(ellipse at 50% 50%, var(--contact-core) 0%, var(--teal-deep) 100%);
  padding: 48px 0; color: #fff;
}
.ct-well {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-direction: row-reverse; justify-content: space-between; gap: 48px;  /* DOM: form first (mobile order) */
}
.ct-cards { width: var(--nap-card-w); flex: none; min-width: 0; }
.ct-form-col { flex: 0 1 var(--form-col-max); min-width: 0; display: flex; flex-direction: column; }
.contact h2 {
  font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.2;
  color: #fff; margin: 0; text-align: left;
}
.ct-reassure { font-size: 16px; line-height: 1.5; color: var(--on-dark-soft); margin: 8px 0 22px; }
.ct-reassure a { color: #fff; text-decoration: underline; }
/* 44px hit areas for the band's inline links (class B; padding on inline
   elements does not shift line layout - Danbe wave R precedent) */
.ct-reassure a, .nap-card a { padding: 12px 4px; margin: -12px -4px; }

/* NAP card: white, same card anatomy as the sheets (radius 2, 26px-class shadow) */
.nap-card {
  background: #fff; color: var(--body-ink); text-align: center;
  border-radius: var(--radius-sheet); box-shadow: var(--shadow-sheet);
  padding: 22px 22px 22px;
}
.nap-lead { font-size: 18px; font-weight: 400; line-height: 1.4; }
.nap-card h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.15;
  color: var(--teal-deep); margin: 10px 0 4px;
}
.nap-h {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 18px; font-weight: 700; margin: 12px 0 2px;
}
.nap-h svg { width: 18px; height: 18px; flex: none; color: var(--teal); }
.nap-card p { font-size: 16px; line-height: 1.5; }
.nap-mail { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2px; }
.nap-mail svg { width: 16px; height: 16px; flex: none; color: var(--teal); }
.nap-card a { color: var(--teal); text-decoration: underline; }

/* map: full-width interactive strip closing the band (owner ruling 2026-09-24;
   precedent scale: humphries-int/11 1060x400, mvendo-int/06 1000x400) */
.pill--sm { height: var(--pill-sm-h); padding: 0 22px; font-size: 15px; }
.map-strip {
  width: min(1120px, calc(100% - 48px)); height: 400px; margin: 40px auto 0;
  border-radius: var(--radius-sheet); overflow: hidden; box-shadow: var(--shadow-sheet);
  background: var(--teal-mist);                            /* holds the box while Google paints */
}
.map-strip iframe { display: block; width: 100%; height: 100%; border: 0; }

/* hours card (mvendo/07 zebra), same width as the NAP card, tight under it */
.hours-card {
  background: #fff; color: var(--body-ink);
  border-radius: var(--radius-sheet); box-shadow: var(--shadow-sheet);
  padding: 16px; width: 100%;
  margin-top: 16px;
}
.hours-card ul { list-style: none; margin: 0; padding: 0; }
.hours-card li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: var(--hours-row-h); padding: 4px 12px;
}
.hours-card li:nth-child(odd) { background: var(--zebra); }  /* opens and closes tinted */
.hours-day { font-size: 15.75px; font-weight: 500; }
.hours-time { font-size: 15.75px; font-weight: 700; text-align: right; line-height: 1.35; }   /* wraps, no nowrap */
.hours-time > span { display: block; }                      /* split-day: one interval per line */

/* form: fills the column; the textarea absorbs the rail's height so no dead zone opens */
.req-form { flex: 1; display: flex; flex-direction: column; }
.req-form label {
  display: block; font-size: 16px; font-weight: 700; line-height: 20px; color: #fff; margin: 0 0 6px;
}
.req { color: var(--req-red); }
.f-2up { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.f-row { margin-bottom: 18px; flex: 1; display: flex; flex-direction: column; }
.f-row--fixed { flex: none; }
.req-form input[type="text"], .req-form input[type="email"], .req-form input[type="tel"],
.req-form select {
  width: 100%; height: 45px; border-radius: 30px; border: 1px solid var(--hairline);
  background: #fff; color: var(--body-ink);
  font-family: var(--font-body); font-size: 16px; padding: 0 18px;
}
.req-form select { appearance: auto; }
.req-form textarea {
  width: 100%; flex: 1; min-height: 120px; border-radius: 22px; border: 1px solid var(--hairline);
  background: #fff; color: var(--body-ink);
  font-family: var(--font-body); font-size: 16px; padding: 12px 18px; resize: vertical;
}
.f-consent {
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 18px;
  font-size: 13px; color: var(--on-dark-soft);
}
.f-consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.req-form .f-consent label { font-size: 14px; margin: 0; }
.pill--submit { width: 100%; flex: none; }
.fine-print { font-size: 14px; color: var(--on-dark-soft); margin-top: 12px; }
.fine-print.notice { color: #fff; }

/* ================= 07 footer : mahwah/10 anatomy on teal-deep ================= */
.site-footer { background: var(--grey-footer); color: #fff; text-align: center; }   /* r2: structural grey (family register) */
.ft-main { padding: 24px 0 20px; }
.ft-links { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.ft-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--teal-mist); font-size: 12px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
}
.ft-links a:hover, .ft-links a:focus-visible { text-decoration: underline; }
.ft-brand {
  font-family: var(--font-display); font-weight: 400; font-size: 15px;
  letter-spacing: 0.5px; text-transform: uppercase; margin-top: 14px;
}
.ft-slogan { font-size: 12px; font-weight: 400; letter-spacing: 1px; color: var(--on-dark-soft); margin-top: 6px; }
.ft-nap { font-size: 12px; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; margin-top: 12px; }
.ft-nap a { color: var(--teal-mist); }
.ft-legal { background: var(--grey-footer-legal); border-top: 1px solid var(--on-dark-line); padding: 14px 0; font-size: 12px; letter-spacing: 2px; }
.ft-legal .credit { display: block; margin-top: 6px; font-size: 11px; letter-spacing: 1px; color: var(--on-dark-soft); }

/* ================= mobile chrome (house system, mobile.md; class A) ============ */
.mobile-bar, .drawer, .action-bar { display: none; }

@media (max-width: 900px) {
  .masthead { display: none; }             /* sticky n/a <=900 (delta 1.7) */
  body { padding-top: var(--mobile-bar-h); }
  /* fixed-attachment unreliable on mobile (delta G2); a scroll-attached cover over a ~2600px
     stack would blow the vignette up past legibility, so it recurs at viewport scale (A4.7) */
  .canvas-wrap {
    background-attachment: scroll; background-size: auto 760px;
    background-repeat: repeat-y; background-position: center top; padding: 28px 0;
  }
  .sheet { padding: 40px 32px; }
  .sheet + .sheet { margin-top: 28px; }
  .services { padding-top: 28px; }
  .doc-text { align-self: stretch; padding: 24px 0 0; }

  .mobile-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 120;
    height: var(--mobile-bar-h); background: #fff;
    border-bottom: 1px solid var(--hairline);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px;
  }
  .mb-logo { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
  .mb-logo img { height: 44px; width: auto; display: block; }
  .mb-right { display: flex; align-items: center; gap: 10px; }
  .mb-tel {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; color: var(--teal);
  }
  .mb-tel svg { width: 24px; height: 24px; }
  .mb-menu {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-width: 44px; height: 44px; padding: 0 10px;
    background: var(--teal); color: #fff; border: 0; cursor: pointer;
  }
  .mb-menu .bars { display: flex; flex-direction: column; gap: 4px; }
  .mb-menu .bars span { display: block; width: 20px; height: 2px; background: #fff; transition: transform 0.2s ease, opacity 0.2s ease; }
  .mb-menu .mb-label { font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
  .drawer-open .mb-menu .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .drawer-open .mb-menu .bars span:nth-child(2) { opacity: 0; }
  .drawer-open .mb-menu .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .drawer-open .drawer { display: flex; }
  .drawer {
    position: fixed; top: var(--mobile-bar-h); bottom: 0; left: 0; right: 0; z-index: 110;
    background: var(--teal-deep); color: #fff;
    flex-direction: column; overflow-y: auto; padding: 0 0 20px;
  }
  .drawer ul { list-style: none; margin: 0; padding: 0; }
  .drawer li { border-bottom: 1px solid var(--on-dark-line); }
  .drawer ul a {
    display: flex; align-items: center; min-height: 56px; padding: 0 24px;
    color: #fff; font-size: 18px; text-decoration: none;
  }
  .drawer ul a.current { box-shadow: inset 4px 0 0 var(--teal-mist); }
  .drawer-util { margin-top: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
  .drawer-util .dr-tel { color: #fff; font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
  .drawer-open { overflow: hidden; }

  /* stacks */
  .welcome-split { grid-template-columns: 1fr; grid-template-areas: "head" "photo" "body"; grid-template-rows: auto auto auto; }
  /* stacked tiers: no column height to fill, so the mist panel stands down and the
     photo keeps its pre-panel geometry (16px frame; <=600 bleeds to the sheet) */
  .wl-panel { display: block; padding: 0; background: none; border-radius: 0; }
  .wl-photo { padding: 16px; }
  .doctor-split, .ct-well { flex-direction: column; }
  .doc-photo { order: 0; }
  .svc-grid, .rv-grid { grid-template-columns: 1fr; }
  .ct-cards { width: 100%; }
  .ct-form-col { flex: none; }
  .ct-well { gap: 32px; padding: 0 20px; }

  /* display sizes (<=900 column of the S9 table) */
  .welcome h1 { font-size: 40px; line-height: 1.2; }
  .doc-kicker { font-size: 33px; line-height: 1.2; }
  .doc-statement { font-size: 26px; line-height: 1.25; }
  .services h2, .reviews h2 { font-size: 36px; }
  .tile-cat { font-size: 28px; }
  .contact h2 { font-size: 28px; }
}

@media (max-width: 600px) {
  .container { width: 100%; max-width: none; padding: 0 20px; }
  /* sheets go full-bleed-ish: 8px canvas reveal each side, 12px inner = the 20px gutter */
  .canvas-wrap { padding: 16px 0; }
  .sheet { width: auto; max-width: none; margin: 0 8px; padding: 28px 12px; }
  .sheet + .sheet { margin-top: 16px; }
  .services { padding-top: 24px; }
  .sheet > .container { padding: 0; }

  .action-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    height: var(--actionbar-h); display: flex;
  }
  .action-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; text-decoration: none; min-height: 44px;
  }
  .ab-call { background: var(--teal); color: #fff; }
  .ab-req { background: #fff; color: var(--teal); border-top: 1px solid var(--teal); }
  .ab-dir { background: var(--teal-deep); color: #fff; }
  .site-footer .ft-legal { padding-bottom: 96px; }         /* bar height + 40 */

  /* hero at 390 */
  .frost-card { max-width: 100%; }           /* 320-sweep guard: card never wider than the stack */
  .frost-card img { width: 280px; }
  .hero-slogan { font-size: 20px; white-space: normal; }

  /* welcome: text-first, photo full-bleed, devices deleted */
  .wl-photo { padding: 0; margin: 16px -12px; }      /* bleeds to the sheet edges */
  .wl-photo::before, .doc-fig::before { display: none; }
  .wl-head, .wl-body { padding: 0; }
  .wl-body { max-width: 350px; margin: 0 auto; }
  .welcome h1 { font-size: 34px; }

  /* doctor: portrait first, centred 310 */
  .doc-photo { order: -1; padding: 20px; }
  .doc-fig { max-width: 310px; }
  .doc-text { padding: 20px 0 0; }
  .doc-kicker { font-size: 30px; }
  .doc-statement { font-size: 24px; }

  /* services: full-bleed stack (house media rule, class A) */
  .svc-well { padding: 0; }
  .svc-grid { gap: 16px; }
  .tile { border-radius: 0; }
  .svc-teaser, .pill--services { margin-left: 20px; margin-right: 20px; }
  .pill--services { max-width: calc(100vw - 40px); }  /* 320-sweep guard; still 350 at 390 */
  .services h2, .reviews h2 { font-size: 31px; }
  .tile-cat { font-size: 26px; }

  /* reviews: band padding x0.6, cards frozen */
  .reviews { padding: 38px 0; }

  /* contact survives at 390 (delta 7.8) */
  .contact h2 { font-size: 26px; }
  .ct-well { padding: 0 20px; }
  .f-2up { grid-template-columns: 1fr; }
  .nap-card, .hours-card { max-width: none; }
  /* map strip full-bleed on phone (mobile.md: media to the viewport edge) */
  .map-strip { width: 100%; height: 280px; margin: 28px 0 0; border-radius: 0; box-shadow: none; }
}
