/* Ecosia (Light) Design System — shared tokens & components
   LIGHT-MODE adaptation of ecosia.org (which ships dark-green-by-default).
   Ecosia greens kept as accents, page chassis inverted to white/cream.
   Real CSS-extracted color & font tokens, captured 2026-05-06.
   Free-font substitutes: Bricolage Grotesque (display), Inter (body), Manrope (UI). */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  /* color — extracted from Ecosia, mapped to light-mode usage */
  --brand:          #008009; /* Ecosia primary green */
  --brand-deep:     #00644d; /* Ecosia forest 600 */
  --brand-mid:      #275243; /* Ecosia forest 700 */
  --brand-darkest:  #18362b; /* Ecosia signature dark green - ACCENT only */
  --brand-soft:     #aae7d7; /* Ecosia mint highlight */
  --brand-mist:     #e2f7f1; /* Ecosia mist */
  --accent-sage:    #bacc80; /* Ecosia sage */
  --accent-terra:   #ca8461; /* Ecosia terracotta */

  --ink:        #0f0f0f;
  --ink-soft:   #1b1f23;
  --ink-muted:  #363737;
  --ink-quiet:  #6c6c6c;

  --bg:           #ffffff;
  --surface:      #fafaf7;
  --surface-2:    #f4f4f0;
  --border:       #e8e8e3;
  --border-strong:#d7d7d2;

  --text-on-dark:       #ffffff;
  --text-on-dark-muted: rgba(255,255,255,0.72);

  /* type */
  --font-display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-ui:      'Manrope', 'Inter', system-ui, sans-serif;

  /* layout */
  --container:        1240px;
  --container-narrow: 880px;
  --gutter:           32px;
  --section:          120px;
  --radius-card:      16px;
  --radius-pill:      999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color 140ms ease; }
a:hover { color: var(--brand-deep); }

/* TYPOGRAPHY ----------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: clamp(60px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 72;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.4em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 56;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 36;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}
.eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 16px;
  display: inline-block;
}
.eyebrow.on-dark { color: var(--brand-soft); }
.lede {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 32px;
  max-width: 56ch;
  text-wrap: pretty;
}
p { margin: 0 0 1.1em; max-width: 72ch; }

/* signature stat block */
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.95;
  color: var(--brand);
  letter-spacing: -0.025em;
  display: block;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-top: 8px;
}

