:root {
  --spa-bg: #f4efe8;
  --spa-paper: #fffdf8;
  --spa-ink: #1f1a17;
  --spa-muted: #6f665f;
  --spa-primary: #87664d;
  --spa-primary-strong: #6f4f39;
  --spa-accent: #2f6957;
  --spa-line: rgba(56, 44, 34, 0.12);
  --spa-shadow: 0 18px 50px rgba(43, 31, 21, 0.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--spa-ink);
  background:
    radial-gradient(circle at 12% -10%, rgba(135, 102, 77, 0.2), transparent 32%),
    radial-gradient(circle at 88% -10%, rgba(47, 105, 87, 0.18), transparent 30%),
    var(--spa-bg);
}
h1, h2, h3, h4, h5, h6, .font-serif { font-family: 'Fraunces', serif !important; letter-spacing: -0.01em; }

.spa-nav {
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--spa-line);
}

.nav-link {
  opacity: 0.85 !important;
  color: var(--spa-muted) !important;
  letter-spacing: 0.12em;
}
.nav-link:hover, .nav-link.active {
  color: var(--spa-ink) !important;
  opacity: 1 !important;
}

.hero-gradient {
  position: relative;
  background:
    linear-gradient(130deg, rgba(27, 22, 18, 0.88), rgba(53, 41, 31, 0.7)),
    url('https://images.unsplash.com/photo-1544161515-4ab6ce6db874?auto=format&fit=crop&w=1800&q=80') center/cover;
}
.hero-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 14, 11, 0.35), transparent 35%);
  pointer-events: none;
}
.hero-gradient > * { position: relative; z-index: 1; }

.card-hover {
  border: 1px solid var(--spa-line) !important;
  border-radius: 18px !important;
  box-shadow: none;
  background: var(--spa-paper);
}
.card-hover:hover {
  box-shadow: var(--spa-shadow) !important;
  transform: translateY(-6px);
  border-color: rgba(135, 102, 77, 0.45) !important;
}

.bg-primary,
.text-primary,
.border-primary {
  --tw-bg-opacity: 1;
  --tw-text-opacity: 1;
  --tw-border-opacity: 1;
}
.bg-primary { background-color: var(--spa-primary) !important; }
.text-primary { color: var(--spa-primary) !important; }
.border-primary { border-color: var(--spa-primary) !important; }
.hover\:bg-green-600:hover,
.hover\:bg-primary:hover { background-color: var(--spa-primary-strong) !important; }

section { position: relative; }
section.reveal { transform: translateY(22px); }

.spa-mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 70;
  display: none;
  gap: 10px;
}
.spa-mobile-cta a {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 12px;
  border: 1px solid var(--spa-line);
  box-shadow: var(--spa-shadow);
}
.spa-mobile-cta .book { background: var(--spa-primary); color: #fff; }
.spa-mobile-cta .call { background: var(--spa-paper); color: var(--spa-ink); }

@media (max-width: 767px) {
  body { padding-bottom: 78px; }
  .spa-mobile-cta { display: flex; }
}

/* Booking wizard states */
.step-panel { display: none; }
.step-panel.active { display: block; }
.step-connector {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  max-width: 84px;
  border-radius: 99px;
}
.step-connector.done { background: var(--spa-primary); }

.service-card,
.therapist-card {
  border: 1px solid #e7ddd2;
  cursor: pointer;
  transition: all 0.25s ease;
}
.service-card:hover,
.therapist-card:hover {
  border-color: var(--spa-primary);
  transform: translateY(-2px);
}
.service-card.selected,
.therapist-card.selected {
  border-color: var(--spa-primary);
  box-shadow: 0 12px 30px rgba(56, 44, 34, 0.12);
  background: #fffaf5;
}

.cal-day {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #3d3733;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cal-day:hover { background: #efe7dd; }
.cal-day.past { color: #c5beb6; cursor: not-allowed; }
.cal-day.today { outline: 1px dashed var(--spa-primary); outline-offset: 2px; }
.cal-day.selected { background: var(--spa-primary); color: #fff; }

.time-slot {
  border: 1px solid #e7ddd2;
  cursor: pointer;
  transition: all 0.2s ease;
}
.time-slot:hover { border-color: var(--spa-primary); }
.time-slot.selected { background: var(--spa-primary); color: #fff; border-color: var(--spa-primary); }
.time-slot.unavailable {
  color: #b0a79f;
  background: #f5efea;
  border-color: #ede3d8;
  cursor: not-allowed;
}

/* Homepage testimonial slider + compact mobile rhythm */
@media (max-width: 767px) {
  #testimonialTrack { display: block; }
  #testimonialTrack .testimonial-card { display: none; margin-bottom: 14px; }
  #testimonialTrack .testimonial-card.active { display: block; }

  h1 { font-size: clamp(2rem, 8vw, 2.7rem) !important; line-height: 1.12 !important; }
  h2 { font-size: clamp(1.55rem, 6.4vw, 2.15rem) !important; line-height: 1.2 !important; }
  section { padding-top: 3.2rem !important; padding-bottom: 3.2rem !important; }
}

.ui-icon {
  width: 0.62em;
  height: 0.62em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.12em;
}
.ui-icon-lg { width: 0.85em; height: 0.85em; }
