/* ============================================================
   RETREAT SYSTEM — shared styles across all retreat pages.
   Electric Femme palette · Cormorant Garamond + Inter typography.
   Hub: /retreats/
   Detail pages: /retreats/{retreat-slug}/
============================================================ */

:root {
  --plum: #3d2545;
  --plum-deep: #2a1830;
  --plum-mid: #5a3870;
  --plum-light: #a562a8;
  --gold: #f0b86e;
  --gold-bright: #ffdba0;
  --gold-deep: #c78a3e;
  --lavender: #f5eff8;
  --soft-lilac: #c8a8d8;
  --cream: #f5ede0;
  --cream-dim: #c9bfb0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #2a1830;
  color: var(--lavender);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===== TOP BRAND BAR ===== */
.brand-bar {
  background: rgba(20, 12, 25, 0.65);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(240, 184, 110, 0.12);
}
.brand-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--lavender);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-logo .amp { color: var(--gold); font-weight: 300; }
.brand-nav {
  display: flex;
  gap: 36px;
}
.brand-nav a {
  color: var(--soft-lilac);
  font-size: 0.86rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.brand-nav a:hover, .brand-nav a.active { color: var(--gold); }
.brand-cta {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(240, 184, 110, 0.4);
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
}
.brand-cta:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ===== EYEBROW + EDITORIAL HEADLINE PRIMITIVES ===== */
.eyebrow {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.editorial-h {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--lavender);
}
.editorial-h em {
  font-style: italic;
  font-weight: 300;
}

/* ===== FILIGREE DIVIDER ===== */
.filigree {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}
.filigree::before, .filigree::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 184, 110, 0.3), transparent);
  max-width: 200px;
}
.filigree-mark {
  color: var(--gold);
  font-size: 1.5rem;
  margin: 0 1.5rem;
  line-height: 1;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
}

/* ===== HERO BACKGROUND ===== */
.hero-bg {
  background:
    radial-gradient(ellipse 60% 50% at 25% 20%, rgba(240, 184, 110, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 75% 80%, rgba(165, 98, 168, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, #2a1830 0%, #3d2545 100%);
}
.hero-ornament {
  position: absolute;
  top: 30px;
  right: 60px;
  width: 240px;
  height: 240px;
  opacity: 0.25;
}

/* ===== NUMBER PLATE (Roman numerals or counts) ===== */
.number-plate {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 0.85;
}

/* ===== APEX CARD (Inner Circle on hub, hero on its detail page) ===== */
.apex-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background:
    linear-gradient(145deg, rgba(240, 184, 110, 0.04) 0%, rgba(90, 56, 112, 0.12) 100%),
    rgba(20, 12, 25, 0.6);
  border: 1px solid rgba(240, 184, 110, 0.30);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.65), 0 0 0 1px rgba(240, 184, 110, 0.08) inset;
  transition: border-color 0.4s ease;
}
.apex-card:hover { border-color: rgba(240, 184, 110, 0.55); }
.apex-image-slot {
  position: relative;
  min-height: 540px;
  overflow: hidden;
}
.apex-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,12,25,0.0) 0%, rgba(20,12,25,0.5) 100%);
  pointer-events: none;
}
.apex-image-meta {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}
.apex-stamp {
  background: rgba(20, 12, 25, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(240, 184, 110, 0.32);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
}
.apex-body {
  padding: 60px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.apex-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid rgba(240, 184, 110, 0.16);
  border-bottom: 1px solid rgba(240, 184, 110, 0.16);
  margin: 22px 0 32px;
}
.apex-meta-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.01em;
}
.apex-meta-label {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-weight: 500;
}

@media (max-width: 900px) {
  .apex-card { grid-template-columns: 1fr; }
  .apex-image-slot { min-height: 320px; }
  .apex-body { padding: 40px 28px; }
}

