@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* =====================================================================
   Tooth Doctor LA — brand design system.
   Single source of truth for the site's look; issa-home.css just imports it.

   Load order matters: @dental/core's <head> injects Bootstrap FIRST, then this
   file, then the shared dental `responsive.css`. So:
     · the "neutralize Bootstrap" block below undoes Bootstrap Reboot defaults;
     · almost everything here is class-based (`.wrap`, not `.container`) so the
       shared dental CSS can't reach it. Bare p/h1..h4 sizes are re-asserted in
       Layout.astro's global <style>, which Astro bundles AFTER responsive.css.

   Palette + type come from the client's brand: cream #FDF4EC, tan #E0CDBC,
   sage #BDCAB8, black ink, Albert Sans headings / Manrope body, 3px radii.
   ===================================================================== */

:root {
  --cream: #fdf4ec;
  --cream-deep: #f7ebdf;
  --tan: #e0cdbc;
  --tan-soft: #ecdccf;
  --sage: #bdcab8;
  --sage-deep: #a7b8a1;
  --ink: #000000;
  --ink-soft: #3a352f;
  --ink-mute: #70675e;
  --white: #ffffff;
  --line: #ded0c2;
  --line-soft: #ebe0d5;

  --font-head: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type scale — h1/h2 land on the brand's 58px at desktop. */
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  --t-lg: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
  --t-xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.375rem);
  --t-2xl: clamp(2rem, 1.35rem + 2.6vw, 3.625rem); /* 58px */

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6.5rem;

  --wrap: 1240px;
  --wrap-narrow: 820px;
  --r: 3px;
  --r-lg: 6px;
  --shadow-s: 0 1px 2px rgba(58, 53, 47, 0.05), 0 6px 18px rgba(58, 53, 47, 0.06);
  --shadow-m: 0 18px 44px rgba(58, 53, 47, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Header is two tiers: --topbar-h (utility bar, collapses on scroll) above
     --header-h (main bar, always sticky). Anchor offsets use the main bar. */
  --topbar-h: 42px;
  --header-h: 88px;
}

/* --- neutralize Bootstrap Reboot / grid defaults we don't want -------------- */
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
a { text-decoration: none; color: inherit; }
button { background: none; border: 0; padding: 0; color: inherit; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); }
p { text-wrap: pretty; }

::selection { background: var(--sage); color: var(--ink); }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* --- layout helpers -------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.wrap--narrow { max-width: var(--wrap-narrow); }
.sec { padding-block: var(--sp-8); }
@media (min-width: 992px) { .sec { padding-block: var(--sp-9); } }
.sec--tight { padding-block: var(--sp-7); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 999;
  background: var(--ink); color: var(--cream); padding: 0.7rem 1.2rem;
  border-radius: var(--r); transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* --- eyebrow / lede ------------------------------------------------------- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--sp-3);
}
.lede { font-size: var(--t-md); color: var(--ink-mute); line-height: 1.75; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.9rem;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--light { border-color: var(--cream); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--ink); }
.btn--sage { background: var(--sage); border-color: var(--sage); color: var(--ink); }
.btn--sage:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--sm { padding: 0.8rem 1.35rem; letter-spacing: 0.12em; }

/* --- scroll reveal (replaces the old site's AOS) -------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal='left'] { transform: translateX(-24px); }
[data-reveal='right'] { transform: translateX(24px); }
[data-reveal='in'] { transform: none; }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* =====================================================================
   Header — two tiers, like the practice's own: a utility bar (book + phone)
   above the main bar (square logo + nav). The whole thing is sticky, and the
   utility bar collapses away once scrolled so only the main bar follows you.
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.site-header[data-scrolled] {
  border-bottom-color: var(--line-soft);
  background: rgba(253, 244, 236, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 12px rgba(58, 53, 47, 0.05);
}

/* --- utility bar --- */
.topbar {
  background: var(--tan);
  overflow: hidden;
  max-height: var(--topbar-h);
  transition: max-height 0.35s var(--ease), opacity 0.3s var(--ease);
}
.site-header[data-scrolled] .topbar { max-height: 0; opacity: 0; }
.topbar__inner { display: flex; align-items: center; justify-content: flex-end; min-height: var(--topbar-h); }
.topbar__buttons { display: flex; align-items: stretch; gap: 0; }
.topbar__btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0 clamp(0.7rem, 2vw, 1.2rem);
  min-height: var(--topbar-h);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.topbar__btn + .topbar__btn { border-left: 1px solid rgba(58, 53, 47, 0.22); }
