/* ==========================================================================
   Inline Smiles Dental & Orthodontics — Design System
   Deep-navy holistic wellness brand. Mobile-first, premium motion.
   ========================================================================== */

:root {
  /* Brand palette — deep navy from clinic facade signage */
  --navy-950: #061E30;
  --navy-900: #082A41;
  --navy-800: #0E3A59;   /* primary brand */
  --navy-700: #14476B;
  --navy-600: #1E567E;
  --navy-500: #2F6D97;
  --blue-300: #7FAECB;
  --blue-200: #AECCDF;
  --blue-100: #D9E8F1;
  --blue-050: #EDF4F9;
  --on-dark: #F2F8FC;      /* body text on navy — near white for max contrast */
  --on-dark-dim: #DCEAF5;  /* secondary text on navy — still clearly light */
  --cream-100: #F7F3EB;  /* facade render cream */
  --cream-050: #FBF9F4;
  --white: #ffffff;
  --gold-500: #C2A15F;
  --gold-400: #D4B87E;
  --ink: #12222E;
  --text: #2A3D4A;
  --text-soft: #52697A;

  /* Typography */
  --font-display: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-logo: "Nunito", var(--font-body);

  /* Rhythm */
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-xl: 40px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 8rem);
  --header-h: 74px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.7s;

  /* Shadows */
  --shadow-s: 0 2px 10px rgba(8, 42, 65, 0.08);
  --shadow-m: 0 10px 34px rgba(8, 42, 65, 0.12);
  --shadow-l: 0 24px 60px rgba(8, 42, 65, 0.18);
  --shadow-navy: 0 14px 34px rgba(14, 58, 89, 0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream-050);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.16; margin: 0 0 0.6em; font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
h4 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-500); }
ul { padding-left: 1.2em; }
strong { color: var(--navy-900); }
::selection { background: var(--navy-800); color: #fff; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-pad); position: relative; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 0.7rem 1.2rem; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy-600); margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--blue-300));
}
.on-dark .eyebrow { color: var(--on-dark-dim); }

