/* ==========================================================================
   Oakville Orthodontics — design system
   Colours come straight from the logo: orange #F47D30 and taupe #71685A.
   Display type (Jost) echoes the logo's geometric, wide-tracked capitals;
   body type (Figtree) keeps things warm and friendly.
   ========================================================================== */

:root {
  --orange: #F47D30;
  --orange-600: #E86C1C;
  --orange-text: #B34B0A;          /* AA-safe orange for small text on light backgrounds */
  --orange-50: #FFF5ED;
  --orange-100: #FFE7D5;
  --orange-200: #FDD3B4;
  --taupe: #71685A;
  --taupe-700: #574F43;
  --ink: #2B251F;
  --body: #5A5246;
  --muted: #7D7468;
  --cream: #FBF6F0;
  --sand: #F4ECE2;
  --line: #E9E0D5;
  --white: #FFFFFF;
  --success: #2F7A55;
  --error: #B3261E;

  --font-display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(43, 37, 31, .06), 0 4px 12px -4px rgba(43, 37, 31, .10);
  --shadow: 0 2px 4px rgba(43, 37, 31, .04), 0 18px 40px -18px rgba(43, 37, 31, .28);
  --shadow-lg: 0 30px 70px -30px rgba(43, 37, 31, .35);
  --ease: cubic-bezier(.22, .9, .28, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 84px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--orange-text); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 2rem + 3.4vw, 4.75rem); letter-spacing: -.03em; }
h2 { font-size: clamp(2.05rem, 1.6rem + 2.1vw, 3.35rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); line-height: 1.2; letter-spacing: -.01em; }
h4 { font-size: 1.125rem; line-height: 1.3; letter-spacing: 0; }
strong { color: var(--ink); font-weight: 600; }
address { font-style: normal; }
cite { font-style: normal; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--white); padding: .75rem 1.25rem; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin: 0 0 1.1rem;
  line-height: 1.3;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); border-radius: 2px; flex: none; }
.eyebrow--light { color: var(--orange-200); }
.eyebrow--light::before { background: var(--orange); }
h1 .eyebrow, h2 .eyebrow { display: flex; letter-spacing: .22em; }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.6; color: var(--body); }
.text-center { text-align: center; }
.cite { font-size: .85em; color: var(--muted); white-space: nowrap; }

