/* ============================================================
   EmberST8 ST8Coach — Shared Brand Design System
   brand.css — imported by every page
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=DM+Sans:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  /* Colours */
  --gold:          #C9A227;
  --gold-light:    #D4A843;
  --gold-pale:     #e8c96a;
  --gold-dim:      rgba(201,162,39,0.15);
  --black:         #0d0d0d;
  --surface:       #141414;
  --surface-2:     #1c1c1c;
  --surface-3:     #252525;
  --surface-4:     #2e2e2e;
  --border:        rgba(201,162,39,0.22);
  --border-soft:   rgba(255,255,255,0.08);
  --text:          #f7f4ef;
  --text-2:        rgba(247,244,239,0.72);
  --text-3:        rgba(247,244,239,0.45);
  --text-4:        rgba(247,244,239,0.28);

  /* Typography */
  --font-d: 'Playfair Display', Georgia, serif;
  --font-u: 'DM Sans', sans-serif;
  --font-b: 'Open Sans', sans-serif;

  /* Spacing */
  --pad-x: clamp(20px, 5vw, 60px);
  --pad-y: clamp(48px, 7vw, 96px);
  --max-w: 1060px;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.4);
  --shadow:    0 4px 32px rgba(0,0,0,0.55);
  --shadow-lg: 0 8px 56px rgba(0,0,0,0.65);
  --glow:      0 0 48px rgba(201,162,39,0.14);
  --glow-lg:   0 0 80px rgba(201,162,39,0.22);
  --shadow-gold: 0 0 32px rgba(201,162,39,0.22);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.6);

  /* Video — CANONICAL BORDER STANDARD */
  --video-border: 2px solid var(--gold);
  --video-shadow: 0 0 0 4px rgba(201,162,39,0.10), 0 8px 40px rgba(0,0,0,0.6);

  /* Logo — FIXED SIZE, NEVER CHANGE */
  --logo-h-desktop: 40px;
  --logo-h-mobile:  32px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-pale); }
button { cursor: pointer; font-family: var(--font-u); }

/* ── Layout ── */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.wrap-narrow {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── HEADER — identical on every page ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-logo {
  height: var(--logo-h-desktop);
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .site-logo { height: var(--logo-h-mobile); }
}

/* ── STICKY CTA BAR ── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 200;
  background: var(--gold);
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.5);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-text {
  font-family: var(--font-u);
  font-size: clamp(12px, 1.8vw, 15px);
  font-weight: 600;
  color: var(--black);
  flex: 1;
}
.sticky-cta-text strong { display: block; font-size: clamp(13px, 2vw, 16px); }
.sticky-cta-btn {
  background: var(--black);
  color: var(--gold);
  font-family: var(--font-u);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  border: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.sticky-cta-btn:hover { background: var(--surface-2); color: var(--gold-pale); }
.sticky-cta-close {
  background: none;
  border: none;
  color: var(--black);
  opacity: 0.6;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  flex-shrink: 0;
}
.sticky-cta-close:hover { opacity: 1; }
@media (max-width: 600px) {
  .sticky-cta {
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
  }
  /* Hide text and close button — show only the CTA button on mobile */
  .sticky-cta-text { display: none; }
  .sticky-cta-close { display: none; }
  .sticky-cta-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 11px 20px;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* ── SECTION EYEBROW ── */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-u);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 36px; height: 1px;
  background: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}
.eyebrow.left { justify-content: flex-start; }
.eyebrow.left::before { display: none; }

/* ── HERO HEADINGS ── */
.hero-h1 {
  font-family: var(--font-d);
  font-size: clamp(28px, 5.5vw, 58px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 16px;
  text-align: center;
}
.hero-h1 em { color: var(--gold-light); font-style: italic; }
.hero-sub {
  font-family: var(--font-u);
  font-size: clamp(14px, 1.9vw, 18px);
  font-weight: 300;
  color: var(--text-2);
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

/* ── SECTION HEADINGS ── */
.section-h2 {
  font-family: var(--font-d);
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  text-align: center;
  margin-bottom: 10px;
}
.section-h2 em { color: var(--gold-light); }
.section-sub {
  font-family: var(--font-u);
  font-size: clamp(13px, 1.7vw, 16px);
  color: var(--text-2);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ── GOLD DIVIDER ── */
.gold-divider {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 20px auto;
  border-radius: 2px;
  opacity: 0.6;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-u);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, color 0.2s;
  padding: 16px 28px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 4px 20px rgba(201,162,39,0.3);
}
.btn-gold:hover {
  background: var(--gold-pale);
  color: var(--black);
  box-shadow: 0 8px 32px rgba(201,162,39,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold-dim);
  color: var(--gold-pale);
}
.btn-dark {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-soft);
}
.btn-dark:hover { background: var(--surface-3); color: var(--text); }
.btn-lg { padding: 20px 40px; font-size: 14px; }
.btn-sm { padding: 11px 20px; font-size: 11px; }
.btn-full { width: 100%; }

/* Pulse animation on primary CTAs */
@keyframes pulse-gold {
  0%   { box-shadow: 0 4px 20px rgba(201,162,39,0.3); }
  50%  { box-shadow: 0 4px 40px rgba(201,162,39,0.55); }
  100% { box-shadow: 0 4px 20px rgba(201,162,39,0.3); }
}
.btn-gold.pulse { animation: pulse-gold 2.5s ease-in-out infinite; }

/* ── VIDEO EMBED ── */
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-soft);
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── NAV CARDS (4-up, consistent across all pages) ── */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 700px) { .nav-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .nav-cards { grid-template-columns: 1fr; } }

