/* Advanced Dental Care of Lexington — design system implementation
   Tokens: creative/design-system.md ("Hometown, Next Generation") */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Lora';
  src: url('/fonts/lora-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/fonts/lora-var-italic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/fonts/source-sans-3-var.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/fonts/source-sans-3-var-italic.woff2') format('woff2');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --cream: #FAF6EF;
  --cream-sunk: #F2EBDF;
  --ice: #EAF5F7;
  --powder: #90CAD5;
  --navy: #003862;
  --navy-deep: #00284A;
  --teal: #429EAE;
  --teal-ink: #22606D;
  --ink: #1C2B33;
  --ink-soft: #4C5B63;
  --line: #E3DACA;
  --line-input: #8A7D63;
  --amber: #D89E36;
  --white: #FFFFFF;
  --success: #2E7D4F;
  --error: #B3402F;

  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --sp-xs: 4px; --sp-sm: 8px; --sp-md: 16px; --sp-lg: 24px;
  --sp-xl: 32px; --sp-2xl: 48px; --sp-3xl: 64px; --sp-4xl: 96px;

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  --e1: 0 1px 2px rgba(28, 43, 51, 0.06);
  --e2: 0 4px 16px rgba(28, 43, 51, 0.08);
  --e3: 0 12px 32px rgba(28, 43, 51, 0.12);

  --t-fast: 150ms; --t-base: 250ms; --t-slow: 400ms;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);

  --container: 1160px;
  --header-h: 80px;
  --header-h-scrolled: 64px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.98rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--navy); margin: 0 0 var(--sp-md); }
h1 { font-size: clamp(2rem, 1.55rem + 1.9vw, 3rem); line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.22rem + 1.2vw, 2.125rem); line-height: 1.18; }
h3 { font-size: clamp(1.185rem, 1.1rem + 0.36vw, 1.375rem); line-height: 1.3; }
p { margin: 0 0 var(--sp-md); max-width: 68ch; }
a { color: var(--teal-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color var(--t-fast) var(--ease), text-decoration-thickness var(--t-fast) var(--ease); }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
ul { padding-left: 1.2em; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 2px; border-radius: var(--r-sm); }
.cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

section[id], [id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.skip-link {
  position: absolute; top: -100px; left: var(--sp-md); z-index: 100;
  background: var(--navy); color: var(--white);
  padding: var(--sp-sm) var(--sp-md); border-radius: var(--r-pill); text-decoration: none;
}
.skip-link:focus { top: var(--sp-md); }

.eyebrow {
  display: block; font-size: 0.8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal-ink); margin-bottom: var(--sp-sm);
}
.lede { font-size: clamp(1.125rem, 1.08rem + 0.25vw, 1.25rem); line-height: 1.6; max-width: 52ch; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-sm);
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.2;
  border-radius: var(--r-md); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-deep); color: var(--white); transform: translateY(-2px); box-shadow: var(--e2); }