.lead { font-size: clamp(1.1rem, 2.1vw, 1.3rem); color: var(--text-soft); line-height: 1.65; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.7rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none;
  box-shadow: var(--shadow-navy);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), background 0.3s;
  overflow: hidden; isolation: isolate;
  will-change: transform;
}
.btn::after { /* sheen sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 20px 44px rgba(14, 58, 89, 0.42); color: var(--btn-fg); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-800); box-shadow: var(--shadow-m); }
.btn--gold { --btn-bg: linear-gradient(120deg, var(--gold-500), var(--gold-400)); --btn-fg: var(--navy-950); box-shadow: 0 14px 34px rgba(194, 161, 95, 0.4); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--navy-800);
  box-shadow: inset 0 0 0 2px var(--navy-800);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--navy-800), 0 12px 28px rgba(14,58,89,0.18); }
.on-dark .btn--ghost { --btn-fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7); }
.on-dark .btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff, 0 12px 28px rgba(0,0,0,0.3); }
.btn--lg { padding: 1.15rem 2.1rem; font-size: 1.06rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s, transform 0.45s var(--ease-out);
  background: transparent;
}
.site-header.is-scrolled {
  background: rgba(251, 249, 244, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(14, 58, 89, 0.08), var(--shadow-s);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1rem;
  height: var(--header-h);
  width: min(1300px, 100% - 2 * var(--gutter));
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--navy-900);
  margin-right: auto; flex-shrink: 0;
}
.brand__mark {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  background: var(--navy-800); border-radius: 13px;
  box-shadow: var(--shadow-navy);
  transition: transform 0.4s var(--ease-spring);
  color: #fff; /* white tooth on navy chip */
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__mark svg { width: 72%; height: 72%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__name {
  font-family: var(--font-logo); font-weight: 700; font-size: 1.14rem; letter-spacing: 0.05em;
  color: var(--navy-900); text-transform: uppercase; white-space: nowrap;
}
.brand__tag {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-500); white-space: nowrap;
}
.nav-desktop { display: none; }
.header-cta { display: none; }

/* Header phone: icon-only chip on mobile, full number on desktop */
.header-phone {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--white); box-shadow: var(--shadow-s);
  color: var(--navy-800); text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.header-phone:hover { transform: translateY(-2px); }
.header-phone svg { width: 22px; height: 22px; }
.header-phone__num { display: none; }

.nav-toggle {
  width: 46px; height: 46px; border-radius: 13px; border: 0; cursor: pointer;
  background: var(--white); box-shadow: var(--shadow-s);
  z-index: 120; position: relative;
}
.nav-toggle span {
  position: absolute; left: 13px; top: calc(50% - 1px);
  display: block; width: 20px; height: 2px; background: var(--navy-900); border-radius: 2px;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s, background 0.3s;
}
.nav-toggle span:nth-child(1) { transform: translateY(-7px); }
.nav-toggle span:nth-child(3) { transform: translateY(7px); }
.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile {
  position: fixed; inset: 0; z-index: 110;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700));
  display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  clip-path: circle(0% at calc(100% - 44px) 37px);
  visibility: hidden;
  transition: clip-path 0.65s var(--ease-out), visibility 0s linear 0.65s;
}
.nav-open .nav-mobile { clip-path: circle(150% at calc(100% - 44px) 37px); visibility: visible; transition: clip-path 0.65s var(--ease-out); }
.nav-mobile__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.nav-mobile__list a {
  display: flex; align-items: baseline; gap: 0.8rem;
  font-family: var(--font-display); font-size: clamp(1.7rem, 6.5vw, 2.4rem); font-weight: 560;
  color: #fff; text-decoration: none; padding: 0.45rem 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
}
.nav-mobile__list a:hover { color: var(--gold-400); }
.nav-mobile__list a small { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--blue-300); font-weight: 700; }
.nav-open .nav-mobile__list a { opacity: 1; transform: none; }
.nav-mobile__list li:nth-child(1) a { transition-delay: 0.12s; }
.nav-mobile__list li:nth-child(2) a { transition-delay: 0.17s; }
.nav-mobile__list li:nth-child(3) a { transition-delay: 0.22s; }
.nav-mobile__list li:nth-child(4) a { transition-delay: 0.27s; }
.nav-mobile__list li:nth-child(5) a { transition-delay: 0.32s; }
.nav-mobile__list li:nth-child(6) a { transition-delay: 0.37s; }
.nav-mobile__list li:nth-child(7) a { transition-delay: 0.42s; }
.nav-mobile__foot { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1rem; opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--ease-out) 0.45s, transform 0.5s var(--ease-out) 0.45s; }
.nav-open .nav-mobile__foot { opacity: 1; transform: none; }
.nav-mobile__foot a.phone { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--on-dark); font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.nav-mobile__foot a.phone svg { width: 20px; height: 20px; flex: none; }
body.nav-open { overflow: hidden; }

