/* ============================================================
   ANTHEM DENTAL — Design System
   Luxury healthcare aesthetic. Official brand: #0076C3 / #F9C232
   Motion language: calm, physical, intentional. Transform/opacity
   only — every animation is GPU-composited and reduced-motion aware.
   ============================================================ */

:root {
  /* Brand */
  --blue: #0076C3;
  --blue-deep: #005A96;      /* AA-compliant on white for text/buttons */
  --blue-ink: #0B2438;       /* near-black navy for body ink */
  --gold: #F9C232;
  --gold-deep: #B8860B;

  /* Neutrals */
  --paper: #FBFAF7;          /* warm gallery white */
  --paper-2: #F3F1EB;
  --white: #FFFFFF;
  --ink: #14232F;
  --ink-soft: #46586A;
  --line: #E4E1D8;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --radius: 18px;
  --radius-sm: 10px;

  /* Elevation scale — one shadow language everywhere */
  --shadow-1: 0 1px 2px rgba(11, 36, 56, .04), 0 8px 24px rgba(11, 36, 56, .05);
  --shadow-soft: 0 2px 6px rgba(11, 36, 56, .04), 0 18px 46px rgba(11, 36, 56, .07);
  --shadow-lift: 0 4px 10px rgba(11, 36, 56, .06), 0 30px 70px rgba(11, 36, 56, .12);
  --shadow-float: 0 8px 18px rgba(11, 36, 56, .08), 0 42px 90px rgba(11, 36, 56, .16);

  /* Motion tokens — shared rhythm across the whole site */
  --ease: cubic-bezier(.22, 1, .36, 1);          /* signature ease-out */
  --spring: cubic-bezier(.34, 1.45, .5, 1);      /* gentle overshoot for micro-interactions */
  --ease-in: cubic-bezier(.5, 0, .75, .4);       /* exits */
  --dur-1: .18s;   /* micro */
  --dur-2: .32s;   /* standard */
  --dur-3: .55s;   /* expressive */
  --wrap: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--dur-1), text-decoration-color var(--dur-1); }
a:hover { color: var(--blue); }
button { font: inherit; cursor: pointer; }
a, button, summary, select, input[type="submit"] { touch-action: manipulation; }
ul[role="list"] { list-style: none; padding: 0; }
::selection { background: rgba(0, 118, 195, .16); color: var(--blue-ink); }

/* Cross-document page transitions (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .18s; animation-timing-function: var(--ease-in); }
::view-transition-new(root) { animation-duration: .3s; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Focus */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; transition: outline-offset var(--dur-1) var(--ease); }

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--blue-ink); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 560; line-height: 1.08; color: var(--blue-ink); letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.7rem); letter-spacing: -.022em; }
h2 { font-size: clamp(1.95rem, 3.8vw, 2.95rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.2; }
h4 { font-size: 1.1rem; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.65; color: var(--ink-soft); max-width: 62ch; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 650; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-deep);
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--gold); }

/* Animated underline for inline text links inside prose CTAs */
.u-link, .card .card-more {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-size: 0% 1.5px; background-position: 0 100%;
  transition: background-size var(--dur-2) var(--ease), color var(--dur-1);
}
.card:hover .card-more, .u-link:hover { background-size: 100% 1.5px; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--dark { background: var(--blue-ink); color: #DCE6EF; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lede { color: #A9BCCC; }
.section--dark .eyebrow { color: var(--gold); }
.section--tint { background: var(--paper-2); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1.1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.9rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-2) var(--spring), box-shadow var(--dur-2) var(--ease), background var(--dur-1), color var(--dur-1), border-color var(--dur-1);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 480px) { .btn { white-space: normal; } }
.btn:hover { transform: translateY(-2px) scale(1.015); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn--primary { background: var(--blue-deep); color: #fff; box-shadow: 0 10px 26px rgba(0, 90, 150, .28); }
.btn--primary:hover { background: var(--blue); color: #fff; box-shadow: 0 16px 34px rgba(0, 118, 195, .32); }
.btn--gold { background: var(--gold); color: var(--blue-ink); box-shadow: 0 10px 26px rgba(249, 194, 50, .3); }
.btn--gold:hover { background: #FFD04C; color: var(--blue-ink); }
.btn--ghost { border-color: rgba(11, 36, 58, .32); color: var(--blue-ink); background: transparent; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-deep); background: rgba(0, 118, 195, .05); }
.section--dark .btn--ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.section--dark .btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(249,194,50,.06); }
.btn--sm { padding: .6rem 1.2rem; font-size: .88rem; }
.btn svg { flex: none; }

/* Sheen sweep on primary/gold hover */
.btn--primary::before, .btn--gold::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.22) 50%, transparent 62%);
  transform: translateX(-110%);
  transition: transform .7s var(--ease);
}
.btn--primary:hover::before, .btn--gold:hover::before { transform: translateX(110%); }

