/* ============================================================
   Rio3 — Integrative Health · Deerfield Beach
   Fresh editorial redesign. Cream paper, navy/teal accents,
   Newsreader display over Outfit body.
   ============================================================ */

:root {
  /* Palette (fixed brand values) */
  --bg: #f6f4ef;
  --bg-elev: #fbfaf6;
  --paper: #ffffff;
  --ink: #0e2a3a;
  --ink-2: #1a3a4d;
  --ink-soft: #4a5d6b;
  --ink-mute: #7b8a93;
  --line: #e3ddd0;
  --line-soft: #ecead9;
  --sage: #2aa3c8;
  --sage-deep: #1d7fa0;
  --rio-navy: #1a3a8a;
  --rio-teal: #2aa3c8;
  --tan: #d4b896;
  --tan-soft: #e8d8bf;
  --rule: rgba(14, 42, 58, 0.12);

  /* Type */
  --display: "Newsreader", "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Söhne", -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --logo-font: "Quicksand", "Outfit", sans-serif;

  /* Scale */
  --pad: 72px;
  --radius: 6px;
  --radius-lg: 18px;
  --shadow-soft: 0 1px 0 rgba(14,42,58,0.04), 0 18px 48px -18px rgba(14,42,58,0.22);

  /* Derived (dark surfaces) */
  --on-dark: rgba(246, 244, 239, 0.86);
  --on-dark-soft: rgba(246, 244, 239, 0.62);
  --on-dark-mute: rgba(246, 244, 239, 0.42);
  --dark-line: rgba(246, 244, 239, 0.14);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--ink); scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; font-size: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--sage-deep); }
p { margin: 0; }

::selection { background: var(--rio-teal); color: #fff; }

/* ---------- Layout ---------- */
.shell { max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }
@media (max-width: 1100px) { .shell { padding-left: 40px; padding-right: 40px; } }
@media (max-width: 640px)  { .shell { padding-left: 20px; padding-right: 20px; } }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--rio-teal);
  border-radius: 2px;
}