/* ===== IMAGE PLACEHOLDERS ===== */
.image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 184, 110, 0.35);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.image-placeholder-island {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(240, 184, 110, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(165, 98, 168, 0.32) 0%, transparent 60%),
    linear-gradient(135deg, #2a1830 0%, #3d2545 50%, #5a3870 100%);
}
.image-placeholder-hinterland {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(240, 184, 110, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #3d2545 0%, #2a1830 100%);
}
.image-placeholder-warm {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(240, 184, 110, 0.32) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(245, 239, 248, 0.10) 0%, transparent 50%),
    linear-gradient(135deg, #5a3870 0%, #3d2545 100%);
}
.image-placeholder-coast {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(240, 184, 110, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, #2a1830 0%, #5a3870 100%);
}
.image-placeholder-builder {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(199, 138, 62, 0.20) 0%, transparent 60%),
    linear-gradient(135deg, #2a1830 0%, #3d2545 100%);
}
.image-placeholder-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(240, 184, 110, 0.5);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* ===== RETREAT GRID CARDS (4-up on hub) ===== */
.retreat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.retreat-grid-card {
  display: block;
  background:
    linear-gradient(145deg, rgba(240, 184, 110, 0.04) 0%, rgba(90, 56, 112, 0.12) 100%),
    rgba(20, 12, 25, 0.6);
  border: 1px solid rgba(240, 184, 110, 0.18);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.retreat-grid-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 184, 110, 0.45);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.55);
}
.retreat-grid-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.retreat-grid-body {
  padding: 36px 32px;
}
.retreat-grid-body .number-plate {
  margin-bottom: 4px;
}
.retreat-grid-body .eyebrow {
  display: block;
  margin-bottom: 10px;
}
.retreat-grid-body h3 {
  margin-bottom: 16px;
}
.retreat-grid-promise {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(240, 184, 110, 0.92);
  margin-bottom: 28px;
}
.retreat-grid-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid rgba(240, 184, 110, 0.12);
  border-bottom: 1px solid rgba(240, 184, 110, 0.12);
  margin-bottom: 22px;
  font-size: 0.85rem;
  color: var(--soft-lilac);
}
.retreat-grid-meta strong {
  color: var(--gold);
  font-weight: 600;
}
.retreat-grid-link {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}
.retreat-grid-card:hover .retreat-grid-link { gap: 12px; }
.retreat-grid-link .arrow { transition: transform 0.3s; }
.retreat-grid-card:hover .retreat-grid-link .arrow { transform: translateX(4px); }

@media (max-width: 900px) {
  .retreat-grid { grid-template-columns: 1fr; }
}

/* ===== SELECTOR (which retreat is right for me) ===== */
.selector-card {
  background: rgba(20, 12, 25, 0.55);
  border: 1px solid rgba(240, 184, 110, 0.18);
  border-radius: 16px;
  padding: 12px 28px;
}
.selector-card details {
  border-bottom: 1px solid rgba(240, 184, 110, 0.10);
  padding: 22px 0;
}
.selector-card details:last-child { border-bottom: 0; }
.selector-card summary {
  list-style: none;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--lavender);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.selector-card summary::-webkit-details-marker { display: none; }
.selector-card summary::after {
  content: '+';
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1;
}
.selector-card details[open] summary::after { content: '−'; }
.selector-card .selector-answer {
  margin-top: 14px;
  color: rgba(245, 239, 248, 0.78);
  font-size: 1rem;
  line-height: 1.6;
}
.selector-card .selector-answer a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 184, 110, 0.4);
}

/* ===== CARD CTA ROW ===== */
.card-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}

/* ===== LUXE BUTTON ===== */
.luxe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--plum-deep);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}
.luxe-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(240, 184, 110, 0.4);
}
.luxe-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.luxe-btn .arrow { transition: transform 0.3s; }
.luxe-btn:hover .arrow { transform: translateX(3px); }

.luxe-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(240, 184, 110, 0.45);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}
.luxe-btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(240, 184, 110, 0.05);
}