/* BUTTONS -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border: 2px solid var(--brand);
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--brand); }
.btn.secondary:hover { background: var(--brand); color: #fff; }
.btn.on-dark { background: #fff; border-color: #fff; color: var(--brand-darkest); }
.btn.on-dark:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-darkest); }
.btn.warm { background: var(--accent-terra); border-color: var(--accent-terra); }
.btn.warm:hover { background: #b07050; border-color: #b07050; }
.btn.lg { padding: 20px 36px; font-size: 15px; }
.btn.sm { padding: 11px 22px; font-size: 12px; }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--brand);
  text-decoration: none;
  transition: color 160ms ease;
}
.btn-arrow .arrow {
  display: inline-block;
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-arrow:hover { color: var(--brand-deep); }
.btn-arrow:hover .arrow { transform: translateX(6px); }
.btn-arrow.on-dark { color: #fff; }
.btn-arrow.on-dark:hover { color: var(--brand-soft); }

/* CHIPS ---------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-mist);
  color: var(--brand-deep);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: none;
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--brand);
}
.chip.terra { background: rgba(202,132,97,0.14); color: #8a4f30; }
.chip.terra .dot { background: var(--accent-terra); }
.chip.sage  { background: rgba(186,204,128,0.22); color: #5a6a2c; }
.chip.sage .dot  { background: var(--accent-sage); }
.chip.outline {
  background: transparent;
  border: 1.5px solid var(--brand);
  color: var(--brand);
}
.chip.on-dark {
  background: rgba(255,255,255,0.12);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* LAYOUT --------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section) 0; }
.section-sm { padding: 64px 0; }
.surface { background: var(--surface); }
.surface-2 { background: var(--surface-2); }

/* NAVIGATION ----------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: transparent;
  transition: background 240ms ease, box-shadow 240ms ease, padding 240ms ease;
}
.nav.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 32px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand img,
.nav-brand svg {
  height: 26px;
  width: auto;
}
.nav-brand .wordmark-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--brand);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: color 140ms ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--brand);
  transition: right 240ms cubic-bezier(0.4,0,0.2,1);
}
.nav-links a:hover { color: var(--brand-deep); }
.nav-links a:hover::after { right: 0; }
.nav.over-dark .nav-links a,
.nav.over-dark .nav-brand .wordmark-text { color: #fff; }
.nav.over-dark .nav-brand svg path { fill: #fff !important; }
.nav.over-dark.scrolled .nav-links a,
.nav.over-dark.scrolled .nav-brand .wordmark-text { color: var(--ink); }
.nav.over-dark.scrolled .nav-brand svg path { fill: var(--brand) !important; }

.nav-cta {
  padding: 11px 22px;
  font-size: 13px;
}

/* CARDS ---------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 260ms cubic-bezier(0.2,0.8,0.2,1),
              box-shadow 260ms ease,
              border-color 200ms ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-soft);
  box-shadow: 0 20px 40px -22px rgba(24,54,43,0.20);
}
.card .img {
  aspect-ratio: 16/10;
  background: var(--surface-2);
  background-size: cover;
  background-position: center;
}
.card .body { padding: 28px 28px 32px; }

/* DARK SECTION (footer, feature bands) -------------------- */
.dark {
  background: var(--brand-darkest);
  color: var(--text-on-dark);
}
.dark .h1, .dark .h2, .dark .h3, .dark .display { color: #fff; }
.dark .lede { color: var(--text-on-dark-muted); }
.dark .eyebrow { color: var(--brand-soft); }
.dark a { color: var(--brand-soft); }
.dark a:hover { color: #fff; }

/* FOOTER --------------------------------------------------- */
.footer {
  background: var(--brand-darkest);
  color: var(--text-on-dark);
  padding: 88px 0 40px;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-soft) 50%, var(--accent-sage) 100%);
}
.footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}
.footer h4 {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin: 0 0 22px;
  font-weight: 700;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { color: rgba(255,255,255,0.78); font-size: 15px; transition: color 140ms; }
.footer ul a:hover { color: #fff; }
.footer .footer-brand .footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 22px;
}
.footer .footer-brand .footer-logo path { fill: #fff !important; }
.footer .footer-brand p { color: rgba(255,255,255,0.66); font-size: 15px; max-width: 340px; line-height: 1.5; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .socials { display: flex; gap: 12px; }
.footer-bottom .socials a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: rgba(255,255,255,0.7);
  transition: all 180ms ease;
}
.footer-bottom .socials a:hover {
  background: var(--brand-soft);
  border-color: var(--brand-soft);
  color: var(--brand-darkest);
}

/* HERO ----------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 160px 0 90px;
  color: #fff;
  overflow: hidden;
}
.hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(15,15,15,0.35) 0%,
    rgba(15,15,15,0.15) 30%,
    rgba(15,15,15,0.78) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero .display { color: #fff; max-width: 16ch; }
.hero .lede { color: rgba(255,255,255,0.92); max-width: 50ch; }

/* RESPONSIVE ---------------------------------------------- */
@media (max-width: 880px) {
  :root { --section: 80px; --gutter: 22px; }
  .nav { padding: 14px 22px; }
  .nav-links { display: none; }
  .footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero { min-height: 78vh; padding: 140px 0 70px; }
}

/* utilities ----------------------------------------------- */
.center-text { text-align: center; }
.flex { display: flex; }
.flex.gap-12 { gap: 12px; }
.flex.gap-16 { gap: 16px; }
.flex.gap-24 { gap: 24px; }
.flex.center { align-items: center; justify-content: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; } .mt-56 { margin-top: 56px; }
.wrap { flex-wrap: wrap; }
.full-bleed { width: 100%; }

/* ============ SIGNATURE PATTERNS ============
   Ecosia-light-only extensions to the canonical
   section catalog. Aligned with the existing
   .stat-num / .stat-label primitives above —
   these are the pattern-level wrappers the
   sprinkle pipeline calls by name. */

/* impact-stats — hero (single oversized stat) + grid (2-4 stats) */
.sig-impact-stats {
  padding: 96px 0;
}
.sig-impact-stats .heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 56;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 56px;
  max-width: 22ch;
  text-wrap: balance;
}
.sig-impact-stats .items {
  display: grid;
  gap: 56px;
}
/* hero variant — 1 stat, oversized */
.sig-impact-stats.hero .items {
  grid-template-columns: 1fr;
}
.sig-impact-stats.hero .item .number {
  font-size: clamp(80px, 12vw, 168px);
  line-height: 0.9;
}
.sig-impact-stats.hero .item .support {
  font-size: clamp(18px, 1.6vw, 22px);
  max-width: 44ch;
}
/* grid variant — 2-4 stats, smaller */
.sig-impact-stats.grid .items {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 64px 56px;
}
.sig-impact-stats .item .number {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: clamp(64px, 7vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--brand);
  display: block;
  margin: 0 0 14px;
  font-feature-settings: "tnum";
}
.sig-impact-stats .item .label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin: 0 0 14px;
  display: block;
}
.sig-impact-stats .item .support {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
  max-width: 32ch;
}

/* action-steps — numbered steps with green pill marker on the left */
.sig-action-steps {
  padding: 96px 0;
}
.sig-action-steps .heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 56;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 22ch;
  text-wrap: balance;
}
.sig-action-steps .intro {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 0 64px;
}
.sig-action-steps .items {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.sig-action-steps .item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.sig-action-steps .item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.sig-action-steps .item .step-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  font-feature-settings: "tnum";
  min-width: 64px;
  height: 40px;
  margin-top: 6px;
}
.sig-action-steps .item .step-body .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 36;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.sig-action-steps .item .step-body .desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 16px;
  max-width: 56ch;
}
.sig-action-steps .item .step-body .step-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--brand);
  text-decoration: none;
  transition: color 160ms ease;
}
.sig-action-steps .item .step-body .step-cta .arrow {
  display: inline-block;
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sig-action-steps .item .step-body .step-cta:hover { color: var(--brand-deep); }
.sig-action-steps .item .step-body .step-cta:hover .arrow { transform: translateX(6px); }

/* caption-pill-photo — editorial photo with green pill caption overlay */
.sig-caption-pill-photo {
  padding: 64px 0;
}
.sig-caption-pill-photo .figure {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--surface-2);
}
.sig-caption-pill-photo .figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sig-caption-pill-photo .pill {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px -8px rgba(0,100,77,0.45);
  z-index: 2;
}
.sig-caption-pill-photo .attribution {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-quiet);
  margin: 14px 0 0;
}

@media (max-width: 880px) {
  .sig-impact-stats { padding: 64px 0; }
  .sig-action-steps { padding: 64px 0; }
  .sig-action-steps .item {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .sig-action-steps .item .step-marker { justify-self: start; margin-top: 0; }
  .sig-caption-pill-photo .pill { left: 16px; bottom: 16px; padding: 9px 16px; font-size: 11px; }
  .sig-caption-pill-photo .figure { aspect-ratio: 4/3; }
}