.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--rio-navy);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(26, 58, 138, 0.55);
}
.btn-primary:hover { background: var(--sage-deep); transform: translateY(-1px); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--rule);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: var(--tan); transform: translateY(-1px); }
.btn .arr { transition: transform .25s ease; flex-shrink: 0; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: var(--on-dark);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.topbar .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar a { color: var(--on-dark); }
.topbar a:hover { color: var(--tan); }
.topbar .pipe { opacity: 0.4; margin: 0 10px; }
.topbar-note { display: inline-flex; align-items: center; gap: 9px; }
.topbar-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rio-teal);
  box-shadow: 0 0 0 3px rgba(42, 163, 200, 0.25);
  flex-shrink: 0;
}
.topbar-links { white-space: nowrap; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 239, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .shell {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.nav .logo-slot { flex: 0 0 auto; }
.nav-links { display: flex; gap: 32px; flex: 1; }
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.02em;
  transition: color .15s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  border-radius: 2px;
  background: var(--rio-teal);
}
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 11px 20px; font-size: 13px; }
.nav-hamburger {
  display: none;
  padding: 6px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

/* ---------- Logo / wordmark (fixed brand contract) ---------- */
.logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}
.logo-slot.logo-slot-bare { border: 0; background: transparent; }
.wordmark {
  font-family: var(--logo-font);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.wordmark .wm-ri { color: var(--rio-navy); }
.wordmark .wm-o  { color: var(--rio-teal); margin-left: 0.02em; }
.wordmark .wm-sub {
  color: var(--rio-teal);
  font-size: 0.5em;
  margin-left: 0.06em;
  align-self: flex-end;
  margin-bottom: 0.06em;
  font-weight: 700;
}
.footer .wordmark .wm-ri { color: #ffffff; }
.footer .wordmark .wm-o,
.footer .wordmark .wm-sub { color: var(--rio-teal); }
.modal-aside .wordmark .wm-ri { color: #ffffff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 0;
  overflow: hidden;
}
.hero::before {
  /* soft teal wash top-right, barely-there */
  content: "";
  position: absolute;
  top: -30%; right: -12%;
  width: 56vw; height: 56vw;
  max-width: 860px; max-height: 860px;
  background: radial-gradient(circle, rgba(42,163,200,0.10) 0%, rgba(42,163,200,0.04) 45%, transparent 70%);
  pointer-events: none;
}
.hero .shell { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(46px, 5.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 26px;
  max-width: 16ch;
}
.hero-copy .lede { margin-top: 26px; font-size: 18px; }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 52px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.hero-facts > div {
  padding: 22px 32px 0 0;
  margin-right: 32px;
  border-right: 1px solid var(--rule);
}
.hero-facts > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-facts dt {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.hero-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

/* Hero specimen panel */
.hero-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-panel-stage {
  position: relative;
  aspect-ratio: 1 / 0.78;
  background:
    radial-gradient(circle at 32% 28%, var(--bg-elev), var(--bg) 62%, #edeadf 100%);
  border-bottom: 1px solid var(--line-soft);
}
.hero-panel-stage .ozone-svg {
  position: absolute;
  inset: 2%;
  width: 96%;
  height: 96%;
}
.hero-panel-note { padding: 22px 26px 26px; }
.hero-panel-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  display: block;
  margin-bottom: 8px;
}
.hero-panel-note p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }

/* Hero category index */
.hero-index {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: clamp(52px, 6vw, 84px);
  border-top: 1px solid var(--rule);
}
.hero-index-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 22px 20px 22px 0;
  border-right: 1px solid var(--rule);
  margin-right: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s ease;
}
.hero-index-item:last-child { border-right: 0; margin-right: 0; }
.hero-index-item .hii-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  flex-shrink: 0;
}
.hero-index-item .hii-label { flex: 1; min-width: 0; }
.hero-index-item .hii-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sage-deep);
  background: rgba(42, 163, 200, 0.1);
  border-radius: 999px;
  padding: 2px 8px;
  flex-shrink: 0;
}
.hero-index-item .arr { color: var(--ink-mute); transition: transform .2s ease, color .2s ease; flex-shrink: 0; }
.hero-index-item:hover { color: var(--sage-deep); }
.hero-index-item:hover .arr { transform: translateX(3px); color: var(--sage-deep); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--bg);
  padding: 15px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 46s linear infinite;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.marquee-track > span { display: inline-flex; align-items: center; gap: 64px; opacity: 0.85; }
.marquee-track .sep {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rio-teal);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 20px;
  max-width: 20ch;
}
.section-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 56px);
}
.more-note { font-size: 13px; color: var(--ink-mute); }
.programs-band .more-note { color: var(--on-dark-soft); }

/* ---------- Treatment cards ---------- */
.treat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.treat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.treat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--tan);
}
.tc-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.tc-cat {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
}
.tc-price {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  color: var(--rio-navy);
  white-space: nowrap;
}
.treat-card h3 { font-size: 25px; line-height: 1.12; font-weight: 400; }
.tc-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.tc-duration {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.tc-book {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage-deep);
  padding: 4px 0;
}
.tc-book .arr { transition: transform .2s ease; }
.tc-book:hover { color: var(--rio-navy); }
.tc-book:hover .arr { transform: translateX(3px); }

/* ---------- Programs (dark band, shared by home + programs page) ---------- */
.programs-band {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(26, 58, 138, 0.5), transparent 65%),
    var(--ink);
  color: var(--on-dark);
}
.programs-band .section-head h2 { color: var(--bg); }
.programs-band .section-head h2 em { color: var(--rio-teal); }
.programs-band .lede { color: var(--on-dark-soft); }
.programs-band .eyebrow { color: var(--rio-teal); }

.prog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.prog-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.prog-card:hover {
  border-color: rgba(42, 163, 200, 0.5);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}