/* Ripple (spawned from JS on pointerdown) */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: .18;
  transform: scale(0);
  animation: ripple .55s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* Loading state — spinner replaces trailing space, button locks */
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::after {
  content: ""; width: 1em; height: 1em; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: transform .4s var(--ease), background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
/* Glass appears only once you scroll */
.site-header.is-scrolled {
  background: rgba(251, 250, 247, .78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: rgba(228, 225, 216, .7);
  box-shadow: 0 8px 30px rgba(11,36,56,.07);
}
/* Elegant hide on scroll down, return on scroll up */
.site-header.nav-hide { transform: translateY(-100%); }
.site-header.nav-hide:focus-within { transform: none; }
.nav { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.nav-logo { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.nav-logo img { width: 44px; height: 44px; transition: transform var(--dur-2) var(--spring); }
.nav-logo:hover img { transform: rotate(-6deg) scale(1.06); }
.nav-logo b {
  font-family: var(--font-display); font-size: 1.28rem; font-weight: 600;
  color: var(--blue-ink); letter-spacing: .01em; line-height: 1; white-space: nowrap;
}
.nav-menu { display: flex; align-items: center; gap: .25rem; margin-left: auto; list-style: none; padding: 0; }
.nav-menu > li { position: relative; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 550; font-size: .95rem; white-space: nowrap;
  background: none; border: 0; transition: background var(--dur-1), color var(--dur-1);
  -webkit-tap-highlight-color: transparent;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--blue-deep); }
.nav-link[aria-current="page"] { color: var(--blue-deep); }
.nav-link .chev { transition: transform var(--dur-2) var(--spring); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-cta { margin-left: .5rem; }

/* Animated underline (desktop nav) */
@media (min-width: 1181px) {
  a.nav-link::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem;
    height: 2px; border-radius: 2px; background: var(--blue-deep);
    transform: scaleX(0); transform-origin: left center;
    transition: transform var(--dur-2) var(--ease);
  }
  a.nav-link:hover::after, a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
  button.nav-link:hover, button.nav-link[aria-expanded="true"] { background: rgba(0, 118, 195, .07); }
}

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(10px) scale(.97);
  transform-origin: top center;
  min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-float); padding: .6rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--spring), visibility var(--dur-2);
  z-index: 90;
}
.dropdown.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0) scale(1); }
.dropdown a {
  display: block; padding: .7rem .9rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink); font-size: .95rem; line-height: 1.35;
  transition: background var(--dur-1), color var(--dur-1), transform var(--dur-1) var(--ease);
}
.dropdown a:hover, .dropdown a:focus-visible { background: rgba(0,118,195,.06); color: var(--blue-deep); transform: translateX(3px); }
.dropdown a b { display: block; font-weight: 640; color: var(--blue-ink); }
.dropdown a small { color: var(--ink-soft); font-size: .8rem; }
.dropdown a.is-active b { color: var(--blue-deep); }
.dropdown a.is-active { background: rgba(249,194,50,.12); }
.dropdown .dd-note { padding: .55rem .9rem .35rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 650; }

