/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */
:root {
  --bg-light: #F9FAFB;
  --bg-surface: #FFFFFF;
  --bg-dark: #0A1118;
  
  --text-dark: #111827;
  --text-muted: #4B5563;
  --text-light: #FFFFFF;
  --text-light-muted: rgba(255, 255, 255, 0.78);

  --accent: #E85D04;          /* Warm Golden-Orange matching the sunset photo */
  --accent-hover: #CC5000;
  --status-green: #00E599;

  --border-light: #E5E7EB;
  --border-dark: rgba(255, 255, 255, 0.16);

  /* Classy Editorial Font Stack */
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Wide Horizontal Container */
  --container-max: 1560px;
  --header-height: 76px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   WIDE LAYOUT & TYPOGRAPHY
   ========================================================================== */
.container {
  width: 92%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.section-header-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  align-items: end;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

h1, h2, .page-title {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2.25rem, 4vw, 3.35rem);
}

.page-title {
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  margin-bottom: 1rem;
}

h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.95rem 1.75rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--text-light);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
}

.btn-lg {
  padding: 1.15rem 2.4rem;
  font-size: 1rem;
}

.btn-dark-glass {
  background-color: rgba(10, 17, 24, 0.45);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text-light);
}

.btn-dark-glass:hover {
  background-color: rgba(10, 17, 24, 0.7);
  border-color: var(--text-light);
}

.btn-outline-sm {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
  padding: 0.55rem 1.1rem;
  font-size: 0.825rem;
}

.btn-outline-sm:hover,
.btn-outline-sm.copied {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--text-light);
}

.btn-outline-dark {
  background: transparent;
  border: 1px solid var(--text-dark);
  color: var(--text-dark);
}

.btn-outline-dark:hover {
  background: var(--text-dark);
  color: var(--text-light);
}

/* ==========================================================================
   1. NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(10, 17, 24, 0.82), rgba(10, 17, 24, 0.45));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-dark);
  height: var(--header-height);
}

.site-header-solid {
  position: sticky;
  background: var(--bg-dark);
}

.nav-container {
  width: 92%;
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-light);
  letter-spacing: 0.01em;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light-muted);
  transition: color 0.15s ease;
}

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

/* ==========================================================================
   2. FULL-SCREEN HERO SECTION (SHOWCASING SUNSET PHOTO)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg-dark);
  /* Subtle gradient so the golden-hour swimmer image shines clearly */
  background-image: 
    linear-gradient(
      to bottom,
      rgba(10, 17, 24, 0.45) 0%,
      rgba(10, 17, 24, 0.18) 45%,
      rgba(10, 17, 24, 0.78) 100%
    ),
    url('images/hero.jpg');
  background-size: cover;
  background-position: center 42%;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-height) + 3rem) 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: end;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FFD199;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.85rem, 5.5vw, 5.25rem);
  margin-bottom: 1.25rem;
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero .subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 54ch;
  margin-bottom: 2.25rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Large Classy Countdown */
.hero-countdown {
  background: rgba(10, 17, 24, 0.58);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 2rem 2.25rem;
}

.countdown-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light-muted);
  margin-bottom: 1rem;
}

.countdown-timer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.digits {
  font-family: var(--font-sans);
  font-size: clamp(2.75rem, 5.2vw, 4.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-light);
}

.unit-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light-muted);
  margin-top: 0.5rem;
}

.colon {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  transform: translateY(-0.5rem);
}

.scroll-prompt {
  position: absolute;
  bottom: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.scroll-prompt:hover {
  color: #FFFFFF;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-green);
  animation: pulse 1.8s infinite;
}

.badge-note {
  font-weight: 400;
  opacity: 0.75;
  font-size: 0.8rem;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 153, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(0, 229, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 153, 0); }
}

/* ==========================================================================
   3. TELEMETRY BAR
   ========================================================================== */
.telemetry-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.telemetry-item {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}

.telemetry-item:nth-child(2n) {
  border-right: none;
}