.pc-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--rio-teal);
  margin-bottom: 18px;
}
.prog-card h3 {
  font-size: 30px;
  font-weight: 300;
  color: var(--bg);
  line-height: 1.05;
}
.pc-meta {
  font-size: 12.5px;
  color: var(--on-dark-soft);
  letter-spacing: 0.04em;
  margin-top: 8px;
}
.pc-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--on-dark-soft);
  margin: 18px 0 20px;
  flex: 1;
}
.pc-tiers {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.pc-tiers li {
  font-size: 13.5px;
  color: var(--on-dark);
  padding: 11px 0;
  border-top: 1px solid var(--dark-line);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.pc-tiers li::before {
  content: "+";
  font-family: var(--mono);
  color: var(--tan);
  flex-shrink: 0;
}
.pc-flag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--tan);
  border-radius: 999px;
  padding: 3px 8px;
}
.pc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rio-teal);
  padding: 4px 0;
  align-self: flex-start;
}
.pc-link .arr { transition: transform .2s ease; }
.pc-link:hover { color: var(--bg); }
.pc-link:hover .arr { transform: translateX(3px); }

/* Program tracks (programs page) */
.programs-page { padding-top: clamp(56px, 7vw, 84px); }
.prog-track {
  padding-bottom: clamp(56px, 7vw, 80px);
  margin-bottom: clamp(56px, 7vw, 80px);
  border-bottom: 1px solid var(--dark-line);
}
.prog-track:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.prog-track-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}
.pt-index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--rio-teal);
  display: block;
  margin-bottom: 14px;
}
.prog-track-name {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 300;
  color: var(--bg);
  line-height: 1.02;
}
.prog-track-meta {
  font-size: 13px;
  color: var(--on-dark-soft);
  letter-spacing: 0.04em;
  margin-top: 10px;
}
.prog-track-desc {
  font-size: 15px;
  color: var(--on-dark-soft);
  line-height: 1.7;
  margin: 0;
  max-width: 52ch;
}
.prog-track-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.ptc-note { font-size: 13px; color: var(--on-dark-mute); }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tier {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier.featured {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
}
.tier .badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--rio-teal);
  color: #fff;
}
.tier-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  margin-bottom: 10px;
}
.tier.featured .tier-label { color: var(--ink-mute); }
.tier-name {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 400;
  color: var(--bg);
  margin-bottom: 4px;
  line-height: 1.1;
}
.tier.featured .tier-name { color: var(--ink); }
.tier-tag { font-size: 13px; color: var(--on-dark-soft); margin-bottom: 20px; }
.tier.featured .tier-tag { color: var(--ink-soft); }
.tier-feat { list-style: none; padding: 0; margin: 0; }
.tier-feat li {
  font-size: 13.5px;
  color: var(--on-dark);
  padding: 11px 0;
  border-top: 1px solid var(--dark-line);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}
.tier-feat li::before {
  content: "+";
  font-family: var(--mono);
  color: var(--tan);
  flex-shrink: 0;
}
.tier.featured .tier-feat li { color: var(--ink-soft); border-color: var(--line); }
.tier.featured .tier-feat li::before { color: var(--sage-deep); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-elev); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.testi-carousel { max-width: 820px; margin: 0 auto; }
.testi-track-wrap { overflow: hidden; border-radius: var(--radius-lg); }
.testi-track { display: flex; will-change: transform; }
.testi {
  flex: 0 0 100%;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 46px 52px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  box-sizing: border-box;
}
.stars { color: var(--tan); letter-spacing: 3px; font-size: 14px; margin-bottom: 20px; }
.testi blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.42;
  color: var(--ink);
  font-weight: 400;
  flex: 1;
  text-wrap: pretty;
}
.testi-foot {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}
.testi-foot .name { font-weight: 600; font-size: 14px; }
.testi-src {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 26px;
}
.testi-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s, color .15s;
}
.testi-btn:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.testi-dots { display: flex; gap: 8px; align-items: center; }
.testi-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  padding: 0;
  background: var(--line);
  transition: background .2s, transform .2s;
}
.testi-dot.active { background: var(--sage-deep); transform: scale(1.3); }