/* ===== LUXE INPUT ===== */
.luxe-input {
  width: 100%;
  background: rgba(20, 12, 25, 0.55);
  border: 1px solid rgba(240, 184, 110, 0.22);
  color: var(--lavender);
  padding: 0.95rem 1.1rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: border-color 0.3s, background 0.3s;
}
.luxe-input::placeholder { color: rgba(245, 239, 248, 0.42); }
.luxe-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(30, 18, 38, 0.7);
}

/* ===== REVEAL ON SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== DETAIL PAGE — SECTION RHYTHM ===== */
.section-rule {
  max-width: 200px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(240, 184, 110, 0.4), transparent);
}

/* ===== DETAIL PAGE — OLD WAY / NEW WAY ===== */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}
.contrast-card {
  border: 1px solid rgba(240, 184, 110, 0.12);
  border-radius: 14px;
  padding: 36px 32px;
  background: rgba(20, 12, 25, 0.55);
}
.contrast-card.old {
  border-color: rgba(240, 184, 110, 0.10);
  opacity: 0.85;
}
.contrast-card.new {
  border-color: rgba(240, 184, 110, 0.32);
  background: rgba(30, 18, 38, 0.75);
}
.contrast-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.contrast-card.old .contrast-eyebrow { color: rgba(245, 239, 248, 0.5); }
.contrast-card.new .contrast-eyebrow { color: var(--gold); }
.contrast-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 16px;
}
.contrast-card.old .contrast-headline { color: rgba(245, 239, 248, 0.7); }
.contrast-card.new .contrast-headline { color: var(--lavender); }
.contrast-card.new .contrast-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}
.contrast-body {
  color: rgba(245, 239, 248, 0.78);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .contrast-grid { grid-template-columns: 1fr; }
}

/* ===== DETAIL PAGE — INCLUSIONS LIST ===== */
.inclusions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 36px;
  list-style: none;
}
.inclusions li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(240, 184, 110, 0.10);
  color: var(--lavender);
  font-size: 1rem;
  line-height: 1.4;
}
.inclusions li::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.7rem;
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .inclusions { grid-template-columns: 1fr; }
}

/* ===== DETAIL PAGE — GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(240, 184, 110, 0.18);
  transition: border-color 0.4s, transform 0.4s;
}
.gallery-tile:hover {
  transform: scale(1.02);
  border-color: rgba(240, 184, 110, 0.4);
}
.gallery-tile.gallery-tile-tall {
  aspect-ratio: 1 / 1.4;
  grid-row: span 2;
}
.gallery-tile.gallery-tile-wide {
  aspect-ratio: 2 / 1;
  grid-column: span 2;
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-tile.gallery-tile-tall, .gallery-tile.gallery-tile-wide {
    aspect-ratio: 1 / 1;
    grid-row: auto;
    grid-column: auto;
  }
}

/* ===== DETAIL PAGE — COHORT STATUS BADGE ===== */
.cohort-status {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(20, 12, 25, 0.55);
  border: 1px solid rgba(240, 184, 110, 0.32);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--lavender);
}
.cohort-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(240, 184, 110, 0.6);
}
.cohort-status strong {
  color: var(--gold);
  font-weight: 600;
}

/* ===== DETAIL PAGE — DUAL CTA ROW ===== */
.dual-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* ===== FORM ===== */
.retreat-form {
  text-align: left;
}
.form-success {
  color: var(--gold-bright);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  padding: 0.9rem 0;
}

/* ===== ARCHIVE NOTICE BANNER (for AICC, Activator, old retreats) ===== */
.archive-notice {
  background: rgba(20, 12, 25, 0.85);
  border-bottom: 1px solid rgba(240, 184, 110, 0.32);
  padding: 18px 24px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--cream);
}
.archive-notice strong { color: var(--gold); font-weight: 600; }
.archive-notice a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 184, 110, 0.4);
  margin-left: 8px;
  transition: border-color 0.3s;
}
.archive-notice a:hover { border-color: var(--gold); }

/* ===== UTILITY ===== */
@media (max-width: 760px) {
  .brand-bar-inner { padding: 16px 20px; }
  .hero-ornament { width: 140px; height: 140px; right: 20px; top: 20px; }
}