/* Mobile nav */
.nav-burger { display: none; margin-left: auto; background: none; border: 0; padding: .75rem; margin-right: -.75rem; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--blue-ink); margin: 5px 0; border-radius: 2px; transition: transform .35s var(--spring), opacity .2s; }
@media (max-width: 1180px) {
  .nav-burger { display: block; }
  .nav-menu {
    position: fixed; inset: 78px 0 auto 0; max-height: calc(100dvh - 78px); overflow: auto;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: rgba(251, 250, 247, .92);
    -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem; margin: 0;
    transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
    box-shadow: 0 40px 60px rgba(11,36,56,.14);
  }
  body.nav-open .nav-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  /* Staggered entrance for menu items */
  .nav-menu > li { opacity: 0; transform: translateY(-8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  body.nav-open .nav-menu > li { opacity: 1; transform: none; }
  body.nav-open .nav-menu > li:nth-child(2) { transition-delay: .035s; }
  body.nav-open .nav-menu > li:nth-child(3) { transition-delay: .07s; }
  body.nav-open .nav-menu > li:nth-child(4) { transition-delay: .105s; }
  body.nav-open .nav-menu > li:nth-child(5) { transition-delay: .14s; }
  body.nav-open .nav-menu > li:nth-child(6) { transition-delay: .175s; }
  body.nav-open .nav-menu > li:nth-child(7) { transition-delay: .21s; }
  body.nav-open .nav-menu > li:nth-child(8) { transition-delay: .245s; }
  body.nav-open .nav-menu > li:nth-child(9) { transition-delay: .28s; }
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
  .nav-link { width: 100%; justify-content: space-between; padding: .9rem 1rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav-link:hover { background: rgba(0, 118, 195, .06); }
  .dropdown { position: static; transform: none; min-width: 0; box-shadow: none; border: 0; background: rgba(0,118,195,.04); display: none; padding: .35rem; }
  .dropdown.is-open { display: block; transform: none; }
  .nav-cta { margin: .75rem 0 0; width: 100%; }
  /* Header always solid when menu is open */
  body.nav-open .site-header { background: var(--paper); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; background: linear-gradient(178deg, #EAF4FB 0%, var(--paper) 72%); }
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { display: grid; gap: 3rem; padding-block: clamp(4rem, 9vw, 8rem) clamp(4rem, 8vw, 7rem); align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.1fr .9fr; } }
.hero-copy { display: grid; gap: 1.6rem; justify-items: start; }
.hero-copy h1 em { font-style: italic; color: var(--blue-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .4rem; }
.hero-art { position: relative; min-height: 320px; padding-bottom: 1.4rem; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; z-index: 1;
}
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 2rem; margin-top: 1.2rem; }

/* ---------- hero image carousel (homepage visual side) ----------
   Three fixed, decorative lifestyle photos rotating behind the stat badge.
   Mirrors the review spotlight carousel's interaction pattern (absolute-
   stacked slides cross-fading via opacity, dot tablist, prev/next), but
   with a fixed 3-image set driven directly by src/js/main.js — no data
   binding required. */
.hero-carousel {
  position: relative; border-radius: calc(var(--radius) + 8px); overflow: clip;
  box-shadow: var(--shadow-lift); border: 1px solid var(--line); background: var(--blue-ink);
  aspect-ratio: 4 / 3;
}
.hero-carousel-viewport { position: absolute; inset: 0; }
.hero-carousel-track { position: relative; width: 100%; height: 100%; }
.hero-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease);
}
.hero-carousel-slide.is-active { opacity: 1; }
.hero-carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; border: none; background: rgba(255,255,255,.85); color: var(--blue-ink);
  cursor: pointer; backdrop-filter: blur(4px); transition: background var(--dur-1), transform var(--dur-1);
}
.hero-carousel-nav:hover, .hero-carousel-nav:focus-visible { background: #fff; }
.hero-carousel-nav.prev { left: .9rem; }
.hero-carousel-nav.prev svg { transform: rotate(180deg); }
.hero-carousel-nav.next { right: .9rem; }
.hero-carousel-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; gap: .45rem;
}
.hero-carousel-dots button {
  width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,.55); cursor: pointer; transition: background var(--dur-1), transform var(--dur-1);
}
.hero-carousel-dots button.is-active { background: #fff; transform: scale(1.3); }
.hero-stat-badge {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: -1.4rem; z-index: 4;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift); padding: 1rem 1.2rem;
  display: flex; justify-content: space-around; gap: 1rem; text-align: center;
}
.hero-stat-badge b { font-family: var(--font-display); font-size: 1.35rem; color: var(--blue-ink); display: block; line-height: 1.15; }
.hero-stat-badge small { color: var(--ink-soft); font-size: .74rem; }
@media (max-width: 640px) {
  .hero-carousel-nav { width: 34px; height: 34px; }
  .hero-stat-badge { padding: .8rem; gap: .5rem; }
  .hero-stat-badge b { font-size: 1.1rem; }
}
.trust-pill { display: inline-flex; align-items: center; gap: .55rem; font-size: .92rem; color: var(--ink-soft); font-weight: 550; }
.trust-pill b { color: var(--blue-ink); }

/* Choreographed entrance — hero copy rises line by line on load */
.hero-copy > *, .page-hero .hero-copy > * {
  animation: rise .85s var(--ease) backwards;
}
.hero-copy > *:nth-child(2), .page-hero .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3), .page-hero .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4), .page-hero .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5), .page-hero .hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-art { animation: heroArt 1.1s var(--ease) .15s backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes heroArt { from { opacity: 0; transform: translateY(30px) scale(.97); } }

/* Stars */
.stars { display: inline-flex; gap: 2px; color: var(--gold-deep); }
.stars svg { width: 17px; height: 17px; fill: var(--gold); stroke: var(--gold-deep); stroke-width: .5; }

/* Star pop-in when a reveal container enters */
.reveal.is-in .stars svg, .reveal-stagger.is-in .stars svg, .hero .stars svg {
  animation: starPop .5s var(--spring) backwards;
}
.stars svg:nth-child(2) { animation-delay: .06s; }
.stars svg:nth-child(3) { animation-delay: .12s; }
.stars svg:nth-child(4) { animation-delay: .18s; }
.stars svg:nth-child(5) { animation-delay: .24s; }
@keyframes starPop { from { opacity: 0; transform: scale(.4); } }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-soft);
  transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease), border-color var(--dur-2);
  will-change: transform;
}
a.card { text-decoration: none; color: inherit; display: block; -webkit-tap-highlight-color: transparent; }
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift); border-color: #cfe2f0;
}
a.card:active { transform: translateY(-2px) scale(.995); transition-duration: .1s; }
.card h3 { margin-bottom: .5rem; transition: color var(--dur-1); }
a.card:hover h3 { color: var(--blue-deep); }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card .card-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; font-weight: 620; font-size: .92rem; color: var(--blue-deep); }
.card .card-more svg { transition: transform var(--dur-2) var(--spring); }
.card:hover .card-more svg { transform: translateX(4px); }
.card:hover .card-more { color: var(--blue); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,118,195,.1), rgba(249,194,50,.14));
  color: var(--blue-deep); margin-bottom: 1.2rem;
  transition: transform var(--dur-2) var(--spring), background var(--dur-2);
}
.card:hover .card-icon { transform: scale(1.1) rotate(-4deg); }
.card-icon svg { width: 26px; height: 26px; }