/* ---------- Location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.map-frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  position: relative;
}
.apple-maps-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.apple-maps-link:hover { color: var(--sage-deep); border-color: var(--sage-deep); }
.location-info { display: flex; flex-direction: column; align-items: flex-start; }
.loc-address { margin-bottom: 30px; }
.loc-street {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
}
.loc-city { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }
.loc-contacts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; }
.loc-contacts a { border-bottom: 1px solid var(--rule); padding-bottom: 1px; font-weight: 500; }
.loc-contacts a:hover { color: var(--sage-deep); border-color: var(--sage-deep); }
.hours-title {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  margin-bottom: 6px;
}
.hours {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  width: 100%;
  max-width: 420px;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.hours li.closed { color: var(--ink-mute); }
.hours .day { font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 420px at 12% 120%, rgba(42, 163, 200, 0.28), transparent 62%),
    var(--rio-navy);
  color: #fff;
  padding: clamp(60px, 7vw, 88px) 0;
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: clamp(34px, 4vw, 56px);
  color: #fff;
  letter-spacing: -0.02em;
}
.cta-band h2 em { color: var(--tan); }
.cta-band p { margin-top: 14px; font-size: 15px; color: rgba(255, 255, 255, 0.75); max-width: 44ch; }
.cta-band-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band-phone {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
}
.cta-band-phone:hover { color: var(--tan); border-color: var(--tan); }

/* ---------- Page head (inner pages) ---------- */
.crumbs {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover, .crumbs a:focus-visible { text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 6px; opacity: 0.55; }
.crumbs [aria-current="page"] { opacity: 0.75; }
.page-head {
  padding: clamp(60px, 8vw, 96px) 0 clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(800px 340px at 90% -20%, rgba(42, 163, 200, 0.08), transparent 65%),
    var(--bg);
}
.page-head-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.page-head h1 {
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 24px;
  max-width: 16ch;
}
.page-head .lede { margin-top: 24px; }
.page-head-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.page-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}
.page-meta {
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.page-meta .row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.page-meta .row:first-child { border-top: 1px solid var(--line-soft); }
.page-meta .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  width: 92px;
  flex-shrink: 0;
}
.page-body { padding: clamp(44px, 6vw, 72px) 0 clamp(80px, 9vw, 110px); }

/* ---------- Treatments page: filter + menu rows ---------- */
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 56px);
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: border-color .15s, color .15s, background .15s;
}
.filter-pill:hover { border-color: var(--sage-deep); color: var(--ink); }
.filter-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.fp-count {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--sage-deep);
  background: rgba(42, 163, 200, 0.1);
  border-radius: 999px;
  padding: 1px 7px;
}
.filter-pill.active .fp-count { background: rgba(255, 255, 255, 0.14); color: var(--rio-teal); }

.menu-group { margin-bottom: clamp(48px, 6vw, 72px); }
.menu-group:last-of-type { margin-bottom: 0; }
.menu-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0;
}
.menu-group-head h2 {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 400;
}
.mg-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.menu-rows { display: flex; flex-direction: column; }
.menu-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 190px;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.mr-idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  padding-top: 8px;
}
.mr-main h3 { font-size: 25px; font-weight: 400; line-height: 1.15; }
.mr-summary {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 10px;
  max-width: 68ch;
}
.mr-includes {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mr-includes li {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 4px 12px;
}
.mr-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.mr-price {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  color: var(--rio-navy);
  line-height: 1;
  white-space: nowrap;
}
.mr-duration {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  margin-top: 4px;
}
.mr-book {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--paper);
  transition: border-color .15s, background .15s, color .15s;
}
.mr-book:hover { background: var(--rio-navy); border-color: var(--rio-navy); color: #fff; }
.mr-book .arr { transition: transform .2s ease; }
.mr-book:hover .arr { transform: translateX(3px); }

.menu-note {
  margin-top: clamp(48px, 6vw, 64px);
  padding: 32px 36px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.menu-note p { font-size: 14.5px; color: var(--ink-soft); max-width: 52ch; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(60px, 8vw, 84px) 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr 1.1fr;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--dark-line);
}
.footer-col-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  margin: 0 0 18px;
  font-family: var(--sans);
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 7px 0; font-size: 14px; color: var(--on-dark); }
.footer li a:hover { color: var(--tan); }
.footer .tagline { font-size: 14px; color: var(--on-dark-soft); max-width: 34ch; line-height: 1.65; }
.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  padding: 5px 0;
  max-width: 220px;
}
.footer-hours li.closed { color: var(--on-dark-mute); }
.footer-base {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--on-dark-mute);
  flex-wrap: wrap;
}
.footer-base .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-base .legal a:hover { color: var(--tan); }

