/* ============================================================================
   Stillwater Wellness — site-local styles (Appointment / spa template)
   Scoped under .theme-stillwater. Calm sage palette; signature "ripple" motif.
   ============================================================================ */

.theme-stillwater {
  --bg: #F3F7F5;            /* faint spa mist */
  --surface: #FFFFFF;
  --text: #213230;          /* deep sage-charcoal */
  --text-muted: #566661;
  --border: #DDE7E3;
  --accent: #2E7D5B;        /* sage green — AA (white ≈5:1) & distinct from Northbeam teal */
  --accent-soft: #DCEEE2;
  --accent-contrast: #FFFFFF;
  --accent-deep: #246048;
  --accent-2: #7A6020;      /* clay-gold, darkened for AA (≈4.8:1 on the ribbon) */
  --accent-2-soft: #F3E9CF; /* pale clay for the "Most-booked" ribbon */
  --ink: #14201E;           /* deep band */
}
.theme-stillwater body, .theme-stillwater { background: var(--bg); color: var(--text); }

.theme-stillwater .eyebrow {
  display: inline-block; color: var(--accent); font-weight: 700;
  font-size: var(--fs-sm); letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---- Nav ---- */
.theme-stillwater .nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243,247,245,0.85); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.theme-stillwater .nav.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 20px rgba(20,32,30,.05); }
.theme-stillwater .nav__links a[aria-current="page"] { color: var(--accent); }

/* ============================================================================
   SIGNATURE — "Stillwater ripple" (CSS-only concentric water rings)
   ============================================================================ */
.theme-stillwater .ripple-hero { position: relative; overflow: hidden; }
.theme-stillwater .ripple-hero::before {
  content: ""; position: absolute; inset: -25%; z-index: 0;
  background: repeating-radial-gradient(circle at 50% 38%, rgba(46,125,91,0.16) 0 2px, transparent 2px 38px);
  -webkit-mask: radial-gradient(circle at 50% 38%, #000 0%, transparent 70%);
          mask: radial-gradient(circle at 50% 38%, #000 0%, transparent 70%);
  animation: sw-ripple 16s ease-in-out infinite;
}
@keyframes sw-ripple { 0%, 100% { transform: scale(1); opacity: .95; } 50% { transform: scale(1.06); opacity: .7; } }
.theme-stillwater .ripple-hero > .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .theme-stillwater .ripple-hero::before { animation: none; } }

.theme-stillwater .sw-hero { padding-block: var(--space-10) var(--space-9); text-align: center; }
.theme-stillwater .sw-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.06; margin: var(--space-3) auto var(--space-4); max-width: 18ch; }
.theme-stillwater .sw-hero .hero__lede { max-width: 54ch; margin-inline: auto; }

/* ---- CTA rows (no .hero wrapper on these pages, so style .hero__actions locally) ---- */
.theme-stillwater .hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.theme-stillwater .stack .hero__actions, .theme-stillwater .calm-band .hero__actions { margin-top: 0; }
.theme-stillwater .calm-band .hero__actions { justify-content: flex-start; }
@media (min-width: 768px) { .theme-stillwater .calm-band .hero__actions { justify-content: flex-end; } }

/* ============================================================================
   TRUST STRIP
   ============================================================================ */
.theme-stillwater .trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-6);
  padding: var(--space-4) var(--space-5); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.theme-stillwater .trust-strip__item { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); color: var(--text-muted); }
.theme-stillwater .trust-strip__item svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; }

/* ============================================================================
   SERVICE / TREATMENT CARDS
   ============================================================================ */
.theme-stillwater .svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-5); }
.theme-stillwater .svc {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2);
}
.theme-stillwater .svc__name { font-weight: 700; font-size: var(--fs-lg); }
.theme-stillwater .svc__meta { color: var(--text-muted); font-size: var(--fs-sm); }
.theme-stillwater .svc__price { color: var(--accent); font-weight: 800; font-family: var(--font-display); margin-top: auto; }
.theme-stillwater .svc__desc { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }

/* "Most-booked" ribbon — thin clay pill, never a large fill */
.theme-stillwater .ribbon {
  align-self: flex-start; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent-2); background: var(--accent-2-soft);
  border-radius: var(--radius-full); padding: var(--space-1) var(--space-3);
}

/* ============================================================================
   BOOKING WIZARD
   ============================================================================ */
.theme-stillwater .booking { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: var(--space-8); align-items: start; }
.theme-stillwater .booking[hidden] { display: none; }
.theme-stillwater #booking { scroll-margin-top: 76px; }

