/* ==========================================================================
   Learn for the Earth — Design System
   Palette + type + components documented in claude.md
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg: #F5F0E5;
  --bg-alt: #E7ECDF;
  --bg-dark: #3A4A32;
  --white: #FFFFFF;

  /* Accents */
  --accent: #D97D4A;
  --accent-dark: #C26A39;
  --gold: #E5AC4A;
  --sage: #7C9473;

  /* Text */
  --text: #232D1F;
  --text-muted: #6B6B60;
  --text-on-dark: #F5F0E5;
  --text-on-dark-muted: #C7D0BE;

  /* Pills */
  --pill-sage-bg: #DCE6D2;
  --pill-terracotta-bg: #F5DCC9;

  /* Shape */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  /* Type */
  --font-heading: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

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

section { padding: 72px 0; }

.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--text-on-dark);
}
.section-dark p { color: var(--text-on-dark-muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75em;
}

.section-dark .eyebrow { color: var(--gold); }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p { color: var(--text-muted); }
.section-dark .section-head p { color: var(--text-on-dark-muted); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

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

.btn-secondary {
  background: transparent;
  border-color: var(--bg-dark);
  color: var(--bg-dark);
}
.btn-secondary:hover { background: var(--bg-dark); color: #fff; }

.section-dark .btn-secondary {
  border-color: var(--text-on-dark);
  color: var(--text-on-dark);
}
.section-dark .btn-secondary:hover { background: var(--text-on-dark); color: var(--bg-dark); }

.btn-download {
  background: var(--bg-dark);
  color: #fff;
  font-size: 0.9rem;
  padding: 11px 20px;
}
.btn-download:hover { background: #2c3a26; }

/* ---------- Pills / Tags ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pill-sage-bg);
  color: var(--bg-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}

.pill-warm { background: var(--pill-terracotta-bg); color: var(--accent-dark); }

.tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin: 0 6px 6px 0;
}

.filter-pill {
  background: transparent;
  border: 1.5px solid var(--bg-alt);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.filter-pill.active {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #fff;
}

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 229, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(58, 74, 50, 0.12);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--bg-dark);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text);
}

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

.mobile-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--bg-dark);
  margin: 5px 0;
  border-radius: 2px;
}

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

.hero {
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-copy p.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 46ch; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0; }

.hero-media img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Stat strip ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(58, 74, 50, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}

.stat-strip-5 { grid-template-columns: repeat(5, 1fr); }

.stat-card {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(58, 74, 50, 0.1);
}
.stat-card:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--bg-dark);
  display: block;
}

.stat-label { font-weight: 600; font-size: 0.92rem; margin-top: 4px; }
.stat-caption { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

.section-dark .stat-card { background: rgba(255,255,255,0.06); border-radius: var(--radius-md); border-right: none; }
.section-dark .stat-number { color: var(--gold); }

/* ---------- Cards / grid ---------- */

.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.detail-grid { grid-template-columns: 0.85fr 1.15fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(58, 74, 50, 0.08);
  display: flex;
  flex-direction: column;
}

.card-band {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.card-band.green { background: var(--bg-dark); }
.card-band.terracotta { background: var(--accent); }
.card-band.sage { background: var(--sage); }

.card-body { padding: 22px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 4px; }
.card-body .subtitle { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 12px; }
.card-body .tags { margin-bottom: 14px; }

.card-callout {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.card-callout strong { color: var(--text); display: block; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px; }

.card-link {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.program-card img { aspect-ratio: 16/10; object-fit: cover; }

/* ---------- Photo grid with captions ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.photo-grid figure { margin: 0; }
.photo-grid img { border-radius: var(--radius-md); aspect-ratio: 4/3; object-fit: cover; }
.photo-grid figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }

/* ---------- Checklist ---------- */

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(58, 74, 50, 0.12);
  font-size: 0.95rem;
}
.checklist li:last-child { border-bottom: none; }
.check-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: #fff;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
}

/* ---------- Tabs ---------- */

.tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text-on-dark-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.tab-btn.active { background: var(--white); color: var(--bg-dark); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.key-steps { list-style: none; margin: 20px 0 0; padding: 0; counter-reset: step; }
.key-steps li {
  counter-increment: step;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 0.95rem;
}
.key-steps li::before {
  content: counter(step);
  background: var(--accent);
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------- Testimonials ---------- */

.testimonial {
  background: var(--white);
  border: 1px solid rgba(58,74,50,0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.testimonial p { font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--pill-sage-bg);
  color: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.testimonial-author .name { font-weight: 700; font-size: 0.9rem; }
.testimonial-author .role { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 13px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(245,240,229,0.5); }

.checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; }
.checkbox-row input { width: 18px; height: 18px; }

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

.site-footer {
  background: #29331f;
  color: var(--text-on-dark-muted);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: var(--text-on-dark); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { padding-top: 20px; font-size: 0.82rem; display: flex; justify-content: space-between; }

/* ---------- Placeholder marker ---------- */

.placeholder {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
  background: rgba(217, 125, 74, 0.06);
  border-radius: 8px;
}
.placeholder-note {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--pill-terracotta-bg);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

/* ---------- Step Pathway (Ambassador "How It Works") ---------- */

.step-path {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.step-path-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 150px;
}

.step-path-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.step-path-item:nth-child(4n+2) .step-path-circle { background: var(--accent); }
.step-path-item:nth-child(4n+3) .step-path-circle { background: var(--sage); }
.step-path-item:nth-child(4n+4) .step-path-circle { background: var(--gold); color: var(--text); }

.step-path-item h3 { font-size: 1rem; margin-bottom: 4px; }
.step-path-item p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.step-path-arrow {
  color: var(--sage);
  font-size: 1.4rem;
  margin-top: 18px;
  flex-shrink: 0;
}

/* ---------- Topic cards ---------- */

.topic-card {
  background: var(--white);
  border: 1px solid rgba(58,74,50,0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.topic-card .topic-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.topic-card .topic-label { font-weight: 700; font-size: 0.92rem; }

/* ---------- Challenge card ---------- */

.challenge-card {
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
}
.challenge-card .checklist li { border-bottom-color: rgba(255,255,255,0.15); color: #fff; }
.challenge-card .start-small {
  margin-top: 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold);
}

/* ---------- Two-path callout ---------- */

.path-callout {
  border: 2px solid rgba(58,74,50,0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.path-callout h3 { margin-bottom: 8px; }
.path-callout p { color: var(--text-muted); margin-bottom: 16px; }

/* ---------- Empty state ---------- */

.empty-state {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Topics checkbox grid (application form) ---------- */

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 16px;
  margin-bottom: 18px;
}

.char-count {
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
  text-align: right;
  margin-top: -12px;
  margin-bottom: 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav { flex-wrap: wrap; position: relative; }
  .nav > nav { order: 3; width: 100%; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(58, 74, 50, 0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(58, 74, 50, 0.08); }
  .nav-actions .btn-secondary,
  .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .mobile-cta { display: block !important; margin-top: 12px; }
  .mobile-cta .btn { display: block; text-align: center; }
}

@media (max-width: 900px) {
  .step-path-arrow { display: none; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-strip-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .detail-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip-5 { grid-template-columns: 1fr 1fr; }
  .topics-grid { grid-template-columns: 1fr; }
  .step-path-item { width: 100%; max-width: 280px; }
  section { padding: 48px 0; }
}