/* The "smile" underline — a hand-drawn orange arc under a highlighted word */
.smile { position: relative; white-space: nowrap; display: inline-block; isolation: isolate; }
.smile::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.18em; height: .32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M4 5 C 50 24, 150 24, 196 5' fill='none' stroke='%23F47D30' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform-origin: left center;
  z-index: -1;
}
.js .smile::after { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease) .35s; }
.js .is-visible .smile::after, .js .smile.is-visible::after { clip-path: inset(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--orange); --btn-fg: var(--ink); --btn-bd: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px;
  padding: .85rem 1.65rem;
  border-radius: 999px;
  border: 2px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .86rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn .icon { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--primary:hover { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); box-shadow: 0 12px 24px -12px rgba(43, 37, 31, .55); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--secondary:hover { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
.btn--light:hover { --btn-bg: var(--orange); --btn-bd: var(--orange); --btn-fg: var(--ink); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, .5); }
.btn--ghost-light:hover { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); }
.btn--dark:hover { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .76rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; margin-top: 2rem; }
.btn-row--center { justify-content: center; }

.text-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .86rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.text-link .icon { color: var(--orange); transition: transform .25s var(--ease); }
.text-link:hover { color: var(--orange-text); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Utility bar ---------- */
.utility-bar { background: var(--ink); color: rgba(255, 255, 255, .82); font-size: .85rem; }
.utility-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.utility-bar p { margin: 0; display: flex; align-items: center; gap: .5rem; }
.utility-bar .icon { width: 15px; height: 15px; color: var(--orange); }
.utility-bar__links { list-style: none; display: flex; gap: 1.5rem; }
.utility-bar__links a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.utility-bar__links a:hover { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(43, 37, 31, .35); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.site-logo { flex: none; display: block; }
.site-logo img { width: clamp(190px, 18vw, 236px); height: auto; }
.site-header__actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.site-header__cta { white-space: nowrap; }

.primary-nav { margin-left: auto; }
.primary-nav__list { list-style: none; display: flex; align-items: center; gap: .15rem; }
.primary-nav__list > li { position: relative; display: flex; align-items: center; flex: none; }
.primary-nav__link {
  display: block; padding: .6rem .7rem; white-space: nowrap;
  font-family: var(--font-display); font-weight: 500; font-size: .98rem; letter-spacing: .01em;
  color: var(--ink); text-decoration: none; border-radius: 999px;
  position: relative;
}
.primary-nav__link::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .3rem; height: 2px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.primary-nav__link:hover, .primary-nav__link[aria-current="page"] { color: var(--ink); }
.primary-nav__link:hover::after, .primary-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.has-dropdown > .primary-nav__link { padding-right: .2rem; }
.dropdown-toggle {
  display: inline-grid; place-items: center; width: 26px; height: 32px; padding: 0; margin-right: .2rem;
  background: none; border: 0; color: var(--taupe); cursor: pointer; border-radius: 8px;
}
.dropdown-toggle .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.has-dropdown:hover .dropdown-toggle .icon, .dropdown-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: -.5rem; min-width: 260px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .6rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown, .has-dropdown.is-open > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown__list { list-style: none; }
.dropdown__list a {
  display: block; padding: .6rem .85rem; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: .96rem;
  transition: background .2s, color .2s, padding .2s;
}
.dropdown__list a:hover { background: var(--orange-50); color: var(--orange-text); padding-left: 1.1rem; }

.mega { left: 50%; width: min(880px, 92vw); transform: translate(-42%, 8px); padding: 1.5rem; }
.has-dropdown:hover > .mega, .has-dropdown:focus-within > .mega, .has-dropdown.is-open > .mega { transform: translate(-42%, 0); }
.mega__grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 1.25rem; }
.mega__col { padding: .25rem .5rem; }
.mega__col + .mega__col { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.mega__heading {
  font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange-text); margin: 0 0 .85rem; line-height: 1.4;
}
.mega ul { list-style: none; display: grid; gap: .15rem; }
.mega__col a:not(.mega__feature):not(.mega__all) {
  display: block; padding: .5rem .6rem; margin-inline: -.6rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .96rem;
}
.mega__col a:not(.mega__feature):not(.mega__all):hover { background: var(--orange-50); color: var(--orange-text); }
.mega__col--primary ul { gap: .6rem; }
.mega__feature {
  display: flex; align-items: center; gap: .9rem; padding: .5rem; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: var(--cream); transition: background .2s, transform .25s var(--ease);
}
.mega__feature img { width: 84px; height: 60px; object-fit: cover; border-radius: 12px; }
.mega__feature strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.mega__feature .icon { margin-left: auto; margin-right: .5rem; color: var(--orange); transition: transform .25s var(--ease); }
.mega__feature:hover { background: var(--orange-100); color: var(--ink); }
.mega__feature:hover .icon { transform: translateX(4px); }
.mega__all {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem; padding: .55rem 1rem; border-radius: 999px;
  background: var(--ink); color: var(--white); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
}
.mega__all:hover { background: var(--orange); color: var(--ink); }
.mega__all .icon { width: 1em; height: 1em; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: var(--white);
  place-items: center; cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.nav-open .nav-toggle .icon--close { display: block; }
.nav-open .nav-toggle .icon--menu { display: none; }
.primary-nav__mobile-extra { display: none; }

@media (max-width: 1180px) {
  .primary-nav__link { padding-inline: .5rem; font-size: .94rem; }
  .primary-nav__link::after { left: .5rem; right: .5rem; }
}
@media (max-width: 1080px) {
  :root { --header-h: 74px; }
  /* backdrop-filter would make the header the containing block for the fixed drawer */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .nav-toggle { display: inline-grid; }
  .site-header__cta { display: none; }
  .primary-nav {
    position: fixed; inset: calc(var(--header-h) + var(--utility-h, 0px)) 0 0 0; z-index: 99;
    background: var(--white); overflow-y: auto; padding: 1rem var(--gutter) 2.5rem;
    transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s;
  }
  .nav-open .primary-nav { transform: translateX(0); visibility: visible; }
  .nav-open { overflow: hidden; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .primary-nav__link { flex: 1; padding: 1rem 0; font-size: 1.3rem; }
  .primary-nav__link::after { display: none; }
  .primary-nav__link[aria-current="page"] { color: var(--orange-text); }
  .dropdown-toggle { width: 48px; height: 48px; background: var(--cream); border-radius: 50%; margin: 0; }
  .has-dropdown:hover .dropdown-toggle .icon { transform: none; }
  .dropdown-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .dropdown, .mega {
    position: static; width: 100%; min-width: 0; transform: none !important; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; padding: 0 0 1rem; display: none; background: transparent;
  }
  .has-dropdown:hover > .dropdown { display: none; }
  .has-dropdown.is-open > .dropdown { display: block; }
  .dropdown__list a { padding-left: 1rem; }
  .mega__grid { grid-template-columns: 1fr; gap: 1rem; }
  .mega__col + .mega__col { border-left: 0; padding-left: .5rem; }
  .primary-nav__mobile-extra { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
  .mobile-contact { display: grid; gap: .25rem; }
  .mobile-contact a { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; color: var(--ink); text-decoration: none; font-weight: 500; }
  .mobile-contact .icon { color: var(--orange); }
}
@media (max-width: 720px) {
  .utility-bar__address { display: none !important; }
  .utility-bar__inner { justify-content: center; }
  .utility-bar__links { gap: 1.1rem; font-size: .8rem; }
}
@media (max-width: 380px) {
  .utility-bar__links li:last-child { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; overflow-x: clip; }
.section--tight { padding-block: calc(var(--section-y) * .65); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--peach { background: var(--orange-50); }
.section--dark { background: var(--taupe); color: rgba(255, 255, 255, .86); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, .8); }
.section--dark h2, .section--dark h3, .section--ink h2, .section--ink h3, .section--dark strong, .section--ink strong { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: end; }
.section-head--split p { margin-bottom: 0; }
@media (max-width: 900px) { .section-head--split { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--wide-media { grid-template-columns: 1.15fr 1fr; }
.split--top { align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 900px) {
  .split, .split--wide-media { grid-template-columns: 1fr; }
  .split--reverse-mobile > :first-child { order: 2; }
}

.prose > * + * { margin-top: 1em; }
.prose p { margin-bottom: 0; }
.prose h3 { margin-top: 1.75em; }
.prose ul { list-style: none; }

/* ---------- Media frames ---------- */
.frame { position: relative; border-radius: var(--radius-xl); overflow: hidden; background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--arch { border-radius: 999px 999px var(--radius-xl) var(--radius-xl); }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 4 / 3; }
.frame--pano { aspect-ratio: 16 / 9; }
.media-stack { position: relative; padding: 0 0 12% 0; }
.media-stack__main { width: 82%; }
.media-stack__float {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 8px solid var(--white); box-shadow: var(--shadow);
}
.media-stack__float img { width: 100%; height: 100%; object-fit: cover; }
.section--cream .media-stack__float { border-color: var(--cream); }

.waves-deco { position: absolute; color: var(--orange); opacity: .9; pointer-events: none; }

/* Sticker — a tilted badge for playful accents */
.sticker {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--white); color: var(--ink);
  padding: .7rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; line-height: 1.2;
  transform: rotate(var(--tilt, -4deg));
  transition: transform .4s var(--ease-bounce);
}
.sticker:hover { transform: rotate(0) scale(1.05); }
.sticker .icon { color: var(--orange); }

/* ---------- Home hero ---------- */
.hero { position: relative; background: var(--cream); overflow: hidden; padding-top: clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.hero__content { padding-bottom: clamp(3rem, 8vw, 7rem); align-self: center; }
.hero h1 { margin-bottom: .45em; }
.hero__lead { max-width: 33rem; }
.hero__trust { display: flex; align-items: center; gap: 1.25rem; margin-top: 2.75rem; flex-wrap: wrap; }
.hero__trust img { height: 68px; width: auto; mix-blend-mode: multiply; }
.hero__trust img + span + img { height: 58px; }
.hero__trust-divider { width: 1px; height: 40px; background: var(--line); }
.hero__art { position: relative; align-self: end; min-height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.hero__arch {
  position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1.08;
  background: var(--orange); border-radius: 999px 999px 0 0; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero__arch::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .28), transparent 60%);
}
.hero__arch .waves-deco { color: rgba(255, 255, 255, .35); width: 70%; height: auto; left: 15%; top: 4%; opacity: 1; }
.hero__duo { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; }
.hero__duo img { width: 48%; height: auto; filter: drop-shadow(0 18px 24px rgba(43, 37, 31, .25)); transform-origin: bottom center; transition: transform .5s var(--ease-bounce); }
.hero__duo img:first-child { margin-right: -7%; z-index: 1; }
.hero__duo img:hover { transform: translateY(-8px) rotate(-1.5deg); }
.hero__duo img:last-child:hover { transform: translateY(-8px) rotate(1.5deg); }
.hero .sticker--values { left: -6%; top: 22%; --tilt: -6deg; }
.hero .sticker--rewards { right: -2%; top: 8%; --tilt: 5deg; padding: .45rem; border-radius: 14px; }
.hero .sticker--rewards img { width: 120px; border-radius: 8px; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { padding-bottom: 0; }
  .hero__arch { max-width: 460px; margin-inline: auto; }
  .hero .sticker--values { left: 0; }
  .hero .sticker--rewards { right: 0; }
}
@media (max-width: 520px) {
  .hero__trust img { height: 42px; }
  .hero .sticker--values { top: 4%; font-size: .8rem; }
  .hero .sticker--rewards img { width: 92px; }
}

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--cream); overflow-x: clip; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 6rem); }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.page-hero__grid--solo { grid-template-columns: minmax(0, 860px); }
.page-hero h1 { font-size: clamp(2.4rem, 1.8rem + 2.8vw, 4.1rem); }
.page-hero__media { position: relative; }
.page-hero__media .frame { aspect-ratio: 5 / 5.4; box-shadow: var(--shadow-lg); }
.page-hero__media .waves-deco { width: 120px; right: -30px; top: -40px; }
.page-hero__cartoon { position: absolute; bottom: -2%; left: -12%; width: 38%; filter: drop-shadow(0 16px 20px rgba(43, 37, 31, .22)); z-index: 2; }
@media (max-width: 900px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__media { max-width: 520px; }
  .page-hero__cartoon { left: auto; right: -4%; }
}

.breadcrumbs { margin-bottom: 1.75rem; font-size: .88rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumbs li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.breadcrumbs a { color: var(--body); text-decoration: none; }
.breadcrumbs a:hover { color: var(--orange-text); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line); position: relative;
}
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Doctor cards — image swaps to the fun photo on hover */
.doctor-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.doctor-card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); isolation: isolate; }
.doctor-card__media { position: relative; aspect-ratio: 1 / .92; overflow: hidden; background: var(--sand); }
.doctor-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.doctor-card__media .is-alt { opacity: 0; transform: scale(1.06) rotate(1deg); }
.doctor-card:hover .doctor-card__media .is-alt, .doctor-card:focus-within .doctor-card__media .is-alt { opacity: 1; transform: none; }
.doctor-card:hover .doctor-card__media .is-main, .doctor-card:focus-within .doctor-card__media .is-main { opacity: 0; transform: scale(1.04); }
.doctor-card__hint {
  position: absolute; right: 1rem; top: 1rem; z-index: 2;
  background: rgba(255, 255, 255, .92); color: var(--ink); border-radius: 999px; padding: .35rem .75rem .35rem .45rem;
  display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600;
  transition: opacity .3s;
}
.doctor-card__hint .icon { color: var(--orange); width: 18px; height: 18px; }
.doctor-card:hover .doctor-card__hint { opacity: 0; }
.doctor-card__body { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.doctor-card__body h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: .35rem; }
.doctor-card__body p { margin-bottom: 1.5rem; }
.doctor-card__body .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .doctor-cards { grid-template-columns: 1fr; } }
@media (hover: none) { .doctor-card__hint { display: none; } }

/* Treatment cards */
.treatment-card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-xl);
  overflow: hidden; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  text-decoration: none; color: inherit; height: 100%;
}
.treatment-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.treatment-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.treatment-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.treatment-card:hover .treatment-card__media img { transform: scale(1.05); }
.treatment-card__body { padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; flex: 1; }
.treatment-card__body p { flex: 1; margin-bottom: 1.5rem; }
.treatment-card--lg .treatment-card__media { aspect-ratio: 16 / 9.5; }
.treatment-card--lg h3 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); }
.treatment-card__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2; background: var(--white); color: var(--ink);
  border-radius: 999px; padding: .3rem .8rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-display);
}
.priority-group + .priority-group { margin-top: clamp(4rem, 8vw, 6.5rem); }

