/* ============================================================
   NAISHZ DENTAL NOOK — Design System
   Brand anchors from PRD (hex) + derived shades in oklch()
   ============================================================ */

:root {
  /* Brand anchors (verbatim from PRD) */
  --blue: #4062BB;
  --mint: #88D49E;
  --lav: #9B6BB4;
  --white: #ffffff;
  --gray-bg: #F7F9FC;
  --ink: #1F2937;

  /* Derived tones (oklch) */
  --blue-hover: oklch(0.455 0.145 263);
  --blue-active: oklch(0.41 0.15 263);
  --blue-deep: oklch(0.34 0.11 263);
  --blue-soft: oklch(0.95 0.035 263);
  --blue-line: oklch(0.85 0.08 263);
  --mint-soft: oklch(0.96 0.045 152);
  --mint-deep: oklch(0.55 0.11 152);
  --lav-soft: oklch(0.955 0.03 308);
  --muted: oklch(0.475 0.025 258);
  --line: oklch(0.925 0.012 255);
  --line-strong: oklch(0.86 0.02 258);
  --surface-alt: #F7F9FC;
  --shadow-sm: 0 2px 8px oklch(0.34 0.05 260 / 0.06);
  --shadow-md: 0 12px 32px -12px oklch(0.34 0.06 260 / 0.16);
  --shadow-lg: 0 28px 64px -24px oklch(0.34 0.08 260 / 0.24);
  --ring: oklch(0.74 0.13 263);

  /* Typography */
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Type scale (fluid) */
  --fs-hero: clamp(2.35rem, 5vw, 3.85rem);
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.8rem, 3.2vw, 2.6rem);
  --fs-h3: clamp(1.25rem, 1.9vw, 1.55rem);
  --fs-h4: 1.13rem;
  --fs-body: clamp(1rem, 1.05vw, 1.09rem);
  --fs-sm: 0.95rem;
  --fs-xs: 0.83rem;
  --fs-eyebrow: 0.78rem;

  /* Spacing & shape */
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --radius-pill: 999px;
  --container: 1180px;
  --space-section: clamp(42px, 4.6vw, 64px);

  /* Spacing scale - every component pulls from these so the rhythm stays
     identical across pages and shrinks predictably on small screens. */
  --space-2xs: 0.4rem;
  --space-xs: 0.65rem;
  --space-sm: 0.95rem;
  --space-md: 1.4rem;
  --space-lg: 1.9rem;
  --space-xl: 2.4rem;
  --card-pad: clamp(1.3rem, 2.2vw, 1.7rem);
  --grid-gap: clamp(1rem, 1.7vw, 1.4rem);
  --stack-gap: var(--space-sm);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.28s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
.icon { display: inline-block; vertical-align: -0.12em; flex: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
/* Left-aligned rather than justified: justification on these narrow measures
   opened uneven word-spacing "rivers", worst of all on phones. */
main p { text-align: left; text-wrap: pretty; }
main :is(h1, h2, h3) { text-wrap: balance; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }

/* ---------- Page transition bridge ---------- */
html { transition: opacity 0.32s var(--ease); }
html.is-entering { opacity: 0; }
body { transition: opacity 0.22s var(--ease); }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-pill);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  flex: none;
}
.eyebrow--lav { color: var(--lav); background: var(--lav-soft); border-color: oklch(0.86 0.05 308); }
.eyebrow--mint { color: var(--mint-deep); background: var(--mint-soft); border-color: oklch(0.86 0.06 152); }
.section-head { max-width: 640px; margin-bottom: clamp(1.3rem, 2.2vw, 1.8rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 0.75rem; }
.section-head h2 { margin: 0 0 0.6rem; }
.section-head p { color: var(--muted); }
.section-head--center p { margin-inline: auto; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 32px); }
.section { padding-block: var(--space-section); position: relative; }
.section--tint { background: var(--surface-alt); }
.section--blue { background: var(--blue-deep); color: #fff; }
.grid { display: grid; gap: var(--grid-gap); }
.grid--sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.grid--md { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid--lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.75rem), 1fr)); }
.grid--loose { gap: calc(var(--grid-gap) * 1.15); }

