/* ==========================================================================
   HavenNexus Unified - site.css
   Hand-written stylesheet ported from the lean Next.js fork's design tokens
   (app/globals.css + tailwind.config.ts + docs/BRAND.md). No Tailwind, no build.
   Mobile-first. Fonts loaded via <link> in layout.php (Playfair/Manrope/Caveat).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (from globals.css :root). HSL triplets kept so we can do
      hsl(var(--token) / alpha) like the Tailwind build did.
   -------------------------------------------------------------------------- */
:root {
  /* Brand colors - HSL triplets (match BRAND.md exactly) */
  --background: 36 5% 98%;        /* #F9F8F6 warm off-white */
  --foreground: 0 0% 10%;         /* #1A1A1A */
  --card: 0 0% 100%;              /* #FFFFFF */
  --card-foreground: 0 0% 10%;
  --primary: 150 22% 23%;         /* #2C4A3B Forest Deep */
  --primary-foreground: 0 0% 100%;
  --secondary: 84 19% 61%;        /* #9CAF88 Sage Mist */
  --secondary-foreground: 0 0% 10%;
  --muted: 36 5% 95%;
  --muted-foreground: 25 6% 30%;   /* darkened one step for WCAG AA contrast */
  --accent: 13 54% 58%;           /* #C87961 Terracotta Clay */
  --accent-foreground: 0 0% 100%;
  --violet: 270 67% 47%;          /* #7C3AED */
  --violet-light: 270 67% 94%;    /* #EDE9FE */
  --destructive: 0 84.2% 60.2%;
  --border: 0 0% 89.8%;
  --input: 0 0% 89.8%;
  --ring: 150 22% 23%;

  /* Convenience hex (for places where alpha math isn't needed) */
  --c-primary: #2C4A3B;
  --c-primary-hover: #22382d;
  --c-secondary: #9CAF88;
  --c-accent: #C87961;
  --c-accent-hover: #b86a52;
  --c-bg: #F9F8F6;
  --c-fg: #1A1A1A;

  --radius: 0.75rem;              /* 12px */
  --radius-md: calc(var(--radius) - 2px);
  --radius-sm: calc(var(--radius) - 4px);

  --container-max: 1400px;
  --container-pad: 1.5rem;        /* 24px on mobile; bumped at md+ */

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-accent: 'Caveat', cursive;

  /* Layered, soft shadows read as more premium than a single hard drop. */
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04), 0 1px 3px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 2px 6px rgba(26, 26, 26, 0.04), 0 10px 24px rgba(44, 74, 59, 0.08);
  --shadow-lg: 0 4px 12px rgba(26, 26, 26, 0.05), 0 24px 48px rgba(44, 74, 59, 0.14);

  /* Modern 4px-based spacing scale (use for rhythm + gaps). */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;  --space-4: 1rem;
  --space-5: 1.5rem;   --space-6: 2rem;     --space-7: 2.5rem;    --space-8: 3rem;
  --space-9: 4rem;     --space-10: 5rem;    --space-12: 7rem;

  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { border-color: hsl(var(--border)); }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
  color: var(--c-primary);
}

p { margin: 0 0 1rem; }

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover { color: var(--c-accent); }

img { max-width: 100%; height: auto; display: block; }

::selection { background-color: var(--c-primary); color: #fff; }

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--c-primary); color: #fff; padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: 4.5rem; }
.section--muted { background-color: hsl(var(--muted)); }
.section--center { text-align: center; }

.section__head { max-width: 48rem; margin-bottom: 3rem; }
.section--center .section__head { margin-inline: auto; }

.section__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section__lead {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 44rem;
}
.section--center .section__lead { margin-inline: auto; }

@media (min-width: 768px) {
  :root { --container-pad: 2rem; }
  .section { padding-block: 7rem; }
  .section__head { margin-bottom: 3.5rem; }
}

/* --------------------------------------------------------------------------
   4. Type accents
   -------------------------------------------------------------------------- */