/* Team cards — two photos, swaps on hover */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.team-card { text-align: center; }
.team-card__media { position: relative; aspect-ratio: 5 / 6; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden; background: var(--sand); margin-bottom: 1rem; }
.team-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.team-card__media .is-alt { opacity: 0; transform: scale(1.06); }
.team-card:hover .is-alt, .team-card:focus-within .is-alt { opacity: 1; transform: none; }
.team-card:hover .is-main { opacity: 0; }
.team-card:nth-child(3n+1) .team-card__media { background: var(--orange-100); }
.team-card h3 { font-size: 1.3rem; margin-bottom: .15rem; }
.team-card p { font-size: .92rem; color: var(--muted); font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase; }

/* Feature items (icon + title + text) */
.feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature__icon {
  flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--orange-100); color: var(--orange-text);
  transition: transform .4s var(--ease-bounce), background .3s;
}
.feature__icon .icon { width: 24px; height: 24px; }
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.06); background: var(--orange); color: var(--ink); }
.feature h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.feature p { margin: 0; }
.feature-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); border: 1px solid var(--line); height: 100%; }
.feature-card .feature__icon { margin-bottom: 1.25rem; }
.feature-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.feature-card p { margin: 0; }
.section--cream .feature-card, .section--sand .feature-card { border-color: transparent; }
.section--dark .feature__icon, .section--ink .feature__icon { background: rgba(255, 255, 255, .12); color: var(--orange-200); }
.section--dark .feature:hover .feature__icon, .section--ink .feature:hover .feature__icon { background: var(--orange); color: var(--ink); }
.feature-list { display: grid; gap: 1.75rem; }
.feature-list--divided .feature { padding-bottom: 1.75rem; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.feature-list--divided .feature:last-child { border-bottom: 0; padding-bottom: 0; }

/* Check lists */
.check-list { list-style: none; display: grid; gap: .8rem; }
.check-list li { position: relative; padding-left: 2.25rem; line-height: 1.5; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .05em; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--orange-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B34B0A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 60%;
}
.check-list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
@media (max-width: 640px) { .check-list--cols { grid-template-columns: 1fr; } }
.check-list--boxed li { background: var(--white); border-radius: 16px; padding: 1rem 1.1rem 1rem 3.25rem; border: 1px solid var(--line); }
.check-list--boxed li::before { left: 1rem; top: 1rem; }
.section--cream .check-list--boxed li, .section--sand .check-list--boxed li { border-color: transparent; }
.section--dark .check-list li::before { background-color: rgba(255, 255, 255, .15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FDD3B4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-list li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; font-weight: 500; color: var(--ink); font-size: .96rem; }

/* Callout panel */
.panel { background: var(--white); border-radius: var(--radius-xl); padding: clamp(1.75rem, 4vw, 3rem); box-shadow: var(--shadow); }
.panel--orange { background: var(--orange); color: var(--ink); box-shadow: none; }
.panel--orange h2, .panel--orange h3 { color: var(--ink); }
.panel--orange .eyebrow { color: var(--ink); }
.panel--orange .eyebrow::before { background: var(--ink); }

/* Steps / process timeline */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1rem; }
.steps--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 960px) { .steps--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .steps--grid { grid-template-columns: 1fr; } }
.step { counter-increment: step; position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 1.6rem 1.6rem 1.6rem; border: 1px solid var(--line); }
.section--cream .step, .section--sand .step { border-color: transparent; }
.step::before {
  content: counter(step, decimal-leading-zero); display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; margin-bottom: 1rem;
  background: var(--orange); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  transition: transform .4s var(--ease-bounce);
}
.step:hover::before { transform: scale(1.12) rotate(-8deg); }
.step h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.step p { margin: 0; font-size: 1rem; }
.steps--line { gap: 0; }
.steps--line .step { background: none; border: 0; border-radius: 0; padding: 0 0 2.25rem 4.25rem; }
.steps--line .step::before { position: absolute; left: 0; top: -.2rem; margin: 0; }
.steps--line .step::after { content: ""; position: absolute; left: 23px; top: 3.25rem; bottom: .5rem; width: 2px; background: repeating-linear-gradient(var(--orange-200) 0 6px, transparent 6px 12px); }
.steps--line .step:last-child { padding-bottom: 0; }
.steps--line .step:last-child::after { display: none; }