@media (min-width: 1280px) {
  .nav-toggle, .nav-mobile { display: none; }
  .nav-desktop { display: flex; align-items: center; gap: 0.1rem; margin-right: 0.5rem; }
  .nav-desktop a {
    position: relative; padding: 0.5rem 0.62rem; border-radius: 10px; white-space: nowrap;
    font-weight: 600; font-size: 0.92rem; color: var(--navy-900); text-decoration: none;
    transition: background 0.25s, color 0.25s;
  }
  .nav-desktop a::after {
    content: ""; position: absolute; left: 0.62rem; right: 0.62rem; bottom: 0.28rem; height: 2px;
    background: var(--gold-500); border-radius: 2px;
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s var(--ease-out);
  }
  .nav-desktop a:hover::after, .nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }
  .header-cta { display: inline-flex; padding: 0.72rem 1.15rem; font-size: 0.92rem; white-space: nowrap; }
  .header-phone {
    width: auto; height: auto; gap: 0.45rem; margin-right: 0.5rem;
    padding: 0.55rem 0.9rem; border-radius: 999px;
    background: transparent; box-shadow: inset 0 0 0 2px rgba(14, 58, 89, 0.16);
    font-weight: 700; font-size: 0.9rem; color: var(--navy-800); white-space: nowrap;
  }
  .header-phone:hover { box-shadow: inset 0 0 0 2px var(--navy-800); transform: translateY(-2px); }
  .header-phone svg { width: 18px; height: 18px; color: var(--gold-500); }
  .header-phone__num { display: inline; }
}
@media (min-width: 1440px) {
  .nav-desktop { gap: 0.15rem; margin-right: 0.7rem; }
  .nav-desktop a { padding: 0.55rem 0.78rem; font-size: 0.95rem; }
  .header-cta { padding: 0.78rem 1.3rem; font-size: 0.95rem; }
  .header-phone { font-size: 0.95rem; padding: 0.62rem 1.05rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: clip;
  background:
    radial-gradient(1100px 620px at 82% -10%, rgba(127, 174, 203, 0.35), transparent 60%),
    radial-gradient(900px 560px at -12% 30%, rgba(194, 161, 95, 0.14), transparent 55%),
    linear-gradient(180deg, var(--blue-050) 0%, var(--cream-050) 78%);
  padding-top: calc(var(--header-h) + clamp(2.5rem, 8vw, 5.5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 2rem; } }
.hero h1 .accent { color: var(--navy-600); font-style: italic; }
.hero .lead { max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; margin-top: 2.6rem; padding: 0; list-style: none; }
.hero__trust li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.92rem; font-weight: 600; color: var(--text-soft); }
.hero__trust svg { width: 20px; height: 20px; color: var(--gold-500); flex: none; }

/* Hero visual: drawn tooth in blob */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero__blob {
  position: relative; margin: auto; width: min(480px, 92%); aspect-ratio: 1;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  border-radius: 50%;
  box-shadow: var(--shadow-l);
  display: grid; place-items: center;
}
.hero__blob-tooth { width: 58%; color: #fff; display: grid; place-items: center; }
.award-badge { position: relative; display: inline-flex; }
.award-badge--pinned { position: absolute; z-index: 3; left: 50%; bottom: 6%; transform: translateX(-50%); }
.award-badge--static { display: none; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: linear-gradient(120deg, var(--gold-500), var(--gold-400));
  color: var(--navy-950); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.01em;
  padding: 0.9rem 1.5rem; border-radius: 999px; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
  box-shadow: 0 12px 30px rgba(194, 161, 95, 0.45), 0 0 0 5px rgba(251, 249, 244, 0.85);
}
.award-badge--pinned:hover .hero__badge, .award-badge--pinned:focus-within .hero__badge {
  transform: translateY(-3px); box-shadow: 0 16px 38px rgba(194, 161, 95, 0.55), 0 0 0 5px rgba(251, 249, 244, 0.9);
}
.hero__badge > svg { width: 23px; height: 23px; flex: none; }
.badge-info-ico { display: inline-flex; width: 18px; height: 18px; flex: none; opacity: 0.75; transition: opacity 0.2s, transform 0.2s; }
.badge-info-ico svg { width: 100%; height: 100%; }
.award-badge:hover .badge-info-ico, .award-badge:focus-within .badge-info-ico { opacity: 1; transform: scale(1.12) rotate(8deg); }
@media (max-width: 979px) {
  .award-badge--pinned { display: none; }
  .award-badge--static { display: inline-flex; margin: 0 0 0.7rem; }
  .award-badge--static .hero__badge { font-size: 0.93rem; padding: 0.61rem 1.1rem; box-shadow: 0 8px 20px rgba(194, 161, 95, 0.4); }
  .award-badge--static .hero__badge > svg { width: 19px; height: 19px; }
  .award-badge--static:hover .hero__badge, .award-badge--static:focus-within .hero__badge { transform: translateY(-3px); }
  .hero__visual { display: none; }
  .medicare-badge--static {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #fff; color: var(--navy-800); font-weight: 700; font-size: 0.8rem;
    padding: 0.55rem 0.9rem; border-radius: 12px; margin: 0 0 1.1rem;
    box-shadow: var(--shadow-m);
  }
  .medicare-badge--static svg { width: 18px; height: 18px; flex: none; color: var(--gold-500); }
  .hero h1 { font-size: 2.1rem; }
}
@media (min-width: 980px) { .medicare-badge--static { display: none; } }

/* Award tooltip */
.award-tooltip {
  position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translateX(-50%) translateY(8px) scale(0.96);
  width: min(320px, 86vw);
  background: var(--navy-950); color: var(--on-dark);
  border-radius: 14px; padding: 1rem 1.2rem; box-shadow: var(--shadow-l);
  font-size: 0.85rem; font-weight: 600; line-height: 1.55; text-align: left; white-space: normal;
  opacity: 0; visibility: hidden; pointer-events: none; transform-origin: bottom center;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
  z-index: 150;
}
.award-tooltip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--navy-950);
}
.award-tooltip strong { display: block; color: var(--gold-400); font-size: 0.78rem; letter-spacing: 0.04em; margin-top: 0.7rem; }
.award-tooltip strong:first-child { margin-top: 0; }
.award-badge:hover .award-tooltip, .award-badge:focus-within .award-tooltip {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto;
}
@media (max-width: 640px) {
  .award-tooltip { left: 0; transform: translateY(8px) scale(0.96); }
  .award-tooltip::after { left: 28px; }
  .award-badge:hover .award-tooltip, .award-badge:focus-within .award-tooltip { transform: translateY(0) scale(1); }
}
.hero__blob::before {
  content: ""; position: absolute; inset: -7%;
  border-radius: 50%; border: 1.5px solid rgba(127, 174, 203, 0.4);
}