.topbar__btn:hover { background: var(--ink); color: var(--cream); }
.topbar__icon { display: grid; place-items: center; }
.topbar__icon svg { display: block; }

/* --- main bar --- */
.headerbar {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}
.brand { flex: 0 0 auto; display: block; }
.brand img {
  height: clamp(46px, 5.2vw, 62px);
  width: auto;
  object-fit: contain;
  transition: height 0.3s var(--ease);
}
.site-header[data-scrolled] .brand img { height: clamp(42px, 4.4vw, 52px); }

.nav { margin-left: auto; display: flex; align-items: center; gap: var(--sp-5); }
.nav__list { display: flex; align-items: center; gap: clamp(0.9rem, 1.6vw, 1.85rem); }
.nav__link {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; }

/* --- Services mega-menu -----------------------------------------------------
   One-pager: every item is an in-page anchor to a treatment card, so this is a
   flat 3-column list rather than a nested site tree. Opens on hover/focus at
   desktop widths; the chevron button drives it for touch + keyboard, and inside
   the mobile drawer the chevron is the only control. */
.nav__item { position: relative; }
.nav__row { display: inline-flex; align-items: center; gap: 0.3rem; }
.nav__chev {
  display: grid; place-items: center;
  width: 20px; height: 20px; color: var(--ink-mute);
  transition: transform 0.3s var(--ease), color 0.25s var(--ease);
}
.nav__item:hover .nav__chev, .nav__item[data-submenu-open] .nav__chev { color: var(--ink); }
.nav__item[data-submenu-open] .nav__chev { transform: rotate(180deg); }

.nav__mega {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 70;
  width: min(940px, calc(100vw - 3rem));
  padding: var(--sp-6);
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  box-shadow: var(--shadow-m);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
/* Invisible bridge so the pointer can travel from the link into the panel. */
.nav__item--has-children::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 100%; height: 0.7rem;
}
.nav__item--has-children:hover .nav__mega,
.nav__item--has-children:focus-within .nav__mega,
.nav__item--has-children[data-submenu-open] .nav__mega {
  opacity: 1; visibility: visible; transform: none;
}
/* Three specialty columns, then a full-width footer strip. */
.nav__mega-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5) var(--sp-6);
}
.nav__cat + .nav__cat { border-left: 1px solid var(--line-soft); padding-left: var(--sp-6); }
.nav__cat-title {
  display: flex; align-items: center; gap: 0.55rem;
  margin-bottom: var(--sp-3); padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-body);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); line-height: 1.3;
}
.nav__cat-title img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }

.nav__sublink {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.42rem 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.nav__sublink:hover { color: var(--ink); padding-left: 0.3rem; }
.nav__ext { flex: 0 0 auto; opacity: 0.55; }

.nav__mega-foot {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
}
.nav__mega-foot p { font-size: 0.875rem; color: var(--ink-mute); }
.nav__mega-foot strong { color: var(--ink); font-weight: 700; }

@media (max-width: 1199px) {
  .nav__list { gap: 1rem; }
  .nav__link { font-size: 0.8125rem; }
}
@media (max-width: 991px) {
  .nav__toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-left: auto;
    border: 1px solid var(--line); border-radius: var(--r);
  }
  .nav__toggle span {
    display: block; width: 20px; height: 1.5px; background: var(--ink);
    position: relative; transition: background-color 0.2s var(--ease);
  }
  .nav__toggle span::before, .nav__toggle span::after {
    content: ''; position: absolute; left: 0; width: 20px; height: 1.5px;
    background: var(--ink); transition: transform 0.3s var(--ease), top 0.3s var(--ease);
  }
  .nav__toggle span::before { top: -6px; }
  .nav__toggle span::after { top: 6px; }
  .nav[data-open] .nav__toggle span { background: transparent; }
  .nav[data-open] .nav__toggle span::before { top: 0; transform: rotate(45deg); }
  .nav[data-open] .nav__toggle span::after { top: 0; transform: rotate(-45deg); }

  .nav { margin-left: auto; gap: var(--sp-3); }
  .nav__panel {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--cream);
    border-top: 1px solid var(--line-soft);
    padding: var(--sp-5) clamp(1.25rem, 5vw, 2.5rem) var(--sp-6);
    display: grid;
    gap: var(--sp-4);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav[data-open] .nav__panel { opacity: 1; transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line-soft); }
  .nav__link { display: block; padding: 0.9rem 0; font-size: 1rem; }
  .nav__link::after { display: none; }
  .nav__panel .btn { width: 100%; }

  /* Services collapses inline inside the drawer instead of floating. */
  .nav__row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .nav__chev { width: 40px; height: 40px; }
  .nav__mega {
    position: static; width: auto; translate: none; transform: none;
    padding: 0 0 var(--sp-4);
    background: none; border: 0; box-shadow: none;
    display: none; opacity: 1; visibility: visible;
  }
  /* Hover must NOT open it on touch — only the chevron does. */
  .nav__item--has-children:hover .nav__mega,
  .nav__item--has-children:focus-within .nav__mega { display: none; }
  .nav__item--has-children[data-submenu-open] .nav__mega { display: block; }
  .nav__item--has-children::after { display: none; }
  .nav__mega-cols { grid-template-columns: 1fr; gap: var(--sp-5); }
  .nav__cat + .nav__cat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: var(--sp-4); }
  .nav__sublink { padding: 0.5rem 0 0.5rem 0.9rem; font-size: 0.9375rem; border-left: 1px solid var(--line-soft); }
  .nav__sublink:hover { padding-left: 1.1rem; border-left-color: var(--ink); }
  .nav__mega-foot { flex-direction: column; align-items: stretch; text-align: left; }

  /* Utility bar stays visible on mobile (it holds the two primary actions) and
     the drawer sits below the main bar only. */
  .site-header[data-scrolled] .topbar { max-height: var(--topbar-h); opacity: 1; }
  .topbar__inner { justify-content: center; }
  .topbar__btn { flex: 1; justify-content: center; font-size: 0.625rem; letter-spacing: 0.1em; }
  .nav__panel { inset: calc(var(--topbar-h) + var(--header-h)) 0 auto 0; max-height: calc(100dvh - var(--topbar-h) - var(--header-h)); }
}
@media (max-width: 420px) {
  /* Only the icons + the number fit at this width; the booking label shortens. */
  .topbar__btn { padding-inline: 0.6rem; }
}

/* Brief highlight on the treatment card a Services menu item points at, so the
   jump is legible once the carousel has slid to it. */
.treat__slide.is-target .treat__card {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--sage), var(--shadow-m);
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero { background: var(--cream); }
.hero__grid { display: grid; }
@media (min-width: 768px) { .hero__grid { grid-template-columns: 1fr 1fr; } }
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-6);
  padding: var(--sp-8) clamp(1.25rem, 5vw, 4.5rem);
}
@media (min-width: 768px) {
  .hero__text { padding-block: clamp(3.5rem, 7vw, 7rem); min-height: 60vh; }
}
.hero__title { font-size: var(--t-2xl); max-width: 15ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__media { position: relative; min-height: 320px; }
.hero__media img {
  width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: center;
}
@media (min-width: 768px) { .hero__media, .hero__media img { min-height: 100%; } }

/* =====================================================================
   Intro + accreditation logos
   ===================================================================== */
.intro { background: var(--white); }
.intro__head { max-width: 62rem; margin-inline: auto; text-align: center; }
.intro__head p { margin-top: var(--sp-5); color: var(--ink-mute); }
.intro__head p + p { margin-top: var(--sp-4); }
.accred {
  margin-top: var(--sp-8);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6) var(--sp-5);
  align-items: center;
  justify-items: center;
}
@media (min-width: 768px) { .accred { grid-template-columns: repeat(4, 1fr); } }
.accred a { display: block; transition: transform 0.4s var(--ease), opacity 0.4s var(--ease); }
.accred a:hover { transform: translateY(-4px); }
.accred img { max-height: 96px; width: auto; object-fit: contain; }

