/* ============================================================
   Sam Merron — Conscious Connected Breathwork & Reiki Retreats
   Design system: calm & minimal, warm neutrals, single sage accent
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Neutrals — cool, airy blue-greys */
  --bg:        #F2F8FC;   /* soft sky white */
  --surface:   #FFFFFF;
  --surface-2: #E6F1F9;   /* baby-blue panel */
  --ink:       #22323E;   /* deep blue-charcoal */
  --muted:     #586773;
  --line:      #D7E6F0;

  /* Accents — baby blues */
  --sage:      #8BC0E0;   /* primary baby-blue accent (kept var name) */
  --sage-deep: #3C77A2;   /* deeper blue for text / eyebrows / links */
  --clay:      #3E7CA8;   /* CTA blue (kept var name) */
  --clay-deep: #326489;   /* CTA hover */

  /* Chakra spectrum (muted) — used only as a subtle motif */
  --c-root:    #C05B54;
  --c-sacral:  #D68A4C;
  --c-solar:   #E0B451;
  --c-heart:   #7FA061;
  --c-throat:  #5B8CA8;
  --c-third:   #5E63A6;
  --c-crown:   #8E63A6;

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1120px;
  --radius: 4px;
  --gutter: clamp(20px, 5vw, 48px);
  --shadow: 0 18px 50px -28px rgba(30, 55, 78, 0.38);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
p  { color: var(--muted); }
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink); line-height: 1.55; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  display: inline-block;
  margin-bottom: 1.1rem;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 128px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--sand { background: var(--surface-2); }
.center { text-align: center; }
.narrow { max-width: 680px; }
.center.narrow { margin-inline: auto; }

/* ---------- Chakra motif ---------- */
.chakra-row { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 0 0 1.4rem; }
.chakra-row.left { justify-content: flex-start; }
.chakra-row span { width: 9px; height: 9px; border-radius: 50%; opacity: 0.9; }
.chakra-row span:nth-child(1){ background: var(--c-root); }
.chakra-row span:nth-child(2){ background: var(--c-sacral); }
.chakra-row span:nth-child(3){ background: var(--c-solar); }
.chakra-row span:nth-child(4){ background: var(--c-heart); }
.chakra-row span:nth-child(5){ background: var(--c-throat); }
.chakra-row span:nth-child(6){ background: var(--c-third); }
.chakra-row span:nth-child(7){ background: var(--c-crown); }

.rule { height: 1px; background: var(--line); border: 0; margin-block: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform .18s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--clay); color: #fff; }
.btn--primary:hover { background: var(--clay-deep); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: #33454f; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--sage); color: var(--sage-deep); }
.btn--block { display: flex; width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; flex-direction: column; justify-content: center; gap: 2px; font-family: var(--serif); font-size: 1.5rem; line-height: 1; letter-spacing: 0.02em; white-space: nowrap; }
.brand small { font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-deep); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); list-style: none; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--muted); transition: color .18s; position: relative; padding-block: 4px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--sage);
}
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 9vw, 120px); }
.hero h1 { margin-bottom: 1.2rem; }
.hero p { max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; aspect-ratio: 4 / 5; border-radius: 140px 140px 12px 12px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -14px; bottom: 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); font-size: 0.82rem; color: var(--muted);
  display: block; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg, var(--shadow)); }
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.hero-badge-cta { display: block; margin-top: 4px; font-size: 0.78rem; font-weight: 600; color: var(--accent, var(--ink)); }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .tag { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-deep); font-weight: 600; }
.card h3 { margin: 0.5rem 0 0.7rem; }
.card p { margin-bottom: 1.2rem; }
.card .card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card .price { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.card--feature { background: linear-gradient(180deg, #fff, var(--surface-2)); border-color: #CFE0EC; }

.icon-dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--sage) 22%, #fff); color: var(--sage-deep); font-size: 1.2rem; }

/* ---------- Split content ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 68px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { aspect-ratio: 5/6; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split ul { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.split ul li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; color: var(--muted); }
.split ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.step .num { counter-increment: step; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; color: var(--sage-deep); background: var(--surface); }
.step .num::before { content: counter(step); }

/* ---------- Retreat list ---------- */
.retreat {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px clamp(20px, 3vw, 34px); margin-bottom: 18px;
}
.retreat .date { text-align: center; border-right: 1px solid var(--line); padding-right: 20px; }
.retreat .date .d { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--ink); }
.retreat .date .m { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.retreat h3 { margin-bottom: 0.3rem; }
.retreat .meta { font-size: 0.86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 14px; }
.retreat .incl { list-style: none; padding: 0; margin: 0.9rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 1.2rem; }
.retreat .incl li { position: relative; padding-left: 1.35rem; font-size: 0.85rem; color: var(--muted); }
.retreat .incl li::before { content: "✓"; position: absolute; left: 0; color: var(--sage-deep); font-weight: 700; }
@media (max-width: 640px) { .retreat .incl { grid-template-columns: 1fr; } }
.retreat .book { text-align: right; }
.retreat .seats { font-size: 0.78rem; color: var(--sage-deep); margin-bottom: 8px; }
.retreat .seats.low { color: var(--clay-deep); }
.retreat .seats.sold { color: #a33; }
.waitlist-link { display: block; margin-top: 8px; background: none; border: 0; padding: 0; font-size: 0.8rem;
  color: var(--muted); text-decoration: underline; cursor: pointer; font-family: inherit; }
.waitlist-link:hover { color: var(--ink); }
.price-was { text-decoration: line-through; opacity: 0.65; margin-right: 4px; }
.early-bird-note { font-size: 0.76rem; color: var(--clay-deep); margin-top: 6px; }

/* ---------- Agenda / timetable ---------- */
.agenda { display: grid; }
.agenda-item { display: grid; grid-template-columns: 160px 1fr; gap: 26px; padding: 22px 0; border-top: 1px solid var(--line); }
.agenda-item:last-child { border-bottom: 1px solid var(--line); }
.agenda-time { font-weight: 600; color: var(--sage-deep); font-size: 0.9rem; letter-spacing: 0.01em; }
.agenda-body h4 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 0.35rem; }
.agenda-body p { font-size: 0.95rem; margin: 0; }
@media (max-width: 640px) { .agenda-item { grid-template-columns: 1fr; gap: 6px; } }

.retreat-detail-link { display: inline-block; margin-top: 0.9rem; font-size: 0.88rem; font-weight: 600; color: var(--sage-deep); }
.retreat-detail-link:hover { color: var(--clay-deep); }

/* Fact strip on the retreat detail hero */
.facts { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 1.4rem 0 1.8rem; padding: 0; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.86rem; color: var(--ink); }
.facts li strong { color: var(--sage-deep); font-weight: 600; }

/* ---------- Testimonials ---------- */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.quote p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; color: var(--ink); font-style: italic; }
.quote .who { margin-top: 1rem; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage-deep); font-style: normal; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85em 1em; font-size: 1rem; font-family: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 22%, transparent); }
.form-note { font-size: 0.82rem; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }

/* order summary */
.summary { background: var(--surface-2); border-radius: var(--radius); padding: 22px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.95rem; color: var(--muted); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.15rem; color: var(--ink); font-weight: 600; }

/* contraindications & waiver */
.waiver-box { max-height: 260px; overflow-y: auto; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; font-size: 0.86rem; color: var(--muted); }
.waiver-box p { margin: 0 0 4px; }
.waiver-box strong { color: var(--ink); }
.waiver-box ul { margin: 6px 0 0; padding-left: 1.2rem; }
.waiver-box li { margin-bottom: 4px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: var(--muted); cursor: pointer; }
.checkbox-label input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--sage); }

.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 18px; }
.alert--info { background: color-mix(in srgb, var(--sage) 14%, #fff); color: var(--sage-deep); border: 1px solid color-mix(in srgb, var(--sage) 30%, #fff); }
.alert--warn { background: #FBF3EC; color: var(--clay-deep); border: 1px solid #EED9C8; }
.alert--error { background: #FBEDEC; color: #9a3b34; border: 1px solid #F0D3D0; }

/* ---------- Booking modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center;
  background: rgba(22,45,64,0.5); backdrop-filter: blur(3px); overflow-y: auto; padding: clamp(16px, 5vh, 60px) 16px; }
.modal.open { display: flex; }
.modal-card { background: var(--surface); border-radius: 8px; max-width: 520px; width: 100%; padding: clamp(24px, 4vw, 40px);
  position: relative; box-shadow: var(--shadow); animation: modalIn .28s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 1.9rem; line-height: 1;
  color: var(--muted); }
.modal-close:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFDCE6; padding-block: clamp(48px, 7vw, 84px) 32px; }
.site-footer a { color: #CFDCE6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: #8CA3B4; margin-bottom: 1rem; font-weight: 600; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 0.6rem; font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid #34454f; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: #8CA3B4; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; } .mt-4 { margin-top: 2.4rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.tag-inline { display:inline-block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-deep); font-weight: 600; }
.hidden { display: none !important; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .eyebrow { letter-spacing: 0.16em; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; max-width: 420px; margin-inline: auto; aspect-ratio: 4/4.4; }
  .hero-badge { left: 8px; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .split, .split--reverse .split-media { grid-template-columns: minmax(0, 1fr); order: 0; }
  .split-media { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .retreat { grid-template-columns: 1fr; text-align: left; gap: 14px; }
  .retreat .date { display: inline-flex; gap: 10px; align-items: baseline; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 10px; width: 100%; }
  .retreat .book { text-align: left; }

  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: flex-start;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 18px var(--gutter) 26px; gap: 18px;
    transform: translateY(-120%); transition: transform .28s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
