/* =========================================================================
   Aster Dental Studio — serene spa / breathing-room universe
   Display: Newsreader (light, italic accents) · Body: Public Sans
   Palette: --ink #2E3A40 · --mint #DCEBE6 · --slate #9FB8C8 · --paper #FBF8F4
   Shape language: rounded arch / lozenge. No hard borders — soft tint fills
   + faint shadows. The lightest, airiest site in the set.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #2E3A40;
  --mint: #DCEBE6;
  --slate: #9FB8C8;
  --paper: #FBF8F4;

  /* derived tints (all soft, no hard lines anywhere) */
  --ink-70: rgba(46, 58, 64, 0.7);
  --ink-55: rgba(46, 58, 64, 0.55);
  --ink-40: rgba(46, 58, 64, 0.4);
  --mint-soft: #EAF3EF;
  --mint-deep: #C9E0D8;
  --slate-soft: #E4ECF1;
  --paper-warm: #F4EFE7;
  --white-veil: rgba(255, 255, 255, 0.6);

  /* deepened slate for accents/eyebrows on light — AA-compliant where slate fails.
     #4F6C7E ≈ 5.4:1 on --paper (passes AA for normal text); reads as the same
     family as --slate but with real presence for the payoff words. */
  --slate-ink: #4F6C7E;
  /* lighter accent for use on the dark --ink CTA band (slate is too low there) */
  --slate-bright: #B9D0DC;

  /* faint, diffuse shadows — never harsh */
  --shadow-soft: 0 24px 60px -38px rgba(46, 58, 64, 0.28);
  --shadow-lift: 0 36px 90px -50px rgba(46, 58, 64, 0.34);
  --shadow-card: 0 18px 48px -34px rgba(46, 58, 64, 0.22);

  /* arch / lozenge radii */
  --arch: 50% 50% 16px 16px / 62% 62% 16px 16px;
  --lozenge: 999px;

  /* spacing rhythm — generous, breathing room */
  --step: clamp(1rem, 0.7rem + 1.3vw, 1.6rem);
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --section-y: clamp(5rem, 3rem + 8vw, 10rem);
  --maxw: 1240px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow: 1.1s;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { overflow-x: hidden; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  line-height: 1.72;
  font-weight: 360;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 340;
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0;
  overflow-wrap: break-word;
}

.serif-it { font-style: italic; font-weight: 300; }
.nowrap { white-space: nowrap; }

p { margin: 0; }

:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 4px;
  border-radius: 6px;
}

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

