/* ============================================================
   OLD TOWN MED SPA — Design System
   Soft luxury · humanist serif + warm sans · teal + gold on white
   ============================================================ */

/* ---------- Theme tokens ---------- */
:root {
  /* palette (default: Soft Luxury) */
  --bg: #ffffff;
  --surface: #f7f5f0;
  --surface-2: #eef4f3;
  --ink: #15302e;
  --ink-soft: #51635f;
  --line: rgba(21, 48, 46, 0.10);

  --teal: #0e7c86;
  --teal-deep: #0b3b40;
  --teal-tint: #e4f0ef;
  --gold: #bf9d4a;
  --gold-soft: #d9c189;
  --gold-deep: #9a7c33;

  /* fonts */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Mulish", system-ui, sans-serif;
  --serif-weight: 500;

  /* glass */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 20px 50px -22px rgba(11, 59, 64, 0.35);
  --glass-blur: 16px;

  /* rhythm */
  --maxw: 1240px;
  --pad-x: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 11vh, 150px);
  --radius: 18px;
  --radius-lg: 28px;

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

/* Editorial Marble */
[data-theme="marble"] {
  --bg: #fbfaf7;
  --surface: #f1ede5;
  --surface-2: #e9f0ee;
  --ink: #1c2b29;
  --teal: #14707a;
  --teal-deep: #0d3338;
  --teal-tint: #e7efee;
  --gold: #b08d3e;
  --gold-soft: #d8bd80;
  --serif: "Marcellus", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --serif-weight: 400;
}

/* Coastal Sand */
[data-theme="sand"] {
  --bg: #f7f3ec;
  --surface: #efe8dc;
  --surface-2: #e4eeec;
  --ink: #213330;
  --ink-soft: #5a655f;
  --teal: #2c7a82;
  --teal-deep: #123c3f;
  --teal-tint: #e2ece9;
  --gold: #b8924a;
  --gold-soft: #d6b87f;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --serif-weight: 400;
  --glass-bg: rgba(255, 253, 248, 0.55);
  --glass-bg-strong: rgba(255, 253, 248, 0.72);
}

/* ============================================================
   DARK MODE — layers over any theme (keeps each theme's fonts
   & accent identity, swaps the canvas to deep teal-charcoal)
   ============================================================ */
