/* ==========================================================================
   Massage Devine — main stylesheet
   Design tokens, base styles, layout, components, sections, responsive.
   ========================================================================== */

/* ----- Design tokens -----
   All custom properties (:root) are generated from tokens/tokens.json by
   Style Dictionary. Edit the tokens there and run `npm run build:tokens`.
   Palette: lavender-tinted neutrals + Thai-purple brand + muted gold;
   --primary/--primary-deep keep white text at WCAG AA contrast. */
@import url("tokens.generated.css?v=3");

/* ----- Reset & base ----- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  /* 18px base type: the audience skews 40s–70s, so the whole rem-based
     scale runs ~12% larger for readability. */
  font-size: 112.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 124px; /* keep anchors clear of the sticky header */
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

ul[class], ol[class] { list-style: none; }

a { color: var(--primary); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--primary-deep);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover { background: rgba(91, 73, 214, 0.07); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--primary); }

.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; }
.btn-xl { padding: 1.2rem 3rem; font-size: 1.05rem; }

/* Hero booking CTA: the single highest-priority element on the page.
   Micro-interactions: idle glow pulse + periodic shine sweep, springy
   hover lift, tactile press. */
.cta-hero {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  animation: cta-pulse 2.8s ease-in-out infinite;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease-in-out, background-color 0.18s ease-in-out;
}
.cta-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 45%;
  background: linear-gradient(105deg,
    transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: cta-shine 5.5s ease-in-out infinite;
  pointer-events: none;
}
.cta-hero:hover {
  animation: none;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 36px -2px rgba(91, 73, 214, 0.6);
}
.cta-hero:active { transform: translateY(0) scale(0.97); }
.cta-hero:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 6px 24px -4px rgba(91, 73, 214, 0.45); }
  50%      { box-shadow: 0 8px 34px 0px rgba(91, 73, 214, 0.65); }
}
@keyframes cta-shine {
  0%, 70% { left: -80%; }
  100%    { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-hero { animation: none; transition: none; }
  .cta-hero::after { animation: none; }
  .cta-hero:hover { transform: none; }
}

/* Quiet text link — deliberately secondary to the primary CTA */
.link-quiet {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}
.link-quiet:hover {
  color: var(--primary-deep);
  text-decoration: underline;
}

/* ----- Utility topbar ----- */
.topbar {
  /* Frosted ice-purple strip — dark text for contrast, harmonizes with the
     lighter brand header below instead of fighting it */
  background: linear-gradient(90deg, var(--brand-tint), #E3DDFB);
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(91, 73, 214, 0.14);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
}
.topbar a {
  color: var(--primary);
  font-weight: 600;
}
.topbar a:hover { color: var(--primary-deep); }
.topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
}
.topbar-sep { opacity: 0.4; }

.topbar-promo a { color: var(--primary); }
.topbar-promo a:hover { color: var(--primary-deep); }

@media (max-width: 640px) {
  .topbar-promo { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-right {
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.1rem;
    text-align: center;
  }
  .topbar-sep { display: none; }
}

/* ----- Header (solid brand purple, per reference design) ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 96px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-mark {
  height: 86px;
  width: auto;
  flex: none;
  object-fit: contain; /* transparent PNG shown exactly as authored — no backing, no recoloring */
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  white-space: nowrap;
}
.brand-name em { font-style: italic; color: #fff; }

.site-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none; /* the reset only covers ul[class]; this ul is classless */
}
.site-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding-block: 0.4rem;
  transition: color 0.18s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: #fff; }
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

/* Dropdown submenus (Memberships, About) */
.site-nav li { position: relative; }
.site-nav .caret { font-size: 0.7em; }

.subnav {
  position: absolute;
  top: calc(100% + 12px);
  left: -1rem;
  min-width: 264px;
  padding: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 16px -8px rgba(38, 35, 58, 0.18),
              0 24px 50px -16px rgba(38, 35, 58, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.18s ease-in-out, transform 0.18s ease-in-out,
              visibility 0.18s;
  z-index: 60;
}
.subnav::before {
  /* invisible hover bridge between trigger and panel */
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.subnav::after {
  /* caret notch pointing at the trigger */
  content: "";
  position: absolute;
  top: -7px;
  left: 2.1rem;
  width: 13px;
  height: 13px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
/* The last dropdown sits near the viewport edge — anchor it right so the
   hidden panel never adds horizontal overflow. */
.has-sub:last-child .subnav {
  left: auto;
  right: -1rem;
}
.has-sub:last-child .subnav::after {
  left: auto;
  right: 2.1rem;
}

.has-sub:hover .subnav,
.has-sub:focus-within .subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.subnav a {
  display: block;
  padding: 0.7rem 0.95rem;
  border-radius: 11px;
  white-space: nowrap;
  transition: background-color 0.15s ease-in-out;
}
.subnav a::after { display: none; }
.subnav a strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.15s ease-in-out;
}
.subnav a span {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.subnav a:hover { background: var(--brand-tint); }
.subnav a:hover strong { color: var(--primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Book Now inverts to white on the purple header */
.site-header .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}
.site-header .btn-primary:hover {
  background: var(--gold-soft);
  color: var(--primary-deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Sections (shared) ----- */
section { padding-block: var(--section-pad); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-sub {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.card-badge {
  position: absolute;
  top: -0.8rem;
  left: 1.75rem;
  padding: 0.3rem 0.9rem;
  background: var(--gold);
  color: var(--primary-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, var(--sand) 0%, #E9E4F9 55%, var(--cream) 100%);
  /* Tight top so the booking CTA lands above the fold on laptops */
  padding-block: clamp(2rem, 4vw, 3.75rem) clamp(3.5rem, 7vw, 6rem);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.hero-orb-1 {
  width: 480px; height: 480px;
  right: -140px; top: -160px;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
}
.hero-orb-2 {
  width: 420px; height: 420px;
  left: -160px; bottom: -200px;
  background: radial-gradient(circle, rgba(145, 129, 242, 0.4), transparent 70%);
}
/* Animated flora: leaves sway on offset cycles, petals drift upward */
.hero-flora {
  position: absolute;
  right: clamp(-60px, 4vw, 80px);
  bottom: -30px;
  width: clamp(220px, 30vw, 380px);
  color: var(--primary);
  transform: rotate(12deg);
}
.flora-leaf {
  transform-origin: 100px 105px;
  animation: leaf-sway 9s ease-in-out infinite alternate;
}
.flora-leaf-2 { animation-duration: 12s; animation-delay: -3s; }
.flora-leaf-3 { animation-duration: 15s; animation-delay: -7s; }
@keyframes leaf-sway {
  from { transform: translateY(0) rotate(-2.5deg); }
  to   { transform: translateY(-9px) rotate(3deg); }
}
.flora-petal { animation: petal-drift 11s ease-in-out infinite; }
.flora-petal-2 { animation-duration: 14s; animation-delay: -5s; }
.flora-petal-3 { animation-duration: 17s; animation-delay: -9s; }
@keyframes petal-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(7px, -16px); }
}
.hero-orb-1 { animation: orb-drift 16s ease-in-out infinite alternate; }
.hero-orb-2 { animation: orb-drift 21s ease-in-out infinite alternate-reverse; }
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-22px, 14px) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .flora-leaf, .flora-petal, .hero-orb-1, .hero-orb-2 { animation: none; }
}

.hero-inner {
  position: relative;
  max-width: 720px;
}

.hero h1 .accent {
  font-style: italic;
  color: var(--primary);
}

.hero-sub {
  margin-top: 1.4rem;
  max-width: 56ch;
  font-size: 1.13rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.hero-sub em { color: var(--ink); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  margin-top: 2.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-trust li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ----- Page hero (subpages) ----- */
.page-hero {
  background: linear-gradient(170deg, var(--sand) 0%, #E9E4F9 60%, var(--cream) 100%);
  padding-block: clamp(3.25rem, 7vw, 5rem);
}
.page-hero .section-eyebrow { margin-bottom: 0.5rem; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
.page-hero .page-sub {
  margin-top: 1rem;
  max-width: 58ch;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ----- Services overview cards (home) ----- */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.overview-card {
  display: block;
  padding: 1.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.overview-card h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.overview-card .ov-desc { font-size: 0.93rem; color: var(--ink-soft); }
.overview-card .ov-price {
  margin-top: 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.overview-card .ov-cta {
  margin-top: 0.3rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}
.overview-more { text-align: center; margin-top: 2.75rem; }

/* ----- Benefits ----- */
.benefits { background: var(--cream); }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.benefit {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.benefit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--sand);
  color: var(--primary);
}
.benefit-icon svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.benefit p { font-size: 0.93rem; color: var(--ink-soft); }

/* ----- Services ----- */
.services { background: var(--sand); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
  align-items: start;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card.is-featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.service-desc {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.service-list {
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.45rem;
}
.service-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.93rem;
}
.service-list li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lavender);
  transform: translateY(-2px);
}
.service-list li.is-addon { color: var(--ink-soft); }
.service-list li.is-addon::before { background: var(--gold); }
.service-list li.is-addon span {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-pricing {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
}
.price-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.6rem;
  border-radius: 10px;
  color: var(--ink);
  transition: background-color 0.15s ease;
}
.price-row:hover { background: var(--sand); }
.price-row.is-popular { background: rgba(145, 129, 242, 0.12); }
.price-row.is-popular:hover { background: rgba(145, 129, 242, 0.22); }

.price-duration {
  font-weight: 600;
  font-size: 0.95rem;
}
.price-duration em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 0.3rem;
}
.price-amount {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary);
}
.price-book {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
  transition: opacity 0.15s ease;
}
.price-row:hover .price-book { opacity: 1; }

/* ----- Match quiz ----- */
.quiz {
  margin-top: 2.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.quiz-head h3 { font-size: 1.4rem; }
.quiz-head p { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.95rem; }

.quiz-form {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}
.quiz-q { border: 0; }
.quiz-q legend {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}
.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.quiz-options span {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.quiz-options span:hover { border-color: var(--lavender); }
.quiz-options input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.quiz-options input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.quiz-result {
  margin-top: 1.75rem;
  padding: 1.5rem 1.75rem;
  background: var(--sand);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}
.quiz-result-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.quiz-result h4 {
  font-size: 1.35rem;
  margin: 0.3rem 0 0.4rem;
}
.quiz-result p { font-size: 0.95rem; color: var(--ink-soft); }
.quiz-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

/* ----- Memberships ----- */
.memberships { background: var(--primary); }
.memberships .section-eyebrow { color: var(--gold); }
.memberships h2, .memberships h3 { color: #fff; }
.memberships .section-sub { color: rgba(255, 255, 255, 0.75); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.6rem;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.1rem 1.75rem 1.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
}
.plan-card.is-featured {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
}

.plan-freq {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
}

.plan-prices { margin: 1.4rem 0; display: grid; gap: 0.4rem; }
.plan-prices p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.plan-prices strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  color: #fff;
  margin-right: 0.25rem;
}

.plan-perks {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.plan-perks li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}
.plan-perks li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
}

.plan-card .btn { margin-top: auto; }
.plan-card .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.plan-card .btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.plan-card .btn-primary {
  background: var(--gold);
  color: var(--primary-deep);
}
.plan-card .btn-primary:hover { background: #D8BC82; }

.compare {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
}
.compare-title {
  font-size: 1.05rem;
  color: var(--gold) !important;
  margin-bottom: 1rem;
}
.compare-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.6rem 2rem;
}
.compare-list li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.93rem;
}
.compare-list li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
}

/* ----- Savings calculator (inside dark memberships band) ----- */
.calc {
  margin-top: 1.6rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
}
.calc-head h3 { font-size: 1.35rem; }
.calc-head p {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.calc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin-top: 1.5rem;
}
.calc-group { border: 0; }
.calc-group legend {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.segmented {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.segmented span {
  display: inline-block;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.segmented span:hover { color: #fff; }
.segmented input:checked + span {
  background: var(--gold);
  color: var(--primary-deep);
}
.segmented input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.calc-result {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}
.calc-stat {
  flex: 1 1 160px;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
}
.calc-stat.is-savings {
  background: var(--gold);
}
.calc-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.25rem;
}
.calc-stat.is-savings .calc-label { color: rgba(38, 35, 58, 0.7); }
.calc-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #fff;
}
.calc-stat.is-savings .calc-value { color: var(--primary-deep); }
.calc-value.is-strike { text-decoration: line-through; opacity: 0.65; }

.calc-note {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Bar comparison: membership cost vs pay-per-visit, drawn in pure CSS */
.calc-bars {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.calc-bar-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 0.9rem;
}
.calc-bar-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.calc-bar {
  height: 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  overflow: hidden;
}
.calc-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gold);
  transition: width 0.45s ease;
}
.calc-bar-fill.is-muted { background: rgba(255, 255, 255, 0.35); }

/* ----- Products ----- */
.products-section {
  background: var(--sand);
  padding-top: clamp(2rem, 4vw, 3.25rem); /* hero already introduces the page */
}

.page-hero-tight { padding-block: clamp(2.25rem, 5vw, 3.5rem) clamp(1.75rem, 3vw, 2.5rem); }

/* Products sit close under the intro text — cards are the point of the page */
.products-section {
  padding-block: clamp(1.75rem, 3.5vw, 3rem) clamp(3.25rem, 6vw, 5rem);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  align-items: stretch;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 1.5rem;
  background: linear-gradient(150deg, var(--brand-tint), #E5DFFA);
}
.product-media img {
  max-width: 72%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 12px 20px rgba(38, 35, 58, 0.22));
}
.product-price-badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.95rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
}
.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.7rem 1.7rem;
}
.product-brand {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.product-body h3 { font-size: 1.3rem; }
.product-size {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.product-desc {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.product-notes {
  margin: 0.8rem 0 1.2rem;
  display: grid;
  gap: 0.45rem;
}
.product-notes li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.product-notes li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lavender);
  transform: translateY(-2px);
}
.product-body .btn {
  margin-top: auto;
  width: 100%;
}

.products-note {
  max-width: 640px;
  margin: 2.75rem auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ----- Testimonials (home) ----- */
.testimonials { background: var(--cream); }

/* Scroll-snap carousel: swipeable natively; js/components.js adds
   buttons, dots, and auto-advance as progressive enhancement. */
.testimonial-grid {
  display: flex;
  gap: 1.6rem;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.testimonial-grid::-webkit-scrollbar { display: none; }
.testimonial {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.testimonial .stars {
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.testimonial blockquote {
  flex-grow: 1;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.testimonial blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 0.35rem;
}
.testimonial figcaption {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--sand);
}
.testimonial figcaption strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}
.testimonial figcaption span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.testimonials-more {
  text-align: center;
  margin-top: 2.75rem;
}

@media (min-width: 761px) {
  .testimonial { flex-basis: calc((100% - 3.2rem) / 3); }
}

/* Carousel controls (injected by js/components.js) */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 1.75rem;
}
.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--primary);
  cursor: pointer;
  transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out,
              color 0.2s ease-in-out;
}
.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-dots {
  display: inline-flex;
  gap: 0.5rem;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  background: var(--line);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.carousel-dot[aria-current="true"] {
  background: var(--primary);
  transform: scale(1.25);
}

/* ----- Price menu (dotted-leader spa menu) ----- */
.price-menu-section { background: var(--cream); }
.price-menu {
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  gap: 1.3rem;
}
.price-menu li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.pm-name {
  font-weight: 600;
  color: var(--ink);
}
.pm-name em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}
.pm-dots {
  flex: 1;
  border-bottom: 2px dotted var(--lavender);
  transform: translateY(-0.35em);
}
.pm-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  white-space: nowrap;
}
.price-menu-note {
  max-width: 720px;
  margin: 1.75rem auto 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ----- Gallery (photo-ready module; activate when studio photos exist) ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}
.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* ----- Loyalty ----- */
.loyalty { background: var(--cream); }
.loyalty .section-head { margin-inline: auto; text-align: center; }

.loyalty-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  counter-reset: step;
}
.loyalty-step {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--sand);
  border-radius: var(--radius-lg);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.loyalty-step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.loyalty-step p { font-size: 0.95rem; color: var(--ink-soft); }

.loyalty-note {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ----- Points table (rewards section) ----- */
.points-inline { margin-top: 3.5rem; }
.points-inline > h3 {
  margin-bottom: 1.25rem;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.points-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}
.points-table th,
.points-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--sand);
}
.points-table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--brand-tint);
}
.points-table tbody th { font-weight: 600; }
.points-table tbody tr:last-child th,
.points-table tbody tr:last-child td { border-bottom: 0; }
.points-table td { color: var(--ink-soft); }

/* ----- Gift banner ----- */
.container > .gift-banner:first-child { margin-top: 0; }
.gift-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, var(--sand), var(--gold-soft));
  border-radius: var(--radius-lg);
}
.gift-copy h3 { font-size: 1.4rem; }
.gift-copy p {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 46ch;
}

/* ----- FAQ ----- */
.faq { background: var(--sand); }
.faq .section-head { margin-inline: auto; text-align: center; }

.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 0.75rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-md); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "–";
  transform: rotate(180deg);
}
.faq-item summary:hover { color: var(--primary); }
.faq-item summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.faq-item p {
  padding: 0 1.4rem 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ----- About ----- */
.about { background: var(--sand); }

.about-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-copy h2 { margin-bottom: 1.1rem; }
.about-copy p + p { margin-top: 1rem; }
.about-copy p { color: var(--ink-soft); }
.about-copy em { color: var(--ink); }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-facts li {
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.about-facts strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

/* ----- Visit ----- */
.visit { background: var(--cream); }

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.visit-card {
  padding: 2rem 1.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.visit-card h3 { margin-bottom: 1rem; }
.visit-card h4 {
  margin: 1.5rem 0 0.4rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
}
.visit-card p { font-size: 0.95rem; color: var(--ink-soft); }

address {
  font-style: normal;
  font-size: 1.02rem;
  line-height: 1.55;
}
.visit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.open-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--sand);
  font-size: 0.85rem !important;
  font-weight: 600;
  color: var(--ink) !important;
}
.open-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C0662E;
}
.open-chip.is-open::before { background: #4C8A5C; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th,
.hours-table td {
  padding: 0.55rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--sand);
}
.hours-table th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-soft);
}
.hours-table td { text-align: right; }
.hours-table tr.is-today th,
.hours-table tr.is-today td {
  font-weight: 700;
  color: var(--primary);
}
.hours-table tr.is-today th::after {
  content: "Today";
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  background: var(--gold-soft);
  color: var(--primary-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}

.visit-fineprint {
  margin-top: 1.1rem;
  font-size: 0.85rem !important;
}

.map-wrap {
  margin-top: 1.6rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-embed {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.visit-cta {
  margin-top: 3.5rem;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  background: linear-gradient(150deg, var(--brand-tint), #DFD8FA);
  border-radius: var(--radius-lg);
}
.visit-cta h3 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin-bottom: 1.4rem;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 3.5rem 2.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 2.5rem;
}
.footer-lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-mark {
  height: 54px;
  width: auto;
  object-fit: contain;
}
.footer-brand .brand-name { color: #fff; font-size: 1.4rem; }
.footer-brand .brand-name em { color: var(--gold); }
.footer-brand p { margin-top: 0.6rem; font-size: 0.9rem; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.footer-nav a:hover { color: var(--gold); }

.footer-meta { font-size: 0.85rem; display: grid; gap: 0.35rem; }
.footer-meta a { color: inherit; }
.footer-meta a:hover { color: var(--gold); }

/* ----- Vagaro booking modal ----- */
body.modal-open { overflow: hidden; }

.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(38, 35, 58, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.booking-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.booking-modal {
  display: flex;
  flex-direction: column;
  width: min(1080px, 100%);
  height: min(88vh, 900px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s ease;
}
.booking-overlay.is-open .booking-modal { transform: none; }

.booking-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem 0.85rem 1.5rem;
  background: var(--brand);
}
.booking-head h2 {
  margin-right: auto;
  font-size: 1.15rem;
  color: #fff;
}
.booking-ext {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
.booking-ext:hover { color: #fff; }

.booking-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.booking-close:hover { background: rgba(255, 255, 255, 0.32); }

.booking-body {
  position: relative;
  flex: 1;
  background: #fff;
}
.booking-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.booking-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.booking-loading[hidden] { display: none; }

@media (max-width: 640px) {
  .booking-overlay { padding: 0; }
  .booking-modal {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }
}

/* ----- Fixed UI: mobile booking bar + back to top ----- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(253, 252, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn { flex: 1; }
.mobile-cta .btn-outline { flex: 0 0 auto; padding-inline: 1.4rem; }

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 55;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.to-top:hover { background: var(--primary-deep); transform: translateY(-2px); }
.to-top svg { width: 20px; height: 20px; }

/* Conditional visibility: our display rule outranks the UA [hidden] rule,
   so restate it here — fade out at the top of the page, fade in on scroll. */
.to-top {
  opacity: 1;
  transition: opacity 0.25s ease-in-out, visibility 0.25s,
              background-color 0.18s ease-in-out, transform 0.18s ease-in-out;
}
.to-top[hidden] {
  display: inline-flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ----- Scroll reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .benefit, .service-card, .plan-card { transition: none; }
}

/* ----- Responsive ----- */
@media (max-width: 960px) {
  /* Brand + five nav items + CTA no longer fit — collapse to the hamburger. */
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--brand);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.25rem; }
  .site-nav a {
    display: block;
    padding: 0.75rem 0.5rem;
    font-size: 1.05rem;
    color: #fff;
  }
  .site-nav a::after { display: none; }

  /* In the drawer, submenus are always expanded and indented */
  .site-nav .caret { display: none; }
  .subnav {
    position: static;
    min-width: 0;
    padding: 0 0 0 1.1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .subnav::before,
  .subnav::after { display: none; }
  .subnav a { padding: 0.5rem 0.5rem; }
  .subnav a strong {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
  }
  .subnav a span { display: none; } /* keep the drawer simple */
  .subnav a:hover { background: rgba(255, 255, 255, 0.12); }
  .subnav a:hover strong { color: #fff; }
}

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .visit-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-trust { flex-direction: column; gap: 0.5rem; }

  /* Tighten the gap between the sticky header and hero content on phones */
  .hero { padding-block: 2.5rem 4rem; }
  .page-hero { padding-block: 2rem 2.75rem; }

  /* On phones, the header flows straight into the hero and the booking
     button stays on the first screen */
  .hero { padding-block: 1.6rem 3rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-sub { margin-top: 1rem; font-size: 1.02rem; }
  .hero-cta { margin-top: 1.5rem; }
  .page-hero { padding-block: 1.9rem 2.25rem; }

  .hero-cta .cta-hero {
    width: 100%;
    justify-content: center;
  }

  .mobile-cta { display: flex; }
  body.has-mobile-cta { padding-bottom: 86px; }
  body.has-mobile-cta .to-top { bottom: calc(86px + 1rem); }
  .gift-banner .btn { width: 100%; }
  .segmented { flex-wrap: wrap; border-radius: var(--radius); }
}