/* Phases (early treatment) */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.phase { padding: 2rem; background: var(--white); position: relative; }
.phase:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.phase:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.phase + .phase { border-left: 2px dashed var(--orange-200); }
.phase__label { font-family: var(--font-display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-text); font-weight: 600; margin-bottom: .75rem; display: block; }
.phase h3 { margin-bottom: .5rem; }
@media (max-width: 820px) {
  .phases { grid-template-columns: 1fr; }
  .phase:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .phase:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .phase + .phase { border-left: 0; border-top: 2px dashed var(--orange-200); }
}

/* ---------- FAQ (toggles) ---------- */
.faq { display: grid; gap: .75rem; }
.faq-item { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.section--cream .faq-item, .section--sand .faq-item { border-color: transparent; }
.faq-item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.3rem 1.5rem; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink); line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--orange-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B251F' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") no-repeat center / 16px;
  transition: transform .35s var(--ease), background-color .3s;
}
.faq-item[open] summary::after { transform: rotate(135deg); background-color: var(--orange); }
.faq-item summary:hover { color: var(--orange-text); }
.faq-answer { padding: 0 1.5rem 1.5rem; max-width: 70ch; }
.faq-answer p { margin: 0; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-layout__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-layout__intro img { width: 62%; max-width: 220px; margin-top: 2rem; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout__intro { position: static; } .faq-layout__intro img { display: none; } }

/* ---------- Home: intro, why choose, rewards ---------- */
.why { overflow: hidden; }
.why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.why__intro { position: relative; }
.why__intro .btn { margin-top: 1rem; }
.why__bitmoji { width: min(300px, 70%); margin-top: 2.5rem; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .25)); transform: rotate(-4deg); transition: transform .5s var(--ease-bounce); }
.why__bitmoji:hover { transform: rotate(3deg) scale(1.04); }
.why .waves-deco { width: 260px; right: -60px; top: -40px; color: rgba(255, 255, 255, .1); }
@media (max-width: 900px) { .why__grid { grid-template-columns: 1fr; } .why__bitmoji { display: none; } }