/* Consistent vertical rhythm for a column of eyebrow + heading + prose + list + CTA.
   Replaces the per-page inline margins that used to drift between pages. */
.stack > * { margin-block: 0; }
.stack > * + * { margin-top: var(--stack-gap); }
.stack > .eyebrow + :is(h2, h3) { margin-top: var(--space-md); }
.stack > p + :is(ul, ol, .check-list, .pill-group) { margin-top: var(--space-md); }
.stack > :is(ul, ol, .check-list, .pill-group) + * { margin-top: var(--space-lg); }

/* Centred "see everything" link that closes a section */
.section-cta { text-align: center; margin-top: var(--space-xl); }
.split { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide { grid-template-columns: 1.1fr 0.9fr; }
  .split--rev > :first-child { order: 2; }
  .split--rev > :last-child { order: 1; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.8rem 1.55rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 24px -12px oklch(0.42 0.15 263 / 0.55);
}
.btn-primary:hover {
  background: var(--blue-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px oklch(0.42 0.16 263 / 0.6);
}
.btn-primary:active { background: var(--blue-active); }
.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue-line);
}
.btn-secondary:hover {
  background: var(--blue-soft);
  color: var(--blue-deep);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { color: var(--blue); background: var(--blue-soft); }
.btn-ghost--onblue { color: #fff; }
.btn-ghost--onblue:hover { background: oklch(0.5 0.08 260 / 0.3); color: #fff; }
.btn-whatsapp {
  background: var(--white);
  color: var(--ink);
  border-color: oklch(0.85 0.07 152);
}
.btn-whatsapp:hover {
  background: var(--mint-soft);
  border-color: oklch(0.6 0.12 152);
  transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2rem; font-size: 1.06rem; min-height: 56px; }
.btn-sm { min-height: 44px; padding: 0.62rem 1.15rem; font-size: 0.94rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.chip svg { color: var(--mint-deep); }
.chip--blue svg { color: var(--blue); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; }
.utility {
  background: var(--ink);
  color: oklch(0.93 0.01 255);
  font-size: 0.84rem;
}
.utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
}
.utility a { color: oklch(0.9 0.02 255); display: inline-flex; align-items: center; gap: 0.4rem; }
.utility a:hover { color: var(--mint); }
.utility__group { display: flex; align-items: center; gap: 1.4rem; }
.utility__group svg { flex: none; }
.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease);
}
.navbar--scrolled { box-shadow: 0 10px 30px -18px oklch(0.34 0.08 260 / 0.35); }
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--blue);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 22px -10px oklch(0.42 0.15 263 / 0.6);
  flex: none;
}
.brand__text { line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: 0.01em; color: var(--ink); }
.brand__sub { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.brand__logo { height: 52px; width: auto; display: block; border-radius: 10px; }
.footer__brand .brand__logo { height: 56px; }
.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--blue); background: var(--blue-soft); }
.nav__link[aria-current="page"] { color: var(--blue); font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.15rem;
  height: 3px;
  border-radius: 3px;
  background: var(--mint);
}
.nav__cta { margin-left: 0.75rem; }

/* Dropdown */
.nav__item { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  display: grid;
  gap: 0.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: 70;
}
.nav__item:hover .dropdown,
.nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--ink);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.dropdown a:hover { background: var(--blue-soft); color: var(--blue); }
.dropdown__caret { color: var(--muted); margin-left: auto; }