/* ---------- Legal / compliance pages (shared with static .html) ---------- */
.legal-page { padding: 72px 0 96px; }
.legal-content { max-width: 760px; }
.legal-content h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 20px;
}
.legal-content .legal-updated {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin: 18px 0 36px;
}
.legal-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.legal-content p strong { color: var(--ink); font-weight: 600; }
.legal-content a { color: var(--sage-deep); border-bottom: 1px solid var(--rule); }
.legal-content a:hover { border-color: var(--sage-deep); }
@media (max-width: 640px) { .legal-page { padding: 48px 0 64px; } }

/* ============================================================
   BOOKING MODAL (booking.tsx — fixed markup, styled here)
   ============================================================ */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 42, 58, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modal-fade .25s ease;
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  box-shadow: 0 40px 100px -24px rgba(0, 0, 0, 0.5);
  animation: modal-rise .3s cubic-bezier(0.21, 0.8, 0.35, 1);
}
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
.modal.consult-modal {
  grid-template-columns: 1fr;
  width: min(640px, 100%);
}

/* Square booking widget modal — single column, tall iframe */
.modal.booking-widget-modal {
  grid-template-columns: 1fr;
  width: min(760px, 100%);
  max-height: min(920px, calc(100vh - 48px));
}
.booking-embed {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: min(920px, calc(100vh - 48px));
  background: var(--bg);
}
.booking-embed-frame {
  flex: 1;
  width: 100%;
  border: 0;
  min-height: 0;
}
.booking-embed-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg);
  color: var(--ink-mute);
  font-size: 13px;
}
.booking-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--line-soft);
  border-top-color: var(--rio-teal);
  animation: booking-spin .8s linear infinite;
}
@keyframes booking-spin { to { transform: rotate(360deg); } }
.booking-embed-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
  text-align: center;
  font-size: 12px;
  color: var(--ink-mute);
}
.booking-embed-foot a { color: var(--rio-teal); }
.booking-embed-fallback {
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.booking-embed-fallback .btn { margin-top: 8px; }
@media (max-width: 720px) {
  .modal.booking-widget-modal { max-height: calc(100vh - 32px); }
  .booking-embed { height: calc(100vh - 32px); }
}

/* Aside — dark rail with steps */
.modal-aside {
  background:
    radial-gradient(420px 320px at -10% 110%, rgba(42, 163, 200, 0.22), transparent 65%),
    linear-gradient(165deg, var(--ink) 0%, #123048 100%);
  color: var(--on-dark);
  padding: 36px 30px 28px;
  display: flex;
  flex-direction: column;
}
.aside-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rio-teal);
  margin-top: 10px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  font-size: 13.5px;
  color: var(--on-dark-mute);
  transition: color .2s ease;
}
.steps li.active { color: #fff; font-weight: 500; }
.steps li.done { color: var(--on-dark-soft); }
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--dark-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  flex-shrink: 0;
  transition: background .2s, border-color .2s, color .2s;
}
.steps li.active .step-num {
  background: var(--rio-teal);
  border-color: var(--rio-teal);
  color: #fff;
}
.steps li.done .step-num {
  background: rgba(42, 163, 200, 0.18);
  border-color: transparent;
  color: var(--rio-teal);
}
.aside-foot {
  font-size: 12px;
  color: var(--on-dark-mute);
  line-height: 1.6;
  padding-top: 18px;
  border-top: 1px solid var(--dark-line);
}

/* Body */
.modal-body {
  position: relative;
  padding: 40px 44px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  z-index: 2;
}
.modal-close:hover { background: var(--line-soft); color: var(--ink); }