.btn--primary:active { transform: translateY(0); box-shadow: var(--e1); }
.btn--secondary { background: transparent; color: var(--teal-ink); border-color: var(--teal-ink); }
.btn--secondary:hover { background: var(--teal-ink); color: var(--white); }
.btn--secondary:active { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn--light { background: var(--cream); color: var(--navy); }
.btn--light:hover { background: var(--white); color: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--e2); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  transition: background-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.site-header.is-scrolled { background: var(--white); box-shadow: var(--e3); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-lg);
  height: var(--header-h);
  transition: height var(--t-base) var(--ease);
}
.site-header.is-scrolled .site-header__inner { height: var(--header-h-scrolled); }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.wordmark__name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--navy); transition: font-size var(--t-base) var(--ease); }
.site-header.is-scrolled .wordmark__name { font-size: 1.125rem; }
.wordmark__sub { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-ink); margin-top: 2px; }
.site-nav { display: none; }
.site-nav__link {
  position: relative; padding: var(--sp-sm) 2px; margin-inline: 10px;
  font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.site-nav__link::after {
  content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 3px;
  background: var(--navy); border-radius: var(--r-pill);
  transition: left var(--t-fast) var(--ease), right var(--t-fast) var(--ease);
}
.site-nav__link:hover { color: var(--navy); }
.site-nav__link:hover::after, .site-nav__link.is-active::after { left: 0; right: 0; }
.site-nav__link.is-active { color: var(--navy); }
.site-header__actions { display: flex; align-items: center; gap: var(--sp-md); }
.phone-link {
  display: none; align-items: center; gap: var(--sp-sm);
  font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap;
}
.phone-link:hover { color: var(--teal-ink); }
.phone-link .icon { width: 18px; height: 18px; }
.btn--header { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: var(--sp-sm);
  min-height: 48px; padding: var(--sp-sm) var(--sp-md);
  background: none; border: 1.5px solid var(--line); border-radius: var(--r-md);
  font: inherit; font-weight: 600; color: var(--navy); cursor: pointer;
}
.menu-toggle__bars { position: relative; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy); border-radius: 2px;
}
.menu-toggle__bars::before { top: -6px; } .menu-toggle__bars::after { top: 6px; }
@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .phone-link { display: inline-flex; }
  .btn--header { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ---------- Mobile menu sheet ---------- */
.menu-sheet[hidden] { display: none; }
.menu-sheet {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + var(--sp-lg)) var(--sp-lg) var(--sp-2xl);
  background: var(--cream);
  overflow-y: auto;
}
.menu-sheet__nav { display: flex; flex-direction: column; }
.menu-sheet__link {
  padding: var(--sp-md) 0;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line);
}
.menu-sheet__link.is-active { color: var(--teal-ink); }
.menu-sheet__actions { display: grid; gap: var(--sp-md); margin-top: var(--sp-xl); }
body.menu-open { overflow: hidden; }

/* ---------- Private-preview sign out ---------- */
.preview-signout {
  align-items: center; justify-content: center; min-height: 44px;
  border: 1.5px solid var(--teal-ink); border-radius: var(--r-pill);
  padding: 10px 16px; background: transparent; color: var(--teal-ink);
  font: inherit; font-size: 0.875rem; font-weight: 700; line-height: 1.2; cursor: pointer;
}
.preview-signout:hover { background: var(--teal-ink); color: var(--white); }
.preview-signout:disabled { cursor: wait; opacity: 0.7; }
.preview-signout--header { display: none; }
.preview-signout--menu { width: 100%; }
.preview-signout--footer { margin-left: auto; border-color: var(--powder); color: var(--powder); }
.preview-signout--footer:hover { background: var(--powder); color: var(--navy-deep); }
@media (min-width: 1280px) {
  .preview-signout--header { display: inline-flex; }
  .preview-signout--footer { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--sp-2xl); }
.section--sunk { background: var(--cream-sunk); }
.section--ice { background: var(--ice); }
@media (min-width: 768px) { .section { padding-block: var(--sp-3xl); } }
.section__head { max-width: 640px; margin-bottom: var(--sp-xl); }

/* ---------- Hero (home, full-bleed video) ---------- */
.hero__title { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem); line-height: 1.08; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-md); margin-block: var(--sp-lg); }
.hero__phone { font-weight: 600; }
.hero--video {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; align-items: center;
  min-height: clamp(520px, 74svh, 760px);
  padding-block: var(--sp-3xl);
  background: var(--navy-deep);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media .hero__video,
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.hero__video[hidden] { display: none; }
.hero__scrim { position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.62) 48%, rgba(0, 0, 0, 0.28) 100%); }
.hero__content { position: relative; max-width: 640px; min-width: 0; margin-inline: 0; }
.hero--video .hero__title { color: var(--white); }
.hero--video .eyebrow { color: var(--powder); }
.hero--video .lede { color: var(--cream); }
.hero--video .hero__phone { color: var(--cream); }
.hero--video .hero__phone:hover { color: var(--white); }
.hero--video :focus-visible { outline-color: var(--white); }
@media (max-width: 767px) {
  .hero--video { min-height: min(88svh, 640px); align-items: end; padding-block: var(--sp-2xl); }
  .hero__scrim { background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.2) 100%); }
}