/* =====================================================================
   Doctors
   ===================================================================== */
.docs { position: relative; background: var(--cream-deep); overflow: hidden; }
.docs__grid { display: grid; }
@media (min-width: 992px) { .docs__grid { grid-template-columns: 1fr 1fr; } }
.docs__text {
  padding: var(--sp-8) clamp(1.25rem, 5vw, 4.5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.docs__name { margin-bottom: var(--sp-5); }
.docs__bio p { color: var(--ink-mute); }
.docs__bio p + p { margin-top: var(--sp-4); }
.docs__more { margin-top: var(--sp-4); display: grid; gap: var(--sp-4); }
.docs__more[hidden] { display: none; }
.docs__toggle {
  margin-top: var(--sp-4);
  align-self: flex-start;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.docs__actions { margin-top: var(--sp-6); }
.docs__media { position: relative; min-height: 380px; background: var(--tan-soft); }
.docs__media img {
  width: 100%; height: 100%; min-height: 380px; object-fit: cover; object-position: top center;
}
@media (min-width: 992px) { .docs__media, .docs__media img { min-height: 100%; } }

.docs__slide { display: none; }
.docs__slide.is-active { display: block; }
.docs__nav {
  margin-top: var(--sp-6);
  display: flex; align-items: center; gap: var(--sp-4);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-4);
}
.docs__count { font-size: var(--t-sm); color: var(--ink-mute); letter-spacing: 0.06em; }
.docs__arrows { margin-left: auto; display: flex; align-items: center; gap: var(--sp-3); }
.docs__arrows button, .docs__dots button { transition: opacity 0.25s var(--ease); }
.docs__arrows button {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.docs__arrows button:hover { opacity: 0.55; }
.docs__arrows span { color: var(--line); }
.docs__dots { display: flex; gap: 0.4rem; }
.docs__dots button { width: 26px; height: 2px; background: var(--line); }
.docs__dots button[aria-current='true'] { background: var(--ink); }

/* =====================================================================
   Before / after
   ===================================================================== */
.ba { background: var(--white); }
.ba__head { max-width: 46rem; }
.ba__head p { margin-top: var(--sp-4); color: var(--ink-mute); }

.rail {
  display: flex;
  gap: var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: var(--sp-2);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }

.rail-shell { position: relative; margin-top: var(--sp-7); }
.rail-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 5;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--cream); color: var(--ink);
  border: 1px solid var(--line); border-radius: 50%;
  box-shadow: var(--shadow-s);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.rail-nav:hover { background: var(--ink); color: var(--cream); }
.rail-nav[disabled] { opacity: 0.25; pointer-events: none; }
.rail-nav--prev { left: -12px; }
.rail-nav--next { right: -12px; }
@media (max-width: 767px) { .rail-nav { display: none; } }

.rail-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: var(--sp-5); }
.rail-dots button { width: 22px; height: 2px; background: var(--line); }
.rail-dots button[aria-current='true'] { background: var(--ink); }

.ba__slide { width: min(88vw, 620px); }
.ba__title { font-size: var(--t-md); margin-bottom: var(--sp-3); }
.ba__frame {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--cream-deep);
  user-select: none;
  touch-action: pan-y;
}
.ba__frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.ba__frame img.is-after { clip-path: inset(0 0 0 50%); }
.ba__tag {
  position: absolute; top: var(--sp-3); z-index: 3;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(253, 244, 236, 0.92); color: var(--ink);
  padding: 0.35rem 0.7rem; border-radius: var(--r);
}
.ba__tag--before { left: var(--sp-3); }
.ba__tag--after { right: var(--sp-3); }
.ba__divider {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 4;
  width: 2px; background: var(--white); translate: -1px 0; pointer-events: none;
}
.ba__handle {
  position: absolute; top: 50%; left: 50%; z-index: 5;
  translate: -50% -50%;
  width: 41px; height: 41px;
  display: grid; place-items: center;
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--shadow-s);
  pointer-events: none;
}
.ba__range {
  position: absolute; inset: 0; z-index: 6;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.ba__range::-moz-range-thumb { width: 44px; height: 100%; border: 0; }

/* =====================================================================
   Treatments
   ===================================================================== */
.treat { background: var(--cream); }
.treat__head { text-align: center; }
.treat__slide { width: min(84vw, 340px); }
.treat__card {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.treat__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: var(--tan); }
.treat__card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.treat__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.treat__icon {
  width: 44px; height: 44px; object-fit: contain; object-position: left center;
}
.treat__card h3 { font-size: var(--t-md); }
.treat__card p { font-size: 0.9375rem; line-height: 1.65; color: var(--ink-mute); }

/* =====================================================================
   Insurance & financing
   ===================================================================== */
.res { background: var(--sage); }
.res .eyebrow, .res h2 { color: var(--ink); }
.res__grid { margin-top: var(--sp-7); display: grid; gap: var(--sp-5); }
@media (min-width: 768px) { .res__grid { grid-template-columns: repeat(2, 1fr); } }
.res__card {
  background: var(--cream);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-s);
}
.res__card img.res__photo { width: 100%; aspect-ratio: 468 / 327; object-fit: cover; }
.res__body { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); flex: 1; }
.res__title { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--t-lg); }
.res__title img { width: 40px; height: 40px; object-fit: contain; }
.res__body p { color: var(--ink-mute); }
.res__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* =====================================================================
   FAQs
   ===================================================================== */