/* Complimentary oral care packs */
.carepack {
  display: grid; grid-template-columns: 1.5fr 0.5fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: linear-gradient(150deg, #fff, var(--cream-050));
  border: 1.5px solid rgba(194, 161, 95, 0.35);
  border-radius: var(--radius-l);
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: var(--shadow-m);
}
.carepack__items {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem 1.6rem;
  margin: 1.3rem 0 0; padding: 0;
}
.carepack__items li {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 700; color: var(--navy-800); font-size: 1.05rem;
}
.carepack__items svg { width: 20px; height: 20px; flex: none; color: var(--gold-500); }
.carepack__mark { display: grid; place-items: center; }
.carepack__mark svg { width: min(150px, 70%); color: var(--gold-400); }
@media (max-width: 720px) {
  .carepack { grid-template-columns: 1fr; }
  .carepack__mark { display: none; }
}
.hero__tooth { position: relative; width: min(300px, 60%); z-index: 1; filter: drop-shadow(0 12px 30px rgba(6, 30, 48, 0.35)); }
.hero__float {
  position: absolute; z-index: 2;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 16px; box-shadow: var(--shadow-m);
  padding: 0.7rem 1rem; display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.85rem; font-weight: 700; color: var(--navy-800);
  animation: float-soft 6s ease-in-out infinite;
}
.hero__float svg { width: 22px; height: 22px; color: var(--gold-500); flex: none; }
.hero__float--1 { top: 8%; right: 4%; animation-delay: 0s; }
.hero__float--2 { bottom: 10%; left: 0; animation-delay: -3s; }
.hero__float--medicare { max-width: 190px; line-height: 1.3; }
.hero__float--medicare svg { margin-top: 0.1em; }
@media (min-width: 641px) {
  .hero__float--medicare { max-width: 200px; font-size: 0.9rem; padding: 0.74rem 1.05rem; gap: 0.67rem; border-radius: 14px; top: 2%; right: 1%; }
  .hero__float--medicare svg { width: 23px; height: 23px; }
}
@media (max-width: 640px) { .hero__float--medicare { max-width: 132px; font-size: 0.74rem; padding: 0.55rem 0.75rem; top: 2%; right: 1%; } }
/* CDBS bubbles are links to the children's-dentistry (CDBS) info */
a.medicare-badge--static, a.hero__float--medicare { text-decoration: none; cursor: pointer; }
a.medicare-badge--static { transition: box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out); }
a.medicare-badge--static:hover, a.medicare-badge--static:focus-visible { box-shadow: 0 10px 22px rgba(6, 30, 48, 0.20); transform: translateY(-1px); }
a.hero__float--medicare:hover, a.hero__float--medicare:focus-visible { box-shadow: 0 16px 36px rgba(6, 30, 48, 0.32); }
a.hero__float--medicare:focus-visible, a.medicare-badge--static:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
@keyframes float-soft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Tooth line-draw */
.tooth-draw path {
  stroke-dasharray: var(--tooth-len, 4600);
  stroke-dashoffset: var(--tooth-len, 4600);
  animation: tooth-draw 2.6s var(--ease-out) 0.3s forwards;
}
@keyframes tooth-draw { to { stroke-dashoffset: 0; } }