/* Eyebrow - small uppercase tracked label, terracotta (from .eyebrow) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-accent);
  margin-bottom: 0.75rem;
}
.eyebrow--on-dark { color: var(--c-secondary); }

/* Caveat script flourish */
.script-accent {
  font-family: var(--font-accent);
  font-size: 1.75rem;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   5. Buttons (ported from .btn-primary / .btn-outline / .btn-accent / .btn-ghost)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn--sm { padding: 0.625rem 1.25rem; }
.btn--block { width: 100%; }

.btn-primary {
  background-color: var(--c-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(44, 74, 59, 0.18);
}
.btn-primary:hover {
  background-color: var(--c-primary-hover);
  color: #fff;
  box-shadow: 0 10px 28px rgba(44, 74, 59, 0.28);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--c-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(200, 121, 97, 0.2);
}
.btn-accent:hover {
  background-color: var(--c-accent-hover);
  color: #fff;
  box-shadow: 0 10px 28px rgba(200, 121, 97, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--c-primary);
  border-color: hsl(var(--primary) / 0.25);
}
.btn-outline:hover {
  border-color: var(--c-primary);
  background-color: hsl(var(--primary) / 0.05);
  color: var(--c-primary);
}
.btn-outline--on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline--on-dark:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--c-primary);
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
}
.btn-ghost:hover { background-color: hsl(var(--primary) / 0.05); }

/* Pill / badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.pill--published { background: hsl(var(--secondary) / 0.4); color: #2c3d22; }
.pill--waitlist  { background: var(--violet-light, #EDE9FE); color: #5B21B6; }
.pill--accent    { background: hsl(var(--accent) / 0.15); color: var(--c-accent); }

/* --------------------------------------------------------------------------
   6. Site header / nav (ported from SiteHeader.tsx)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background-color: hsl(var(--background) / 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: hsl(var(--border) / 0.7);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.brand__mark { width: 2.25rem; height: 2.25rem; object-fit: contain; }
.brand__word {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-primary);
}

.site-nav { display: none; align-items: center; gap: 0.25rem; }
.site-nav__link {
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.7);
}
.site-nav__link:hover { color: var(--c-primary); }
.site-nav__link.is-active { color: var(--c-primary); }
.site-nav__link--soft { color: var(--c-accent); }
.site-nav__link--soft:hover { color: var(--c-accent-hover); }

/* When the header sits transparent over a dark image hero (page not yet
   scrolled), dark nav text is invisible - lift the links + brand to legible
   light. Detected page-side via :has() on the hero scrim (no PHP/JS needed);
   once scrolled the header gets a light backdrop and the default dark returns. */
body:has(.hero__overlay) .site-header:not(.is-scrolled) .site-nav__link,
body:has(.hero__overlay) .site-header:not(.is-scrolled) .brand__word { color: rgba(255,255,255,0.92); }
body:has(.hero__overlay) .site-header:not(.is-scrolled) .site-nav__link:hover { color: #fff; }
body:has(.hero__overlay) .site-header:not(.is-scrolled) .nav-toggle { color: #fff; }

.site-header__cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--c-primary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-nav {
  border-top: 1px solid hsl(var(--border));
  background-color: var(--c-bg);
}
.mobile-nav__inner { display: flex; flex-direction: column; gap: 0.25rem; padding-block: 1rem; }
.mobile-nav__link {
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.8);
}
.mobile-nav__link:hover { background-color: hsl(var(--primary) / 0.05); color: var(--c-primary); }
.mobile-nav__cta { margin-top: 0.5rem; }

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .site-header__cta { display: block; }
  .nav-toggle { display: none; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero--home {
  min-height: 78vh;
  display: flex;
  align-items: center;
  /* pull up under the transparent sticky header */
  margin-top: -4rem;
  padding-top: 4rem;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover;
  background-position: center;
  animation: slow-zoom 14s var(--ease-out-soft) both;
}
/* Real <img> hero (LCP-friendly - the browser can prioritise it via fetchpriority,
   unlike a CSS background-image). Same cover + slow-zoom look as .hero__bg. */
.hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  animation: slow-zoom 14s var(--ease-out-soft) both;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26,40,32,0.35) 0%, rgba(26,40,32,0.55) 60%, rgba(26,40,32,0.7) 100%);
}
.hero__content { padding-block: 4rem; color: #fff; max-width: 46rem; }
.hero__title {
  color: #fff;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.hero__subtitle {
  color: rgba(255,255,255,0.92);
  font-size: clamp(1.125rem, 1.6vw, 1.35rem);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card-grid { display: grid; gap: 2rem; }
.card-grid--2 { grid-template-columns: 1fr; }
.card-grid--3 { grid-template-columns: 1fr; }

.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.7);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease-out-soft), transform 0.3s var(--ease-out-soft);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card__step {
  display: inline-flex;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.1em;
}
.card__title { font-size: 1.25rem; margin: 0.5rem 0; }
.card__body { color: hsl(var(--muted-foreground)); margin: 0; }