.faq { background: var(--white); }
.faq__grid { display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 992px) { .faq__grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-8); } }
.faq__intro p { margin-top: var(--sp-4); color: var(--ink-mute); }
.faq__intro .btn { margin-top: var(--sp-6); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__item:first-child { border-top: 1px solid var(--line-soft); }
.faq__q { width: 100%; }
.faq__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0;
  text-align: left;
  font-family: var(--font-head);
  font-size: var(--t-md);
  font-weight: 400;
  color: var(--ink);
  transition: opacity 0.25s var(--ease);
}
.faq__btn:hover { opacity: 0.65; }
.faq__icon { flex: 0 0 auto; display: grid; place-items: center; }
.faq__icon .v { transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); transform-origin: center; }
.faq__btn[aria-expanded='true'] .faq__icon .v { transform: scaleY(0); opacity: 0; }
.faq__a { overflow: hidden; }
.faq__a p { padding-bottom: var(--sp-5); color: var(--ink-mute); max-width: 62ch; }

/* =====================================================================
   Promotions
   ===================================================================== */
.promo { background: var(--tan-soft); }
.promo__slide { width: min(84vw, 370px); }
.promo__card {
  background: var(--cream);
  border-radius: var(--r);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-s);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.promo__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.promo__card img.promo__photo { width: 100%; aspect-ratio: 369 / 308; object-fit: cover; }
.promo__title {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-5);
  font-size: var(--t-md);
}
.promo__title img { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }
@media (min-width: 992px) {
  .promo__rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); overflow: visible; }
  .promo__slide { width: auto; }
}

/* =====================================================================
   Mission
   ===================================================================== */
.mission { position: relative; isolation: isolate; color: var(--cream); }
.mission__bg { position: absolute; inset: 0; z-index: -2; }
.mission__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mission::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.12) 100%);
}
.mission__inner { padding-block: clamp(4rem, 12vw, 9rem); }
.mission__text { max-width: 34rem; }
.mission__text .eyebrow { color: var(--tan); }
.mission__text h2 { color: var(--cream); }
.mission__text p { margin-top: var(--sp-5); color: rgba(253, 244, 236, 0.86); font-size: var(--t-md); }
.mission__text .btn { margin-top: var(--sp-6); }

/* =====================================================================
   Video testimonials
   ===================================================================== */