/* ---------- Proof chip ---------- */
.proof-chip {
  display: inline-flex; align-items: center; gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--white); border-radius: var(--r-pill); box-shadow: var(--e1);
  font-size: 0.9375rem;
}
.proof-chip__stars { color: var(--amber); letter-spacing: 2px; }
.proof-chip__text { font-weight: 700; color: var(--ink); }
.proof-chip__source { color: var(--ink-soft); }

/* ---------- Fact tiles ---------- */
.fact-tiles { display: grid; gap: var(--sp-md); }
.fact-tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-lg); box-shadow: var(--e1);
}
.fact-tile h3 { margin-bottom: var(--sp-sm); }
.fact-tile p { margin: 0; color: var(--ink-soft); }
@media (max-width: 767px) {
  .fact-tiles { grid-auto-flow: column; grid-auto-columns: 85%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--sp-sm); }
  .fact-tile { scroll-snap-align: start; }
}
@media (min-width: 768px) {
  .fact-tiles { grid-template-columns: repeat(3, 1fr); }
  .fact-tiles--pair { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: var(--sp-lg); }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  display: block; position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-lg); box-shadow: var(--e1);
  text-decoration: none; color: var(--ink);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--e2); border-color: var(--powder); color: var(--ink); }
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: var(--sp-md);
  background: var(--powder); border-radius: var(--r-pill);
}
.icon-chip .icon { width: 24px; height: 24px; stroke: var(--navy); }
.service-card p { color: var(--ink-soft); margin-bottom: var(--sp-sm); }
.service-card__more { font-weight: 600; color: var(--teal-ink); }

/* ---------- Split sections ---------- */
.split { display: grid; gap: var(--sp-xl); align-items: center; }
.split__photo img { border-radius: var(--r-lg); box-shadow: var(--e2); }
@media (min-width: 900px) {
  .split { grid-template-columns: 7fr 5fr; gap: var(--sp-2xl); }
  .split--flip { grid-template-columns: 5fr 7fr; }
  .split--flip .split__photo { order: -1; }
}

/* ---------- Doctor cards ---------- */
.doctor-card { text-align: left; }
.doctor-card img { border-radius: var(--r-lg); box-shadow: var(--e2); aspect-ratio: 3 / 4; object-fit: cover; }
.doctor-card h3 { margin-top: var(--sp-md); margin-bottom: var(--sp-xs); }
.doctor-card__creds { color: var(--teal-ink); font-weight: 600; font-size: 0.9375rem; margin-bottom: var(--sp-sm); }
.doctor-card p { color: var(--ink-soft); }

/* ---------- Hours & visit ---------- */
.hours-table { border-collapse: collapse; width: 100%; max-width: 360px; }
.hours-table th, .hours-table td { text-align: left; padding: var(--sp-sm) var(--sp-md) var(--sp-sm) 0; border-bottom: 1px solid var(--line); }
.hours-table th { font-weight: 600; color: var(--navy); white-space: nowrap; }
.hours-table--footer th, .hours-table--footer td { border-color: rgba(250, 246, 239, 0.2); color: var(--cream); }
.hours-table--footer th { color: var(--powder); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--white); padding-block: var(--sp-3xl); }
.cta-band__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-band__title { color: var(--white); max-width: 22ch; margin-inline: auto; }
.cta-band__body { color: var(--powder); font-size: 1.125rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-md); justify-content: center; margin-top: var(--sp-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--cream); padding-block: var(--sp-3xl) var(--sp-xl); }
.site-footer__grid { display: grid; gap: var(--sp-xl); }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(4, 1fr); } }
.wordmark--footer .wordmark__name { color: var(--cream); font-size: 1.25rem; }
.wordmark--footer .wordmark__sub { color: var(--powder); }
.site-footer__heading { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--powder); margin-bottom: var(--sp-md); }
.site-footer__address { margin-bottom: var(--sp-md); }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-sm); }
.site-footer__link { color: var(--cream); }
.site-footer__link:hover { color: var(--powder); }
.site-footer__note { font-size: 0.875rem; color: var(--powder); max-width: 30ch; }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-md);
  margin-top: var(--sp-2xl); padding-top: var(--sp-lg);
  border-top: 1px solid rgba(250, 246, 239, 0.2);
  font-size: 0.875rem; color: var(--powder);
}
.site-footer__legal p { margin: 0; }

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  visibility: hidden;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md) calc(var(--sp-sm) + env(safe-area-inset-bottom));
  background: var(--white); box-shadow: var(--e3);
  transform: translateY(110%);
  transition: transform var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.mobile-bar.is-visible { visibility: visible; transform: translateY(0); transition: transform var(--t-base) var(--ease), visibility 0s; }