html[data-mode="dark"] {
  --bg: #0b1a1c;
  --surface: #112a2c;
  --surface-2: #0e2326;
  --ink: #e9f1ef;
  --ink-soft: #9db2af;
  --line: rgba(255, 255, 255, 0.11);
  --teal: #36a9b2;
  --teal-tint: rgba(54, 169, 178, 0.16);
  --gold: #d6bd83;
  --gold-soft: #e4cf9a;
  --gold-deep: #d6bd83;
  --glass-bg: rgba(22, 44, 46, 0.5);
  --glass-bg-strong: rgba(13, 29, 32, 0.74);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.6);
}
/* component fixups where a light-mode value was hard-coded */
html[data-mode="dark"] .field input,
html[data-mode="dark"] .field textarea,
html[data-mode="dark"] .field select { background: rgba(255, 255, 255, 0.05); color: var(--ink); }
html[data-mode="dark"] .btn-glass { color: var(--ink); }
html[data-mode="dark"] .btn-glass:hover { color: var(--teal); }
html[data-mode="dark"] .special-card .offer { color: var(--ink); }
html[data-mode="dark"] .doc-tags span { background: rgba(54,169,178,0.22); color: #cdeceb; }
html[data-mode="dark"] .svc-hero-figure .badge { color: var(--ink); }
html[data-mode="dark"] .reviews { background: linear-gradient(160deg, #0e2a2d, #07181a); }
html[data-mode="dark"] .site-footer { background: #07171a; }
html[data-mode="dark"] .site-header.scrolled .header-inner { box-shadow: 0 18px 44px -24px rgba(0,0,0,0.7); }

/* ---------- Mode toggle button ---------- */
.mode-toggle {
  position: relative;
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border: 1px solid var(--glass-border);
  color: var(--teal-deep);
  transition: transform .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.mode-toggle:hover { transform: translateY(-2px); color: var(--gold-deep); box-shadow: var(--glass-shadow); }
.mode-toggle svg { stroke: currentColor; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.mode-toggle .i-sun { display: none; }
.mode-toggle .i-moon { display: block; }
html[data-mode="dark"] .mode-toggle { color: var(--gold-soft); }
html[data-mode="dark"] .mode-toggle .i-sun { display: block; }
html[data-mode="dark"] .mode-toggle .i-moon { display: none; }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: var(--serif-weight); margin: 0; line-height: 1.06; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); position: relative; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.h-display { font-size: clamp(40px, 6vw, 80px); line-height: 1.02; text-wrap: balance; }
.h-section { font-size: clamp(32px, 4.6vw, 60px); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); line-height: 1.7; }
.muted { color: var(--ink-soft); }
.serif-accent { font-style: italic; color: var(--teal); }

/* ---------- Glass primitives ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
  position: relative;
  white-space: nowrap;
}
.btn svg { transition: transform .4s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--teal);
  color: #fff;
  border: 1px solid var(--teal);
  box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 3px rgba(191,157,74,0.55), 0 14px 30px -18px rgba(14,124,134,0.7);
}
.btn-primary:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 3px var(--gold), 0 20px 38px -18px rgba(14,124,134,0.85);
}
.btn-primary:hover svg { transform: translateX(4px); }

.btn-glass {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border: 1px solid var(--glass-border);
  color: var(--teal-deep);
  box-shadow: var(--glass-shadow);
}
.btn-glass:hover { color: var(--teal); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #3a2f12;
  box-shadow: 0 16px 34px -18px rgba(154,124,51,0.85);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

.btn-lg { padding: 17px 34px; font-size: 15.5px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: padding .4s var(--ease);
  padding: 18px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px 12px 24px;
  border-radius: 100px;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border: 1px solid transparent;
}
.site-header.scrolled .header-inner {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.brand { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand .mark {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand .mark b { color: var(--teal); font-weight: 600; }
.brand .sub {
  font-size: 8.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  text-align: center;
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 100px;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--teal); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 10px; }

.menu-toggle { display: none; }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
  padding: 30px;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a:not(.btn) {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--ink);
  padding: 10px 0;
}
.mobile-nav .btn { margin-top: 10px; min-width: 220px; }
.mobile-nav .btn:first-of-type { margin-top: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 140px; }
.hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
/* split (default) */
.hero[data-layout="split"] .hero-grid { grid-template-columns: 1.02fr 1fr; }
.hero-copy { max-width: 620px; }
.hero h1 { margin-top: 22px; }
.hero .lead { margin-top: 26px; max-width: 30em; }
.hero-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.hero-slot {
  width: 100%; height: 100%;
  border-radius: var(--radius-lg);
}
.hero-figure .float-card {
  position: absolute;
  left: -34px; bottom: 38px;
  padding: 18px 22px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
}
.float-card .num { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--teal); }
.float-card .lbl { font-size: 12px; line-height: 1.3; color: var(--ink-soft); max-width: 11ch; }
.hero-figure .glow {
  position: absolute; inset: auto -10% -12% auto;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  opacity: .5; filter: blur(20px); z-index: -1;
}

/* centered hero variant */
.hero[data-layout="centered"] { text-align: center; padding-top: 152px; }
.hero[data-layout="centered"] .hero-grid { grid-template-columns: 1fr; }
.hero[data-layout="centered"] .hero-copy { max-width: 900px; margin-inline: auto; }
.hero[data-layout="centered"] .hero-actions { justify-content: center; }
.hero[data-layout="centered"] .eyebrow { justify-content: center; }
.hero[data-layout="centered"] .hero-figure {
  aspect-ratio: 16 / 7;
  margin-top: 56px;
}
.hero[data-layout="centered"] .float-card { left: 34px; }
.hero[data-layout="centered"] .lead { margin-inline: auto; }

/* decorative hero backdrop */
.hero-bg {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
}
.hero-bg::before {
  content:""; position:absolute; top:-12%; right:-6%;
  width: 46vw; max-width: 620px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--teal-tint), transparent 68%);
  opacity: .85;
}
.hero-bg::after {
  content:""; position:absolute; bottom:-20%; left:-8%;
  width: 40vw; max-width: 520px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(191,157,74,0.18), transparent 70%);
}