.vids { background: var(--cream); }
.vids__head { text-align: center; max-width: 48rem; margin-inline: auto; }
.vids__head p { margin-top: var(--sp-4); color: var(--ink-mute); }
.vids__slide { width: min(88vw, 560px); }
.vids__card {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.vids__media { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.vids__media video { width: 100%; height: 100%; object-fit: cover; }
.vids__play {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; gap: var(--sp-2);
  color: var(--cream);
  background: rgba(0, 0, 0, 0.22);
  transition: background-color 0.35s var(--ease);
}
.vids__play:hover { background: rgba(0, 0, 0, 0.42); }
.vids__play-inner { display: grid; justify-items: center; gap: var(--sp-3); }
.vids__play span {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.vids__play svg { transition: transform 0.4s var(--ease); }
.vids__play:hover svg { transform: scale(1.06); }
.vids__body { padding: var(--sp-5) var(--sp-5) var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); flex: 1; }
.vids__quote { color: var(--ink-soft); font-size: var(--t-base); }
.vids__name { margin-top: auto; font-size: var(--t-sm); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }

/* =====================================================================
   Google reviews
   ===================================================================== */
.rev { background: var(--white); }
.rev__head { text-align: center; }
.rev__slide { width: min(84vw, 360px); }
.rev__card {
  height: 100%;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.rev__top { display: flex; align-items: center; gap: var(--sp-3); }
.rev__name { font-family: var(--font-head); font-size: var(--t-md); color: var(--ink); }
.rev__stars { display: flex; gap: 2px; }
.rev__text { font-size: 0.9375rem; line-height: 1.7; color: var(--ink-mute); }
.rev__text.is-clamped {
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.rev__more {
  align-self: flex-start; margin-top: auto;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); color: var(--ink);
}

/* =====================================================================
   Instagram
   ===================================================================== */
.ig { background: var(--cream-deep); }
.ig__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.ig__grid {
  margin-top: var(--sp-7);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
@media (min-width: 640px) { .ig__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .ig__grid { grid-template-columns: repeat(5, 1fr); } }
.ig__item { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--tan-soft); }
.ig__item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.6s var(--ease); }
.ig__item:hover img { transform: scale(1.06); }
.ig__item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0); transition: background-color 0.4s var(--ease);
}
.ig__item:hover::after { background: rgba(0, 0, 0, 0.15); }
.ig__badge {
  position: absolute; right: 0.55rem; top: 0.55rem; z-index: 2;
  color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* =====================================================================
   Contact
   ===================================================================== */
.contact { background: var(--cream); }
.contact__grid { display: grid; gap: 0; align-items: stretch; }
@media (min-width: 992px) { .contact__grid { grid-template-columns: 1fr 1fr; } }
.contact__map { min-height: 340px; background: var(--tan-soft); }
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.contact__info {
  background: var(--white);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  display: flex; flex-direction: column; justify-content: center; gap: var(--sp-5);
}
.contact__info h2 { font-size: var(--t-xl); }
.contact__list { display: grid; gap: var(--sp-5); }
.contact__item h4 {
  font-family: var(--font-body); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: var(--sp-2);
}
.contact__item p, .contact__item a { color: var(--ink-soft); }
.contact__item a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.contact__info .btn { align-self: flex-start; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { position: relative; background: var(--tan); color: var(--ink-soft); padding-block: var(--sp-8); }
.to-top {
  position: absolute; right: clamp(1.25rem, 5vw, 2.5rem); top: -22px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--ink); color: var(--cream); border-radius: 50%;
  transition: transform 0.3s var(--ease);
}
.to-top:hover { transform: translateY(-3px); }
.site-footer__inner { display: grid; gap: var(--sp-6); justify-items: center; text-align: center; }
.site-footer__logo img { width: 175px; height: auto; }
.site-footer p { color: var(--ink-soft); }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.news { width: min(420px, 100%); display: grid; gap: var(--sp-3); }
.news__label { font-size: var(--t-sm); color: var(--ink-soft); }
.news__row { display: flex; align-items: center; gap: var(--sp-3); border-bottom: 1px solid var(--ink); padding-bottom: 0.5rem; }
.news__row input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; border-radius: 0;
  color: var(--ink); padding: 0.35rem 0;
}
.news__row input::placeholder { color: var(--ink-mute); opacity: 1; }
.news__row input:focus { outline: none; }
.news__row button { display: grid; place-items: center; padding: 0.35rem; transition: transform 0.25s var(--ease); }
.news__row button:hover { transform: translateX(3px); }