/* ---------- Layout helpers ---------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - (var(--gutter) * 2), 880px);
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }

.eyebrow {
  font-family: "Public Sans", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--slate-ink);
  margin: 0 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--slate-ink);
  display: inline-block;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.42rem);
  line-height: 1.62;
  color: var(--ink-70);
  font-weight: 360;
  max-width: 56ch;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -120%;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.92rem 1.7rem;
  border-radius: var(--lozenge);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease),
              color 0.4s var(--ease), box-shadow 0.5s var(--ease);
  min-width: 0;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost {
  background: var(--white-veil);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(159, 184, 200, 0.5);
}
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.btn-arrow svg { transition: transform 0.5s var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }

/* =========================================================================
   HEADER — sticky, condensing
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: clamp(1.1rem, 0.8rem + 1vw, 1.7rem);
  transition: padding 0.5s var(--ease), background 0.5s var(--ease),
              box-shadow 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
.site-header.is-condensed {
  padding-block: 0.7rem;
  background: rgba(251, 248, 244, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 rgba(159, 184, 200, 0.28), var(--shadow-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Newsreader", serif;
  font-size: 1.34rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand .mark { width: 30px; height: 34px; flex: none; }
.brand b { font-weight: 460; }
.brand .sub {
  font-family: "Public Sans", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate-ink);
  display: block;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 0.4rem + 1.6vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-70);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta { display: inline-flex; }
.nav-actions { display: flex; align-items: center; gap: 0.9rem; }

.hamburger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white-veil);
  box-shadow: inset 0 0 0 1px rgba(159, 184, 200, 0.5);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  width: 18px; height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  padding: clamp(5.5rem, 18vw, 7rem) var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.6s var(--ease), visibility 0.6s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu a {
  font-family: "Newsreader", serif;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  font-weight: 340;
  padding: 0.55rem 0;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}
/* active page marker — mirrors the desktop nav underline affordance */
.mobile-menu a[aria-current="page"] { font-style: italic; }
.mobile-menu a[aria-current="page"]::after {
  content: "";
  align-self: center;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: inset 0 0 0 1.5px var(--slate-ink);
}
.mobile-menu .btn { margin-top: 1.8rem; align-self: flex-start; }
.mobile-foot {
  margin-top: auto;
  padding-top: 2rem;
  color: var(--ink-55);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* =========================================================================
   HERO — OFF-CENTER PORTAL
   ========================================================================= */
.hero {
  position: relative;
  padding-top: clamp(2rem, 1rem + 3vw, 4rem);
  padding-bottom: clamp(4rem, 2rem + 6vw, 7rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: clamp(480px, 74vh, 760px);
}
.hero-grid > * { min-width: 0; }

/* headline tucked into the lower-left whitespace */
.hero-copy {
  align-self: end;
  padding-bottom: clamp(0.5rem, 2vw, 2.5rem);
  max-width: 30ch;
}
.hero-title {
  font-size: clamp(2.7rem, 1.4rem + 7vw, 5.6rem);
  line-height: 0.99;
  letter-spacing: -0.02em;
  /* never split a display word mid-letter ("Dentistr-y"). The longest word,
     "Dentistry", fits whole within the column at every width down to 375px. */
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.hero-title .serif-it { color: var(--ink); display: inline; }
.hero-copy .lead { margin-top: 1.7rem; }
.hero-actions {
  margin-top: 2.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.hero-meta {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  color: var(--ink-55);
  font-size: 0.86rem;
}
.hero-meta b {
  display: block;
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 360;
  line-height: 1;
  margin-bottom: 0.25rem;
}

/* the portal — large rounded arch floating right of center */
.hero-portal {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
  aspect-ratio: 3 / 4;
  align-self: center;
}
.portal-shape {
  position: absolute;
  inset: 0;
  border-radius: var(--arch);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* clip rounding in safari */
}
.portal-shape svg { width: 100%; height: 100%; }
/* a faint echo arch behind, for depth */
.hero-portal::before {
  content: "";
  position: absolute;
  inset: -6% -10% auto -16%;
  height: 70%;
  border-radius: var(--arch);
  background: var(--mint-soft);
  opacity: 0.7;
  z-index: -1;
}

/* drifting particle dots inside the portal */
.portal-dots circle { transform-box: fill-box; transform-origin: center; }
@keyframes drift-y {
  0%   { transform: translateY(0) translateX(0); }
  50%  { transform: translateY(-14px) translateX(6px); }
  100% { transform: translateY(0) translateX(0); }
}

/* floating caption lozenge over the portal — second read of the arch motif */
.portal-tag {
  position: absolute;
  left: -7%;
  bottom: 11%;
  background: rgba(251, 248, 244, 0.9);
  backdrop-filter: blur(6px);
  border-radius: var(--lozenge);
  padding: 0.7rem 1.2rem 0.7rem 0.8rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
  color: var(--ink-70);
  max-width: 78%;
}
.portal-tag .dot {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--mint-deep);
  display: grid;
  place-items: center;
}
.portal-tag .dot svg { width: 18px; height: 18px; }
.portal-tag b { color: var(--ink); font-weight: 600; }

/* slow drift on whole portal for ambient calm */
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hero-portal { animation: float-soft 11s ease-in-out infinite; }

/* hero ambient wash */
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle at 50% 50%, var(--mint-soft) 0%, rgba(234,243,239,0) 68%);
  z-index: -2;
  pointer-events: none;
}

/* marquee of trust line under hero */
.trust-strip {
  border-top: 1px solid rgba(159, 184, 200, 0.25);
  border-bottom: 1px solid rgba(159, 184, 200, 0.25);
  padding-block: 1.1rem;
  overflow: hidden;
}
.trust-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 38s linear infinite;
  color: var(--ink-55);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.trust-track span { display: inline-flex; align-items: center; gap: 0.7rem; }
.trust-track span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--slate);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================================
   GENERIC SECTION HEADERS
   ========================================================================= */
.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
}
.section-head h2 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
  line-height: 1.02;
}
.section-head .lead { margin-top: 1.4rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }

/* =========================================================================
   PHILOSOPHY / VALUE — soft tinted lozenge cards
   ========================================================================= */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.values > * { min-width: 0; }
.value-card {
  background: var(--white-veil);
  border-radius: 28px;
  padding: clamp(1.6rem, 1rem + 1.6vw, 2.4rem);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.value-card:nth-child(2) { background: var(--mint-soft); }
.value-card:nth-child(3) { background: var(--slate-soft); }
.value-ic {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
  box-shadow: var(--shadow-card);
}
.value-ic svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.value-card p { color: var(--ink-70); font-size: 0.97rem; }

/* =========================================================================
   FEATURE SPLIT — text + arch image-ish
   ========================================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split > * { min-width: 0; }
.split--rev .split-media { order: -1; }
.split-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--arch);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.split-media svg { width: 100%; height: 100%; }
.split h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem); }
.split p { color: var(--ink-70); margin-top: 1.3rem; }
.check-list {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--ink-70);
  font-size: 0.98rem;
}
.check-list .tick {
  flex: none;
  width: 24px; height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--mint-deep);
  display: grid;
  place-items: center;
}
.check-list .tick svg { width: 13px; height: 13px; }

/* =========================================================================
   BEFORE / AFTER SMILE SLIDER
   ========================================================================= */
.ba-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.ba-wrap > * { min-width: 0; }
.ba {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  touch-action: none;
  user-select: none;
}
.ba-layer { position: absolute; inset: 0; }
.ba-layer svg { width: 100%; height: 100%; }
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-label {
  position: absolute;
  top: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(251,248,244,0.85);
  color: var(--ink-70);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.ba-label.before { left: 1rem; }
.ba-label.after { right: 1rem; }
.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(251,248,244,0.9);
  transform: translateX(-1px);
  box-shadow: 0 0 14px rgba(46,58,64,0.25);
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px; height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  display: grid;
  place-items: center;
  cursor: ew-resize;
}
.ba-handle svg { width: 24px; height: 24px; }
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ba-range:focus-visible + .ba-divider { outline: 3px solid var(--ink); outline-offset: 2px; }

/* =========================================================================
   SERVICES LIST (services page + home preview)
   ========================================================================= */
.svc-list { display: grid; gap: clamp(0.8rem, 1.5vw, 1.2rem); }
.svc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  padding: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
  background: var(--white-veil);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease);
}
.svc-row > * { min-width: 0; }
.svc-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); background: #fff; }
.svc-main h3 { font-size: clamp(1.4rem, 1rem + 1.4vw, 1.9rem); }
.svc-main p { color: var(--ink-70); margin-top: 0.5rem; font-size: 0.96rem; max-width: 52ch; }
.svc-price {
  text-align: right;
  white-space: nowrap;
}
.svc-price .amt {
  font-family: "Newsreader", serif;
  font-size: 1.5rem;
  display: block;
  line-height: 1;
}
.svc-price small { color: var(--slate-ink); font-size: 0.72rem; letter-spacing: 0.08em; }