.telemetry-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.telemetry-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* ==========================================================================
   4. CHARITY SECTION
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.pillar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 2.75rem;
}

.pillar-meta {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.org-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.pillar-desc {
  color: var(--text-muted);
  font-size: 1.025rem;
}

/* ==========================================================================
   5. TRAINING LOG SECTION
   ========================================================================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 2rem;
}

.timeline-entry[hidden] {
  display: none !important;
}

.phone-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.phone-frame {
  background-color: var(--bg-dark);
  border-radius: 4px;
  padding: 0.5rem;
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background-color: #1F2937;
  cursor: zoom-in;
  border-radius: 2px;
}

.phone-frame figcaption {
  font-size: 0.75rem;
  color: var(--text-light-muted);
  text-align: center;
  padding-top: 0.45rem;
}

.date-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.65rem;
  margin-bottom: 1.25rem;
}

.training-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.25rem;
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.metric-val {
  font-size: 1.2rem;
  font-weight: 700;
}

.field-note {
  color: var(--text-muted);
  font-size: 1.025rem;
  max-width: 65ch;
}

.training-toggle-wrap {
  margin-top: 3rem;
  text-align: center;
}

/* ==========================================================================
   6. DEDICATED MEDIA PAGE (`media.html`)
   ========================================================================== */
.interview-feature-card {
  margin-top: 3rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.interview-image-col img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  background-color: #E5E7EB;
  cursor: zoom-in;
}

.interview-text-col {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.interview-text-col h2 {
  margin-bottom: 1rem;
}

.interview-excerpt {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.media-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.gallery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background-color: #E5E7EB;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.gallery-card img:hover {
  transform: scale(1.02);
}

.gallery-card figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   7. FOOTER & LIGHTBOX
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light-muted);
  padding: 4rem 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.footer-disclosure {
  max-width: 580px;
}

.footer-link {
  display: inline-block;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(10, 17, 24, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.75rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2.5rem;
  cursor: pointer;
}

.lightbox-stage {
  max-width: 92vw;
  max-height: 88vh;
  text-align: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 4px;
}

.lightbox-caption {
  font-size: 0.9rem;
  color: var(--text-light-muted);
  margin-top: 0.85rem;
}

/* ==========================================================================
   DESKTOP BREAKPOINTS
   ========================================================================== */
@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
  }

  .section-header-split {
    grid-template-columns: 1fr 1fr;
  }

  .telemetry-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .telemetry-item {
    border-bottom: none;
  }

  .telemetry-item:nth-child(2n) {
    border-right: 1px solid var(--border-light);
  }

  .telemetry-item:last-child {
    border-right: none;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-entry {
    grid-template-columns: repeat(12, 1fr);
    padding: 2.75rem;
  }

  /* Alternating Zig-Zag Layout */
  .timeline-entry:nth-child(odd) .timeline-visual {
    grid-column: 1 / 6;
  }
  .timeline-entry:nth-child(odd) .timeline-content {
    grid-column: 6 / 13;
  }

  .timeline-entry:nth-child(even) .timeline-content {
    grid-column: 1 / 8;
    grid-row: 1;
  }
  .timeline-entry:nth-child(even) .timeline-visual {
    grid-column: 8 / 13;
    grid-row: 1;
  }

  .interview-feature-card {
    grid-template-columns: 5fr 7fr;
  }

  .media-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr;
    align-items: end;
  }

  .footer-links {
    text-align: right;
  }
}

/* ==========================================================================
   TRAINING SUMMARY BLOCK
   ========================================================================== */
.training-summary-box {
  margin-top: 4.5rem;
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-radius: 6px;
  padding: 2.75rem;
}

.summary-header {
  margin-bottom: 2rem;
}

.summary-header h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
}

.summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.summary-num {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.summary-label {
  font-size: 0.85rem;
  color: var(--text-light-muted);
}

@media (min-width: 900px) {
  .summary-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}