/* Mobile nav */
.nav-toggle { display: none; }
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.45);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 92vw);
  background: var(--white);
  padding: calc(1.4rem + env(safe-area-inset-top)) 1.4rem calc(1.4rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.34s var(--ease);
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.drawer__close { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-alt); }
.drawer__nav { display: grid; gap: 0.15rem; }
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--ink);
}
.drawer__link:hover { background: var(--blue-soft); color: var(--blue); }
.drawer__sub { display: grid; gap: 0.1rem; padding-left: 1.2rem; }
.drawer__sub a { padding: 0.55rem 0.6rem; border-radius: var(--radius-sm); color: var(--muted); font-size: 0.98rem; }
.drawer__sub a:hover { color: var(--blue); background: var(--blue-soft); }
.drawer__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.85rem 0.6rem;
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.drawer__toggle:hover { background: var(--blue-soft); color: var(--blue); }
.drawer__toggle svg { flex: none; transition: transform 0.3s var(--ease); }
.drawer__group.is-open .drawer__toggle svg { transform: rotate(180deg); }
.drawer__group:not(.is-open) .drawer__sub { display: none; }
.drawer__foot { margin-top: auto; padding-top: 1.4rem; display: grid; gap: 0.7rem; border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: oklch(0.86 0.01 255); }
.footer__top {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-block: clamp(48px, 6vw, 72px) clamp(32px, 4vw, 48px);
}
@media (min-width: 720px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand { display: grid; gap: 1.1rem; align-content: start; }
.footer__brand .brand__mark { background: var(--blue); }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: var(--mint); }
.footer__about { font-size: 0.95rem; color: oklch(0.78 0.01 255); max-width: 34ch; }
.footer__social { display: flex; gap: 0.6rem; }
.footer__social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: oklch(0.42 0.03 260);
  color: oklch(0.92 0.01 255);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer__social a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.footer__col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer__links { display: grid; gap: 0.55rem; }
.footer__links a { color: oklch(0.78 0.01 255); font-size: 0.95rem; }
.footer__links a:hover { color: var(--mint); }
.footer__contact { display: grid; gap: 0.8rem; font-size: 0.95rem; }
.footer__contact a { color: oklch(0.78 0.01 255); display: inline-flex; gap: 0.5rem; align-items: flex-start; }
.footer__contact a:hover { color: var(--mint); }
.footer__contact svg { flex: none; color: var(--mint); }
.footer__hours { display: grid; gap: 0.45rem; font-size: 0.95rem; color: oklch(0.78 0.01 255); }
.footer__hours span { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed oklch(0.5 0.02 260); padding-bottom: 0.45rem; }
.footer__hours strong { color: #fff; font-weight: 500; }
.footer__bottom {
  border-top: 1px solid oklch(0.45 0.02 260);
  padding-block: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: oklch(0.68 0.01 255);
}
.footer__legal { display: flex; gap: 1.2rem; }
.footer__legal a { color: oklch(0.68 0.01 255); }
.footer__legal a:hover { color: var(--mint); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--surface-alt); }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 12%, oklch(0.9 0.09 152 / 0.5), transparent 70%),
    radial-gradient(700px 500px at 0% 90%, oklch(0.92 0.06 263 / 0.55), transparent 70%),
    linear-gradient(180deg, var(--white) 0%, var(--gray-bg) 100%);
}
.hero__grid { position: absolute; inset: 0; background-image: radial-gradient(oklch(0.4 0.05 260 / 0.14) 1px, transparent 1.4px); background-size: 28px 28px; mask-image: radial-gradient(700px 500px at 75% 20%, #000 0%, transparent 72%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.1s var(--ease) 0.35s; }
.hero__canvas.is-ready { opacity: 1; }
.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2rem, 4vw, 3.2rem);
  align-items: center;
  padding-block: clamp(44px, 5.5vw, 76px);
}
@media (min-width: 940px) { .hero__inner { grid-template-columns: 1.05fr 0.95fr; } }
.hero__copy { max-width: 600px; }
.hero h1 { margin: 1.2rem 0 1.1rem; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero__lead { color: var(--muted); font-size: 1.09rem; max-width: 52ch; margin-bottom: 1.9rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero__media { position: relative; }
.hero__card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.9rem 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 3;
}
.hero__card--a { bottom: 26px; left: -18px; animation: floaty 6s ease-in-out infinite; }
.hero__card--b { top: 24px; right: -14px; animation: floaty 7s 1.2s ease-in-out infinite; }
.hero__card .stat-num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--blue); line-height: 1; }
.hero__card .stat-label { font-size: 0.82rem; color: var(--muted); line-height: 1.3; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero__tooth {
  position: absolute;
  top: -34px; right: 8%;
  width: 110px; height: 110px;
  color: var(--blue);
  opacity: 0.55;
  z-index: 1;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1) rotate(-4deg); opacity: 0.5; } 50% { transform: scale(1.06) rotate(2deg); opacity: 0.75; } }