/* full services cards page */
.svc-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.svc-detail-grid > * { min-width: 0; }
.svc-detail {
  background: var(--white-veil);
  border-radius: 30px;
  padding: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.svc-detail::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 140px; height: 160px;
  border-radius: var(--arch);
  background: var(--mint-soft);
  opacity: 0.6;
  z-index: 0;
}
.svc-detail > * { position: relative; z-index: 1; }
.svc-detail .tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-ink);
  font-weight: 600;
}
.svc-detail h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); margin: 0.7rem 0 0.7rem; }
.svc-detail p { color: var(--ink-70); }
.svc-detail .price-line {
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(159,184,200,0.3);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.svc-detail .price-line .amt { font-family: "Newsreader", serif; font-size: 1.6rem; }
.svc-detail .price-line .note { color: var(--slate-ink); font-size: 0.85rem; }

/* =========================================================================
   TESTIMONIAL CAROUSEL
   ========================================================================= */
.testi {
  background: var(--mint-soft);
  border-radius: 40px;
  padding: clamp(2.4rem, 1.5rem + 4vw, 5rem);
  position: relative;
  overflow: hidden;
}
.testi::before {
  content: "";
  position: absolute;
  left: -60px; bottom: -60px;
  width: 220px; height: 260px;
  border-radius: var(--arch);
  background: var(--mint-deep);
  opacity: 0.45;
}
.testi-inner { position: relative; z-index: 1; }
.testi-quotemark {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 5rem;
  line-height: 0.4;
  color: var(--slate);
  margin-bottom: 1rem;
  height: 2.2rem;
}
.testi-viewport { overflow: hidden; }
.testi-track {
  display: flex;
  transition: transform 0.7s var(--ease);
}
.testi-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding-right: 0.5rem;
}
.testi-slide blockquote {
  margin: 0;
  font-family: "Newsreader", serif;
  font-weight: 320;
  /* one confident editorial peak — larger top-end gives the eye a moment of
     scale; floor stays gentle so small screens remain calm and overflow-safe */
  font-size: clamp(1.45rem, 0.9rem + 2.8vw, 3.1rem);
  line-height: 1.26;
  letter-spacing: -0.015em;
  max-width: 24ch;
}
.testi-slide .stars { color: var(--slate-ink); letter-spacing: 0.18em; margin-bottom: 1.2rem; font-size: 0.9rem; }
.testi-cite {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.92rem;
  color: var(--ink-70);
}
.testi-cite .ava {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Newsreader", serif;
  font-style: italic;
  background: var(--mint-deep);
  color: var(--ink);
  flex: none;
}
.testi-cite b { color: var(--ink); font-weight: 600; }
.testi-nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.4rem;
}
.testi-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--slate);
  opacity: 0.4;
  transition: opacity 0.3s, width 0.4s var(--ease), border-radius 0.4s var(--ease);
}
.testi-dot[aria-selected="true"] { opacity: 1; width: 26px; border-radius: 5px; }
.testi-arrows { margin-left: auto; display: flex; gap: 0.6rem; }
.testi-arrows button {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease);
}
.testi-arrows button:hover { transform: scale(1.06); }
.testi-arrows svg { width: 18px; height: 18px; }

/* =========================================================================
   TEAM CARDS — arch-portal mask is the brand mark
   ========================================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.team-grid > * { min-width: 0; }
.team-card { text-align: center; }
.team-portrait {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  border-radius: var(--arch);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.team-card:hover .team-portrait { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.team-portrait svg { width: 100%; height: 100%; }
.team-card h3 {
  font-size: 1.55rem;
  margin-top: 1.3rem;
}
.team-card .role {
  color: var(--slate-ink);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}
.team-card .bio { color: var(--ink-70); font-size: 0.94rem; margin-top: 0.9rem; max-width: 34ch; margin-inline: auto; }
.team-tags {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.team-tags li {
  font-size: 0.74rem;
  background: var(--mint-soft);
  color: var(--ink-70);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

/* =========================================================================
   ACCORDION (FAQ + insurance/financing)
   ========================================================================= */
.accordion { display: grid; gap: 0.7rem; }
.acc-item {
  background: var(--white-veil);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: background 0.4s var(--ease);
}
.acc-item.is-open { background: #fff; }
.acc-trigger {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: clamp(1.2rem, 1rem + 1vw, 1.7rem) clamp(1.3rem, 1rem + 1vw, 2rem);
  font-family: "Newsreader", serif;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem);
  font-weight: 360;
  color: var(--ink);
}
.acc-icon {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--mint-soft);
  display: grid;
  place-items: center;
  position: relative;
  transition: background 0.4s var(--ease), transform 0.5s var(--ease);
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.acc-icon::before { width: 13px; height: 1.6px; }
.acc-icon::after { width: 1.6px; height: 13px; }
.acc-item.is-open .acc-icon { background: var(--mint-deep); }
.acc-item.is-open .acc-icon::after { transform: scaleY(0); opacity: 0; }
.acc-panel {
  overflow: hidden;
  height: 0;
  transition: height 0.5s var(--ease);
}
.acc-panel-inner {
  padding: 0 clamp(1.3rem, 1rem + 1vw, 2rem) clamp(1.3rem, 1rem + 1vw, 1.8rem);
  color: var(--ink-70);
  max-width: 64ch;
}
.acc-panel-inner p + p { margin-top: 0.8rem; }
.acc-panel-inner .pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.acc-panel-inner .pill-row span {
  font-size: 0.78rem;
  background: var(--slate-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: var(--ink-70);
}

/* =========================================================================
   BOOKING MODULE — arch-portal silhouette wrapper
   ========================================================================= */
.book {
  position: relative;
}
.book-card {
  position: relative;
  border-radius: var(--arch);
  background: var(--white-veil);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  padding: clamp(1.8rem, 1.2rem + 3vw, 3.5rem) clamp(1.5rem, 1rem + 3vw, 3.5rem) clamp(2rem, 1.2rem + 3vw, 3.5rem);
}
.book-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 80% -10%, var(--mint-soft) 0%, rgba(234,243,239,0) 55%),
    radial-gradient(90% 70% at 0% 110%, var(--slate-soft) 0%, rgba(228,236,241,0) 50%);
  pointer-events: none;
}
.book-card > * { position: relative; z-index: 1; }
.book-head { margin-bottom: 2rem; }
.book-head h2 { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.8rem); }
.book-head p { color: var(--ink-70); margin-top: 0.8rem; }

