/* ========================================================
   THE JOURNEY — shared stylesheet
   Dark cosmic theme, gold accents, muted spectrum per stage
   ======================================================== */

:root {
  --bg: #0d0b14;
  --bg-alt: #15121f;
  --bg-raised: #1b1826;
  --border: #2a2438;
  --border-strong: #3a3350;
  --gold: #c9a86a;
  --gold-light: #e0c68a;
  --text-primary: #f2f0f5;
  --text-secondary: #a49bb0;
  --text-muted: #756e82;

  --stage-1: #b8735a;
  --stage-2: #c99a4a;
  --stage-3: #8fa05a;
  --stage-4: #4a9a8f;
  --stage-5: #4a7fa0;
  --stage-6: #7a5ab0;
  --stage-7: #e8d9a8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(122, 90, 176, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(201, 168, 106, 0.06), transparent);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--text-secondary); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.7em 1.5em;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 106, 0.08);
  color: var(--text-primary);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1520;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #1a1520;
}

.btn-small { font-size: 0.85rem; padding: 0.5em 1.1em; }

/* ---------- Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 11, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

/* ---------- Journey dropdown in nav ---------- */

.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  background: none;
  border: none;
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--gold);
}

.nav-dropdown-toggle .caret {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-toggle .caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 240px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 50;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li { border-top: none !important; }

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1.2rem;
  font-size: 0.87rem;
  color: var(--text-secondary);
}

.nav-dropdown-menu a:hover { color: var(--gold); background: rgba(201, 168, 106, 0.06); }

@media (max-width: 720px) {
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: none;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.25s ease;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 500px;
    padding: 0.2rem 0 0.4rem;
  }
  .nav-dropdown-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    justify-content: space-between;
  }
  .nav-dropdown-menu a { padding: 0.65rem 1.5rem 0.65rem 2.3rem; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 1rem 1.5rem; }
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 4.5rem 0 3rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero p.lead {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ---------- Stage selector grid ---------- */

.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
  padding: 1rem 0 3rem;
}

.stage-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent, var(--gold));
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stage-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  border-left-color: var(--accent, var(--gold));
}

.stage-card .stage-number {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, var(--gold));
  margin-bottom: 0.3rem;
}

.stage-card h3 { margin-bottom: 0.7rem; }

.stage-card ul {
  margin: 0 0 1.2rem;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.stage-card li { margin-bottom: 0.4rem; }

.stage-card.stage-7 { grid-column: span 1; }

.browse-all {
  text-align: center;
  padding-bottom: 2rem;
}

/* ---------- Stage detail page ---------- */

.stage-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.stage-hero .stage-number {
  color: var(--accent, var(--gold));
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.stage-hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
}

.stage-bullets {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.7rem;
}

.stage-bullets li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ---------- Video grid ---------- */

.section-title {
  padding: 3rem 0 0.5rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0 4rem;
}

.video-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.video-embed iframe,
.video-embed video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-placeholder {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(160deg, var(--bg-raised), var(--bg-alt));
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
}

.video-placeholder .play-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
}

.video-placeholder .play-icon svg { width: 16px; height: 16px; fill: var(--text-muted); }

.video-placeholder span { font-size: 0.82rem; }

.video-card .video-info { padding: 1.1rem 1.25rem 1.3rem; }
.video-card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.video-card p { font-size: 0.88rem; margin: 0; }

/* ---------- Stage navigation (prev/next) ---------- */

.stage-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0 4rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.stage-pagination a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stage-pagination a:hover { color: var(--gold); }

.stage-pagination .center-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- About / general content pages ---------- */

.content-page { padding: 3.5rem 0 4rem; }
.content-page .lead { font-size: 1.1rem; max-width: 680px; }
.content-page section { padding-top: 2.2rem; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.pillar-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}

.pillar-card h3 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--gold-light); }
.pillar-card p { font-size: 0.9rem; margin: 0; }

/* ---------- Contact ---------- */

.contact-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  margin-top: 1.5rem;
}

.contact-box a.email {
  font-size: 1.1rem;
  font-family: var(--font-display);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.site-footer .footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