/* ---------- GBP status card ---------- */
.gbp-card { display: grid; gap: 1rem; }
.gbp-rating { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.gbp-rating .num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--blue-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.gbp-rating .meta { font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }
.gbp-rating .meta a { color: inherit; }
.open-badge {
  display: inline-flex; align-items: center; gap: .45rem; padding: .34rem .85rem;
  border-radius: 999px; font-size: .82rem; font-weight: 650; letter-spacing: .02em;
  transition: background var(--dur-2), color var(--dur-2);
}
.open-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-badge.is-open { background: rgba(22, 130, 70, .1); color: #14683A; }
.open-badge.is-open::before { animation: pulse 2.4s var(--ease) infinite; }
.open-badge.is-closed { background: rgba(160, 55, 45, .09); color: #8C3227; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.gbp-live-note { font-size: .78rem; color: var(--ink-soft); }
.gbp-live-note.is-live { color: #14683A; font-weight: 600; }

/* Hours table */
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-weight: 500; transition: color var(--dur-1); }
.hours th { color: var(--ink-soft); font-weight: 550; padding-right: 1.5rem; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--blue-deep); font-weight: 700; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Location layout ---------- */
.loc-split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .loc-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } .loc-split .loc-map { position: sticky; top: 110px; } }
.loc-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); border: 1px solid var(--line); background: var(--paper-2); position: relative; }
/* Shimmer skeleton while the map loads */
.loc-map::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%) var(--paper-2);
  background-size: 220% 100%;
  animation: shimmer 1.6s linear infinite;
}
.loc-map iframe { width: 100%; height: 480px; border: 0; position: relative; opacity: 0; transition: opacity .6s var(--ease); }
.loc-map iframe.is-loaded { opacity: 1; }
.loc-map.map-ready::before { animation: none; }
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -90% 0; } }
.map-actions { display: flex; flex-wrap: wrap; gap: .8rem; padding: 1rem; background: #fff; border-top: 1px solid var(--line); position: relative; }
@media (max-width: 959px) { .loc-map iframe { height: 340px; } }

.loc-facts { display: grid; gap: .1rem; font-size: 1rem; }
.loc-facts .fact { display: flex; gap: .9rem; padding: .85rem 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.loc-facts .fact:last-child { border-bottom: 0; }
.loc-facts .fact b { flex: none; width: 6.2rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 650; }
.loc-facts .fact a { font-weight: 600; }

/* ---------- Reviews: compact testimonials card ---------- */
.testimonials-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-2); overflow: hidden;
}
.testimonials-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem;
  padding: 1.3rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line);
}
.testimonials-stat { display: flex; flex-direction: column; gap: .2rem; }
.testimonials-stat-label { font-size: .78rem; letter-spacing: .06em; color: var(--ink-soft); }
.testimonials-stat-value { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-size: 1.6rem; color: var(--blue-ink); }
.testimonials-stat-value .stars svg { width: 15px; height: 15px; }
.testimonials-head .btn { margin-left: auto; }
.testimonials-list { max-height: 420px; overflow-y: auto; }
.testimonial-item { padding: 1.1rem 1.5rem; border-bottom: 1px dashed var(--line); }
.testimonial-item:last-child { border-bottom: 0; }
.testimonial-item .who { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.testimonial-item .who b { color: var(--blue-ink); }
.testimonial-item p { color: var(--ink-soft); font-size: .92rem; margin-bottom: .5rem; }
.testimonial-meta { display: flex; align-items: center; gap: .7rem; }
.testimonial-meta .stars svg { width: 15px; height: 15px; }
.testimonial-meta small { color: var(--ink-soft); font-size: .8rem; }
@media (max-width: 640px) {
  .testimonials-head { gap: 1rem; }
  .testimonials-head .btn { margin-left: 0; width: 100%; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .9rem; max-width: 50rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: clip; transition: box-shadow var(--dur-2) var(--ease), border-color var(--dur-2); }
.faq details[open] { box-shadow: var(--shadow-soft); border-color: #d5e4ef; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.4rem; cursor: pointer; font-weight: 620; color: var(--blue-ink);
  list-style: none; font-size: 1.02rem;
  transition: background var(--dur-1), color var(--dur-1);
  -webkit-tap-highlight-color: transparent;
}
.faq summary:hover { background: rgba(0,118,195,.035); color: var(--blue-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-display); font-size: 1.5rem; line-height: 1;
  color: var(--blue-deep); transition: transform var(--dur-2) var(--spring); flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); font-size: .97rem; max-width: 65ch; }

/* ---------- Forms / Booking ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: clamp(1.6rem, 3.5vw, 2.6rem); }
.field { display: grid; gap: .45rem; margin-bottom: 1.15rem; }
.field label { font-weight: 620; font-size: .92rem; color: var(--blue-ink); transition: color var(--dur-1); }
.field:focus-within label { color: var(--blue-deep); }
.field .hint { font-size: .8rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; padding: .85rem 1.05rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  transition: border-color var(--dur-1), box-shadow var(--dur-2) var(--ease), background var(--dur-1); width: 100%;
  min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 118, 195, .13), var(--shadow-1);
}
.field select { cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2346586A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.05rem center; padding-right: 2.6rem;
}

/* Floating labels — label rides the input, floats on focus/entry */
.field--float { position: relative; display: block; }
.field--float input, .field--float textarea { padding: 1.5rem 1.05rem .55rem; }
.field--float > label {
  position: absolute; left: 1.06rem; top: .92rem;
  font-weight: 550; font-size: 1rem; color: var(--ink-soft);
  pointer-events: none; transform-origin: left top;
  transition: transform var(--dur-2) var(--ease), color var(--dur-1);
  max-width: calc(100% - 2rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.field--float input:focus ~ label,
.field--float input:not(:placeholder-shown) ~ label,
.field--float textarea:focus ~ label,
.field--float textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-.62rem) scale(.72); color: var(--blue-deep); font-weight: 650;
}
.field--float .form-error { margin-top: .45rem; }

.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* Validation — errors slide in, invalid fields shake once */
.form-error {
  color: #8C3227; font-size: .85rem; font-weight: 600; display: none;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B4453A; }
.field.has-error .form-error { display: block; animation: errIn .3s var(--ease) backwards; }
.field.shake input, .field.shake select, .field.shake textarea { animation: shake .38s var(--ease); }
@keyframes errIn { from { opacity: 0; transform: translateY(-4px); } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); } 40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); } 80% { transform: translateX(3px); }
}