/* ---------- Marquee (facade words) ---------- */
.marquee {
  --marquee-bg: var(--navy-800);
  background: var(--marquee-bg); color: var(--on-dark);
  padding: 0.9rem 0; overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: inline-flex; gap: 2.6rem; padding-right: 2.6rem; animation: marquee 30s linear infinite; will-change: transform; }
.marquee span { display: inline-flex; align-items: center; gap: 2.6rem; font-weight: 700; letter-spacing: 0.26em; font-size: 0.82rem; text-transform: uppercase; }
.marquee i { font-style: normal; color: var(--gold-400); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.3rem; margin-top: 2.6rem; }
@media (min-width: 640px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 0.4rem;
  background: var(--white); border-radius: var(--radius-m);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow-s);
  border: 1px solid rgba(14, 58, 89, 0.07);
  text-decoration: none; color: var(--text);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-out), border-color 0.3s;
  overflow: hidden;
}
.card::before { /* top glow line */
  content: ""; position: absolute; top: 0; left: 1.6rem; right: 1.6rem; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--blue-300));
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out);
}
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: rgba(14,58,89,0.14); color: var(--text); }
a.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.28rem; margin-bottom: 0.2rem; }
.card p { font-size: 0.97rem; color: var(--text-soft); margin: 0; }
.card__icon {
  width: 54px; height: 54px; border-radius: 16px; margin-bottom: 0.9rem;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--blue-050), var(--blue-100));
  color: var(--navy-700);
  transition: transform 0.45s var(--ease-spring), background 0.4s;
}
.card__icon svg { width: 27px; height: 27px; }
a.card:hover .card__icon { transform: rotate(-8deg) scale(1.1); background: var(--navy-800); color: #fff; }
.card__more { margin-top: auto; padding-top: 0.9rem; font-weight: 700; font-size: 0.9rem; color: var(--navy-700); display: inline-flex; align-items: center; gap: 0.4rem; }
.card__more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
a.card:hover .card__more svg { transform: translateX(5px); }

/* ---------- Split feature rows ---------- */
.split { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 920px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
  .split--flip > .split__media { order: 2; }
}
.split__media { position: relative; }
.frame {
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  box-shadow: var(--shadow-l);
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
}
.frame--pad { padding: clamp(1.8rem, 4vw, 3rem); }
.frame img { display: block; width: 100%; }

/* ---------- Checklist ---------- */
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.85rem; }
.check-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.check-list svg { width: 24px; height: 24px; flex: none; color: var(--gold-500); margin-top: 0.15em; }
.check-list strong { display: block; }
.check-list span { color: var(--text-soft); font-size: 0.98rem; }