.rewards { position: relative; overflow: hidden; }
.rewards__card { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; background: var(--white); border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 4rem); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.rewards__art { position: relative; min-height: 340px; display: grid; place-items: center; }
.rewards__blob { position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; background: var(--orange-100); }
.rewards__blob::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 2px dashed var(--orange-200); }
.rewards__pass { position: absolute; width: 46%; border-radius: 14px; box-shadow: var(--shadow-lg); border: 5px solid var(--white); transition: transform .5s var(--ease-bounce); }
.rewards__pass--1 { left: 6%; top: 18%; transform: rotate(-9deg); }
.rewards__pass--2 { right: 4%; top: 40%; transform: rotate(7deg); }
.rewards__art:hover .rewards__pass--1 { transform: rotate(-3deg) translateY(-8px); }
.rewards__art:hover .rewards__pass--2 { transform: rotate(2deg) translateY(-8px); }
.rewards__bitmoji { position: absolute; width: 46%; bottom: -6%; left: 26%; z-index: 2; filter: drop-shadow(0 12px 16px rgba(43, 37, 31, .2)); }
.rewards__star { position: absolute; color: var(--orange); animation: twinkle 3s ease-in-out infinite; }
.rewards__star--1 { width: 28px; top: 4%; right: 18%; }
.rewards__star--2 { width: 18px; top: 22%; left: 4%; animation-delay: 1s; }
.rewards__star--3 { width: 22px; bottom: 18%; right: 2%; animation-delay: 2s; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.6) rotate(45deg); opacity: .5; } }
@media (max-width: 900px) { .rewards__card { grid-template-columns: 1fr; } .rewards__art { min-height: 300px; max-width: 420px; width: 100%; margin-inline: auto; } }