/* Draw-in line flourish */
.drawline { width: 100%; height: 90px; color: var(--blue); }
.drawline path { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 2.6s var(--ease) 0.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Marquee trust strip ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--white); overflow: hidden; position: relative; }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 2.2rem; padding-inline: 1.1rem; }
.marquee__item { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--ink); font-size: 0.98rem; white-space: nowrap; }
.marquee__item svg { color: var(--mint-deep); flex: none; }
.marquee__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-line); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-line); }

.service-card { padding: var(--card-pad); display: grid; gap: var(--space-sm); position: relative; overflow: hidden; align-content: start; }
.service-card::after {
  content: "";
  position: absolute;
  right: -34px; top: -34px;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.93 0.05 263 / 0.8), transparent 70%);
  transition: transform 0.5s var(--ease);
}
.service-card:hover::after { transform: scale(1.5); }
.service-card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--blue-soft);
  color: var(--blue);
}
.service-card h3 { font-size: 1.14rem; }
.service-card p { color: var(--muted); font-size: 0.95rem; }
.service-card__link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.92rem; color: var(--blue); margin-top: 0.2rem; }
.service-card__link svg { transition: transform var(--dur) var(--ease); }
.service-card__link:hover svg { transform: translateX(4px); }

.treatment-row {
  display: grid;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease);
}
.treatment-row:hover { box-shadow: var(--shadow-md); }
@media (min-width: 860px) { .treatment-row { grid-template-columns: 0.9fr 1.1fr; } }
.treatment-row__body { padding: clamp(1.5rem, 3vw, 2.3rem); display: grid; gap: 0.9rem; align-content: center; }
.treatment-row__body h3 { font-size: var(--fs-h3); }
.treatment-row__body p { color: var(--muted); }
.treatment-row__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; }
.treatment-row__cta { margin-top: 0.6rem; }

.feature-card { padding: var(--card-pad); display: grid; gap: var(--space-sm); align-content: start; }
.feature-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--blue-line);
  line-height: 1;
  transition: color var(--dur) var(--ease);
}
.feature-card:hover .feature-card__num { color: var(--blue); }
.feature-card h3 { font-size: 1.12rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

.tech-card { padding: var(--card-pad); display: grid; gap: var(--space-sm); text-align: left; align-content: start; }
.tech-card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint-deep); }
.tech-card h3 { font-size: 1.05rem; }
.tech-card p { color: var(--muted); font-size: 0.92rem; }

.stat { text-align: center; padding: 1.6rem 1rem; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 3.6vw, 3rem); color: var(--blue); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: 0.94rem; margin-top: 0.45rem; }

/* There are only two doctors, so the auto-fit grid was stretching each card to
   ~547px and the 4:5 portrait to ~684px tall. Capping the card width keeps the
   portrait a portrait instead of cropping a face to fit a height ceiling. */
.doctor-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  max-width: 25rem;
  margin-inline: auto;
}
.doctor-card__media { aspect-ratio: 1/1.08; }
/* Bias the crop upward so a face never loses its forehead. */
.doctor-card__media::before { background-position: center 28%; }

/* Cap the track too, and centre the pair, so two cards don't sit marooned at
   opposite ends of a 1116px row. */
.grid--md:has(> .doctor-card) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 25rem));
  justify-content: center;
}
.doctor-card__body { padding: var(--card-pad); display: grid; gap: var(--space-2xs); text-align: left; align-content: start; }
.doctor-card__body h3 { font-size: 1.22rem; }
.doctor-card__role { color: var(--blue); font-weight: 600; font-size: 0.92rem; }
.doctor-card__body p { color: var(--muted); font-size: 0.94rem; }