/* Retreat card (image + body) - used by Wave 2 */
.retreat-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.retreat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.retreat-card__media { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.retreat-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }

@media (min-width: 640px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   9. Forms (ported from .field / .field-label)
   -------------------------------------------------------------------------- */
.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-fg);
}
.field {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--input));
  background-color: #fff;
  padding: 0.875rem 1.05rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--c-fg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field::placeholder { color: hsl(var(--muted-foreground) / 0.7); }
.field:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.25);
}
textarea.field { min-height: 8rem; resize: vertical; }
/* Inline validation: :user-invalid flags a field ONLY after the user has interacted
   with it (or on submit), so it never nags an untouched field. */
.field:user-invalid {
  border-color: hsl(var(--destructive));
  box-shadow: 0 0 0 3px hsl(var(--destructive) / 0.18);
}

.form-row { margin-bottom: 1.25rem; }
.form-error { color: hsl(var(--destructive)); font-size: 0.8125rem; margin-top: 0.25rem; }

/* Honeypot field - visually hidden, off-screen; bots fill it, humans don't. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* --------------------------------------------------------------------------
   10. Star rating widget (display + interactive input)
   -------------------------------------------------------------------------- */
.stars { display: inline-flex; gap: 0.125rem; color: #d9c9c2; line-height: 1; }
.stars__star { font-size: 1.125rem; }
.stars__star.is-filled { color: var(--c-accent); }

/* Interactive input version (radio buttons styled as stars) */
/* Accessible star rating: DOM order is now natural (1..5) so keyboard/AT order
   matches the visual order. Fill uses :has() instead of the old reversed-DOM trick. */
.star-input { display: inline-flex; gap: 0.25rem; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label {
  cursor: pointer;
  font-size: 1.75rem;
  color: #d9c9c2;
  transition: color 0.12s ease;
}
/* Hover: fill the hovered star and every star before it. */
.star-input label:hover,
.star-input label:has(~ label:hover) { color: var(--c-accent); }
/* Checked: fill the chosen star and every star before it. */
.star-input:has(#rating-1:checked) label[for="rating-1"],
.star-input:has(#rating-2:checked) label[for="rating-1"],
.star-input:has(#rating-2:checked) label[for="rating-2"],
.star-input:has(#rating-3:checked) label[for="rating-1"],
.star-input:has(#rating-3:checked) label[for="rating-2"],
.star-input:has(#rating-3:checked) label[for="rating-3"],
.star-input:has(#rating-4:checked) label[for="rating-1"],
.star-input:has(#rating-4:checked) label[for="rating-2"],
.star-input:has(#rating-4:checked) label[for="rating-3"],
.star-input:has(#rating-4:checked) label[for="rating-4"],
.star-input:has(#rating-5:checked) label[for="rating-1"],
.star-input:has(#rating-5:checked) label[for="rating-2"],
.star-input:has(#rating-5:checked) label[for="rating-3"],
.star-input:has(#rating-5:checked) label[for="rating-4"],
.star-input:has(#rating-5:checked) label[for="rating-5"] { color: var(--c-accent); }
.star-input input:focus-visible + label { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   11. Flash messages
   -------------------------------------------------------------------------- */
.flash-area { padding-top: 1rem; }
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.flash--success { background: hsl(var(--secondary) / 0.25); border-color: hsl(var(--secondary) / 0.5); color: #244017; }
.flash--error   { background: hsl(var(--destructive) / 0.12); border-color: hsl(var(--destructive) / 0.35); color: #7f1d1d; }
.flash--info    { background: var(--violet-light, #EDE9FE); border-color: #d8cdfa; color: #4c1d95; }
.flash__close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: inherit; line-height: 1; }

/* --------------------------------------------------------------------------
   12. Footer (ported from SiteFooter.tsx) - forest band
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 6rem;
  border-top: 1px solid hsl(var(--border));
  background-color: var(--c-primary);
  color: #fff;
}
.site-footer__inner { padding-block: 4rem; }
.site-footer__grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
.site-footer__brand { max-width: 22rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; }
.footer-brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: var(--radius-sm);
  background: #fff; padding: 0.25rem;
}
.footer-brand__word { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: #fff; }
.site-footer__tagline { margin-top: 1rem; font-size: 0.875rem; line-height: 1.6; color: rgba(255,255,255,0.7); }

.site-footer__heading {
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  margin: 0 0 1rem;
}
.site-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__list a { font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.site-footer__list a:hover { color: #fff; }

.site-footer__bottom {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}
.site-footer__disclaimer { max-width: 36rem; font-size: 0.75rem; color: rgba(255,255,255,0.5); margin: 0; }

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   13. AI concierge widget
   -------------------------------------------------------------------------- */
.concierge { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; }
.concierge__fab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.125rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.concierge__fab:hover { background: var(--c-primary-hover); transform: translateY(-1px); }
.concierge__fab-icon { font-size: 1.1rem; }

.concierge__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(22rem, calc(100vw - 2.5rem));
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(32rem, 70vh);
}
/* The panel ships closed - honour the [hidden] attribute the widget JS toggles.
   Without this, the display:flex above overrides [hidden] and the panel shows
   expanded on every page load, overlapping the hero. */
.concierge__panel[hidden] { display: none; }
.concierge__header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--c-primary); color: #fff; padding: 0.75rem 1rem;
}
.concierge__title { font-family: var(--font-serif); font-weight: 600; }
.concierge__close { background: none; border: none; color: #fff; font-size: 1.25rem; cursor: pointer; line-height: 1; }
.concierge__log { padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.625rem; flex: 1; }
.concierge__msg { padding: 0.625rem 0.875rem; border-radius: var(--radius-md); font-size: 0.875rem; max-width: 85%; }
.concierge__msg--bot { background: hsl(var(--muted)); align-self: flex-start; }
.concierge__msg--user { background: hsl(var(--primary) / 0.1); align-self: flex-end; }
.concierge__form { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid hsl(var(--border)); }
.concierge__input {
  flex: 1; border: 1px solid hsl(var(--input)); border-radius: 9999px;
  padding: 0.5rem 0.875rem; font-family: var(--font-sans); font-size: 0.875rem;
}
.concierge__input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px hsl(var(--ring) / 0.2); }
.concierge__send {
  border: none; background: var(--c-accent); color: #fff; border-radius: 9999px;
  width: 2.25rem; height: 2.25rem; font-size: 1rem; cursor: pointer; flex-shrink: 0;
}
.concierge__send:hover { background: var(--c-accent-hover); }
.concierge__poweredby {
  margin: 0; padding: 0 0.75rem 0.625rem; text-align: center;
  font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: hsl(var(--muted-foreground, 215 16% 47%)); opacity: 0.8;
}
.concierge__msg--typing { font-style: italic; opacity: 0.75; }

/* --------------------------------------------------------------------------
   14. Error pages
   -------------------------------------------------------------------------- */
.error-page { padding-block: 6rem; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; justify-content: center; margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   15. Reveal-on-scroll (ported from globals.css .reveal)
   -------------------------------------------------------------------------- */
/* Reveals default to VISIBLE so a no-JS visitor (or a failed script) still sees all
   content. Only when JS is confirmed (html.js is set by site.js) do we hide-then-
   animate them in. Above-the-fold hero content does not use .reveal at all. */
.reveal {
  transition:
    opacity 0.7s var(--ease-out-soft),
    transform 0.7s var(--ease-out-soft);
}
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes slow-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* --------------------------------------------------------------------------
   16. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__bg, .hero__img { animation: none; }
}

/* ==========================================================================
   17. Gallery + Reviews (Wave 2b)
   Reviews are post-moderation: a submitted review is publicly visible at once.
   Reuses tokens/.card/.card-grid/.stars/.btn from above; nothing redefined.
   ========================================================================== */

/* ---- Forest page-header band (reviews + gallery hero) ------------------- */
.page-header {
  background-color: var(--c-primary);
  color: #fff;
}
.page-header__inner {
  max-width: 52rem;
  margin-inline: auto;
  padding-block: 5rem;
  text-align: center;
}
.page-header__title {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin: 0.25rem 0 0;
}
.page-header__lead {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: 1.075rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}
.page-header__actions { margin-top: 2rem; }

/* On-dark Caveat flourish (matches .script-accent but readable on forest). */
.script-accent--on-dark { color: var(--c-secondary, #9CAF88); }

/* ---- Narrow single-column section (the review form) -------------------- */
.container--narrow { max-width: 42rem; }
.section--narrow .section__title { margin-top: 0.5rem; }

/* ---- Review card (ported from ReviewCard.tsx) -------------------------- */
.review-grid { align-items: stretch; }
.review-card { height: 100%; }
.review-card__body {
  margin: 1rem 0 0;
  flex: 1 1 auto;
  font-size: 0.975rem;
  line-height: 1.7;
  color: hsl(var(--foreground) / 0.85);
}
.review-card__meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}
.review-card__author {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--c-primary);
}
.review-card__loc {
  margin: 0.125rem 0 0;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}
/* W6: story title on imported gallery reviews (live stories carry a headline). */
.review-card__title {
  margin: 0.75rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-primary);
}

/* ---- Featured testimonials strip (W6: pull-quote cards) ----------------- */
.testimonial-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 48rem) {
  .testimonial-strip { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-strip__item {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial-strip__quote {
  margin: 0;
  flex: 1 1 auto;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--c-primary);
}
.testimonial-strip__meta {
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.testimonial-strip__author {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--c-primary);
}
.testimonial-strip__loc {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}

/* ---- Retreat-detail embedded reviews block ----------------------------- */
.retreat-reviews { margin-top: 1.5rem; }
.retreat-reviews__cta { margin-top: 2rem; }

/* ---- Photo grid (masonry-ish via CSS columns) -------------------------- */
.gallery-grid {
  columns: 1;
  column-gap: 1.25rem;
}
.gallery-grid__item {
  margin: 0 0 1.25rem;
  break-inside: avoid;
}
.gallery-grid__item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg, 0.75rem);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .gallery-grid { columns: 2; } }
@media (min-width: 900px) { .gallery-grid { columns: 3; } }

/* ---- Empty states ------------------------------------------------------ */
.empty-state {
  max-width: 36rem;
  margin-inline: auto;
  padding: 3.5rem 2rem;
  text-align: center;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius-lg, 1rem);
  background: hsl(var(--muted) / 0.4);
}
.empty-state--inline { padding: 2.5rem 1.5rem; }
.empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: hsl(var(--secondary) / 0.2);
  margin-bottom: 1.25rem;
}
.empty-state__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--c-primary);
  margin: 0 0 0.75rem;
}
.empty-state__lead {
  font-weight: 600;
  color: var(--c-primary);
  margin: 0 0 0.25rem;
}
.empty-state__body {
  margin: 0 auto;
  max-width: 28rem;
  color: hsl(var(--foreground) / 0.7);
}
.empty-state__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---- Review form chrome ------------------------------------------------ */
.form-card { margin-top: 2.5rem; padding: 2rem; }
.form-note {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}
.req { color: var(--c-accent); }
.opt { color: hsl(var(--muted-foreground)); font-weight: 400; }

/* ==========================================================================
   18. Contact + Legal CMS pages (Wave 2d)
   Reuses tokens / .field / .btn / .eyebrow / .container--narrow from above.
   Only adds the contact two-column layout + trusted-CMS .legal-body typography.
   (.container--narrow is defined in section 17; not redefined here.)
   ========================================================================== */

/* ---- Light inner-page header (legal pages: privacy / terms) ------------- */
.page-head {
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}
.page-head__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.1;
  margin: 0;
}
.page-head__subtitle { margin: 0.75rem 0 0; font-size: 1.125rem; color: hsl(var(--foreground) / 0.7); }
.page-head__meta { margin: 1rem 0 0; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }

/* ---- Trusted CMS body typography (body_html sanitized at write-time) ---- */
.legal-body { color: hsl(var(--foreground) / 0.85); font-size: 0.975rem; line-height: 1.75; }
.legal-body h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-primary);
  margin: 2.25rem 0 0.5rem;
}
.legal-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-primary);
  margin: 1.75rem 0 0.5rem;
}
.legal-body p { margin: 0 0 1rem; }
.legal-body ul, .legal-body ol { margin: 0 0 1rem 1.25rem; padding-left: 0.75rem; }
.legal-body li { margin-bottom: 0.375rem; }
.legal-body a { color: var(--c-accent); text-decoration: underline; }
.legal-body a:hover { color: var(--c-primary); }
.legal-body strong { color: var(--c-fg); font-weight: 600; }
.legal-body > *:first-child { margin-top: 0; }

/* ---- Contact: two-column (details + form), single column on small screens */
.contact-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.contact-heading {
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.05;
}
.contact-lead { margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.7; color: hsl(var(--foreground) / 0.75); }

.contact-details { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.contact-details dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
}
.contact-details dd { margin: 0.25rem 0 0; }
.contact-details dd a { color: hsl(var(--foreground) / 0.85); text-decoration: none; }
.contact-details dd a:hover { color: var(--c-accent); }

.contact-form .field-optional { font-weight: 400; color: hsl(var(--muted-foreground)); font-size: 0.8em; }
.contact-fineprint { margin-top: 1rem; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); text-align: center; }
.contact-fineprint a { color: var(--c-accent); }

/* ==========================================================================
   19. Reservation flow + Waitlist/Interest capture (Wave 2e)
   Reuses tokens / .field / .field-label / .btn / .form-card / .req / .opt /
   .container--narrow / .section--narrow / .hp-field from earlier sections.
   Only adds: sectioned-form chrome, occupancy choice tiles, the confirmation
   code block + manual payment-method cards, and the embeddable form chrome.
   ========================================================================== */

/* ---- Generic field grid + helpers (shared by reservation + interest forms) -- */
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 560px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.btn-block { display: block; width: 100%; text-align: center; }
.form-disclaimer {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: hsl(var(--foreground) / 0.7);
}
.form-disclaimer a { color: var(--c-accent); }

/* ---- Sectioned ("stepped") form: labelled fieldsets, no JS wizard --------- */
.form-step {
  border: 0;
  margin: 0 0 2rem;
  padding: 0 0 1.75rem;
  border-bottom: 1px solid hsl(var(--border));
}
.form-step:last-of-type { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.form-step__legend {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 1.25rem;
  padding: 0;
}
.form-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  border-radius: 9999px;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
}

/* ---- Occupancy choice tiles (radio cards) -------------------------------- */
.choice-row { display: grid; gap: 0.75rem; }
@media (min-width: 480px) { .choice-row { grid-template-columns: 1fr 1fr; } }
.choice {
  position: relative;
  display: block;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  padding: 1rem 1rem 1rem 2.5rem;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.choice:hover { border-color: var(--c-secondary); }
.choice input { position: absolute; top: 1.1rem; left: 1rem; accent-color: var(--c-primary); }
.choice input:checked ~ .choice__title { color: var(--c-primary); }
.choice:has(input:checked) {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.18);
}
.choice.is-selected { border-color: var(--c-primary); }
.choice__title { display: block; font-weight: 600; color: var(--c-fg); }
.choice__note { display: block; margin-top: 0.125rem; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }

/* ---- Checkbox row (marketing opt-in) ------------------------------------- */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0.5rem 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--foreground) / 0.8);
  cursor: pointer;
}
.checkbox-row input { margin-top: 0.2rem; accent-color: var(--c-primary); flex: 0 0 auto; }

/* ---- Embeddable interest/waitlist form chrome ---------------------------- */
.form-card--compact { margin-top: 0; padding: 1.75rem; }
.form-card__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-primary);
  margin: 0 0 0.375rem;
}
.form-card__intro { margin: 0 0 1.5rem; color: hsl(var(--foreground) / 0.72); font-size: 0.95rem; }
.form-card__privacy {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: hsl(var(--muted-foreground));
}

/* ---- Confirmation page: success hero + code chip ------------------------- */
.confirm-hero { text-align: center; margin-bottom: 2rem; }
.confirm-hero__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 9999px;
  background: hsl(var(--secondary) / 0.25);
  color: var(--c-primary);
}
.confirm-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  max-width: 24rem;
  text-align: center;
  background: hsl(var(--muted) / 0.5);
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius-lg, 1rem);
}
.confirm-code__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
}
.confirm-code__value {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--c-primary);
}
.confirm-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---- Callout boxes (deposit / review summary) ---------------------------- */
.callout {
  border-radius: var(--radius-lg, 1rem);
  padding: 1.5rem;
  margin: 0 0 1.5rem;
}
.callout--muted { background: hsl(var(--muted) / 0.5); border: 1px solid hsl(var(--border)); }
.callout--accent { background: hsl(var(--secondary) / 0.14); border: 1px solid hsl(var(--secondary) / 0.4); }
.callout__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.callout__accent { color: var(--c-accent); font-family: var(--font-serif); font-size: 1.5rem; }
.callout__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-primary);
  margin: 0 0 0.5rem;
}
.callout__body { margin: 0 0 1rem; font-size: 0.925rem; line-height: 1.65; color: hsl(var(--foreground) / 0.8); }