/* Reviews */
.reviews-embed { margin-top: clamp(2rem, 4vw, 3rem); min-height: 200px; }
.reviews-fallback { display: grid; place-items: center; text-align: center; gap: .5rem; padding: 2.5rem 1.5rem; border: 2px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.reviews-fallback .stars { display: flex; gap: .25rem; color: var(--orange); }
.reviews-fallback .stars .icon { width: 26px; height: 26px; }
.reviews-embed.is-loaded .reviews-fallback { display: none; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding-block: var(--section-y); overflow-x: clip; }
.cta-band__panel {
  position: relative; background: var(--orange); border-radius: var(--radius-xl); overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.75rem, 6vw, 5rem); display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center;
  color: var(--ink);
}
.cta-band__panel h2 { color: var(--ink); max-width: 14ch; }
.cta-band__panel p { max-width: 36rem; font-size: 1.15rem; color: #3D342B; }
.cta-band__panel .btn--primary { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); }
.cta-band__panel .btn--primary:hover { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
.cta-band__panel .btn--secondary { --btn-fg: var(--ink); --btn-bd: var(--ink); }
.cta-band__panel .btn--secondary:hover { --btn-bg: var(--ink); --btn-fg: var(--white); }
.cta-band__art { position: relative; align-self: stretch; min-height: 260px; }
.cta-band__art img { position: absolute; bottom: calc(-1 * clamp(2.5rem, 6vw, 5rem)); height: auto; filter: drop-shadow(0 18px 24px rgba(43, 37, 31, .3)); transition: transform .5s var(--ease-bounce); }
.cta-band__art img:first-child { right: 30%; width: 62%; z-index: 1; }
.cta-band__art img:last-child { right: -6%; width: 62%; }
.cta-band__art img:hover { transform: translateY(-10px); }
.cta-band__panel .waves-deco { color: rgba(255, 255, 255, .28); width: 300px; left: -80px; bottom: -120px; }
.cta-band__panel .contact-inline { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.75rem; font-weight: 600; }
.cta-band__panel .contact-inline a { color: var(--ink); display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.cta-band__panel .contact-inline a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .cta-band__panel { grid-template-columns: 1fr; }
  .cta-band__art { min-height: 300px; max-width: 360px; width: 100%; margin-inline: auto; }
}
.cta-band--simple .cta-band__panel { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.cta-band--simple .cta-band__panel h2 { max-width: 22ch; }
.cta-band--simple .btn-row { justify-content: center; }

/* ---------- Content strips (treatment sub-pages) ---------- */
.strip + .strip { margin-top: clamp(4rem, 9vw, 7.5rem); }
.strip__media .frame { aspect-ratio: 4 / 4.2; box-shadow: var(--shadow); }
.strip__media { position: relative; }
.strip__media .sticker { right: -4%; bottom: 10%; }
.strip--flip .strip__media { order: 2; }
@media (max-width: 900px) { .strip--flip .strip__media { order: 0; } .strip__media .frame { aspect-ratio: 4 / 3; } }

.note-text { font-size: .95rem; color: var(--muted); padding-left: 1rem; border-left: 3px solid var(--orange-200); }

/* Content note — copy flagged in the content doc as "to be confirmed" */
.content-note {
  display: flex; gap: .85rem; align-items: flex-start;
  background: repeating-linear-gradient(-45deg, #FFF9F3, #FFF9F3 10px, #FFF3E8 10px, #FFF3E8 20px);
  border: 1.5px dashed var(--orange); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: .95rem; color: var(--ink);
}
.content-note .icon { color: var(--orange-text); margin-top: .2rem; }
.content-note__label { display: block; font-family: var(--font-display); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-text); font-weight: 600; margin-bottom: .2rem; }

/* Sub navigation (on-page anchors) */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: .5rem; overflow-x: auto; padding-block: .85rem; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; padding: .5rem 1rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; background: var(--cream); transition: background .2s, color .2s; }
.subnav a .icon { color: var(--orange-text); width: 18px; height: 18px; }
.subnav a:hover, .subnav a.is-active { background: var(--ink); color: var(--white); }
.subnav a:hover .icon, .subnav a.is-active .icon { color: var(--orange); }

/* Emergency cards */
.emergency-grid .feature-card { border-top: 4px solid var(--orange); }
.alert-card { background: var(--ink); color: rgba(255, 255, 255, .85); }
.alert-card h3 { color: var(--white); }
.alert-card .feature__icon { background: var(--orange); color: var(--ink); }

/* Logos / badges row */
.badge-row { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.badge-row img { height: 72px; width: auto; mix-blend-mode: multiply; }
.badge-tile { background: var(--white); border-radius: var(--radius); padding: 1rem 1.5rem; display: grid; place-items: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: .85rem; }
.info-item { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; background: var(--white); border-radius: var(--radius); text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
a.info-item:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); color: var(--ink); }
.info-item .feature__icon { width: 46px; height: 46px; border-radius: 14px; }
.info-item small { display: block; font-family: var(--font-display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.info-item span { font-weight: 600; line-height: 1.4; }
.hours { margin: 0; display: grid; gap: .1rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 600; color: var(--ink); }
.hours dd { margin: 0; }
.hours div.is-today dt, .hours div.is-today dd { color: var(--orange-text); }
.hours div.is-today dt::after { content: " • Today"; font-weight: 500; font-size: .85em; }
.map-frame { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 7; background: var(--sand); box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 700px) { .map-frame { aspect-ratio: 4 / 3.5; } }
.social-row { display: flex; gap: .75rem; }
.social-row a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); transition: background .25s, transform .3s var(--ease-bounce); }
.social-row a:hover { background: var(--orange); color: var(--ink); transform: rotate(-8deg) scale(1.06); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius-xl); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); position: relative; }
.form { display: grid; gap: 1.25rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-section-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); margin: .75rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: .65rem; }
.form-section-title:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section-title .num { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--ink); display: inline-grid; place-items: center; font-size: .9rem; }
.field { display: grid; gap: .45rem; }
.field label, .field legend { font-weight: 600; color: var(--ink); font-size: .95rem; padding: 0; }
.req { color: var(--orange-text); margin-left: .15rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid transparent; border-radius: 14px; padding: .85rem 1rem; min-height: 52px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371685A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.75rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--orange-200); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: var(--white); box-shadow: 0 0 0 4px rgba(244, 125, 48, .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); background: #FFF6F5; }
.field__error { color: var(--error); font-size: .85rem; font-weight: 500; display: none; }
.field.has-error .field__error { display: block; }
.field__hint { font-size: .85rem; color: var(--muted); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .2rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.1rem; border-radius: 999px; background: var(--cream); border: 1.5px solid transparent; font-weight: 500; color: var(--ink); cursor: pointer; transition: all .2s; }
.choice span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--taupe); transition: all .2s; }
.choice input:checked + span { background: var(--orange-100); border-color: var(--orange); }
.choice input:checked + span::before { border-color: var(--orange-text); background: var(--orange-text); box-shadow: inset 0 0 0 3px var(--orange-100); }
.choice input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.file-drop { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border: 2px dashed var(--orange-200); border-radius: 16px; background: var(--orange-50); cursor: pointer; transition: border-color .2s, background .2s; }
.file-drop:hover { border-color: var(--orange); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .feature__icon { width: 46px; height: 46px; }
.file-drop strong { display: block; }
.file-drop small { color: var(--muted); }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .5rem; }
.form-footer p { margin: 0; font-size: .92rem; color: var(--muted); max-width: 32rem; display: flex; gap: .5rem; align-items: center; }
.form-footer p .icon { color: var(--orange-text); }
.form-success { display: none; text-align: center; padding: clamp(2rem, 5vw, 3rem) 1rem; }
.form-success img { width: 160px; margin: 0 auto 1.25rem; }
.form-success h3 { margin-bottom: .5rem; }
.form-card.is-sent .form { display: none; }
.form-card.is-sent .form-success { display: block; animation: pop .6s var(--ease-bounce); }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.hp { position: absolute !important; left: -9999px !important; }