.mobile-bar .btn--secondary { background: var(--teal-ink); color: var(--white); border-color: var(--teal-ink); }
body.has-mobile-bar { padding-bottom: 76px; }
@media (min-width: 768px) { .mobile-bar { display: none; } body.has-mobile-bar { padding-bottom: 0; } }

/* ---------- Jump chips (services hub) ---------- */
.jump-chips { display: flex; gap: var(--sp-sm); flex-wrap: wrap; margin-block: var(--sp-lg); }
.jump-chips a {
  padding: var(--sp-sm) var(--sp-md);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-weight: 600; font-size: 0.9375rem; text-decoration: none; color: var(--navy);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.jump-chips a:hover { border-color: var(--teal); background: var(--ice); }
@media (max-width: 767px) { .jump-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--sp-sm); } .jump-chips a { white-space: nowrap; } }

/* ---------- Service hub entries ---------- */
.service-entry { padding-block: var(--sp-lg); border-bottom: 1px solid var(--line); max-width: 760px; scroll-margin-top: calc(var(--header-h) + 16px); }
.service-entry:last-child { border-bottom: 0; }
.service-entry h3 { margin-bottom: var(--sp-sm); }
.service-entry p { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--sp-lg); counter-reset: step; padding: 0; margin: 0; list-style: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-lg); }
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: var(--sp-md);
  background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: 1.185rem;
  border-radius: var(--r-pill);
}
.steps h3 { margin-bottom: var(--sp-sm); }
.steps p { margin: 0; color: var(--ink-soft); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 760px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); margin-bottom: var(--sp-md); overflow: hidden; }
.faq-item__q {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-md);
  width: 100%; padding: var(--sp-md) var(--sp-lg);
  background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1.0625rem; color: var(--navy); text-align: left;
}
.faq-item__icon { flex: 0 0 auto; width: 20px; height: 20px; position: relative; }
.faq-item__icon::before, .faq-item__icon::after {
  content: ''; position: absolute; background: var(--teal-ink); border-radius: 2px;
  transition: transform var(--t-fast) var(--ease);
}
.faq-item__icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-item__icon::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq-item__q[aria-expanded="true"] .faq-item__icon::after { transform: scaleY(0); }
.faq-item__a { padding: 0 var(--sp-lg); overflow: hidden; }
/* Collapse only when JS is running — without JS every answer stays readable (interaction-guide §6). */
.js .faq-item__a { height: 0; visibility: hidden; transition: height var(--t-base) var(--ease), visibility 0s linear var(--t-base); }
.js .faq-item__q[aria-expanded="true"] + .faq-item__a { visibility: visible; transition: height var(--t-base) var(--ease), visibility 0s; }
.faq-item__a-inner { padding-bottom: var(--sp-lg); color: var(--ink-soft); }
.faq-item__a-inner p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-lg); box-shadow: var(--e1); }
.form-grid { display: grid; gap: var(--sp-md); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: var(--sp-xs); color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line-input); border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-ink); border-width: 2px; padding: 11.5px 13.5px; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--error); }
.field__error { display: none; color: var(--error); font-size: 0.9375rem; font-weight: 600; margin-top: var(--sp-xs); }
.field--error .field__error { display: flex; align-items: center; gap: var(--sp-xs); }
.field__hint { color: var(--ink-soft); font-size: 0.875rem; margin-top: var(--sp-xs); }
.field__hint-inline { color: var(--ink-soft); font-size: 0.875rem; font-weight: 400; }
.form-status.is-error, .form-status.is-demo, .form-status.is-success { margin-bottom: var(--sp-md); }
.form-consent { font-size: 0.875rem; color: var(--ink-soft); }
/* Always display:block (never display:none) so the role="status" live region
   stays in the accessibility tree from page load — populating a region that
   was display:none is frequently not announced by screen readers. */