.testimonial-card { padding: var(--card-pad); display: grid; gap: var(--space-sm); }
.testimonial-card__stars { color: oklch(0.75 0.13 70); display: inline-flex; gap: 0.15rem; }
.testimonial-card__text { font-size: 1.04rem; color: var(--ink); }
.testimonial-card__person { display: flex; align-items: center; gap: 0.9rem; }
.testimonial-card__avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-family: var(--font-display); }
.testimonial-card__name { font-weight: 600; font-size: 0.96rem; }
.testimonial-card__meta { color: var(--muted); font-size: 0.85rem; }

/* ---------- Media placeholders (modular photo slots) ---------- */
.media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(340px 260px at 78% 16%, oklch(0.94 0.05 152 / 0.9), transparent 70%),
    radial-gradient(400px 320px at 12% 88%, oklch(0.95 0.05 263 / 0.95), transparent 72%),
    linear-gradient(150deg, oklch(0.975 0.01 255), oklch(0.93 0.025 263));
  border: 1px solid var(--blue-line);
}
/* IMPORTANT - photo paths in the HTML are written as ../assets/images/...
   That leading ../ is deliberate. Do not "correct" it.

   Photos arrive through the --img custom property set in a style attribute,
   but the url() is consumed HERE, inside assets/styles.css. Browsers resolve a
   relative url() in a substituted custom property against the stylesheet doing
   the substitution, not against the HTML page. So from assets/styles.css the
   path needs ../ to climb back out of assets/ before descending into
   assets/images/. Writing assets/images/... instead yields
   assets/assets/images/... and every photo silently 404s while the placeholder
   stays hidden, leaving empty coloured boxes.

   <img src="..."> attributes are different - those resolve against the page,
   so the logo correctly uses assets/images/logo.jpg with no ../ */
.media::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--img, none);
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Photos load normally. A JS-gated deferred-loading scheme used to live here,
   but it made every photo depend on main.js running to completion - one script
   error and the whole site showed empty boxes. Not worth it: every image is
   already under 170 KB and gallery tiles use 640px thumbnails. */