.field { margin-bottom: 1.5rem; }
.field > .label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-70);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field-row > * { min-width: 0; }

.input, .select, textarea.input {
  width: 100%;
  background: var(--paper);
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(159,184,200,0.5);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  font: inherit;
  color: var(--ink);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.input::placeholder { color: var(--ink-40); }
.input:focus, .select:focus, textarea.input:focus {
  outline: none;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--ink);
}
textarea.input { resize: vertical; min-height: 90px; line-height: 1.6; }
.select { appearance: none; background-image:
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M3 5l4 4 4-4' stroke='%232E3A40' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.6rem;
}

/* service chips */
.chip-set { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  position: relative;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(159,184,200,0.5);
  font-size: 0.9rem;
  color: var(--ink-70);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}

/* date + time slot selector */
.slot-set { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.slot {
  padding: 0.6rem 1rem;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(159,184,200,0.5);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-70);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.slot:hover:not(:disabled) { transform: translateY(-2px); }
.slot[aria-pressed="true"] { background: var(--mint-deep); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--slate); }
.slot:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

.field-error {
  display: none;
  color: #9a4a3a;
  font-size: 0.82rem;
  margin-top: 0.5rem;
}
.field.has-error .field-error { display: block; }
.field.has-error .input,
.field.has-error .select { box-shadow: inset 0 0 0 2px #c06a55; }

.book-submit { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.book-note { color: var(--ink-55); font-size: 0.85rem; }

/* booking success state */
.book-success {
  display: none;
  text-align: center;
  padding: clamp(1rem, 3vw, 2rem) 0;
}
.book-success.is-shown { display: block; animation: rise 0.7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.book-success .seal {
  width: 84px; height: 84px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--mint-deep);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}
.book-success .seal svg { width: 40px; height: 40px; }
.book-success h3 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
.book-success p { color: var(--ink-70); margin: 0.8rem auto 0; max-width: 44ch; }
.book-summary {
  margin-top: 1.6rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.book-summary span {
  background: var(--mint-soft);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.86rem;
  color: var(--ink-70);
}

/* =========================================================================
   STEPS / PROCESS (new-patients)
   ========================================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.8rem);
  counter-reset: step;
}
.steps > * { min-width: 0; }
.step {
  position: relative;
  padding-top: 1.5rem;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 2.6rem;
  color: var(--slate);
  display: block;
  line-height: 1;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-70); font-size: 0.94rem; }
.step .stem {
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 1px;
  background: var(--slate);
}

/* =========================================================================
   INFO STRIP (hours / contact mini)
   ========================================================================= */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.info-grid > * { min-width: 0; }
.info-card {
  background: var(--white-veil);
  border-radius: 26px;
  padding: clamp(1.6rem, 1rem + 1.6vw, 2.4rem);
  box-shadow: var(--shadow-card);
}
.info-card h3 {
  font-family: "Public Sans", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-ink);
  margin-bottom: 1rem;
}
.info-card p, .info-card a { color: var(--ink); font-size: 1.02rem; line-height: 1.7; }
.info-card a:hover { color: var(--slate-ink); }
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--ink-70);
}
.hours-row b { color: var(--ink); font-weight: 500; }

