@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&display=swap');

:root {
  --green: #314945;
  --green-dark: #223330;
  --near-black: #141414;
  --text: #494949;
  --light-gray: #d6d6d6;
  --card-bg: rgba(245, 247, 249, 0.85);
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --accent: #d68a3c;
  --accent-dark: #b56f2a;
  --accent-soft: rgba(214, 138, 60, 0.16);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

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

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

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

/* Header */
.site-header {
  background: #fff;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 52px; width: auto; }

.brand-text {
  font-weight: 800;
  font-size: 19px;
  color: var(--green);
  letter-spacing: 0.5px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--green);
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
  .site-header .container { position: relative; flex-wrap: nowrap; }
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 12px 24px rgba(20,20,20,0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.open { max-height: 320px; }

  .main-nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .main-nav a { display: block; padding: 13px 8px; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 22%, rgba(255,255,255,0.09) 0, transparent 3px),
    radial-gradient(circle at 34% 68%, rgba(255,255,255,0.09) 0, transparent 3px),
    radial-gradient(circle at 58% 30%, rgba(255,255,255,0.07) 0, transparent 3px),
    radial-gradient(circle at 78% 62%, rgba(255,255,255,0.09) 0, transparent 3px),
    radial-gradient(circle at 90% 18%, rgba(255,255,255,0.07) 0, transparent 3px),
    linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  background-size: 220px 220px, 260px 260px, 200px 200px, 240px 240px, 180px 180px, 100% 100%;
  color: #fff;
  padding: 90px 0 80px;
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero::before {
  width: 380px;
  height: 380px;
  background: var(--accent);
  opacity: 0.22;
  top: -160px;
  right: -100px;
}

.hero::after {
  width: 280px;
  height: 280px;
  background: var(--accent);
  opacity: 0.14;
  bottom: -140px;
  left: -80px;
}

.hero .container { position: relative; z-index: 1; }

.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 24px;
  line-height: 1.15;
}

.hero p {
  max-width: 720px;
  margin: 0 auto 32px;
  font-weight: 300;
  font-size: 19px;
  color: rgba(255,255,255,0.92);
}

.page-hero {
  padding: 64px 0 56px;
}

.page-hero h1 { font-size: 38px; }

.hero-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 10px 22px rgba(214, 138, 60, 0.4);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  border-radius: 0 16px;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(214, 138, 60, 0.35);
}

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

.btn-secondary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.btn-secondary:hover { background: var(--green-dark); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover { border-color: #fff; }

.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: #f5f7f7;
}

.section-dark {
  background: var(--green);
  color: rgba(255,255,255,0.92);
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--near-black);
  margin: 0 0 14px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 14px auto 0;
}

.section-dark .section-title h2 { color: #fff; }

.section-lede {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  color: var(--text);
}

.section-dark .section-lede { color: rgba(255,255,255,0.85); }

/* Station path */
.station-path {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto 56px;
  padding: 0 6px;
}

.station-path::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 46px;
  right: 46px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(214,138,60,0.25));
}

.path-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 108px;
  text-decoration: none;
}

.path-dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--green);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.path-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.35;
  text-align: center;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s ease;
}

.path-step:hover .path-dot {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.32);
}

.path-step:hover .path-label { color: #fff; }

@media (max-width: 800px) {
  .station-path {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    max-width: 280px;
    padding: 0;
  }

  .station-path::before {
    top: 0;
    bottom: 0;
    left: 23px;
    right: auto;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, var(--accent), rgba(214,138,60,0.25));
  }

  .path-step {
    flex-direction: row;
    width: auto;
    gap: 16px;
  }

  .path-label { text-align: left; }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 30px 26px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(20,20,20,0.06);
  border-top: 3px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(20,20,20,0.14);
  border-top-color: var(--accent);
}

.section-dark .card {
  background: var(--card-bg-dark);
  color: #fff;
}

.section-dark .card:hover {
  box-shadow: 0 16px 34px rgba(0,0,0,0.28);
}

.card .card-num {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 10px;
}

.section-dark .card .card-num { color: #ffffff; opacity: 0.65; }

.card .badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 14px rgba(214, 138, 60, 0.35);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card .icon svg { width: 24px; height: 24px; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.card-grid .card:nth-child(1) { transition-delay: 0.03s; }
.card-grid .card:nth-child(2) { transition-delay: 0.09s; }
.card-grid .card:nth-child(3) { transition-delay: 0.15s; }
.card-grid .card:nth-child(4) { transition-delay: 0.21s; }
.card-grid .card:nth-child(5) { transition-delay: 0.27s; }

.card h3 {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--near-black);
}

.section-dark .card h3 { color: #fff; }

.card p {
  font-size: 15.5px;
  margin: 0 0 20px;
  color: var(--text);
}

.section-dark .card p { color: rgba(255,255,255,0.8); }

.card .card-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card .card-links a {
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.15s ease;
}

.card .card-links a:hover { color: var(--accent-dark); }

.section-dark .card .card-links a {
  color: #fff;
  border-bottom-color: var(--accent);
}

.section-dark .card .card-links a:hover { color: var(--accent); }

/* Materials two-up */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.materials-grid .card { padding: 36px 32px; }

/* Viewer pages */
.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.viewer-toolbar h2 {
  margin: 0;
  font-size: 22px;
  color: var(--near-black);
}

.pdf-frame {
  width: 100%;
  height: 85vh;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
}

.audio-block {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 32px;
  border-left: 4px solid var(--accent);
}

.audio-block h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--near-black);
}

.audio-block .audio-sub {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 16px;
}

audio { width: 100%; }

.station-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  gap: 16px;
  flex-wrap: wrap;
}

.station-nav a {
  font-weight: 700;
  color: var(--green);
  transition: color 0.15s ease;
}

.station-nav a:hover { color: var(--accent); }

/* Footer */
.site-footer {
  background: var(--near-black);
  color: rgba(255,255,255,0.65);
  padding: 40px 0;
  font-size: 14px;
  text-align: center;
}

.site-footer a { color: #fff; font-weight: 600; }

.breadcrumb {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
}

.breadcrumb a { color: #fff; transition: color 0.15s ease; }

.breadcrumb a:hover { color: var(--accent); }

.site-footer a { transition: color 0.15s ease; }

.site-footer a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .site-header .container { flex-wrap: wrap; }
  .hero h1 { font-size: 34px; }
  .hero { padding: 64px 0 56px; }
  .pdf-frame { height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
}