/* ---------- Bio ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.bio-stat-row { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.bio-stat .n { font-family: var(--serif); font-size: clamp(48px, 6vw, 76px); color: var(--teal); line-height: 0.9; }
.bio-stat .n small { font-size: 0.45em; color: var(--gold); vertical-align: super; }
.bio-stat .c { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-top: 10px; font-weight: 600; }
.bio-figure { aspect-ratio: 5/6; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--surface-2); }

/* ---------- Featured services ---------- */
.svc-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; margin-bottom: 56px; flex-wrap: wrap;
}
/* cards grid (default) */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s var(--ease);
}
.svc-card .thumb {
  position: absolute; inset: 0; z-index: -2;
  transition: transform 1.1s var(--ease);
}
.svc-card .thumb::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(11,59,64,0.78) 8%, rgba(11,59,64,0.18) 52%, rgba(11,59,64,0.05) 100%);
  z-index: 1;
}
/* layered uploadable thumb: tone fallback (z0) → image-slot (z1) → gradient (z2) → body (z3) */
.svc-card > .tone { z-index: 0; }
.svc-thumb-slot { z-index: 1; }
.svc-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(11,59,64,0.84) 6%, rgba(11,59,64,0.30) 46%, rgba(11,59,64,0.06) 100%);
}
.svc-card:hover { transform: translateY(-7px); box-shadow: 0 36px 60px -34px rgba(11,59,64,0.55); border-color: transparent; }
.svc-card .card-body {
  position: relative; z-index: 3; display: block;
  padding: 26px 26px 24px;
  color: #fff;
}