.modal-step { flex: 1; display: flex; flex-direction: column; }
.step-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  display: block;
  margin-bottom: 14px;
}
.modal-step h3 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.modal-step .sub,
.success .sub {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 12px 0 26px;
  max-width: 52ch;
}

/* Step 1: options */
.option-list { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  width: 100%;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.option:hover { border-color: var(--sage-deep); }
.option.selected {
  border-color: var(--sage-deep);
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--sage-deep), 0 10px 26px -14px rgba(29, 127, 160, 0.4);
}
.opt-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  flex-shrink: 0;
  position: relative;
  transition: border-color .15s;
}
.option.selected .opt-radio { border-color: var(--sage-deep); }
.option.selected .opt-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--sage-deep);
}
.opt-body { flex: 1; min-width: 0; }
.opt-title { font-size: 15px; font-weight: 500; color: var(--ink); }
.opt-desc { font-size: 12.5px; color: var(--ink-mute); margin-top: 3px; line-height: 1.5; }
.opt-meta {
  font-family: var(--display);
  font-size: 19px;
  color: var(--rio-navy);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Step 2: calendar + slots */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}
.cal-day {
  padding: 10px 4px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.cal-day .dow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.cal-day:hover { border-color: var(--sage-deep); }
.cal-day.selected {
  background: var(--rio-navy);
  border-color: var(--rio-navy);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(26, 58, 138, 0.6);
}
.cal-day.selected .dow { color: rgba(255, 255, 255, 0.7); }
.cal-day.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
}
.cal-day.disabled:hover { border-color: var(--line); }

.slots { display: flex; gap: 8px; flex-wrap: wrap; }
.slot {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s, background .15s, color .15s;
}
.slot:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.slot.selected {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #fff;
}

/* Step 3: form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full, .form-grid .full { grid-column: 1 / -1; }
.field label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input,
.field textarea,
.field select {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-mute); opacity: 0.7; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px rgba(29, 127, 160, 0.15);
}

.consent-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 12px 14px;
}
.consent-field input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--sage-deep);
}
.consent-field label {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}
.field-error { color: #922b21; font-size: 12px; margin-top: 6px; }

/* Step 4: confirm */
.confirm-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 24px;
}
.confirm-card .row {
  display: flex;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  align-items: baseline;
}
.confirm-card .row:last-child { border-bottom: 0; }
.confirm-card .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  width: 88px;
  flex-shrink: 0;
}
.confirm-card .val { font-weight: 500; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }

/* Step 5: success */
.success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 10px;
}
.success .check {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(42, 163, 200, 0.14);
  color: var(--sage-deep);
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(42, 163, 200, 0.4);
}
.success h3 { font-size: 30px; }
.success .sub { margin: 14px auto 26px; max-width: 42ch; }

/* Modal footer */
.modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.step-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); margin: 0; }
.bg-paper { background: var(--paper); }