/* Stepper */
.theme-stillwater .stepper { display: flex; gap: var(--space-2); margin-bottom: var(--space-6); }
.theme-stillwater .stepper__item { display: flex; align-items: center; gap: var(--space-2); color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600; }
.theme-stillwater .stepper__num {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--border); font-size: var(--fs-sm); flex: 0 0 auto;
}
.theme-stillwater .stepper__item.is-active { color: var(--text); }
.theme-stillwater .stepper__item.is-active .stepper__num { border-color: var(--accent); background: var(--accent); color: #fff; }
.theme-stillwater .stepper__item.is-done .stepper__num { border-color: var(--accent); color: var(--accent); }
.theme-stillwater .stepper__line { flex: 1; height: 2px; background: var(--border); align-self: center; min-width: 16px; }

/* Steps */
.theme-stillwater .step { display: none; }
.theme-stillwater .step.is-active { display: block; }
.theme-stillwater .step h2 { font-size: var(--fs-xl); margin-bottom: var(--space-4); }
/* Headings receive programmatic focus for screen-reader step announcements; suppress the visible box. */
.theme-stillwater .step h2:focus, .theme-stillwater .booked h2:focus { outline: none; }

/* Selectable service cards (radio) */
.theme-stillwater .choice { position: relative; display: block; cursor: pointer; margin-bottom: var(--space-3); }
.theme-stillwater .choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.theme-stillwater .choice__card {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5);
  display: flex; align-items: center; gap: var(--space-3); transition: border-color .15s ease, box-shadow .15s ease;
}
.theme-stillwater .choice input:focus-visible + .choice__card { outline: 3px solid var(--accent); outline-offset: 2px; }
.theme-stillwater .choice.is-selected .choice__card { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm); }
.theme-stillwater .choice__name { font-weight: 700; }
.theme-stillwater .choice__meta { color: var(--text-muted); font-size: var(--fs-sm); }
.theme-stillwater .choice__price { margin-left: auto; color: var(--accent); font-weight: 800; font-family: var(--font-display); }

/* Date + time slots */
.theme-stillwater .field { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); max-width: 320px; }
.theme-stillwater .field label { font-weight: 600; font-size: var(--fs-sm); }
.theme-stillwater .field input { font: inherit; min-height: 44px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.theme-stillwater .slots { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.theme-stillwater .slot {
  min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.theme-stillwater .slot[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Step nav buttons */
.theme-stillwater .step-nav { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-6); }
.theme-stillwater [data-err] { color: var(--accent-deep); background: var(--accent-soft); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); font-size: var(--fs-sm); font-weight: 600; margin-top: var(--space-4); }

/* "Not sure?" chooser */
.theme-stillwater .chooser { background: var(--accent-soft); border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-6); }
.theme-stillwater .chooser h3 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.theme-stillwater .chooser__row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: end; }
.theme-stillwater .chooser__field { display: grid; gap: var(--space-2); }
.theme-stillwater .chooser__field label { font-size: var(--fs-sm); font-weight: 600; }
.theme-stillwater .chooser__field select { font: inherit; min-height: 44px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); background: var(--surface); color: var(--text); }
.theme-stillwater .chooser__result { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--accent-deep); font-weight: 600; min-height: 1.2em; }

/* Live summary (sticky) */
.theme-stillwater .summary { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-md); }
.theme-stillwater .summary h3 { font-size: var(--fs-lg); margin-bottom: var(--space-4); }
.theme-stillwater .summary__row { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0; font-size: var(--fs-sm); border-bottom: 1px dotted var(--border); }
.theme-stillwater .summary__row span:first-child { color: var(--text-muted); }
.theme-stillwater .summary__row span:last-child { font-weight: 600; text-align: right; }
.theme-stillwater .summary__total { display: flex; justify-content: space-between; margin-top: var(--space-4); padding-top: var(--space-3); border-top: 2px solid var(--text); }
.theme-stillwater .summary__total .amt { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); color: var(--accent); }
.theme-stillwater .summary__hint { color: var(--text-muted); font-size: var(--fs-xs); margin-top: var(--space-3); }

/* Confirmation */
.theme-stillwater .booked { text-align: center; padding: var(--space-8) var(--space-5); }
.theme-stillwater .booked__check { width: 64px; height: 64px; margin: 0 auto var(--space-4); border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.theme-stillwater .booked__check svg { width: 32px; height: 32px; }

/* Field input focus (shared accent ring is fine elsewhere) */
.theme-stillwater .field input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ============================================================================
   WARM/CALM media, hours, dark band, contact form, reveal
   ============================================================================ */
.theme-stillwater .calm-media {
  position: relative; aspect-ratio: 5/4; border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(70% 70% at 30% 20%, rgba(217,240,234,.9) 0%, transparent 60%),
    linear-gradient(150deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: var(--shadow-lg);
}
.theme-stillwater .calm-media::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 70% 80%, rgba(255,255,255,.18) 0 1px, transparent 1px 40px);
  -webkit-mask: radial-gradient(circle at 70% 80%, #000, transparent 75%); mask: radial-gradient(circle at 70% 80%, #000, transparent 75%);
}

.theme-stillwater .hours-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.theme-stillwater .hours-list li { display: flex; justify-content: space-between; gap: var(--space-4); color: var(--text-muted); }

.theme-stillwater .calm-band { background: var(--ink); color: #DCE8E4; }
.theme-stillwater .calm-band h2 { color: #fff; }
.theme-stillwater .calm-band p { color: #A6BBB5; }
.theme-stillwater .calm-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.theme-stillwater .calm-band .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.theme-stillwater .sw-form { display: grid; gap: var(--space-4); }
.theme-stillwater .sw-field { display: grid; gap: var(--space-2); }
.theme-stillwater .sw-field label { font-weight: 600; font-size: var(--fs-sm); }
.theme-stillwater .sw-field input, .theme-stillwater .sw-field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
}
.theme-stillwater .sw-field input:focus-visible, .theme-stillwater .sw-field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.theme-stillwater .sw-form__ok { display: none; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.theme-stillwater .sw-form__ok.is-shown { display: block; }

.theme-stillwater .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.theme-stillwater .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .theme-stillwater .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 900px) {
  .theme-stillwater .booking { grid-template-columns: 1fr; }
  .theme-stillwater .summary { position: static; }
}

/* Real-photo media panel */
.theme-stillwater .has-photo { background-size: cover; background-position: center; }
.theme-stillwater .calm-media.has-photo::after { display: none; }