.media::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(oklch(0.4 0.05 260 / 0.13) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(420px 300px at 60% 40%, #000 0%, transparent 78%);
  z-index: 0;
}
.media__ph {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 0.9rem;
  align-content: center;
  text-align: center;
  color: var(--blue);
}
.media__ph-icon {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.media__ph-title { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.media__ph-hint { font-size: 0.82rem; color: var(--muted); max-width: 30ch; }
.media[style*="--img: url"] .media__ph,
.media[style*="--img:url"] .media__ph { display: none; }
.media--16x9 { aspect-ratio: 16/9; }
.media--4x3 { aspect-ratio: 4/3; }
.media--3x2 { aspect-ratio: 3/2; }
.media--portrait { aspect-ratio: 4/5; }
/* Landscape by default. The tall portrait crop only makes sense once the hero
   becomes two columns at 940px - full width it was rendering ~900px tall. */
.media--hero { aspect-ratio: 4/3; }
@media (min-width: 940px) {
  .media--hero { aspect-ratio: 1/1.04; min-height: 420px; }
}

/* ---------- Height ceilings ----------
   aspect-ratio alone lets a photo grow with its column. On a wide desktop the
   grids stretch to fill 1116px, which was pushing single images past 600px tall
   and giving gallery tiles different heights depending on how many sat in a row.
   Capping the height keeps every photo in a predictable band; background-size:
   cover simply re-crops to the wider shape. */
.media--hero { max-height: 520px; }
.media--4x3, .media--3x2, .media--16x9 { max-height: 420px; }
.gallery .media { max-height: 260px; }
.lightbox__media { max-height: none; }

@media (max-width: 900px) {
  /* Single column below this, so the caps would crop too aggressively. */
  .media--4x3, .media--3x2, .media--16x9 { max-height: 360px; }
  .gallery .media { max-height: 230px; }
}
.media--round { border-radius: var(--radius-md); }
.media--tile { border-radius: var(--radius-md); }
.gallery .media::after { display: none; }

/* Fit the whole image inside the frame instead of cropping it.
   Used for radiographs, CBCT reports and other documents where the
   edges and any annotation carry meaning. */
.media--contain { background: oklch(0.965 0.004 255); }
.media--contain::before {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.media--contain::after { display: none; }

/* ---------- Split / specialty panels ---------- */
.special { position: relative; overflow: hidden; background: var(--blue-deep); color: #fff; }
.special--mint { background: oklch(0.3 0.06 180); }
.special--lav { background: oklch(0.32 0.09 308); }
.special__deco { position: absolute; inset: 0; background-image: radial-gradient(oklch(1 0 0 / 0.12) 1px, transparent 1.4px); background-size: 26px 26px; mask-image: radial-gradient(600px 400px at 88% 18%, #000, transparent 75%); }
.special .split { position: relative; z-index: 1; padding-block: var(--space-section); }
.special h2 { color: #fff; }
.special p { color: oklch(0.9 0.02 250); }
.special__list { display: grid; gap: 0.8rem; margin-top: 1.4rem; }
.special__list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.special__list svg { flex: none; color: var(--mint); margin-top: 0.2rem; }

/* ---------- Practice statement ---------- */
.statement { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.statement__deco {
  position: absolute; inset: 0;
  background-image: radial-gradient(oklch(1 0 0 / 0.1) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(620px 420px at 12% 20%, #000, transparent 76%);
}
.statement__inner {
  position: relative; z-index: 1;
  max-width: 60rem;
  margin-inline: auto;
  padding-block: var(--space-section);
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}
.statement__mark { color: var(--mint); opacity: 0.85; }
.statement__lines { display: grid; gap: 0.85rem; }
.statement__lines p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.01em;
  font-size: clamp(1.3rem, 2.7vw, 2rem);
  color: #fff;
  text-align: left;
  text-wrap: balance;
}
.statement__lines p em { font-style: normal; color: var(--mint); }
.statement__cite {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: var(--fs-sm);
  color: oklch(0.82 0.01 255);
}
.statement__cite::before {
  content: "";
  width: 34px; height: 2px;
  border-radius: 2px;
  background: var(--mint);
  flex: none;
}
/* This section sets its own justification - the global `main p` rule would stretch it. */
.statement p { text-align: left; }

/* ---------- Timeline (patient journey) ---------- */
.timeline { position: relative; display: grid; gap: var(--grid-gap); }
@media (min-width: 860px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline__step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--card-pad); box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.timeline__step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.timeline__dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: 0.7rem; }
.timeline__step:nth-child(2n) .timeline__dot { background: var(--mint); color: var(--blue-deep); }
.timeline__step h3 { font-size: 1.02rem; margin: 0 0 0.3rem; }
.timeline__step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: 0.9rem; }
.acc-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.acc-item.is-open { border-color: var(--blue-line); box-shadow: var(--shadow-md); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; text-align: left; font-weight: 600; font-size: 1.02rem; color: var(--ink); min-height: 56px; }
.acc-head:hover { color: var(--blue); }
.acc-icon { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); transition: transform 0.3s var(--ease), background-color var(--dur) var(--ease); }
.acc-item.is-open .acc-icon { transform: rotate(45deg); background: var(--blue); color: #fff; }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.34s var(--ease); }
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.acc-body__inner { overflow: hidden; }
.acc-body p { padding: 0 1.4rem 1.3rem; color: var(--muted); font-size: 0.97rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.gallery__item { border: 0; padding: 0; border-radius: var(--radius-md); overflow: hidden; position: relative; display: block; width: 100%; }
.gallery__item .media { border-radius: 0; border: 0; }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, oklch(0.3 0.04 260 / 0.55), transparent 55%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  z-index: 3;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__tag {
  position: absolute;
  left: 0.9rem; bottom: 0.9rem;
  z-index: 4;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gallery__item:hover .gallery__tag { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.9);
  z-index: 90;
  display: grid;
  place-items: center;
  padding: calc(1rem + env(safe-area-inset-top)) 1.4rem calc(1rem + env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
/* Show the whole image whatever its orientation - the gallery mixes wide
   intraoral photos with portrait radiographs and CBCT reports. */
.lightbox__media {
  width: min(980px, 92vw);
  aspect-ratio: auto;
  height: min(80vh, 760px);
  background: oklch(0.25 0.015 260);
  border-color: oklch(0.4 0.02 260);
}
.lightbox__media::before {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.lightbox__media::after { display: none; }
.lightbox__media .media__ph-title { color: oklch(0.92 0.01 255); }
.lightbox__close {
  position: absolute; top: calc(20px + env(safe-area-inset-top)); right: calc(20px + env(safe-area-inset-right));
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.26); }

/* ---------- Carousel (testimonials) ---------- */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  transition: transform 0.5s var(--ease);
}
.carousel__slide { flex: 0 0 100%; min-width: 0; padding-inline: 0.25rem; }
@media (min-width: 820px) {
  .carousel__slide--wide { flex-basis: 50%; }
}
.carousel__nav { display: flex; gap: 0.6rem; margin-top: 1.4rem; justify-content: center; }
.carousel__btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white);
  border: 1.5px solid var(--blue-line);
  color: var(--blue);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.carousel__btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.carousel__dots { display: flex; gap: 0.1rem; justify-content: center; margin-top: 0.6rem; }
.carousel__dot {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.carousel__dot::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease), border-radius var(--dur) var(--ease);
}
.carousel__dot.is-active::before { width: 26px; border-radius: 999px; background: var(--blue); }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--blue-deep), oklch(0.42 0.14 263)); color: #fff; padding: clamp(2.2rem, 5vw, 4rem); }
.cta-banner::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(oklch(1 0 0 / 0.1) 1px, transparent 1.4px); background-size: 24px 24px; mask-image: radial-gradient(520px 340px at 88% 20%, #000, transparent 78%); }
.cta-banner::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, oklch(0.85 0.12 152 / 0.35), transparent 70%); }
.cta-banner__inner { position: relative; z-index: 1; display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 860px) { .cta-banner__inner { grid-template-columns: 1.4fr auto; } }
.cta-banner h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-banner p { color: oklch(0.9 0.02 250); max-width: 54ch; }

/* ---------- Map & contact ---------- */
.map-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(150deg, oklch(0.93 0.04 263), oklch(0.9 0.05 263));
  border: 1px solid var(--blue-line);
  min-height: 420px;
  display: grid;
  place-items: center;
}
.map-panel__inner { position: relative; z-index: 2; text-align: center; padding: 2rem; display: grid; gap: 1rem; justify-items: center; }
.map-panel__pin { width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 16px 34px -12px oklch(0.42 0.15 263 / 0.6); animation: floaty 6s ease-in-out infinite; }
.map-panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px); background-size: 44px 44px; }
.map-panel--embed { display: block; padding: 0; place-items: stretch; }
.map-panel--embed::before { display: none; }
.map-panel__frame { position: relative; width: 100%; height: 100%; min-height: 420px; }
.map-panel__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* Contact info cards */
.info-card { padding: var(--card-pad); display: flex; flex-direction: column; gap: var(--space-xs); height: 100%; }
.info-card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.info-card h3 { font-size: 1.05rem; margin: 0; }
.info-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.info-card a { font-weight: 600; color: var(--blue); margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 0.9rem; }
.form-row { display: grid; gap: 0.9rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.field .req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234062BB' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-status { display: none; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 500; }
.form-status.is-visible { display: block; animation: statusIn 0.26s var(--ease); }
@keyframes statusIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.form-status--ok { background: var(--mint-soft); color: var(--mint-deep); border: 1px solid oklch(0.82 0.07 152); }
.form-status--err { background: oklch(0.96 0.02 25); color: oklch(0.5 0.14 25); border: 1px solid oklch(0.86 0.08 25); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--surface-alt); padding-block: clamp(38px, 5vw, 64px) clamp(30px, 4vw, 48px); }
.page-hero__bg { position: absolute; inset: 0; background: radial-gradient(520px 340px at 88% 8%, oklch(0.9 0.09 152 / 0.5), transparent 70%), radial-gradient(620px 420px at 0% 92%, oklch(0.93 0.05 263 / 0.6), transparent 72%); }
.page-hero__inner { position: relative; z-index: 1; max-width: 780px; }
.page-hero h1 { margin: 0.7rem 0 0.6rem; }
.page-hero p { color: var(--muted); font-size: 1.08rem; margin: 0; max-width: 62ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.86rem; color: var(--muted); margin-bottom: 0.4rem; }
.breadcrumbs a { color: var(--muted); font-weight: 500; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .sep { opacity: 0.6; }

/* ---------- Legal / long-form prose ---------- */
.legal { max-width: 74ch; }
.legal h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xs);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal p { color: var(--muted); }
.legal p + p { margin-top: var(--space-sm); }
.legal ul { display: grid; gap: var(--space-xs); margin-top: var(--space-sm); padding-left: 1.1rem; list-style: disc; color: var(--muted); }
.legal a { font-weight: 500; }
.legal__updated { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--space-lg); }

/* ---------- Lists / misc ---------- */
.check-list { display: grid; gap: 0.75rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--ink); }
.check-list svg { flex: none; color: var(--mint-deep); margin-top: 0.22rem; }
.check-list--onblue li { color: oklch(0.92 0.01 255); }
.check-list--onblue svg { color: var(--mint); }
.pill-group { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pill { padding: 0.5rem 1rem; border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.pill--blue { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue); }
.pill--mint { background: var(--mint-soft); border-color: oklch(0.85 0.06 152); color: var(--mint-deep); }
.pill--lav { background: var(--lav-soft); border-color: oklch(0.86 0.05 308); color: var(--lav); }
.pill--onblue { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.25); color: #fff; }

.back-top {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom));
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur), background-color var(--dur) var(--ease);
  z-index: 50;
}
.back-top svg { transform: rotate(180deg); }
.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--blue-hover); }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.reveal-scale.is-in { opacity: 1; transform: none; }