.nav-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(20px, 2.5vw, 30px) clamp(10px, 1.5vw, 16px);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.nav-card:hover {
  border-color: var(--border);
  box-shadow: var(--glow);
  transform: translateY(-3px);
  color: var(--text);
}
.nav-card.current {
  border-color: rgba(201,162,39,0.3);
  background: rgba(201,162,39,0.04);
  pointer-events: none;
}
.nav-card.rec {
  border-color: rgba(201,162,39,0.25);
  background: rgba(201,162,39,0.04);
}
.nav-card.rec:hover { border-color: var(--gold); box-shadow: var(--glow-lg); }
.nav-badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-u);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.nav-badge.here { background: rgba(247,244,239,0.14); color: var(--text); }
.nav-badge.gold { background: var(--gold); color: var(--black); }
.nav-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(201,162,39,0.07);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.nav-icon svg {
  width: 20px; height: 20px;
  stroke: var(--gold); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.nav-lbl {
  font-family: var(--font-u);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.nav-desc {
  font-family: var(--font-u);
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ── NAV SECTION WRAPPER ── */
.nav-section {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  padding: clamp(48px, 6vw, 80px) var(--pad-x);
}

/* ── SPOT COUNTER ── */
.spot-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(28px, 4vw, 44px) var(--pad-x);
  background: rgba(201,162,39,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.spot-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 480px;
}
.spot-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  transition: background 0.3s;
}
.spot-dot.taken { background: var(--gold); }
.spot-dot.open  { background: var(--surface-3); border: 1px solid var(--border-soft); }
.spot-label {
  font-family: var(--font-u);
  font-size: 13px;
  color: var(--text-2);
}
.spot-label strong { color: var(--gold); }

/* ── FOOTER ── */
.site-footer {
  padding: 36px var(--pad-x);
  text-align: center;
  border-top: 1px solid var(--border-soft);
  margin-bottom: 52px; /* space for sticky bar */
}
.footer-logo {
  height: 22px;
  width: auto;
  margin: 0 auto 14px;
  opacity: 0.45;
}
.footer-copy {
  font-family: var(--font-u);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 10px;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-u);
  font-size: 12px;
  color: var(--text-3);
}
.footer-links a:hover { color: var(--gold); }

/* ── URGENCY BADGE ── */
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,0.1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-family: var(--font-u);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.urgency-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ── QUOTE BLOCK ── */
.quote-block {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 28px 0;
  background: rgba(201,162,39,0.04);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.quote-block p {
  font-family: var(--font-d);
  font-size: clamp(16px, 2.2vw, 22px);
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}
.quote-block cite {
  display: block;
  margin-top: 8px;
  font-family: var(--font-u);
  font-size: 12px;
  color: var(--text-3);
  font-style: normal;
}

/* ── PROGRESS BAR (video pages) ── */
.video-progress-bar {
  height: 3px;
  background: var(--surface-3);
  position: relative;
  overflow: hidden;
}
.video-progress-fill {
  height: 100%;
  background: var(--gold);
  transition: width 0.3s;
}

/* ── FORM STYLES ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-family: var(--font-u);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.form-input, .form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-3);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-u);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: var(--text-4); }
.form-input:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A227' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-select option { background: var(--surface-2); color: var(--text); }
.form-checkbox-row { display: flex; align-items: flex-start; gap: 12px; }
.form-checkbox { width: 18px; height: 18px; border: 1.5px solid var(--border-soft); border-radius: 4px; background: var(--surface-3); cursor: pointer; flex-shrink: 0; margin-top: 2px; accent-color: var(--gold); }
.form-checkbox-label { font-family: var(--font-u); font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ── CARD ── */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: clamp(22px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--border); box-shadow: var(--glow); }

/* ── ICON FEATURE ROW ── */
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.feature-row:last-child { border-bottom: none; }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg {
  width: 18px; height: 18px;
  stroke: var(--gold); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.feature-title {
  font-family: var(--font-u);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.feature-desc {
  font-family: var(--font-u);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ── VIDEO WRAP — CANONICAL STANDARD ── */
/* Use this class on every video iframe wrapper across the entire site */
.video-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  border: var(--video-border);
  box-shadow: var(--video-shadow);
  background: #000;
}
.video-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

/* ── SITE LOGO — CANONICAL STANDARD ── */
/* Use .site-logo on every header logo img tag */
.site-logo {
  height: var(--logo-h-desktop);
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .site-logo { height: var(--logo-h-mobile); }
}

/* ── FOOTER LOGO — CANONICAL STANDARD ── */
.footer-logo {
  height: 28px;
  width: auto;
  margin: 0 auto 12px;
  opacity: 0.6;
  display: block;
}

/* ── STICKY CTA JS (shared) ── */
/* Triggered by shared.js */

/* ── RESPONSIVE UTILITIES ── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