/* ---------- Bio page ---------- */
.bio-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.bio-aside { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1.5rem; }
.bio-photo { position: relative; }
.bio-photo .frame { aspect-ratio: 5 / 5.6; box-shadow: var(--shadow-lg); }
.bio-photo .frame img { object-position: center 15%; transition: opacity .6s var(--ease); }
.bio-photo .frame .is-alt { position: absolute; inset: 0; opacity: 0; }
.bio-photo:hover .frame .is-alt { opacity: 1; }
.bio-photo__cartoon { position: absolute; width: 42%; right: -10%; bottom: -8%; filter: drop-shadow(0 16px 20px rgba(43, 37, 31, .25)); transition: transform .5s var(--ease-bounce); }
.bio-photo:hover .bio-photo__cartoon { transform: translateY(-8px) rotate(3deg); }
.bio-quicklinks { display: grid; gap: .75rem; }
.bio-body { font-size: 1.1rem; }
.bio-body p:first-of-type::first-letter { font-family: var(--font-display); float: left; font-size: 4.2em; line-height: .82; padding: .08em .12em 0 0; color: var(--orange); font-weight: 600; }
.other-doc { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem; border-radius: var(--radius-lg); background: var(--cream); text-decoration: none; color: var(--ink); margin-top: 3rem; transition: background .3s; }
.other-doc:hover { background: var(--orange-100); color: var(--ink); }
.other-doc img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center 15%; background: var(--white); }
.other-doc small { display: block; font-family: var(--font-display); letter-spacing: .16em; text-transform: uppercase; font-size: .72rem; color: var(--orange-text); }
.other-doc strong { font-family: var(--font-display); font-size: 1.4rem; }
.other-doc .icon { margin-left: auto; width: 28px; height: 28px; color: var(--orange-text); }
@media (max-width: 900px) { .bio-grid { grid-template-columns: 1fr; } .bio-aside { position: static; max-width: 480px; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: rgba(255, 255, 255, .72); padding-top: clamp(4rem, 8vw, 6rem); overflow: hidden; font-size: .97rem; }
.site-footer__waves { position: absolute; right: -40px; top: -30px; width: 280px; height: 280px; color: rgba(244, 125, 48, .14); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; gap: clamp(2rem, 4vw, 3.5rem); position: relative; }
.site-footer__logo img { width: 250px; margin-bottom: 1.5rem; }
.site-footer__brand p { max-width: 26rem; }
.site-footer__heading { font-family: var(--font-display); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); font-weight: 600; margin-bottom: 1.25rem; }
.site-footer__col ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.site-footer__col ul a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.site-footer__contact address { display: grid; gap: .7rem; margin-bottom: 1.5rem; }
.site-footer__contact address a { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.5; }
.site-footer__contact .icon { color: var(--orange); margin-top: .2rem; width: 17px; height: 17px; }
.hours--footer div { border-color: rgba(255, 255, 255, .12); padding: .35rem 0; font-size: .92rem; }
.hours--footer dt { color: var(--white); }
.site-footer__social { display: flex; gap: .6rem; margin: 1.5rem 0; }
.site-footer__social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .25s, transform .3s var(--ease-bounce); }
.site-footer__social a:hover { background: var(--orange); color: var(--ink); transform: rotate(-8deg); }
.site-footer__portals { display: flex; flex-wrap: wrap; gap: .6rem; }
.site-footer .btn--light { color: var(--ink); }
.site-footer .btn--ghost-light:hover { color: var(--ink); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.75rem; margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.site-footer__bottom p { margin: 0; }
.back-to-top { display: inline-flex; align-items: center; gap: .4rem; }
.back-to-top .icon { transform: rotate(-90deg); width: 16px; height: 16px; color: var(--orange); }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal="left"] { transform: translateX(-32px); }
.js [data-reveal="right"] { transform: translateX(32px); }
.js [data-reveal="pop"] { transform: scale(.9); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .smile::after { clip-path: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Gentle idle float for illustrations */
.float { animation: float 6s ease-in-out infinite; }
.float--delay { animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.wiggle:hover { animation: wiggle .6s ease-in-out; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

/* ---------- Load-in animation for above-the-fold content ---------- */
.anim-in { animation: rise .95s var(--ease) both; animation-delay: var(--delay, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- About ---------- */
.page-hero--about .page-hero__grid { align-items: end; grid-template-columns: 1.15fr .85fr; }
.page-hero--about { padding-bottom: clamp(4rem, 8vw, 7rem); }
.about-pano { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); }
.about-pano .frame { aspect-ratio: 3 / 1; box-shadow: var(--shadow-lg); }
.about-pano .frame img { object-position: center 40%; }
.about-pano__bitmoji { position: absolute; right: 3%; top: -96px; width: 150px; z-index: 2; filter: drop-shadow(0 12px 14px rgba(43, 37, 31, .2)); }
@media (max-width: 900px) {
  .page-hero--about .page-hero__grid { grid-template-columns: 1fr; }
  .about-pano .frame { aspect-ratio: 16 / 9; }
  .about-pano__bitmoji { width: 110px; top: -70px; }
}
.tech-media { position: relative; max-width: 520px; margin-left: auto; }
.tech-media__badges {
  position: absolute; left: -12%; bottom: 8%; display: flex; gap: .75rem; align-items: center;
  background: var(--white); border-radius: var(--radius); padding: .85rem 1.1rem; box-shadow: var(--shadow-lg); transform: rotate(-3deg);
}
.tech-media__badges img { height: 70px; width: auto; }
.tech-media__badges img + img { height: 56px; }
@media (max-width: 900px) { .tech-media { margin-inline: auto; } .tech-media__badges { left: 4%; } }

/* ---------- Bio ---------- */
.page-hero--bio { padding-bottom: clamp(4rem, 8vw, 7rem); }
.page-hero--bio h1 { margin-bottom: 1.5rem; }
.bio-photo .frame { aspect-ratio: 5 / 5.8; }

/* ---------- Treatment pages ---------- */
.badge-float { position: absolute; left: -8%; bottom: 6%; width: 120px; background: var(--white); border-radius: 22px; padding: .9rem; box-shadow: var(--shadow-lg); transform: rotate(-6deg); z-index: 2; transition: transform .5s var(--ease-bounce); }
.badge-float:hover { transform: rotate(0) scale(1.05); }
@media (max-width: 900px) { .badge-float { left: auto; right: 4%; width: 96px; } }
.feature-card--note { background: transparent !important; border: 2px dashed var(--orange-200) !important; display: flex; align-items: center; font-size: .98rem; color: var(--body); }
.cta-band__panel .eyebrow { color: var(--ink); }
.cta-band__panel .eyebrow::before { background: var(--ink); }
.strip__lead-list { margin-top: 1.5rem; }
.list-intro { font-weight: 600; color: var(--ink); margin: 1.5rem 0 1rem; }
.media-card { background: var(--white); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); }
.media-card .frame { border-radius: 0; aspect-ratio: 16 / 10; }
.media-card__body { padding: clamp(1.5rem, 3vw, 2.25rem); }
.type-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); height: 100%; border-top: 5px solid var(--orange); }
.type-card h3 { margin-bottom: .75rem; }
.type-card p { font-size: 1rem; }
.section--cream .type-card, .section--sand .type-card { box-shadow: var(--shadow-sm); }

/* ---------- Utility page layouts (contact, book, referrals, reviews, patient corner) ---------- */
.page-hero--compact { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero--compact .container { position: relative; }
.contact-hero__bitmoji { position: absolute; right: var(--gutter); bottom: calc(-1 * clamp(2.5rem, 5vw, 4rem)); width: clamp(120px, 16vw, 210px); }
@media (max-width: 700px) { .contact-hero__bitmoji { display: none; } }
.form-footer--end { justify-content: flex-end; }
.form-card__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: 1.5rem; }
.hours-card { margin-top: 1.5rem; padding: clamp(1.4rem, 3vw, 2rem); box-shadow: none; border: 1px solid var(--line); }
.hours-card h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; margin-bottom: .75rem; }
.hours-card h3 .icon { color: var(--orange-text); }
.social-block { margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--cream); }
.social-block h3 { font-size: 1.15rem; margin: 0; }