.form-success { display: none; text-align: center; padding: 2.5rem 1rem; }
.form-success.is-shown { display: block; animation: rise .6s var(--ease); }
.form-success .tick {
  width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%;
  background: rgba(22,130,70,.1); color: #14683A; display: grid; place-items: center;
}
/* Animated checkmark draw (thank-you page + success panels) */
.tick svg path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: draw .55s var(--ease) .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Numbered process ---------- */
.process { counter-reset: step; display: grid; gap: 1.2rem; }
@media (min-width: 880px) { .process { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.process li { list-style: none; counter-increment: step; position: relative; padding: 1.6rem 1.4rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease), border-color var(--dur-2); }
.process li:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: #d9e6f0; }
.process li::before {
  content: "0" counter(step);
  font-family: var(--font-display); font-size: .95rem; font-weight: 620;
  color: var(--gold-deep); letter-spacing: .1em; display: block; margin-bottom: .65rem;
}
.process li p { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Doctor feature ---------- */
.doctor-feature { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 940px) { .doctor-feature { grid-template-columns: 1fr 1fr; } }
.doctor-quote { border-left: 3px solid var(--gold); padding-left: 1.4rem; font-family: var(--font-display); font-size: 1.3rem; font-style: italic; color: var(--blue-ink); line-height: 1.5; }
.cred-list { display: grid; gap: .55rem; padding: 0; list-style: none; font-size: .96rem; }
.cred-list li { display: flex; gap: .7rem; align-items: baseline; color: var(--ink-soft); }
.cred-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); transform: translateY(-2px); }

/* ---------- Marquee-ish insurance strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; }
.logo-strip span {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .55rem 1.25rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
  transition: border-color var(--dur-1), color var(--dur-1), transform var(--dur-2) var(--spring);
}
.logo-strip span:hover { border-color: var(--blue); color: var(--blue-deep); transform: translateY(-2px); }
.logo-strip span img { display: block; height: 24px; width: auto; max-width: 128px; object-fit: contain; }

/* Auto-scrolling insurance/financing carousel */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee .logo-strip { flex-wrap: nowrap; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .logo-strip, .marquee:focus-within .logo-strip { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .marquee .logo-strip { animation: none; flex-wrap: wrap; width: auto; }
  .marquee .logo-strip [aria-hidden="true"] { display: none; }
}

/* ---------- Location switcher bar (on location pages) ---------- */
.loc-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.loc-tab {
  padding: .6rem 1.4rem; border-radius: 999px; text-decoration: none; font-weight: 620; font-size: .93rem;
  border: 1.5px solid var(--line); color: var(--ink-soft); background: #fff;
  transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1), transform var(--dur-2) var(--spring);
}
.loc-tab:hover { border-color: var(--blue); color: var(--blue-deep); transform: translateY(-2px); }
.loc-tab:active { transform: scale(.96); }
.loc-tab[aria-current="page"] { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #0B2438 0%, #0E3B5C 55%, #0A5C93 100%);
  border-radius: calc(var(--radius) + 6px); color: #fff; overflow: clip; position: relative;
  padding: clamp(2.8rem, 6vw, 4.5rem); display: grid; gap: 1.6rem; justify-items: start;
}
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: #B9CCDD; max-width: 55ch; }
.cta-band .btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.cta-band .btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(249,194,50,.08); }
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(249,194,50,.28), transparent 65%);
  pointer-events: none;
}