/* map — self-contained stylised SVG (no external embed) */
.map-frame {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
  background: var(--mint-soft);
}
.map-frame .map-svg { width: 100%; height: 100%; display: block; }
.map-frame .map-directions {
  position: absolute;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  background: rgba(251, 248, 244, 0.92);
  backdrop-filter: blur(6px);
}
.map-frame .map-directions:hover { background: #fff; }

/* =========================================================================
   CTA BANNER
   ========================================================================= */
.cta-band {
  position: relative;
  border-radius: 40px;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2.6rem, 1.5rem + 5vw, 5.5rem) clamp(1.8rem, 1rem + 4vw, 5rem);
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -40%;
  width: 60%;
  aspect-ratio: 1 / 1.25;
  transform: translateX(-50%);
  border-radius: var(--arch);
  background: radial-gradient(circle at 50% 30%, rgba(159,184,200,0.45) 0%, rgba(46,58,64,0) 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem);
  color: var(--paper);
}
.cta-band h2 .serif-it { color: var(--slate-bright); }
.cta-band p { color: rgba(251,248,244,0.74); margin: 1.2rem auto 0; max-width: 46ch; }
.cta-band .hero-actions { justify-content: center; margin-top: 2.4rem; }
.cta-band .btn-ghost { background: rgba(251,248,244,0.1); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(251,248,244,0.35); }
.cta-band .btn-ghost:hover { background: rgba(251,248,244,0.18); }
.cta-band .btn-primary { background: var(--paper); color: var(--ink); }

/* =========================================================================
   PAGE HERO (interior pages)
   ========================================================================= */
.page-hero {
  position: relative;
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -8%; top: -40%;
  width: 50vw; max-width: 560px;
  aspect-ratio: 1 / 1.2;
  border-radius: var(--arch);
  background: radial-gradient(circle at 50% 40%, var(--mint-soft) 0%, rgba(234,243,239,0) 70%);
  z-index: -1;
}
.page-hero h1 {
  font-size: clamp(2.6rem, 1.6rem + 5vw, 5rem);
  line-height: 1;
  max-width: 16ch;
}
.page-hero .lead { margin-top: 1.6rem; }
.page-hero .crumbs {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--slate-ink);
  margin-bottom: 1.6rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.page-hero .crumbs a:hover { color: var(--ink); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  margin-top: var(--section-y);
  padding-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-bottom: 2.5rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(100% - var(--gutter) * 2, var(--maxw));
  height: 1px;
  background: rgba(159,184,200,0.3);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(1.6rem, 3vw, 3rem);
  margin-bottom: 3rem;
}
.footer-top > * { min-width: 0; }
.footer-brand .brand { font-size: 1.5rem; }
.footer-brand p { color: var(--ink-70); margin-top: 1.2rem; max-width: 34ch; font-size: 0.95rem; }
.footer-col h4 {
  font-family: "Public Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-ink);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-col a { color: var(--ink-70); font-size: 0.95rem; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(159,184,200,0.25);
  color: var(--ink-55);
  font-size: 0.86rem;
}
.footer-bottom a { color: var(--ink); }
.footer-bottom a:hover { color: var(--slate); }
.made-moblank {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.made-moblank .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--slate);
}

/* =========================================================================
   SCROLL REVEAL
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-portal, .trust-track { animation: none; }
  .portal-dots circle { animation: none !important; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; min-height: 0; }
  .hero-copy { order: 2; align-self: auto; max-width: 36ch; }
  .hero-portal { order: 1; width: min(86%, 380px); }

  .values, .team-grid, .info-grid, .steps { grid-template-columns: 1fr 1fr; }
  .split, .ba-wrap, .svc-detail-grid, .footer-top { grid-template-columns: 1fr; }
  .split--rev .split-media { order: 0; }
  .ba-wrap > .section-head { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  /* let the hero headline wrap naturally on small screens instead of the hard
     two-line desktop break, which can orphan "an exhale." awkwardly */
  .hero-title .ht-break { display: none; }

  .values, .team-grid, .info-grid, .steps,
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-price { grid-column: 1 / -1; text-align: left; padding-top: 0.4rem; }
  .svc-price small { display: inline; }
  .hero-meta { gap: 1.2rem 1.8rem; }
  .testi-arrows { width: 100%; margin-left: 0; justify-content: flex-end; }
}