.footer-bot { background: var(--tan); border-top: 1px solid rgba(58, 53, 47, 0.15); padding-block: var(--sp-5); }
.footer-bot__inner {
  display: grid; gap: var(--sp-3); text-align: center;
  font-size: var(--t-sm); color: var(--ink-soft);
}
@media (min-width: 768px) {
  .footer-bot__inner { grid-template-columns: repeat(3, 1fr); align-items: center; }
  .footer-bot__inner > :first-child { text-align: left; }
  .footer-bot__inner > :last-child { text-align: right; }
}

/* =====================================================================
   Modals (contact form, video, thank-you / error)
   ===================================================================== */
.modal-sheet {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: clamp(0.75rem, 4vw, 2rem);
  background: rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.modal-sheet[data-open] { opacity: 1; visibility: visible; }
.modal-sheet__box {
  position: relative;
  width: min(980px, 100%);
  max-height: min(92dvh, 100%);
  overflow-y: auto;
  background: var(--cream);
  border-radius: var(--r);
  box-shadow: var(--shadow-m);
  transform: translateY(14px);
  transition: transform 0.35s var(--ease);
}
.modal-sheet[data-open] .modal-sheet__box { transform: none; }
.modal-sheet__box--sm { width: min(520px, 100%); text-align: center; }
.modal-sheet__box--video { width: min(1100px, 100%); background: #000; overflow: hidden; }
.modal-close {
  position: absolute; right: 0.75rem; top: 0.75rem; z-index: 3;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: var(--cream); color: var(--ink);
  border: 1px solid var(--line);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.modal-close:hover { background: var(--ink); color: var(--cream); }
.modal-sheet__box--video .modal-close { background: rgba(253, 244, 236, 0.9); border-color: transparent; }
.modal-video { aspect-ratio: 16 / 9; width: 100%; }
.modal-video iframe { width: 100%; height: 100%; border: 0; display: block; }

.cf { display: grid; }
@media (min-width: 900px) { .cf { grid-template-columns: 1.25fr 0.75fr; } }
.cf__main { padding: clamp(1.5rem, 4vw, 2.75rem); }
.cf__aside {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; gap: var(--sp-5);
}
.cf__aside h4, .cf__aside h2 { color: var(--cream); }
.cf__contacts { display: grid; gap: var(--sp-4); }
.cf__contacts a { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: 0.9375rem; color: var(--cream); }
.cf__contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cf__contacts svg { flex: 0 0 auto; margin-top: 0.35rem; }
.cf__note { font-size: 0.9375rem; color: rgba(253, 244, 236, 0.75); }

.cf__grid { margin-top: var(--sp-5); display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .cf__grid { grid-template-columns: repeat(2, 1fr); } }
.cf__field { display: grid; gap: 0.4rem; }
.cf__field--full { grid-column: 1 / -1; }
.cf__field label {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
}
.cf__field input, .cf__field textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  padding: 0.6rem 0;
  transition: border-color 0.25s var(--ease);
}
.cf__field textarea { min-height: 110px; resize: vertical; }
.cf__field input::placeholder, .cf__field textarea::placeholder { color: var(--ink-mute); opacity: 1; }
.cf__field input:focus, .cf__field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.cf__footer { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
.cf__status { font-size: 0.9375rem; }
.cf__status[data-state='error'] { color: #941e1e; }
.cf__status[data-state='ok'] { color: #1ba220; }
.cf__box-note { margin-top: var(--sp-3); font-size: 0.8125rem; color: var(--ink-mute); }

.thanks { padding: clamp(1.75rem, 5vw, 3rem); display: grid; gap: var(--sp-4); justify-items: center; }
.thanks p { color: var(--ink-mute); }
.thanks .btn { margin-top: var(--sp-2); }

body.is-locked { overflow: hidden; }

/* =====================================================================
   Long-form legal / content pages
   ===================================================================== */
.page-head { background: var(--white); padding-block: var(--sp-8) var(--sp-7); border-bottom: 1px solid var(--line-soft); }
.page-head h1 { font-size: var(--t-xl); }
.page-head p { margin-top: var(--sp-3); color: var(--ink-mute); }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: var(--t-lg); }
.prose h3 { margin-top: 1.6em; font-size: var(--t-md); }
.prose ul { padding-left: 1.3em; list-style: disc; }
.prose ol { padding-left: 1.3em; list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; color: var(--ink); }
