/* New Smile Orthodontics — concept stylesheet
   Hometown-sign system: Young Serif wordmark and headings, Figtree for reading,
   the practice's own brick red and sky blue on clean white. Location first everywhere. */

:root {
  --brick: #7A2C25;
  --brick-deep: #5E211C;
  --sky: #2C6F8E;
  --sky-deep: #225A74;
  --sky-wash: #E6F0F5;
  --paper: #FFFFFF;
  --ink: #22303A;
  --ink-soft: #4B5862;
  --line: #C9D6DE;
  --sunny: #F2BE4A;

  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --gutter: 24px;
  --wrap: 1240px;
  --header-h: 72px;
  --section: clamp(4rem, 2.8rem + 5vw, 7.5rem);
  --radius: 14px;

  --step-0: 1.125rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: clamp(2rem, 1.4rem + 2.3vw, 3.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.12; text-wrap: balance; }
h2 { font-size: var(--step-3); letter-spacing: -0.01em; }
h3 { font-size: var(--step-2); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 38rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--sky-deep); text-decoration-thickness: 2px; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .site-header:not(.is-solid) :focus-visible, .band-brick :focus-visible, .site-footer :focus-visible, .menu :focus-visible { outline-color: var(--sunny); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--paper); color: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
.band-sky { background: var(--sky-wash); }
.band-brick { background: var(--brick); color: #FFFFFF; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  min-height: 50px; padding: 0.7rem 1.2rem;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 1.0625rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.button-light { background: #FFFFFF; color: var(--brick); }
.button-light:hover { background: var(--sky-wash); color: var(--brick-deep); }
.button-town { font-weight: 700; color: var(--ink); }
.button-brick { background: var(--brick); color: #FFFFFF; }
.button-brick:hover { background: var(--brick-deep); color: #FFFFFF; }
.button:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: 26px;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  color: #FFFFFF;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-solid { background: #FFFFFF; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header-brand-sub { display: none; }
.header-brand {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; min-height: 44px;
  font-family: var(--display); font-size: 1.375rem; color: inherit; text-decoration: none; white-space: nowrap;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.site-header.is-solid .header-brand { opacity: 1; visibility: visible; color: var(--brick); transition: opacity 0.3s ease; }
.header-nav { display: flex; gap: 24px; }
.header-nav a { color: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; padding: 12px 0; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }
.site-header.is-solid .header-nav a { text-shadow: none; }
.header-nav a:hover { text-decoration: underline; text-underline-offset: 0.35em; color: inherit; }
.header-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: #FFFFFF; color: var(--brick); font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
}
.site-header.is-solid .header-cta { background: var(--brick); color: #FFFFFF; }
.header-cta:hover { color: var(--brick-deep); background: var(--sky-wash); }
.site-header.is-solid .header-cta:hover { background: var(--brick-deep); color: #FFFFFF; }
.menu-button {
  display: none; min-width: 44px; min-height: 44px; padding: 0 16px;
  border: 2px solid currentColor; border-radius: 999px; background: transparent; color: inherit;
  font: 600 1rem/1 var(--sans); cursor: pointer;
}
@media (max-width: 1080px) {
  .header-nav { display: none; }
  .menu-button { display: inline-flex; align-items: center; }
  .site-header { gap: 10px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .header-cta { padding: 0 14px; }
  .header-brand { font-size: 1.1875rem; }
}
/* Header room is measured in rem, so larger text settings drop the header call (the two office calls sit just
   below the photo) instead of squeezing the logo and Menu. Logo + call + Menu + gaps need about 20.4rem of content width. */
.site-header { container-type: inline-size; }
.header-cta, .menu-button { flex-shrink: 0; }
@container (max-width: 21rem) {
  .header-cta { display: none; }
}

/* ---------- Menu ---------- */
.menu { position: fixed; inset: 0; z-index: 60; }
.menu[hidden] { display: none; }
.menu-backdrop { position: absolute; inset: 0; background: rgba(20, 28, 34, 0.5); opacity: 0; transition: opacity 0.28s ease; }
.menu-sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 88vw);
  display: flex; flex-direction: column; gap: 24px;
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) 24px;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--brick); color: #FFFFFF;
  transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.menu.is-open .menu-backdrop { opacity: 1; }
.menu.is-open .menu-sheet { transform: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.menu-brand { font-family: var(--display); font-size: 1.375rem; }
.menu-close {
  min-width: 44px; min-height: 44px; padding: 0 16px; border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 999px;
  background: transparent; color: #FFFFFF; font: 600 1rem/1 var(--sans); cursor: pointer;
}
.menu-nav { display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.menu-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); color: #FFFFFF; font: 400 1.625rem/1.2 var(--display); text-decoration: none; }
.menu-offices { margin-top: auto; display: grid; gap: 10px; }
.menu-offices a {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 52px; padding: 0 18px;
  border-radius: 999px; background: #FFFFFF; color: var(--brick); font-weight: 700; text-decoration: none;
}
.menu-offices span { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .menu-backdrop, .menu-sheet { transition: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  height: 100vh; height: 100svh; min-height: 540px; max-height: 1000px;
  overflow: hidden; background: var(--brick-deep); color: #FFFFFF;
}
.hero-slides, .hero-slide, .hero-slide picture, .hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide { opacity: 0; z-index: 0; }
.hero-slide img { object-fit: cover; object-position: var(--focus, 50% 50%); }
.hero-slide.is-prev { opacity: 1; z-index: 1; }
.hero-slide.is-current { opacity: 1; z-index: 2; }
.hero.is-animated .hero-slide.is-current { animation: hero-in 2.2s ease-in-out both; }
.hero.is-animated .hero-slide.is-current img { animation: hero-drift 12s linear both; }
.hero-slide.is-failed { display: none; }
@keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.035); } }
.hero-slide:nth-child(1) { --focus: 55% 45%; }
.hero-slide:nth-child(2) { --focus: 60% 55%; }
.hero-slide:nth-child(3) { --focus: 50% 40%; }
.hero-shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(18, 24, 30, 0.5) 0, rgba(18, 24, 30, 0) 170px),
    linear-gradient(to top, rgba(18, 24, 30, 0.84) 0%, rgba(18, 24, 30, 0.55) 34%, rgba(18, 24, 30, 0) 66%);
}
.hero-content {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) max(clamp(26px, 4.5vh, 52px), env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "wordmark wordmark" "doctor doctor" "statement statement" "actions controls";
  align-items: center;
}
.wordmark { grid-area: wordmark; line-height: 1; }
.wordmark-main {
  display: block; position: relative; width: max-content; max-width: 100%;
  font-size: clamp(3rem, 1.2rem + 5.2vw, 6.25rem); line-height: 0.95; letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
/* the smile: a single sunny arc under the wordmark */
.wordmark-main::after {
  content: ""; position: absolute; left: 4%; right: 30%; bottom: -0.16em; height: 0.22em;
  border-bottom: 0.07em solid var(--sunny); border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.wordmark-sub { display: block; margin-top: 0.42em; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); line-height: 1.1; }
.hero-doctor { grid-area: doctor; margin: 6px 0 0; font-weight: 600; font-size: clamp(1rem, 0.9rem + 0.35vw, 1.1875rem); letter-spacing: 0.01em; }
.hero-statement { grid-area: statement; max-width: 33rem; margin: 18px 0 22px; font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem); line-height: 1.5; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4); }
.hero-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-controls { grid-area: controls; justify-self: end; display: flex; align-items: center; gap: 2px; margin-right: -10px; }
.hero-controls[hidden] { display: none; }
.hero-toggle, .hero-dot { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #FFFFFF; cursor: pointer; }
.hero-toggle-icon { position: absolute; inset: 0; margin: auto; width: 14px; height: 16px; }
.hero-toggle-icon::before, .hero-toggle-icon::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: currentColor; }
.hero-toggle-icon::before { left: 2px; }
.hero-toggle-icon::after { right: 2px; }
.hero-toggle.is-paused .hero-toggle-icon::before { left: 2px; width: 0; height: 0; background: none; border-radius: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
.hero-toggle.is-paused .hero-toggle-icon::after { display: none; }
.hero-dots { display: flex; }
.hero-dot[hidden] { display: none; }
.hero-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid #FFFFFF; transition: background-color 0.3s ease; }
.hero-dot[aria-current="true"]::before { background: #FFFFFF; }
/* Phones and portrait tablets (both orientations), per the user's mobile default: the compact logo lives in the
   top-left of a solid header with the menu opposite; nothing sits on the photograph; the doctor line, statement,
   calls and slide controls follow the photo (or sit beside it on landscape phones). */
@media (max-width: 899px) {
  .site-header { background: #FFFFFF; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
  .header-brand { opacity: 1; visibility: visible; color: var(--brick); transition: none; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1; }
  .header-brand-sub { display: block; margin-top: 3px; font: 600 0.875rem/1 var(--sans); color: var(--ink-soft); letter-spacing: 0.01em; }
  .header-cta, .site-header.is-solid .header-cta { background: var(--brick); color: #FFFFFF; }
  .header-cta:hover { background: var(--brick-deep); color: #FFFFFF; }
  .site-header :focus-visible { outline-color: var(--sky); }
  .hero {
    display: grid; grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "photo" "controls" "doctor" "statement" "actions";
    height: auto; min-height: 0; max-height: none;
    padding-top: calc(var(--header-h) + env(safe-area-inset-top));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    background: var(--sky-wash); color: var(--ink);
  }
  .hero-slides { grid-area: photo; position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 64svh; overflow: hidden; background: var(--brick-deep); }
  .hero-slide img { object-position: var(--focus-m, 50% 40%); }
  .hero-shade { display: none; }
  .hero-content { display: contents; }
  /* the brand is in the header on small screens; the h1 stays for assistive technology */
  .wordmark { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .hero-controls { grid-area: controls; justify-self: start; margin: 6px 0 0; padding-inline: max(calc(var(--gutter) - 12px), env(safe-area-inset-left)); }
  .hero-toggle, .hero-dot { color: var(--brick); }
  .hero-dot::before { border-color: var(--brick); }
  .hero-dot[aria-current="true"]::before { background: var(--brick); }
  .hero-doctor { grid-area: doctor; margin: 2px 0 0; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); color: var(--brick); }
  .hero-statement { grid-area: statement; display: block; margin: 8px 0 18px; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); color: var(--ink); text-shadow: none; max-width: 40rem; }
  .hero-actions { grid-area: actions; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
  .hero-actions .button { flex: 1 1 15rem; background: var(--brick); color: #FFFFFF; }
  .hero-actions .button:hover { background: var(--brick-deep); color: #FFFFFF; }
  .hero-actions .button-town { color: #FFFFFF; }
  .hero :focus-visible { outline-color: var(--sky); }
  .hero-slide:nth-child(1) { --focus-m: 50% 35%; }
  .hero-slide:nth-child(2) { --focus-m: 50% 45%; }
  .hero-slide:nth-child(3) { --focus-m: 50% 35%; }
}
/* Landscape phones: photo and panel side by side so the calls are in the first view */
@media (max-width: 899px) and (orientation: landscape) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "photo controls" "photo doctor" "photo statement" "photo actions";
    padding-bottom: 0;
  }
  .hero-slides { aspect-ratio: auto; height: calc(100svh - var(--header-h) - env(safe-area-inset-top)); min-height: 280px; max-height: 520px; }
  .hero-slide:nth-child(1) { --focus-m: 50% 40%; }
  .hero-slide:nth-child(2) { --focus-m: 62% 45%; }
  .hero-slide:nth-child(3) { --focus-m: 14% 40%; }
  .hero-controls { margin-top: 10px; }
  .hero-statement { margin-bottom: 12px; }
  .hero-actions { align-content: start; padding-bottom: 8px; }
  .hero-actions .button { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .hero-actions .button { padding-inline: 0.9rem; font-size: 1rem; }
}

/* ---------- Offices (location first) ---------- */
.offices { padding-block: clamp(3rem, 2rem + 3vw, 5rem) var(--section); }
.offices-head { display: grid; gap: 10px; margin-bottom: 28px; }
.offices-head p { font-size: var(--step-1); color: var(--ink-soft); }
.note-line { display: block; }
.office-cards { display: grid; gap: 20px; }
.office { border: 2px solid var(--brick); border-radius: var(--radius); overflow: hidden; background: #FFFFFF; }
.office-town { position: relative; padding: 16px 22px 14px 48px; background: var(--brick); color: #FFFFFF; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); }
/* sign rivet */
.office-town::before { content: ""; position: absolute; left: 22px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--sunny); }
.office-body { display: grid; gap: 10px; padding: 20px 22px 22px; }
.office-address { margin: 0; font-size: 1.125rem; }
.office-phone { justify-self: start; display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); color: var(--brick); text-decoration: none; }
.office-phone:hover { color: var(--brick-deep); text-decoration: underline; }
.office-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.office-near { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1rem; color: var(--ink-soft); }
.offices-email { margin-top: 22px; font-size: 1.0625rem; color: var(--ink-soft); }
.offices-email a { overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .office-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 1024px) {
  .offices-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: var(--gutter); }
  .offices-head p { justify-self: end; text-align: right; }
}

/* ---------- Section heads ---------- */
.section-head { display: grid; gap: 14px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head p { font-size: var(--step-1); color: var(--ink-soft); max-width: 36rem; line-height: 1.5; }
@media (min-width: 1024px) {
  .section-head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: calc(var(--gutter) * 2); align-items: end; }
}

/* ---------- Welcome ---------- */
.welcome { padding-block: var(--section); }
.welcome-grid { display: grid; gap: 28px; }
.welcome-copy h2 { margin-bottom: 20px; }
.welcome-copy p:first-of-type { font-size: var(--step-1); line-height: 1.5; }
.welcome-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
figcaption { margin-top: 10px; font-size: 0.9688rem; line-height: 1.45; color: var(--ink-soft); }
@media (min-width: 900px) {
  .welcome-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: calc(var(--gutter) * 2); align-items: center; }
}

/* ---------- Treatment ---------- */
.treatment { padding-block: var(--section); }
.treatment-grid { display: grid; gap: 32px; }
.options { list-style: none; border-top: 2px solid var(--brick); }
.option { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.option h3 { margin-bottom: 8px; color: var(--brick); }
.option p { color: var(--ink); }
.treatment-figures { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-content: start; }
.treatment-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.treatment-figure:nth-child(2) { margin-top: 48px; }
@media (min-width: 1024px) {
  .treatment-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: calc(var(--gutter) * 2); align-items: start; }
  .treatment-figures { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (max-width: 480px) {
  .treatment-figure:nth-child(2) { margin-top: 28px; }
}

/* ---------- First visit ---------- */
.first-visit { padding-block: var(--section); }
.steps { list-style: none; counter-reset: step; display: grid; gap: 18px; }
.step { position: relative; counter-increment: step; padding: 24px 24px 26px 24px; border-radius: var(--radius); background: #FFFFFF; border: 1px solid var(--line); }
.step::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%;
  background: var(--brick); color: #FFFFFF; font: 400 1.5rem/1 var(--display);
}
.step-time { margin: 0 0 6px; font-weight: 700; font-size: 0.9688rem; color: var(--sky-deep); }
.step h3 { margin-bottom: 10px; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Ages ---------- */
.ages { padding-block: var(--section); }
.ages h2 { margin-bottom: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem); }
.ages-grid { display: grid; gap: 26px; }
.age { padding-top: 18px; border-top: 4px solid var(--sky); }
.age h3 { margin-bottom: 10px; }
@media (min-width: 860px) {
  .ages-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: calc(var(--gutter) * 1.5); }
}

/* ---------- Doctor ---------- */
.doctor { padding-block: var(--section); }
.doctor-grid { display: grid; gap: 22px; }
.doctor-quote { margin: 18px 0 0; padding-left: 18px; border-left: 4px solid var(--sunny); font-family: var(--display); font-size: var(--step-2); line-height: 1.3; color: #FFFFFF; max-width: 22rem; }
.doctor-quote cite { display: block; margin-top: 10px; font: 600 1rem/1.4 var(--sans); font-style: normal; color: #FBEDEA; }
.doctor-copy p { color: #FBEDEA; font-size: var(--step-0); }
.doctor-copy p:first-child { font-size: var(--step-1); line-height: 1.5; color: #FFFFFF; }
.doctor-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 8px; }
.doctor-links a { display: inline-flex; align-items: center; min-height: 44px; color: #FFFFFF; font-weight: 600; text-decoration-color: var(--sunny); text-decoration-thickness: 2px; }
.doctor-links a:hover { color: #FFFFFF; text-decoration-thickness: 3px; }
@media (min-width: 900px) {
  .doctor-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: calc(var(--gutter) * 2); }
}

/* ---------- Request ---------- */
.request { padding-block: var(--section); }
.request-grid { display: grid; gap: 36px; }
.request-copy h2 { margin-bottom: 16px; }
.request-copy > p { font-size: var(--step-1); line-height: 1.5; }
.request-calls { list-style: none; display: grid; gap: 12px; margin-top: 24px; max-width: 26rem; }
.request-calls a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px;
  border: 2px solid var(--brick); border-radius: 999px; color: var(--brick); font-weight: 700; font-size: 1.125rem; text-decoration: none;
}
.request-calls a:hover { background: var(--brick); color: #FFFFFF; }
.request-calls a:hover span { color: #FFFFFF; }
.request-calls span { color: var(--ink); }
.demo { align-self: start; padding: clamp(20px, 1.6rem, 32px); border-radius: var(--radius); background: var(--sky-wash); border: 1px solid var(--line); }
.demo-label { max-width: none; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); text-align: center; font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; color: var(--brick); }
.demo-form { display: grid; gap: 20px; }
.choice { min-width: 0; }
.choice-label { margin: 0 0 10px; font-weight: 700; font-size: 1.0625rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-item {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px;
  border: 2px solid var(--sky); border-radius: 999px; background: #FFFFFF; color: var(--sky-deep);
  font: 600 1.0625rem/1.2 var(--sans); cursor: pointer;
}
.choice-item[aria-checked="true"] { background: var(--sky); color: #FFFFFF; }
.choice-item[aria-checked="true"]::before { content: ""; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #FFFFFF; }
.sample { display: grid; gap: 12px; padding: 16px; border-radius: 10px; background: #FFFFFF; border: 1px dashed var(--line); }
.sample-note { margin: 0; font-size: 0.9688rem; color: var(--ink-soft); }
.field { display: grid; gap: 4px; }
.field label { font-weight: 600; font-size: 0.9688rem; }
.field input { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #9AAAB5; border-radius: 8px; background: #F4F7F9; color: var(--ink-soft); font: 400 1.0625rem/1.3 var(--sans); }
.demo-form .button { justify-self: start; }
.form-status { margin: 0; font-weight: 600; font-size: 1rem; line-height: 1.45; color: var(--brick); }
.form-status:empty { display: none; }
@media (min-width: 960px) {
  .request-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: calc(var(--gutter) * 2); }
  .request-copy { align-self: center; }
}

/* ---------- Footer ---------- */
.site-footer { padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 max(26px, env(safe-area-inset-bottom)); background: var(--brick-deep); color: #F3E3E0; font-size: 1rem; line-height: 1.6; }
.footer-grid { display: grid; gap: 22px; margin-bottom: 30px; }
.footer-grid p { margin: 0 0 6px; }
.footer-brand { font-family: var(--display); font-size: 1.625rem; color: #FFFFFF; }
.footer-brand span { font-size: 1.125rem; }
.footer-town { font-weight: 700; color: #FFFFFF; }
.site-footer a { color: #FFFFFF; text-decoration-color: var(--sunny); }
.disclosure { margin: 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.2); max-width: none; font-size: 0.9688rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 4fr 4fr 4fr; } }

@media print { .site-header, .hero-controls, .menu { display: none !important; } .hero { height: auto; min-height: 0; } }