/* ---- Manual payment-method cards (e-Transfer / PayPal / bank) ------------- */
.pay-methods { display: grid; gap: 1rem; }
.pay-method {
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.pay-method__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-primary);
  margin: 0 0 0.75rem;
}
.pay-method__list { margin: 0; }
.pay-method__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; }
.pay-method__row dt { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
.pay-method__row dd { margin: 0; color: var(--c-fg); }
.pay-method__note { margin: 0.75rem 0 0; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.pay-method__pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--c-fg);
}

/* --------------------------------------------------------------------------
   W7. Public user accounts (signup / login / profile)
   Reuses existing tokens, .card, .pill, .btn, .form-*, .page-header,
   .empty-state, .stars - only the new account-specific pieces live here.
   -------------------------------------------------------------------------- */
.muted { color: hsl(var(--muted-foreground)); }

/* small inline form (e.g. a Log out button sitting beside other actions) */
.inline-form { display: inline; margin: 0; }
.site-header__logout { display: inline; margin: 0; }
.mobile-nav__logout { margin: 0; }

/* pill state variants used on the profile review list */
.pill--ok     { background: hsl(var(--secondary) / 0.4); color: #2c3d22; }
.pill--muted  { background: hsl(var(--muted, 210 16% 93%)); color: hsl(var(--muted-foreground)); }

/* profile detail card */
.profile-card { padding: 1.75rem; }
.profile-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-primary);
  margin: 0 0 1rem;
}
.profile-details { margin: 0; }
.profile-details__row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid hsl(var(--border, 30 12% 88%));
}
.profile-details__row:first-child { border-top: 0; }
.profile-details__row dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.profile-details__row dd { margin: 0; color: var(--c-fg); word-break: break-word; }

@media (max-width: 560px) {
  .profile-details__row { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* the user's own submitted reviews on /profile */
.profile-reviews { margin-top: 2.5rem; }
.profile-review-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem; }
.profile-review { padding: 1.25rem 1.5rem; }
.profile-review__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.profile-review__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-primary);
  margin: 0 0 0.35rem;
}
.profile-review__body { margin: 0; color: var(--c-fg); }
.profile-review__meta { margin: 0.6rem 0 0; font-size: 0.85rem; color: hsl(var(--muted-foreground)); }