/* ---- Uploadable image-slot helpers ---- */
.fill-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
/* lighten the slot's drop affordance when it sits over a dark fill */
.fill-slot.on-dark::part(empty) { color: rgba(255,255,255,0.92); }
.fill-slot.on-dark::part(ring) { border-color: rgba(255,255,255,0.45); }
.svc-card .idx {
  font-family: var(--serif); font-size: 14px; color: var(--gold-soft);
  letter-spacing: 0.1em; margin-bottom: 10px; display: block;
}
.svc-card h3 { font-size: 27px; color: #fff; }
.svc-card .svc-desc {
  font-size: 14.5px; color: rgba(255,255,255,0.82); margin-top: 8px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .55s var(--ease), opacity .45s var(--ease), margin .55s var(--ease);
}
.svc-card:hover .svc-desc { max-height: 80px; opacity: 1; }
.svc-card .svc-go {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: #fff;
}
.svc-card .svc-go .dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.svc-card:hover .svc-go .dot { background: var(--gold); transform: translateX(4px) rotate(-2deg); }
.svc-card .svc-go .dot svg { stroke: var(--teal-deep); }
.svc-card:hover .svc-go .dot svg { stroke: #3a2f12; }

/* editorial list variant */
.svc-list { display: none; border-top: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 30px 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding .5s var(--ease);
}
.svc-row .r-idx { font-family: var(--serif); font-size: 17px; color: var(--gold); width: 36px; }
.svc-row h3 { font-size: clamp(26px, 3.4vw, 40px); transition: transform .5s var(--ease), color .4s var(--ease); }
.svc-row .r-desc { font-size: 14.5px; color: var(--ink-soft); max-width: 38ch; opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.svc-row .r-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: background .4s var(--ease), border-color .4s, transform .4s;
}
.svc-row .r-arrow svg { stroke: var(--ink); transition: stroke .4s; }
.svc-row::before {
  content:""; position:absolute; left:0; top:0; bottom:0; width:0;
  background: linear-gradient(90deg, var(--teal-tint), transparent);
  z-index:-1; transition: width .5s var(--ease); border-radius: 0 40px 40px 0;
}
.svc-row:hover { padding-left: 30px; }
.svc-row:hover::before { width: 100%; }
.svc-row:hover h3 { color: var(--teal); }
.svc-row:hover .r-desc { opacity: 1; transform: translateX(0); }
.svc-row:hover .r-arrow { background: var(--gold); border-color: var(--gold); transform: rotate(-45deg); }
.svc-row:hover .r-arrow svg { stroke: #3a2f12; }

.services[data-layout="list"] .svc-grid { display: none; }
.services[data-layout="list"] .svc-list { display: block; }

/* thumb tones (stock-style fills) */
.tone { position: absolute; inset: 0; }
.tone-1 { background: linear-gradient(150deg, #0e7c86, #0b3b40); }
.tone-2 { background: linear-gradient(150deg, #2c7a82, #14454a); }
.tone-3 { background: linear-gradient(150deg, #14707a, #0d3338); }
.tone-4 { background: linear-gradient(150deg, #0e6d76, #08474d); }
.tone-5 { background: linear-gradient(150deg, #1d8089, #0b3b40); }
.tone-6 { background: linear-gradient(150deg, #0b6b74, #0e3034); }
.tone::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(circle at 78% 18%, rgba(217,193,137,0.5), transparent 42%),
    radial-gradient(circle at 18% 88%, rgba(255,255,255,0.16), transparent 46%);
  mix-blend-mode: screen;
}
.tone::after {
  content:""; position:absolute; inset:0; opacity:.5;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 8px);
}

/* ---------- Doctors ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 56px; }
.doc-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.doc-card:hover { transform: translateY(-6px); box-shadow: 0 36px 60px -34px rgba(11,59,64,0.4); }
.doc-portrait { position: relative; min-height: 380px; }
.doc-portrait .doc-slot { width:100%; height:100%; }
.doc-info { padding: 30px 30px 28px; display: flex; flex-direction: column; }
.doc-info .role { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.doc-info h3 { font-size: 30px; margin-top: 10px; }
.doc-info p { font-size: 14.5px; color: var(--ink-soft); margin-top: 14px; }
.doc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.doc-tags span {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 100px;
  background: var(--teal-tint); color: var(--teal-deep);
}

/* ---------- Marquee ---------- */
.marquee-band {
  background: linear-gradient(120deg, var(--teal-deep), var(--teal));
  padding-block: 30px;
  overflow: hidden;
  position: relative;
}
.marquee {
  display: flex; gap: 0; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-band:hover .marquee { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 0 34px;
  font-family: var(--serif); font-size: clamp(20px, 2.4vw, 30px);
  color: rgba(255,255,255,0.92); white-space: nowrap;
}
.marquee-item .sep { color: var(--gold-soft); font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Seasonal specials ---------- */
.specials { background: var(--surface); }
.specials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 54px; }
.special-card {
  position: relative;
  padding: 34px 34px 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 220px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.special-card:hover { transform: translateY(-6px); box-shadow: 0 34px 56px -32px rgba(11,59,64,0.4); }
.special-card .tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep); padding: 6px 13px; border-radius: 100px;
  background: rgba(191,157,74,0.14); border: 1px solid rgba(191,157,74,0.3);
}
.special-card .offer { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); color: var(--teal-deep); line-height: 1.02; }
.special-card .detail { font-size: 14.5px; color: var(--ink-soft); margin-top: auto; }
.special-card .ribbon {
  position: absolute; top: -30px; right: -30px;
  width: 130px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(191,157,74,0.22), transparent 70%);
}

/* ---------- Reviews ---------- */
.reviews { background: linear-gradient(160deg, var(--teal-deep), #082d31); color: #fff; overflow: hidden; }
.reviews .eyebrow { color: var(--gold-soft); }
.reviews .eyebrow::before, .reviews .eyebrow.center::after { background: var(--gold-soft); }
.reviews-stage { position: relative; min-height: 280px; margin-top: 30px; }
.review {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  pointer-events: none;
  max-width: 880px; margin-inline: auto; text-align: center;
}
.review.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.review .stars { color: var(--gold-soft); letter-spacing: 4px; font-size: 18px; }
.review .quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(24px, 3.2vw, 40px); line-height: 1.3;
  margin-top: 22px; color: #fff;
  text-wrap: balance;
}
.review .who { margin-top: 26px; font-size: 14px; letter-spacing: 0.04em; }
.review .who b { color: var(--gold-soft); font-weight: 700; }
.review-dots { display: flex; gap: 10px; justify-content: center; margin-top: 38px; }
.review-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,0.28); transition: all .4s var(--ease);
}
.review-dots button.on { background: var(--gold-soft); width: 30px; border-radius: 6px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-form { padding: clamp(30px, 4vw, 46px); border-radius: var(--radius-lg); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.6);
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14,124,134,0.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.locations { display: flex; flex-direction: column; gap: 16px; }
.loc-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.loc-card:hover { transform: translateX(5px); border-color: var(--teal); box-shadow: 0 22px 40px -26px rgba(11,59,64,0.35); }
.loc-card .pin {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal-tint); display: grid; place-items: center;
}
.loc-card .pin svg { stroke: var(--teal); }
.loc-body { display: flex; flex-direction: column; }
.loc-card .city { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.loc-card .addr { font-size: 15px; margin-top: 5px; line-height: 1.5; }
.loc-links { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.loc-card .tel { font-size: 14.5px; color: var(--teal); font-weight: 700; }
.loc-card .tel:hover { color: var(--teal-deep); }
.loc-card .dir { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.loc-card .dir:hover { color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: rgba(255,255,255,0.8); padding-block: clamp(56px, 7vh, 88px) 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer-brand .mark { font-family: var(--serif); font-size: 30px; color: #fff; }
.footer-brand .mark b { color: var(--gold-soft); }
.footer-brand p { margin-top: 16px; max-width: 34ch; font-size: 14.5px; color: rgba(255,255,255,0.65); }
.footer-col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14.5px; padding: 6px 0; color: rgba(255,255,255,0.78); transition: color .3s, padding .3s; }
.footer-col a:hover { color: #fff; padding-left: 6px; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  transition: background .4s var(--ease), transform .4s var(--ease), border-color .4s;
}
.socials a:hover { background: var(--gold); transform: translateY(-3px); border-color: var(--gold); }
.socials a svg { stroke: #fff; transition: stroke .3s; }
.socials a:hover svg { stroke: #3a2f12; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .credit { color: rgba(255,255,255,0.32); margin-left: 4px; }
.footer-bottom .credit::before { content: "·"; margin-right: 8px; color: var(--gold-soft); opacity: 0.55; }
.footer-bottom .credit a { color: rgba(255,255,255,0.5); letter-spacing: 0.04em; font-weight: 600; transition: color .3s var(--ease); }
.footer-bottom .credit a:hover { color: var(--gold-soft); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
/* when the page isn't focused (screenshots, print, background) skip the
   transition entirely so content is always visible */
html.reveal-static .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media print { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee, .review { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle {
    display: inline-grid; place-items: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .header-cta .btn-contact { display: none; }
}
@media (max-width: 920px) {
  .hero[data-layout="split"] .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { aspect-ratio: 16/10; }
  .hero-figure .float-card { left: 18px; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-figure { aspect-ratio: 4/5; order: -1; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: 1fr; }
  .specials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .svc-grid { grid-template-columns: 1fr; }
  .doc-card { grid-template-columns: 1fr; }
  .doc-portrait { aspect-ratio: 4/5; min-height: 0; }
  .bio-figure { aspect-ratio: 5/8; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: auto 1fr auto; }
  .svc-row .r-desc { display: none; }
  .header-inner { padding: 10px 10px 10px 16px; gap: 12px; }
  .brand .sub { display: none; }
  /* Free up header room on phones: brand + mode toggle + menu only.
     "Book Now" still lives in the hamburger menu and the hero. */
  .brand .mark { font-size: 18.5px; }
  .header-cta { gap: 8px; }
  .header-cta .btn-primary { display: none; }
  /* Hero reads better as an upright portrait on a phone */
  .hero { padding-top: 116px; }
  .hero-figure { aspect-ratio: 4/5; }
  .hero-actions .btn { flex: 1 1 auto; }
  .eyebrow { letter-spacing: 0.18em; }
  /* Give rotating reviews room so long quotes never clip the dots */
  .reviews-stage { min-height: 380px; }
  .review .quote { font-size: 22px; }
  /* Service detail hero spacing */
  .svc-hero { padding-top: 116px; }
  .svc-hero-actions .btn { flex: 1 1 auto; }
  /* Tighten big section gaps a touch on small screens */
  .svc-head { margin-bottom: 36px; }
  .docs-grid, .specials-grid, .bio-stat-row { gap: 16px; }
}

/* hide hero scroll cue helper, utility */
.center-head { text-align: center; max-width: 760px; margin-inline: auto; }
.center-head .lead { margin-top: 18px; }
.mt-22 { margin-top: 22px; }
.mt-30 { margin-top: 30px; }

/* ============================================================
   SERVICE DETAIL PAGE
   ============================================================ */
.svc-hero { padding-top: 150px; padding-bottom: var(--section-y); position: relative; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); margin-bottom: 26px; }
.breadcrumb a { color: var(--teal); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: .5; }
.svc-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.svc-hero .cat { font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.svc-hero h1 { font-size: clamp(38px, 5.4vw, 72px); margin-top: 18px; }
.svc-hero .lead { margin-top: 26px; max-width: 36em; }
.svc-hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.svc-hero-figure { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; }
.svc-hero-figure .tone { inset: 0; }
.svc-hero-figure .badge {
  position: absolute; left: 24px; bottom: 24px; z-index: 3;
  padding: 14px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--teal-deep);
}

.benefits { background: var(--surface); }
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 50px; }
.benefit {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 26px 28px; border-radius: var(--radius); background: var(--bg);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.benefit:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -30px rgba(11,59,64,0.4); }
.benefit .check {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal-tint); display: grid; place-items: center;
}
.benefit .check svg { stroke: var(--teal); }
.benefit p { font-size: 15.5px; line-height: 1.5; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.step { position: relative; padding: 34px 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.step .step-n {
  font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--gold-soft);
  display: block; margin-bottom: 16px;
}
.step h3 { font-size: 23px; }
.step p { font-size: 14.5px; color: var(--ink-soft); margin-top: 10px; line-height: 1.55; }

.faq-list { max-width: 820px; margin: 50px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 27px);
  color: var(--ink); cursor: pointer;
}
.faq-q .pm { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .4s var(--ease), transform .4s var(--ease); }
.faq-q .pm svg { stroke: var(--teal); transition: transform .4s var(--ease); }
.faq-item.open .faq-q .pm { background: var(--teal); }
.faq-item.open .faq-q .pm svg { stroke: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-a p { padding: 0 4px 26px; font-size: 16px; color: var(--ink-soft); line-height: 1.65; max-width: 64ch; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.related-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.related-card:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 26px 46px -30px rgba(11,59,64,0.4); }
.related-card .rc-name { font-family: var(--serif); font-size: 21px; }
.related-card .rc-cat { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.related-card .rc-arrow { flex: none; color: var(--teal); transition: transform .4s var(--ease); }
.related-card:hover .rc-arrow { transform: translateX(4px); }

.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  background: linear-gradient(140deg, var(--teal-deep), var(--teal));
  border-radius: var(--radius-lg);
  padding: clamp(44px, 7vw, 84px);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-inner::before {
  content:""; position:absolute; top:-40%; right:-10%;
  width: 50%; aspect-ratio:1; border-radius:50%;
  background: radial-gradient(circle, rgba(217,193,137,0.35), transparent 70%);
}
.cta-inner h2 { color: #fff; font-size: clamp(32px, 4.4vw, 56px); }
.cta-inner p { color: rgba(255,255,255,0.82); max-width: 46ch; margin: 18px auto 0; font-size: 17px; }
.cta-inner .hero-actions { justify-content: center; margin-top: 34px; }
.cta-inner .eyebrow { color: var(--gold-soft); justify-content: center; }
.cta-inner .eyebrow::before, .cta-inner .eyebrow.center::after { background: var(--gold-soft); }

@media (max-width: 920px) {
  .svc-hero-grid { grid-template-columns: 1fr; }
  .svc-hero-figure { aspect-ratio: 1/1; order: -1; }
  .benefits-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