.form-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.form-layout__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.help-card { margin-top: 2rem; box-shadow: none; }
.help-card h3 { margin-bottom: .5rem; }
.form-layout--book { grid-template-columns: 1.25fr .75fr; }
.book-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.book-aside__art { position: relative; height: 300px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: var(--radius-xl) var(--radius-xl) 0 0; margin-bottom: 1rem; }
.book-aside__blob { position: absolute; inset: 18% 6% 0; background: var(--orange); border-radius: 999px 999px 0 0; }
.book-aside__blob::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .3), transparent 60%); border-radius: inherit; }
.book-aside__art img { position: relative; width: 62%; filter: drop-shadow(0 14px 20px rgba(43, 37, 31, .25)); }
.book-aside .hours-card { background: var(--cream); border: 0; }
@media (max-width: 960px) {
  .form-layout, .form-layout--book { grid-template-columns: 1fr; }
  .form-layout__intro, .book-aside { position: static; }
  .book-aside__art { display: none; }
}

.reviews-hero-art { display: flex; justify-content: center; }
.reviews-hero-art__arch { max-width: 460px; }
.reviews-hero-art__bubble { position: absolute; z-index: 3; background: var(--white); border-radius: 999px; box-shadow: var(--shadow); display: grid; place-items: center; animation: float 6s ease-in-out infinite; }
.reviews-hero-art__bubble--1 { top: 8%; left: -2%; padding: .8rem 1.1rem; }
.reviews-hero-art__bubble--1 .stars { display: flex; gap: .2rem; color: var(--orange); }
.reviews-hero-art__bubble--1 .icon { width: 22px; height: 22px; }
.reviews-hero-art__bubble--2 { width: 64px; height: 64px; right: 0; top: 30%; color: var(--orange); animation-delay: -2s; }
.reviews-hero-art__bubble--3 { width: 56px; height: 56px; left: 6%; bottom: 22%; color: var(--orange-text); animation-delay: -4s; }
.reviews-hero-art__bubble .icon { width: 28px; height: 28px; }
.reviews-hero-art__bubble--2 .icon { fill: currentColor; }

.feature-card--art { background: transparent !important; border: 0 !important; display: grid; place-items: center; padding: 0; }
.feature-card--art img { width: min(260px, 90%); filter: drop-shadow(0 14px 18px rgba(43, 37, 31, .18)); transform: rotate(-4deg); transition: transform .5s var(--ease-bounce); }
.feature-card--art:hover img { transform: rotate(3deg) scale(1.04); }
@media (max-width: 680px) { .feature-card--art { display: none; } }
.care-bitmoji { width: min(280px, 70%); margin-top: 2rem; filter: drop-shadow(0 14px 18px rgba(43, 37, 31, .18)); }
@media (max-width: 900px) { .care-bitmoji { display: none; } }
.renew-art { display: grid; place-items: center; position: relative; }
.renew-art::before { content: ""; position: absolute; width: min(360px, 80%); aspect-ratio: 1; border-radius: 50%; background: var(--orange-100); }
.renew-art img { position: relative; width: min(280px, 70%); }
@media (max-width: 900px) { .renew-art { display: none; } }
.process-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.process-intro img { width: min(220px, 55%); margin-top: 2rem; filter: drop-shadow(0 14px 18px rgba(43, 37, 31, .18)); }
@media (max-width: 900px) { .process-intro { position: static; } .process-intro img { display: none; } }
.steps--line .step p + p { margin-top: .6rem; }
.steps--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .steps--five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .steps--five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps--five { grid-template-columns: 1fr; } }
.steps--compact .step { padding-bottom: 1.25rem; padding-left: 3.6rem; min-height: 40px; }
.steps--compact .step::before { width: 38px; height: 38px; font-size: .85rem; top: -.35rem; }
.steps--compact .step::after { left: 18px; top: 2.4rem; }
.steps--compact .step p { color: var(--ink); font-weight: 500; }
.phases--cream .phase { background: var(--cream); }
.first-visit__photo { margin-top: 2rem; box-shadow: var(--shadow); }
.policy-item summary::after { background-color: var(--cream); }
.panel .content-note, .rewards__card .content-note { margin-top: 1.25rem; }
.section--sand .panel { box-shadow: var(--shadow-sm); }
@media (max-width: 560px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .9rem; }
  .team-card h3 { font-size: 1.1rem; }
  .team-card p { font-size: .72rem; letter-spacing: .06em; }
}