/* ---------- Online-exclusive offer block ---------- */
.offer-block {
  background: linear-gradient(155deg, #0B2438 0%, #0E3B5C 60%, #0A5C93 100%);
  border-radius: calc(var(--radius) + 6px); color: #fff; overflow: clip; position: relative;
  padding: clamp(2.2rem, 5vw, 3.4rem); display: grid; gap: 1.6rem;
  box-shadow: var(--shadow-lift);
}
.offer-block::after {
  content: ""; position: absolute; left: -110px; bottom: -130px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(249,194,50,.24), transparent 65%);
  pointer-events: none;
}
.offer-block .eyebrow { color: var(--gold); }
.offer-block .eyebrow::before { background: var(--gold); }
.offer-block-inner { display: grid; gap: 1.8rem; position: relative; z-index: 1; }
@media (min-width: 780px) { .offer-block-inner { grid-template-columns: auto 1fr; align-items: center; gap: clamp(2rem, 4vw, 3.5rem); } }
.offer-prices { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; }
.offer-prices .was {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 560;
  color: #9FB4C6; text-decoration: line-through; text-decoration-color: rgba(249,194,50,.85); text-decoration-thickness: 2px;
}
.offer-prices .now {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600;
  color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums;
}
.offer-block h2 { color: #fff; margin: .2rem 0 0; max-width: 22ch; }
.offer-block p { color: #B9CCDD; max-width: 52ch; }
.offer-fineprint { font-size: .82rem; color: #8FA5B8; max-width: 48ch; margin-top: -.4rem; }
.offer-block .btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.offer-block .btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(249,194,50,.08); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Veneer package pricing ladder ---------- */
.pill {
  display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 620;
  font-size: .78rem; letter-spacing: .01em; padding: .28rem .7rem; border-radius: 999px; line-height: 1.3; white-space: nowrap;
}
.pill--gold { background: var(--gold); color: var(--blue-ink); }
.pill--savings { background: rgba(0, 90, 150, .08); color: var(--blue-deep); border: 1px solid rgba(0, 90, 150, .18); }

.ladder-wrap {
  background: linear-gradient(155deg, #0B2438 0%, #0E3B5C 60%, #0A5C93 100%);
  border-radius: calc(var(--radius) + 6px); padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-lift); overflow: clip;
}

.ladder-table { width: 100%; border-collapse: collapse; display: none; }
.ladder-table caption { text-align: left; }
.ladder-table th, .ladder-table td { padding: 1.05rem 1rem; text-align: left; vertical-align: middle; }
.ladder-table thead th {
  font-family: var(--font-display); font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: #9FB4C6; border-bottom: 1px solid rgba(255,255,255,.14);
}
.ladder-row td, .ladder-row th { border-bottom: 1px solid rgba(255,255,255,.1); }
.ladder-row:last-child td, .ladder-row:last-child th { border-bottom: 0; }
.ladder-row.is-featured { background: rgba(249,194,50,.08); }
.ladder-row.is-featured td, .ladder-row.is-featured th { border-color: rgba(249,194,50,.25); }

.ladder-count {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff;
  font-variant-numeric: tabular-nums; margin-right: .7rem;
}
.ladder-was {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 560; color: #8FA5B8;
  text-decoration: line-through; text-decoration-color: rgba(249,194,50,.7); text-decoration-thickness: 2px;
  font-variant-numeric: tabular-nums;
}
.ladder-was.no-strike { text-decoration: none; }
.ladder-now {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.ladder-savings {
  display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; letter-spacing: .01em; color: var(--blue-ink); background: var(--gold);
  padding: .32rem .85rem; border-radius: 999px; line-height: 1.3; white-space: nowrap;
}

.ladder-cards { display: grid; gap: 0; list-style: none; }

@media (min-width: 780px) {
  .ladder-table { display: table; }
  .ladder-cards { display: none; }
}

.ladder-card {
  display: grid; gap: .3rem;
  padding: .85rem .1rem .8rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ladder-card:last-child { border-bottom: 0; }
.ladder-card.is-featured {
  background: rgba(249,194,50,.08); border-color: rgba(249,194,50,.25);
  padding-left: .6rem; padding-right: .6rem; border-radius: 8px;
}
.ladder-card-line1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem; }
.ladder-card .ladder-count { font-size: 1.2rem; margin-right: 0; line-height: 1; min-width: 1.3ch; }
.ladder-card .ladder-now { font-size: 1.15rem; }
.ladder-card-line1 .ladder-savings { margin-left: auto; font-size: .82rem; padding: .22rem .6rem; }
.ladder-card-line1 .pill { font-size: .7rem; padding: .2rem .55rem; }
.ladder-card-line2 { display: flex; align-items: center; gap: .4rem; }
.ladder-card-line2 .ladder-price-label {
  font-family: var(--font-display); font-size: .68rem; font-weight: 620; letter-spacing: .09em;
  text-transform: uppercase; color: #7E97AC;
}
.ladder-card-line2 .ladder-was { font-size: .82rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-ink); color: #9FB4C6; padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 880px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .foot-h { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: #C6D6E3; text-decoration: none; transition: color var(--dur-1); }
.site-footer a:hover { color: var(--gold); }
.footer-links { display: grid; gap: .55rem; list-style: none; padding: 0; }
.footer-links a { display: inline-block; transition: color var(--dur-1), transform var(--dur-2) var(--ease); }
.footer-links a:hover { transform: translateX(4px); }
.footer-brand img { width: 54px; margin-bottom: 1rem; filter: brightness(0) invert(1) opacity(.92); }
.footer-brand p { max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .82rem; color: #7A93A8; }
.footer-bottom a { color: #7A93A8; }

/* ---------- Reveal animations ----------
   Keyframe-based (not transitions) so they never fight the hover
   transitions on cards and buttons inside revealed containers. */
.reveal { opacity: 0; }
.reveal.is-in { opacity: 1; animation: rise .9s var(--ease) backwards; }
.reveal-stagger > * { opacity: 0; }
.reveal-stagger.is-in > * { opacity: 1; animation: rise .75s var(--ease) backwards; }
.reveal-stagger.is-in > *:nth-child(2) { animation-delay: .07s; }
.reveal-stagger.is-in > *:nth-child(3) { animation-delay: .14s; }
.reveal-stagger.is-in > *:nth-child(4) { animation-delay: .21s; }
.reveal-stagger.is-in > *:nth-child(5) { animation-delay: .28s; }
.reveal-stagger.is-in > *:nth-child(6) { animation-delay: .35s; }
.reveal-stagger.is-in > *:nth-child(7) { animation-delay: .42s; }
.reveal-stagger.is-in > *:nth-child(8) { animation-delay: .49s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; animation: none !important; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; padding-top: 1.6rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--blue-deep); }
.crumbs [aria-current] { color: var(--blue-ink); font-weight: 600; }
.crumbs li { list-style: none; display: inline-flex; gap: .45rem; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs ol { display: contents; padding: 0; margin: 0; }

/* ---------- Misc ---------- */
.divider-gold { width: 64px; height: 3px; background: var(--gold); border: 0; border-radius: 2px; margin: 0; }
.note-temp {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
  background: var(--paper-2); border: 1px dashed var(--line); padding: .3rem .7rem; border-radius: 6px; display: inline-block;
}
.kpi-row { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 880px) { .kpi-row { grid-template-columns: repeat(4, 1fr); } }
.kpi b { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); color: var(--blue-ink); display: block; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.section--dark .kpi b { color: var(--gold); }
.kpi span { color: var(--ink-soft); font-size: .92rem; }
.section--dark .kpi span { color: #A9BCCC; }

.stat-line {
  display: flex; align-items: baseline; justify-content: center; gap: .7rem;
  text-align: center; font-size: .95rem; color: var(--ink-soft);
  margin: 0; padding: 1.1rem 1rem 0; font-style: italic; letter-spacing: .01em;
}
.stat-line b {
  font-family: var(--font-display); font-style: normal; font-weight: 600;
  font-size: 1.32rem; color: var(--gold-deep); letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.stat-line-rule { flex: none; width: 1.75rem; height: 2px; background: var(--gold); align-self: center; }
.section--dark .stat-line { color: #A9BCCC; }
.section--dark .stat-line b { color: var(--gold); }
.section--dark .stat-line-rule { background: var(--gold); }
@media (max-width: 560px) {
  .stat-line-rule { width: 1.1rem; }
  .stat-line { gap: .5rem; font-size: .88rem; }
  .stat-line b { font-size: 1.18rem; }
}

.page-hero { background: linear-gradient(178deg, #EAF4FB 0%, var(--paper) 80%); padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-hero .hero-copy { padding-top: clamp(2.5rem, 5vw, 4.5rem); max-width: 52rem; display: grid; gap: 1.3rem; justify-items: start; }

@media (max-width: 480px) {
  .hero-actions .btn, .cta-band .btn { width: 100%; }
}

/* ---------- Floating "Book Appointment" CTA ---------- */
/* Persistent, fixed-position booking button shown on every page. Positioned
   bottom-right (desktop) / bottom-full-width (mobile) so it never competes
   with the header's own nav CTA or the mobile burger/menu for space. */
.float-cta {
  position: fixed; z-index: 80;
  right: 1.4rem; bottom: 1.4rem;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.3rem; border-radius: 999px;
  background: var(--blue-deep); color: #fff;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 90, 150, .32);
  transition: background var(--dur-1), box-shadow var(--dur-1), transform var(--dur-1) var(--spring);
}
.float-cta:hover, .float-cta:focus-visible { background: var(--blue); box-shadow: 0 16px 38px rgba(0, 118, 195, .38); transform: translateY(-2px); }
.float-cta svg { flex: none; }
/* Hide while the mobile menu overlay is open so it never sits on top of it */
body.nav-open .float-cta { opacity: 0; visibility: hidden; pointer-events: none; }

@media (max-width: 640px) {
  .float-cta span { display: none; }
  .float-cta {
    right: 1rem; bottom: 1rem; left: auto;
    padding: 0; width: 52px; height: 52px;
    justify-content: center;
  }
}

/* ---------- Virtual assistant launcher + panel ----------
   Scripted FAQ widget, stacked directly above the Book Appointment float
   button (same bottom-right column, ~74px of clearance on desktop / ~66px
   on mobile so the two never overlap or visually compete). Rule-based only
   — no external API, no ongoing cost; see src/js/main.js for the flow. */
.assistant-launcher {
  position: fixed; z-index: 80;
  right: 1.4rem; bottom: calc(1.4rem + 74px);
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.3rem; border-radius: 999px; border: none;
  background: #fff; color: var(--blue-deep);
  font: inherit; font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  white-space: nowrap; cursor: pointer;
  box-shadow: var(--shadow-lift);
  transition: background var(--dur-1), box-shadow var(--dur-1), transform var(--dur-1) var(--spring);
}
.assistant-launcher svg { flex: none; color: var(--gold-deep); }
.assistant-launcher:hover, .assistant-launcher:focus-visible { background: var(--paper-2); transform: translateY(-2px); box-shadow: var(--shadow-float); }
body.nav-open .assistant-launcher { opacity: 0; visibility: hidden; pointer-events: none; }
.assistant-launcher[aria-expanded="true"] { opacity: 0; visibility: hidden; pointer-events: none; }

@media (max-width: 640px) {
  .assistant-launcher span { display: none; }
  .assistant-launcher {
    right: 1rem; bottom: calc(1rem + 62px); left: auto;
    padding: 0; width: 52px; height: 52px;
    justify-content: center;
  }
}

/* Floating popup, anchored bottom-right near the launcher — the same
   "chat widget" pattern most sites use. Sized to clearly dominate the
   viewport (per user feedback that the previous 400x640 felt small)
   while deliberately staying NOT a full-screen takeover: rounded
   corners, a real card shadow, and a visible page/gutter around it on
   every viewport. */
.assistant-panel {
  position: fixed; z-index: 200;
  right: 1.4rem; bottom: calc(1.4rem + 74px);
  left: auto; top: auto;
  width: min(720px, calc(100vw - 2.5rem));
  height: min(85vh, calc(100vh - 3rem));
  max-height: calc(100vh - 3rem);
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-float);
  border: 1px solid var(--line);
  overflow: hidden;
}
.assistant-panel[hidden] { display: none; }
.assistant-head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem 1.3rem; background: var(--blue-deep); color: #fff;
  font-weight: 600; font-size: 1.05rem;
}
.assistant-close {
  border: none; background: transparent; color: #fff; font-size: 1.6rem;
  line-height: 1; cursor: pointer; padding: .2rem .5rem; border-radius: 6px;
  transition: background var(--dur-1);
}
.assistant-close:hover, .assistant-close:focus-visible { background: rgba(255,255,255,.16); }
.assistant-body {
  flex: 1 1 auto; overflow-y: auto; padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column; gap: .65rem;
}
/* Response bubbles are intentionally understated — the quick-reply
   buttons below are the primary, star-of-the-show interaction; these
   are supporting context, not the focal point. */
.assistant-msg {
  max-width: 88%; padding: .55rem .8rem; border-radius: 14px;
  font-size: .87rem; line-height: 1.5; text-wrap: pretty;
  color: var(--ink-soft);
}
.assistant-msg.is-bot { align-self: flex-start; background: transparent; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.assistant-msg.is-user { align-self: flex-end; background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--line); border-bottom-right-radius: 4px; }
.assistant-msg a { color: inherit; text-decoration-color: currentColor; }
.assistant-msg .btn { margin-top: .5rem; }
/* Quick-reply buttons are supporting shortcuts, not the focal point —
   kept compact so they don't dominate the chat panel over the actual
   conversation above them. */
.assistant-quick {
  flex: none;
  display: flex; flex-direction: column; gap: .4rem;
  padding: .85rem 1rem calc(.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--paper-2);
}
.assistant-quick button {
  width: 100%;
  border: 1px solid var(--blue); background: #fff; color: var(--blue-deep);
  border-radius: 10px; padding: .45rem .7rem; font: inherit; font-size: .82rem;
  font-weight: 600;
  text-align: left;
  box-shadow: 0 1px 4px rgba(0,118,195,.06);
  cursor: pointer; transition: border-color var(--dur-1), color var(--dur-1), background var(--dur-1), box-shadow var(--dur-1);
}
.assistant-quick button:hover, .assistant-quick button:focus-visible { border-color: var(--blue-deep); color: var(--blue-deep); background: rgba(0,118,195,.08); box-shadow: 0 4px 14px rgba(0,118,195,.15); }

/* On small phones, let the popup take a bit more of the width so it stays
   comfortable, but always keep a visible gutter — never edge-to-edge. */
@media (max-width: 480px) {
  .assistant-panel {
    right: 1rem; bottom: calc(1rem + 66px);
    width: calc(100vw - 2rem);
    height: min(88vh, calc(100vh - 4rem));
    max-height: calc(100vh - 4rem);
  }
  .assistant-quick button { font-size: .8rem; padding: .45rem .65rem; }
}

/* Print — keep it clean */
@media print {
  .site-header, .site-footer, .cta-band, .hero-actions, .nav-burger, .float-cta,
  .assistant-launcher, .assistant-panel { display: none !important; }
}