.stripe-ph {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(14, 42, 58, 0.06) 0,
    rgba(14, 42, 58, 0.06) 1px,
    transparent 1px,
    transparent 12px
  );
  background-color: var(--bg-elev);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--bg); outline-offset: 2px; }

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 2px;
  border-radius: 2px;
}
.footer :focus-visible,
.programs-band :focus-visible,
.cta-band :focus-visible,
.topbar :focus-visible,
.marquee :focus-visible,
.modal-aside :focus-visible {
  outline-color: var(--tan);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; }
  .hero-index { grid-template-columns: repeat(2, 1fr); border-top: 0; }
  .hero-index-item { border-top: 1px solid var(--rule); }
  .hero-index-item:nth-child(even) { border-right: 0; margin-right: 0; padding-left: 20px; }
  .treat-grid { grid-template-columns: repeat(2, 1fr); }
  .prog-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .prog-track-header { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .page-head-grid { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 860px) {
  .modal { grid-template-columns: 1fr; max-height: calc(100vh - 32px); }
  .modal-aside { display: none; }
  .modal-back { padding: 16px; align-items: flex-end; }
  .modal { animation: modal-rise-mobile .3s cubic-bezier(0.21, 0.8, 0.35, 1); }
  @keyframes modal-rise-mobile {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: none; }
  }
  .modal-body { padding: 32px 24px 20px; }
  .modal.consult-modal .modal-body { padding: 32px 24px 20px !important; }
  .cal-grid { grid-template-columns: repeat(7, 1fr); gap: 5px; }
  .cal-day { font-size: 14px; padding: 8px 2px 10px; border-radius: 8px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Topbar */
  .topbar .shell { flex-direction: column; gap: 4px; text-align: center; padding-top: 8px; padding-bottom: 8px; }

  /* Nav: hamburger layout */
  .nav .shell { flex-wrap: wrap; gap: 0; padding-top: 13px; padding-bottom: 13px; }
  .nav-hamburger { display: flex; order: 2; margin-left: auto; align-items: center; }
  .nav-links {
    display: none;
    order: 3;
    flex: 0 0 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
    padding: 6px 0 8px;
    border-top: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { padding: 14px 0; font-size: 15px; border-bottom: 1px solid var(--line-soft); width: 100%; }
  .nav-links .nav-link.active::after { display: none; }
  .nav-cta {
    display: none;
    order: 4;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 0 14px;
  }
  .nav-cta.open { display: flex; }
  .nav-cta .btn { width: 100%; }

  /* Hero */
  .hero { padding-top: 52px; }
  .hero-copy h1 { margin-top: 22px; }
  .hero-facts > div { padding-right: 22px; margin-right: 22px; }

  /* Sections */
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 18px; }

  /* Menu rows */
  .menu-row { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .mr-idx { display: none; }
  .mr-side { flex-direction: row; align-items: baseline; justify-content: space-between; width: 100%; text-align: left; flex-wrap: wrap; gap: 10px; }
  .mr-book { margin-top: 0; margin-left: auto; }

  /* Location */
  .location-grid { grid-template-columns: 1fr; }

  /* CTA band */
  .cta-band-inner { flex-direction: column; align-items: flex-start; gap: 28px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: column; gap: 10px; }
}

@media (max-width: 560px) {
  .treat-grid { grid-template-columns: 1fr; }
  .hero-index { grid-template-columns: 1fr; }
  .hero-index-item,
  .hero-index-item:nth-child(even) { border-right: 0; margin-right: 0; padding-left: 0; }
  .hero-facts { flex-direction: column; }
  .hero-facts > div {
    border-right: 0;
    margin-right: 0;
    padding: 14px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
  }
  .hero-facts dt { margin-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .menu-note { padding: 24px 22px; }
  .testi { padding: 32px 26px; }
}

/* ---------- Static service pages (SEO, shared with .html files) ---------- */
.service-prose { max-width: 780px; }
.service-prose h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin: 46px 0 16px;
}
.service-prose h2:first-child { margin-top: 0; }
.service-prose h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
  letter-spacing: 0;
}
.service-prose p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); }
.service-prose ul { margin: 0 0 16px; padding-left: 22px; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.service-prose li { margin-bottom: 6px; }
.service-prose li strong, .service-prose p strong { color: var(--ink); font-weight: 600; }
.service-prose a { color: var(--sage-deep); border-bottom: 1px solid var(--rule); }
.service-prose a:hover { border-color: var(--sage-deep); }
.service-note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--rio-teal);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 32px 0;
}
.service-note p { margin: 0; font-size: 14px; }
.service-cta-band {
  margin-top: 52px;
  padding: 30px 28px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.service-cta-band p { margin: 0; color: var(--on-dark); font-size: 15px; max-width: 48ch; }
.service-related { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.service-related h2 { font-size: 20px; margin: 0 0 12px; }
.service-related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.service-related li { margin: 0; }
.service-related a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  background: var(--paper);
  color: var(--ink);
}
.service-related a:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.services-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 820px) { .services-index { grid-template-columns: 1fr; } }
.services-index a.svc-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
}
.services-index a.svc-card:hover { border-color: var(--sage-deep); }
.svc-card h2 { font-size: 24px; margin: 0 0 10px; }
.svc-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }
.svc-card .svc-more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--sage-deep); }