/* Hero entrance */
.entrance { opacity: 0; transform: translateY(30px); animation: rise 0.9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.entrance-media { opacity: 0; transform: translateY(24px) scale(0.98); animation: riseMedia 1.1s var(--ease) 0.25s forwards; }
@keyframes riseMedia { to { opacity: 1; transform: none; } }
.parallax-live { animation: none; opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-scale, .entrance, .entrance-media { opacity: 1 !important; transform: none !important; }
  .drawline path { stroke-dashoffset: 0; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__group { padding-block: 0.6rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  /* One step down the spacing scale across the board, so phones stay tight
     without any single component looking out of proportion. */
  :root {
    --space-md: 1.15rem;
    --space-lg: 1.5rem;
    --space-xl: 1.9rem;
  }
  .hero__card--a { left: 6px; bottom: 14px; }
  .hero__card--b { right: 6px; top: 12px; }
  .hero__tooth { width: 76px; height: 76px; top: -20px; }
  .media--hero { min-height: 0; }
  .btn { min-height: 48px; }
  .footer__bottom { justify-content: center; text-align: center; }
  .footer__hours span { border-bottom: 0; padding-bottom: 0; }
  .utility__hours { display: none; }
  .breadcrumbs a { padding: 0.5rem 0.25rem; }
  .breadcrumbs { row-gap: 0.2rem; }
  /* The floating hero stat cards crowd the photo on narrow screens */
  .hero__card .stat-num { font-size: 1.15rem; }
  .hero__card { padding: 0.7rem 0.85rem; gap: 0.6rem; }
  .treatment-row__body { gap: var(--space-xs); }
}
@media (max-width: 400px) {
  .hero__ctas .btn { width: 100%; }
  .hero__card--b { display: none; }
}

/* Form validation & status messages */
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.text-danger { color: #dc2626; font-weight: 500; }
.text-info { color: #2563eb; font-weight: 500; }
.text-success { color: #16a34a; font-weight: 500; }