.form-status { border-radius: var(--r-md); padding: 0; font-weight: 600; }
.form-status.is-error { background: #FBEDEA; color: var(--error); padding: var(--sp-md); }
.form-status.is-demo { background: var(--ice); color: var(--teal-ink); padding: var(--sp-md); }
.form-status.is-success { background: var(--white); color: var(--ink); font-weight: 400; padding: var(--sp-lg) 0 0; }
.form-status.is-success h3 { margin-bottom: var(--sp-sm); }
.form-success { text-align: left; }
.form-success__icon { width: 48px; height: 48px; border-radius: var(--r-pill); background: var(--success); color: var(--white); display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--sp-md); }

/* ---------- Patient forms page ---------- */
.form-panel--wide { max-width: 820px; }
.form-section { border: 0; padding: 0; margin: 0 0 var(--sp-xl); min-width: 0; }
.form-section legend {
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--navy);
  padding: 0; margin-bottom: var(--sp-md);
}
.choice-grid { display: grid; gap: var(--sp-sm); }
@media (min-width: 640px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
.choice {
  display: flex; align-items: flex-start; gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md);
  font-weight: 500; cursor: pointer;
}
.choice input[type="checkbox"] { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--teal-ink); flex: 0 0 auto; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--teal-ink); background: var(--ice); }
.choice--consent { background: var(--ice); border-color: var(--powder); font-weight: 600; }
.signature-input { font-family: var(--font-display); font-style: italic; font-size: 1.185rem; }

/* ---------- Placeholder notes (pre-client-content markers) ---------- */
.placeholder-note {
  display: inline-block;
  padding: var(--sp-sm) var(--sp-md);
  background: repeating-linear-gradient(-45deg, #FDF3DC, #FDF3DC 12px, #FBEDCB 12px, #FBEDCB 24px);
  border: 1.5px dashed var(--amber); border-radius: var(--r-md);
  font-size: 0.9375rem; font-weight: 600; color: #7A5A16;
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: var(--sp-xl); align-items: start; }
.contact-photo.contact-grid__photo { margin-bottom: 0; }
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
      "booking photo"
      "visit hours";
  }
  .contact-grid__booking { grid-area: booking; }
  .contact-grid__photo { grid-area: photo; }
  .contact-grid__visit { grid-area: visit; }
  .contact-grid__hours { grid-area: hours; }
}
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-lg); box-shadow: var(--e1); }
.contact-grid__visit + .contact-grid__hours { margin-top: 0; }
.contact-photo { display: block; margin-bottom: var(--sp-lg); }
.contact-photo img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--e2); }
.info-card h2, .info-card h3 { margin-bottom: var(--sp-md); }
.team-figure img { border-radius: var(--r-lg); box-shadow: var(--e2); }
.team-figure figcaption { font-size: 0.875rem; color: var(--ink-soft); margin-top: var(--sp-sm); }
.actions-start { justify-content: flex-start; }

/* ---------- Emergency strip ---------- */
.urgent-strip { background: var(--ice); border: 1px solid var(--powder); border-radius: var(--r-lg); padding: var(--sp-lg); display: flex; flex-wrap: wrap; gap: var(--sp-md); align-items: center; justify-content: space-between; }
.urgent-strip p { margin: 0; font-weight: 600; color: var(--navy); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.875rem; color: var(--ink-soft); margin-bottom: var(--sp-md); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--navy); }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
  .js [data-reveal].is-revealed { opacity: 1; transform: none; }
  .js [data-reveal-child] > * { opacity: 0; transform: translateY(12px); transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
  .js [data-reveal-child].is-revealed > * { opacity: 1; transform: none; }
  .js [data-reveal-child].is-revealed > *:nth-child(2) { transition-delay: 60ms; }
  .js [data-reveal-child].is-revealed > *:nth-child(n+3) { transition-delay: 120ms; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