/* Opening hours table (Google-style two columns) */
.hours { margin: 1rem 0 0; max-width: 24rem; }
.hours__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(14, 58, 89, 0.1); }
.hours__row:last-child { border-bottom: 0; }
.hours dt { font-weight: 600; color: var(--navy-900); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours__row--open dd { font-weight: 700; color: var(--navy-800); }
.hours__row--closed dd { color: var(--text-soft); }
.band-dark .check-list span, .cta-panel .check-list span, .on-dark .check-list span { color: var(--on-dark); }

/* ---------- Dark band ---------- */
.band-dark {
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(47, 109, 151, 0.5), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(194, 161, 95, 0.12), transparent 55%),
    linear-gradient(165deg, var(--navy-950), var(--navy-800));
  color: var(--on-dark);
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark strong, .cta-panel strong, .on-dark strong { color: #fff; }
.band-dark p, .band-dark li, .cta-panel p, .cta-panel li, .on-dark p, .on-dark li { color: var(--on-dark); }
.band-dark .lead, .cta-panel .lead, .on-dark .lead { color: var(--on-dark); }
.band-dark a { color: #fff; text-decoration-color: rgba(255,255,255,0.6); }
.band-dark a.btn, .cta-panel a.btn { color: var(--btn-fg); }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); margin-top: 3rem; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { text-align: center; padding: 1.6rem 0.8rem; border-radius: var(--radius-m); background: rgba(255,255,255,0.05); border: 1px solid rgba(174, 204, 223, 0.16); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 700; color: #fff; line-height: 1; }
.stat__num sup { font-size: 0.5em; color: var(--gold-400); }
.stat__label { font-size: 0.86rem; letter-spacing: 0.06em; color: var(--on-dark-dim); margin-top: 0.5rem; }

/* ---------- Signs (symptom) chips ---------- */
.signs { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.sign-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid rgba(14,58,89,0.12); border-radius: 999px;
  padding: 0.6rem 1.1rem; font-size: 0.92rem; font-weight: 600; color: var(--navy-800);
  box-shadow: var(--shadow-s);
  transition: transform 0.3s var(--ease-spring), background 0.3s, color 0.3s;
}
.sign-chip:hover { transform: translateY(-3px); background: var(--navy-800); color: #fff; }
.sign-chip svg { width: 17px; height: 17px; color: var(--gold-500); }

/* ---------- Timeline / steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.4rem; margin-top: 2.6rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.step {
  counter-increment: step; position: relative;
  background: var(--white); border-radius: var(--radius-m); padding: 2rem 1.5rem 1.6rem;
  border: 1px solid rgba(14,58,89,0.08); box-shadow: var(--shadow-s);
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--blue-300);
  display: block; margin-bottom: 0.7rem;
}
.step h3 { font-size: 1.2rem; }
.step p { font-size: 0.95rem; color: var(--text-soft); margin: 0; }

/* ---------- Quote / philosophy ---------- */
.quote {
  position: relative; padding: clamp(2rem, 5vw, 3.4rem);
  background: var(--white); border-radius: var(--radius-l); box-shadow: var(--shadow-m);
  border: 1px solid rgba(14,58,89,0.07);
}
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.45; color: var(--navy-900); }
.quote cite { display: block; margin-top: 1.2rem; font-style: normal; font-weight: 700; font-size: 0.95rem; color: var(--text-soft); }
.quote::before {
  content: "“"; position: absolute; top: -0.18em; left: 0.12em; font-family: var(--font-display);
  font-size: 7rem; line-height: 1; color: var(--blue-100); z-index: 0;
}

/* ---------- Accordion (FAQ) ---------- */
.faq { display: grid; gap: 0.9rem; margin-top: 2.4rem; }
.faq details {
  background: var(--white); border-radius: var(--radius-m); border: 1px solid rgba(14,58,89,0.09);
  box-shadow: var(--shadow-s); overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq details[open] { box-shadow: var(--shadow-m); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer; list-style: none; padding: 1.15rem 1.4rem;
  font-weight: 700; color: var(--navy-900); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E3A59' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/13px no-repeat;
  transition: transform 0.4s var(--ease-spring), background-color 0.3s;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .faq__body { padding: 0 1.4rem 1.3rem; color: var(--text-soft); font-size: 0.98rem; }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- Award strip ---------- */
.awards { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.4rem; }
.award {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: linear-gradient(140deg, rgba(194,161,95,0.1), rgba(255,255,255,0.9));
  border: 1px solid rgba(194, 161, 95, 0.35); border-radius: var(--radius-m);
  padding: 1.25rem 1.5rem;
}
.award svg { width: 30px; height: 30px; flex: none; color: var(--gold-500); margin-top: 0.1rem; }
.award strong { display: block; color: var(--navy-900); font-size: 1.05rem; margin-bottom: 0.15rem; }
.award span { color: var(--text-soft); font-size: 0.92rem; line-height: 1.45; }

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  background:
    radial-gradient(700px 420px at 15% 0%, rgba(47,109,151,0.55), transparent 60%),
    radial-gradient(600px 400px at 90% 100%, rgba(194,161,95,0.2), transparent 55%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: var(--on-dark); box-shadow: var(--shadow-l);
}
.cta-panel h2 { color: #fff; }
.cta-panel .watermark {
  position: absolute; right: -6%; bottom: -18%; width: clamp(220px, 34vw, 420px); opacity: 0.1; pointer-events: none;
}
.cta-panel .hero__ctas { justify-content: center; }

/* ---------- Wave divider ---------- */
.wave { display: block; width: 100%; height: 70px; margin-bottom: -1px; }
.wave--flip { transform: scaleY(-1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-dim); padding: 4.5rem 0 2rem; position: relative; overflow: hidden; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.footer-grid { display: grid; gap: 2.4rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { font-size: 0.95rem; color: var(--on-dark-dim); max-width: 30em; }
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; font-size: 0.96rem; }
.footer-list svg { width: 17px; height: 17px; color: var(--gold-500); flex: none; margin-top: 0.2em; }
.footer-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-legal {
  margin-top: 3.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(174,204,223,0.15);
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.8rem; justify-content: space-between;
  font-size: 0.82rem; color: var(--on-dark-dim);
}
.footer-disclaimer { margin-top: 1.4rem; font-size: 0.8rem; color: rgba(220,234,245,0.85); max-width: 72em; line-height: 1.6; }

/* ---------- Booking page ---------- */
.booking-shell {
  background: var(--white); border-radius: var(--radius-l); box-shadow: var(--shadow-m);
  border: 1px solid rgba(14,58,89,0.08); overflow: hidden;
  min-height: 1400px; position: relative;
}
/* Tall enough to show the whole booking widget so the page scrolls, not the iframe */
.booking-shell iframe { display: block; width: 100%; height: 1400px; border: 0; }
.booking-loading {
  position: absolute; inset: 0; display: grid; place-items: center; background: var(--white);
  transition: opacity 0.5s, visibility 0.5s;
}
.booking-loading.is-done { opacity: 0; visibility: hidden; }
.pulse-tooth { width: 90px; animation: pulse-soft 1.6s ease-in-out infinite; }
@keyframes pulse-soft { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.08); opacity: 1; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(900px 480px at 88% -20%, rgba(127,174,203,0.35), transparent 60%),
    linear-gradient(180deg, var(--blue-050), var(--cream-050));
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: 0.85rem; font-weight: 600; }
.breadcrumbs a { color: var(--text-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy-700); }
.breadcrumbs li + li::before { content: "›"; margin-right: 0.45rem; color: var(--blue-300); }
.breadcrumbs [aria-current] { color: var(--navy-800); }

/* ---------- Prose (long-form article) ---------- */
.prose h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul li { margin-bottom: 0.45em; }
.prose .callout {
  background: var(--blue-050); border-left: 4px solid var(--navy-600);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 1.2rem 1.4rem; margin: 1.8rem 0; font-size: 0.98rem;
}
.prose .callout--gold { background: rgba(194,161,95,0.12); border-left-color: var(--gold-500); }

/* Reveal/split-word text animations removed: content is always visible. */

/* ---------- Utility ---------- */
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.mt-2 { margin-top: 2rem; }
.grid-2 { display: grid; gap: 1.3rem; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.pill-note {
  display: inline-block; background: var(--blue-050); border: 1px solid rgba(14,58,89,0.1);
  color: var(--navy-800); border-radius: 12px; padding: 0.8rem 1.1rem; font-size: 0.88rem; line-height: 1.55;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .tooth-draw path { stroke-dashoffset: 0; animation: none; }
  .marquee__track { animation: none; }
}

/* ---------- Feature illustrations ---------- */
.illus {
  display: block; width: 100%; border-radius: var(--radius-l);
  box-shadow: var(--shadow-m); border: 1px solid rgba(14, 58, 89, 0.08);
  background: var(--white);
}
.illus--plain { box-shadow: none; border: 0; background: transparent; }
.photo {
  display: block; width: 100%; border-radius: var(--radius-l);
  box-shadow: var(--shadow-m); object-fit: cover;
}
/* Pricing cards */
.price-grid { display: grid; gap: 1.3rem; margin-top: 2.6rem; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  background: var(--white); border-radius: var(--radius-m); padding: 2rem 1.7rem;
  border: 1px solid rgba(14,58,89,0.09); box-shadow: var(--shadow-s);
  display: flex; flex-direction: column; text-align: center;
}
.price-card--hero { border: 2px solid var(--gold-500); box-shadow: var(--shadow-m); }
.price-card h3 { margin-bottom: 0.2rem; }
.price-card .from { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); }
.price-card .amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.2rem); color: var(--navy-800); line-height: 1.1; }
.price-card .terms { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 1.1rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.5rem; text-align: left; font-size: 0.95rem; }
.price-card ul li { display: flex; gap: 0.55rem; align-items: flex-start; }
.price-card ul svg { width: 19px; height: 19px; flex: none; color: var(--gold-500); margin-top: 0.15em; }
.price-card .btn { margin-top: auto; }
/* Icon strip (services) */
.icon-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 0.6rem;
  background: var(--white); border-radius: var(--radius-l); box-shadow: var(--shadow-m);
  border: 1px solid rgba(14,58,89,0.08);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
@media (min-width: 640px)  { .icon-strip { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 860px) { .icon-strip { grid-template-columns: repeat(8, 1fr); } }
.icon-strip a {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--navy-800); font-weight: 700; font-size: 0.95rem; text-align: center;
  transition: transform 0.3s var(--ease-spring), color 0.25s;
}
.icon-strip a:hover { transform: translateY(-4px); color: var(--navy-500); }
.icon-strip svg { width: 46px; height: 46px; color: var(--navy-700); }
/* Evidence / research list */
.evidence { display: grid; gap: 0.9rem; margin-top: 2.2rem; }
.evidence-item {
  background: var(--white); border-radius: var(--radius-m); padding: 1.3rem 1.5rem;
  border: 1px solid rgba(14,58,89,0.08); border-left: 4px solid var(--gold-500);
}
.evidence-item p { margin: 0; font-size: 0.98rem; }
.evidence-item .src { display: block; margin-top: 0.45rem; font-size: 0.82rem; color: var(--text-soft); font-weight: 600; }

/* ---------- Coming-soon badge ---------- */
.badge-soon {
  display: inline-flex; align-items: center;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-500); background: rgba(194, 161, 95, 0.12);
  border: 1px solid rgba(194, 161, 95, 0.5); border-radius: 999px;
  padding: 0.15rem 0.5rem; margin-left: 0.4rem; vertical-align: middle; white-space: nowrap;
  line-height: 1.4;
}
.on-dark .badge-soon, .price-card .badge-soon { color: var(--gold-400); }
.faq summary .badge-soon { margin-left: 0.5rem; }
