/* journey.css — shared styles for the Junior Journey hub + five stage pages */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  background: #F8F6F0;
  color: #1A2A1A;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

:root {
  --navy: #0B3D6B;
  --mid: #1A6EA8;
  --sky: #5AAAD4;
  --light: #7BBDE0;
  --pale: #B8D8F0;
  --serif: Georgia, serif;
  /* Stage colours */
  --s1: #2D6A1F; --s1l: #E8F5E0; --s1d: #1A4A10;
  --s2: #1A5A8A; --s2l: #E0F0FF; --s2d: #0F3A60;
  --s3: #7A3A00; --s3l: #FFF0E0; --s3d: #5A2800;
  --s4: #5A0A7A; --s4l: #F5E8FF; --s4d: #3A0050;
  --s5: #8A1A1A; --s5l: #FFE8E8; --s5d: #5A0000;
}

/* ── NAV ── */
nav {
  background: var(--navy); padding: 14px 48px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 200;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}
.nav-logo { text-decoration: none; }
.nl-junior { font-family: var(--serif); font-size: 11px; font-weight: 700; color: var(--pale); text-transform: uppercase; line-height: 0.9; display: flex; align-items: center; gap: 4px; }
.nl-rule { height: 1.5px; background: linear-gradient(to right, #EEF4FB, #1A6EA8, #7BBDE0); border-radius: 1px; margin: 2px 0; }
.nl-caddie { font-family: var(--serif); font-size: 18px; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: -0.8px; line-height: 0.9; }
.nav-back { font-size: 13px; color: var(--sky); }
.nav-back:hover { color: white; }

/* ── HERO ── */
.hero {
  background: var(--navy);
  padding: 56px 24px 0;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.hero-label { font-size: 11px; color: var(--sky); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700; color: white;
  letter-spacing: -1.5px; line-height: 1.05;
  margin-bottom: 16px;
}
.hero h1 em { color: var(--light); font-style: normal; }
.hero-sub { font-size: 17px; color: var(--light); max-width: 520px; margin: 0 auto 40px; line-height: 1.65; }

/* Journey timeline graphic */
.journey-graphic {
  max-width: 900px; margin: 0 auto;
  padding: 0 24px;
}

/* ── STAGE SELECTOR (legacy tab strip — hub no longer uses this for stage switching) ── */
.stage-selector {
  background: white;
  border-top: 3px solid var(--navy);
  position: sticky; top: 57px; z-index: 100;
  overflow-x: auto; scrollbar-width: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.stage-selector::-webkit-scrollbar { display: none; }
.stage-tabs { display: flex; width: max-content; min-width: 100%; }
.stage-tab {
  flex: 1; min-width: 160px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 14px 16px;
  cursor: pointer; border: none;
  background: white; border-bottom: 3px solid transparent;
  transition: all 0.2s; text-align: center;
  border-right: 1px solid #F0EDE8;
}
.stage-tab:last-child { border-right: none; }
.stage-tab-num { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 3px; opacity: 0.5; }
.stage-tab-name { font-size: 13px; font-weight: 700; color: #333; }
.stage-tab-age { font-size: 10px; color: #999; margin-top: 2px; }

.stage-tab[data-s="1"]:hover, .stage-tab[data-s="1"].active { border-bottom-color: var(--s1); background: var(--s1l); }
.stage-tab[data-s="2"]:hover, .stage-tab[data-s="2"].active { border-bottom-color: var(--s2); background: var(--s2l); }
.stage-tab[data-s="3"]:hover, .stage-tab[data-s="3"].active { border-bottom-color: var(--s3); background: var(--s3l); }
.stage-tab[data-s="4"]:hover, .stage-tab[data-s="4"].active { border-bottom-color: var(--s4); background: var(--s4l); }
.stage-tab[data-s="5"]:hover, .stage-tab[data-s="5"].active { border-bottom-color: var(--s5); background: var(--s5l); }

.stage-tab[data-s="1"].active .stage-tab-num { color: var(--s1); opacity: 1; }
.stage-tab[data-s="2"].active .stage-tab-num { color: var(--s2); opacity: 1; }
.stage-tab[data-s="3"].active .stage-tab-num { color: var(--s3); opacity: 1; }
.stage-tab[data-s="4"].active .stage-tab-num { color: var(--s4); opacity: 1; }
.stage-tab[data-s="5"].active .stage-tab-num { color: var(--s5); opacity: 1; }

/* ── STAGE CONTENT ── */
.stage { display: none; }
.stage.active { display: block; }

/* Stage hero banner */
.stage-banner {
  padding: 52px 24px 40px;
  position: relative; overflow: hidden;
}
.s1 .stage-banner { background: linear-gradient(135deg, var(--s1d) 0%, var(--s1) 100%); }
.s2 .stage-banner { background: linear-gradient(135deg, var(--s2d) 0%, var(--s2) 100%); }
.s3 .stage-banner { background: linear-gradient(135deg, var(--s3d) 0%, var(--s3) 100%); }
.s4 .stage-banner { background: linear-gradient(135deg, var(--s4d) 0%, var(--s4) 100%); }
.s5 .stage-banner { background: linear-gradient(135deg, var(--s5d) 0%, var(--s5) 100%); }

.banner-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: center;
}
.banner-stage-num { font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.banner-title { font-family: var(--serif); font-size: clamp(34px, 5vw, 56px); font-weight: 700; color: white; letter-spacing: -1.5px; line-height: 1; margin-bottom: 12px; }
.banner-hook { font-size: 16px; color: rgba(255,255,255,0.8); line-height: 1.6; max-width: 480px; margin-bottom: 20px; }
.banner-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.banner-tag { font-size: 11px; background: rgba(255,255,255,0.15); color: white; border-radius: 20px; padding: 4px 14px; border: 1px solid rgba(255,255,255,0.2); }
.banner-illustration { flex-shrink: 0; opacity: 0.9; }

/* Body */
.stage-body {
  max-width: 800px; margin: 0 auto;
  padding: 52px 24px 80px;
}

/* Sections within body */
.section { margin-bottom: 52px; }
.section h3 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  color: #1A1A1A; margin-bottom: 16px;
  letter-spacing: -0.3px;
  display: flex; align-items: center; gap: 10px;
}
.section h3 .h3-icon { font-size: 20px; }
p.body-text {
  font-size: 16px; color: #3A4A3A;
  line-height: 1.85; margin-bottom: 16px;
}
p.body-text:last-child { margin-bottom: 0; }
p.body-text strong { color: #1A1A1A; font-weight: 600; }
.jc-link { color: var(--mid); font-weight: 600; }

/* Bulleted/numbered lists inside body copy (Body & Readiness, Practice, Course management boxes) */
ul.body-list, ol.body-list {
  font-size: 16px; color: #3A4A3A;
  line-height: 1.85; margin: 0 0 16px; padding-left: 22px;
}
ul.body-list li, ol.body-list li { margin-bottom: 8px; }
ul.body-list li:last-child, ol.body-list li:last-child { margin-bottom: 0; }
ul.body-list strong, ol.body-list strong { color: #1A1A1A; font-weight: 600; }

/* Reference tables inside body copy */
.jc-table-wrap { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.jc-table-wrap:last-child { margin-bottom: 0; }
.jc-table { width: 100%; border-collapse: collapse; background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 8px rgba(0,0,0,0.06); min-width: 440px; }
.jc-table th { background: var(--navy); color: white; font-size: 12px; font-weight: 600; padding: 10px 14px; text-align: left; letter-spacing: 0.03em; white-space: nowrap; }
.jc-table td { padding: 10px 14px; font-size: 13px; color: var(--navy); line-height: 1.5; border-bottom: 1px solid var(--pale); vertical-align: top; }
.jc-table tr:last-child td { border-bottom: none; }
.jc-table tbody tr:nth-child(even) td { background: #F8FBFF; }
.jc-table td:first-child { font-weight: 600; white-space: nowrap; }

/* Pull quote */
.pull-quote {
  margin: 32px 0;
  padding: 24px 28px 24px 24px;
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.pull-quote::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 80px;
  color: var(--pale);
  position: absolute;
  top: -10px; left: 16px;
  line-height: 1;
}
.pull-quote p {
  font-family: var(--serif);
  font-size: 18px; color: var(--navy);
  line-height: 1.65; font-style: italic;
  padding-top: 20px;
}
.pull-quote-attr { font-size: 12px; color: var(--sky); margin-top: 10px; letter-spacing: 0.04em; }

/* Big stat callout */
.stat-callout {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin: 28px 0;
}
.stat-card {
  flex: 1; min-width: 140px;
  background: white; border-radius: 12px;
  padding: 20px; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.stat-number { font-family: var(--serif); font-size: 42px; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 12px; color: #666; line-height: 1.4; }

.s1 .stat-number { color: var(--s1); }
.s2 .stat-number { color: var(--s2); }
.s3 .stat-number { color: var(--s3); }
.s4 .stat-number { color: var(--s4); }
.s5 .stat-number { color: var(--s5); }

/* Jump-link stat card (e.g. Stage 5 → WAGR deep dive) */
.stat-card-jump { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.stat-card-jump:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.stat-card-jump-arrow { font-size: 11px; font-weight: 700; margin-top: 6px; }
.s5 .stat-card-jump-arrow { color: var(--s5); }

/* Numbered subsection box (e.g. Stage 5.2 — WAGR) */
.subsection-box { border-radius: 14px; padding: 32px; margin: 40px 0; scroll-margin-top: 24px; }
.s1 .subsection-box { background: var(--s1l); border: 2px solid var(--s1); }
.s2 .subsection-box { background: var(--s2l); border: 2px solid var(--s2); }
.s3 .subsection-box { background: var(--s3l); border: 2px solid var(--s3); }
.s4 .subsection-box { background: var(--s4l); border: 2px solid var(--s4); }
.s5 .subsection-box { background: var(--s5l); border: 2px solid var(--s5); }
.subsection-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: white; padding: 5px 14px; border-radius: 20px; margin-bottom: 18px;
}
.s1 .subsection-eyebrow { background: var(--s1); }
.s2 .subsection-eyebrow { background: var(--s2); }
.s3 .subsection-eyebrow { background: var(--s3); }
.s4 .subsection-eyebrow { background: var(--s4); }
.s5 .subsection-eyebrow { background: var(--s5); }
/* Inside a subsection-box, pull-quote and dev-card sit on white so they still lift off the tinted background */
.subsection-box .pull-quote, .subsection-box .dev-card { background: white; }

/* Development cards */
.dev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.dev-card {
  background: white; border-radius: 10px;
  padding: 18px; box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  border-top: 3px solid transparent;
}
.s1 .dev-card { border-top-color: var(--s1); }
.s2 .dev-card { border-top-color: var(--s2); }
.s3 .dev-card { border-top-color: var(--s3); }
.s4 .dev-card { border-top-color: var(--s4); }
.s5 .dev-card { border-top-color: var(--s5); }
.dev-card-icon { font-size: 24px; margin-bottom: 8px; }
.dev-card-title { font-size: 14px; font-weight: 700; color: #1A1A1A; margin-bottom: 4px; }
.dev-card-body { font-size: 13px; color: #666; line-height: 1.5; }

/* Parent note */
.parent-note {
  background: #FFFBF0;
  border: 1.5px solid #E8C97A;
  border-radius: 12px; padding: 24px 28px;
  margin: 32px 0;
}
.parent-note-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.parent-note-icon { font-size: 24px; }
.parent-note-title { font-family: var(--serif); font-size: 17px; font-weight: 700; color: #6B5000; }
.parent-note p { font-size: 14px; color: #5A4200; line-height: 1.75; margin-bottom: 12px; }
.parent-note p:last-child { margin: 0; }
.parent-note strong { color: #3A2800; font-weight: 700; }

/* Equipment */
.equipment-box {
  background: var(--navy); border-radius: 12px;
  padding: 28px; margin: 32px 0;
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: start;
}
.eq-label { font-size: 10px; color: var(--sky); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.eq-title { font-family: var(--serif); font-size: 19px; font-weight: 700; color: white; margin-bottom: 14px; }
.eq-body p { font-size: 14px; color: var(--light); line-height: 1.7; margin-bottom: 10px; }
.eq-body p:last-child { margin: 0; }
.eq-icon { font-size: 48px; opacity: 0.6; }

/* Ready to move on */
.ready-box {
  border-radius: 12px; padding: 28px;
  margin: 40px 0 0;
}
.s1 .ready-box { background: var(--s1l); border: 2px solid var(--s1); }
.s2 .ready-box { background: var(--s2l); border: 2px solid var(--s2); }
.s3 .ready-box { background: var(--s3l); border: 2px solid var(--s3); }
.s4 .ready-box { background: var(--s4l); border: 2px solid var(--s4); }
.s5 .ready-box { background: var(--s5l); border: 2px solid var(--s5); }
.ready-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ready-icon { font-size: 24px; }
.ready-title { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.s1 .ready-title { color: var(--s1d); }
.s2 .ready-title { color: var(--s2d); }
.s3 .ready-title { color: var(--s3d); }
.s4 .ready-title { color: var(--s4d); }
.s5 .ready-title { color: var(--s5d); }
.ready-signs { display: flex; flex-direction: column; gap: 10px; }
.ready-sign { display: flex; gap: 12px; align-items: flex-start; }
.ready-tick { width: 22px; height: 22px; border-radius: 50%; background: #22C55E; color: white; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.ready-text { font-size: 14px; color: #333; line-height: 1.55; }
.warn-tick { background: #DC2626; }

/* Highlighted "this stage" row inside a jc-table */
.jc-table .jc-highlight-row td { font-weight: 700; }
.s1 .jc-table .jc-highlight-row td { background: var(--s1l); color: var(--s1d); }
.s2 .jc-table .jc-highlight-row td { background: var(--s2l); color: var(--s2d); }
.s3 .jc-table .jc-highlight-row td { background: var(--s3l); color: var(--s3d); }
.s4 .jc-table .jc-highlight-row td { background: var(--s4l); color: var(--s4d); }
.s5 .jc-table .jc-highlight-row td { background: var(--s5l); color: var(--s5d); }

/* Nav arrows (previous/next stage) */
.nav-arrows {
  display: flex; justify-content: space-between;
  padding: 32px 24px;
  max-width: 800px; margin: 0 auto;
  border-top: 1px solid #E8E4DC;
}
.arr-btn {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  background: white; border: 1.5px solid #DDD;
  border-radius: 8px; padding: 10px 18px;
  cursor: pointer; transition: all 0.15s;
}
.arr-btn:hover { border-color: var(--navy); background: var(--navy); color: white; }
.arr-btn.hidden { visibility: hidden; }

/* Divider */
.section-divider {
  height: 1px; background: #E8E4DC;
  margin: 40px 0;
}

/* Footer */
footer { background: var(--navy); padding: 24px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: var(--sky); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 12px; color: var(--light); }

/* ── "You are here" trail ── */
.jc-trail {
  max-width: 900px; margin: 0 auto; padding: 14px 24px 0;
  font-size: 13px; color: #667;
}
.jc-trail a { color: var(--mid); }
.jc-trail a:hover { text-decoration: underline; }
.jc-trail-sep { margin: 0 6px; color: #AAB; }
.jc-trail-current { color: #556; }

/* ── Five-stage progress strip (stage pages only) ── */
.progress-strip {
  background: white;
  border-top: 3px solid var(--navy);
  overflow-x: auto; scrollbar-width: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-top: 16px;
}
.progress-strip::-webkit-scrollbar { display: none; }
.progress-track { display: flex; width: max-content; min-width: 100%; }
.progress-pill {
  flex: 1; min-width: 150px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 14px 16px; text-align: center;
  background: #EEF4FB; color: var(--navy);
  border-right: 1px solid rgba(11,61,107,0.08);
  transition: background 0.15s, color 0.15s;
}
.progress-pill:last-child { border-right: none; }
.progress-pill:hover { background: #DCEAFB; }
.progress-pill-num { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.6; margin-bottom: 3px; }
.progress-pill-name { font-size: 13px; font-weight: 700; }
.progress-pill-age { font-size: 10px; opacity: 0.6; margin-top: 2px; }
.progress-pill.current { background: var(--navy); color: white; }
.progress-pill.current .progress-pill-num { opacity: 0.85; }
.progress-pill.current .progress-pill-age { opacity: 0.75; }

/* ── Hub stage cards (replace the old tab-switched sections on journey.html) ── */
.hub-stage-grid {
  max-width: 900px; margin: 0 auto;
  padding: 44px 24px 80px;
  display: flex; flex-direction: column; gap: 20px;
}
.hub-stage-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: white; border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border-left: 6px solid var(--navy);
  transition: transform 0.15s, box-shadow 0.15s;
}
.hub-stage-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.hub-stage-card.s1 { border-left-color: var(--s1); }
.hub-stage-card.s2 { border-left-color: var(--s2); }
.hub-stage-card.s3 { border-left-color: var(--s3); }
.hub-stage-card.s4 { border-left-color: var(--s4); }
.hub-stage-card.s5 { border-left-color: var(--s5); }
.hub-stage-main { flex: 1; }
.hub-stage-num { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #888; margin-bottom: 4px; }
.hub-stage-title { font-family: var(--serif); font-size: 22px; font-weight: 700; color: #1A1A1A; margin-bottom: 6px; }
.hub-stage-age { display: inline-block; font-size: 11px; background: #EEF4FB; color: var(--navy); border-radius: 20px; padding: 3px 12px; margin-bottom: 10px; }
.hub-stage-summary { font-size: 15px; color: #3A4A3A; line-height: 1.6; margin-bottom: 10px; }
.hub-stage-read { font-size: 14px; font-weight: 700; color: var(--mid); white-space: nowrap; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  nav { padding: 12px 16px; }
  .banner-inner { grid-template-columns: 1fr; }
  .banner-illustration { display: none; }
  .dev-grid { grid-template-columns: 1fr; }
  .equipment-box { grid-template-columns: 1fr; }
  .eq-icon { display: none; }
  .stage-body { padding: 36px 16px 60px; }
  .nav-arrows { padding: 24px 16px; }
  footer { padding: 20px 16px; flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
  .hub-stage-card { flex-direction: column; }
}
