/* =========================================================================
   GROW International Foundation — design system
   Palette derived from the foundation logo (growing sprout over tilled soil)
   Display: Fraunces (warm editorial serif)  ·  Body: Mulish (humanist sans)
   ========================================================================= */

:root {
  /* Brand greens, sampled from the logo */
  --sprout:      #6BA80A;   /* bright lime — primary accent, links, CTAs      */
  --sprout-deep: #4C820A;   /* hover/darker lime                              */
  --canopy:      #0E5C2B;   /* mid-deep green — buttons, headings emphasis    */
  --forest:      #06371A;   /* near-black green — body ink, footer            */
  --forest-soft: #123E22;

  /* Warm, paper-forward neutrals with a faint green cast */
  --paper:  #F7F9F4;        /* page background                                */
  --mist:   #EBF1E1;        /* tinted cards / alternating sections            */
  --mist-2: #DCE7CE;        /* borders on tinted surfaces                     */
  --stone:  #55634F;        /* muted secondary text                           */
  --line:   #DDE4D4;        /* hairline rules / card borders                  */
  --white:  #FFFFFF;

  --focus:  #1663C7;        /* accessible focus ring, high contrast on paper  */

  --maxw: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(6,55,26,.05), 0 12px 30px -18px rgba(6,55,26,.22);
  --shadow-lg: 0 30px 60px -30px rgba(6,55,26,.32);

  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2:  clamp(1.55rem, 1.35rem + 1vw, 2.1rem);
  --step-3:  clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
  --step-4:  clamp(2.7rem, 2rem + 3.4vw, 4.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: "Mulish", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--forest);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 560;
  line-height: 1.08;
  color: var(--forest);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: var(--step-4); font-weight: 600; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-family: "Mulish", sans-serif; font-weight: 800; letter-spacing: -.005em; }
p  { margin: 0 0 1rem; max-width: 66ch; }
a  { color: var(--canopy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sprout-deep); }
img { max-width: 100%; display: block; }
strong { font-weight: 800; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2*var(--gutter), var(--maxw)); margin-inline: auto; }
.narrow { width: min(100% - 2*var(--gutter), 760px); margin-inline: auto; }

.eyebrow {
  font-family: "Mulish", sans-serif;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  font-weight: 800;
  color: var(--sprout-deep);
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sprout); display: inline-block; }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--forest-soft); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: "Mulish", sans-serif; font-weight: 800; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sprout); color: var(--forest); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--sprout-deep); color: var(--white); }
.btn-solid { background: var(--canopy); color: var(--white); }
.btn-solid:hover { background: var(--forest); color: var(--white); }
.btn-ghost { border-color: var(--mist-2); color: var(--forest); background: transparent; }
.btn-ghost:hover { border-color: var(--canopy); background: var(--white); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand svg { height: 40px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.12rem; color: var(--forest); letter-spacing: -.01em; }
.brand-text span { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); font-weight: 800; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--forest-soft); font-weight: 700; font-size: .95rem;
  padding: .5rem .7rem; border-radius: 8px; position: relative;
}
.nav-links a:hover { background: var(--mist); color: var(--forest); }
.nav-links a[aria-current="page"] { color: var(--canopy); }
.nav-links a[aria-current="page"]::after { content:""; position:absolute; left:.7rem; right:.7rem; bottom:.28rem; height:2px; background:var(--sprout); border-radius:2px; }

/* dropdown */
.has-menu { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: .4rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease;
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: .55rem .7rem; border-radius: 8px; }

.nav-cta { display: flex; align-items: center; gap: .5rem; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: .5rem .6rem; cursor: pointer; }
.menu-toggle svg { display:block; width: 22px; height: 22px; stroke: var(--forest); }

@media (max-width: 940px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--white); border-bottom: 1px solid var(--line); padding: .75rem var(--gutter) 1.25rem;
    gap: .1rem; box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 1rem; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .desktop-cta { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lede { margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-figure { position: relative; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-figure { order: -1; } }

/* furrow divider — the signature curve from the logo's tilled field */
.furrow { display: block; width: 100%; height: 64px; color: var(--paper); }
.furrow--mist { color: var(--mist); }
.furrow--forest { color: var(--forest); }

/* ---------- sections ---------- */
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-mist { background: var(--mist); }
.section-forest { background: var(--forest); color: #E9F0E1; }
.section-forest h1, .section-forest h2, .section-forest h3 { color: var(--white); }
.section-forest p { color: #C9D8BE; }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--stone); font-size: .98rem; margin-bottom: 1rem; }
.card .card-link { margin-top: auto; font-weight: 800; text-decoration: none; color: var(--canopy); display: inline-flex; align-items: center; gap: .4rem; }
.card .card-link::after { content: "→"; transition: transform .15s ease; }
.card:hover .card-link::after { transform: translateX(3px); }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; margin-bottom: 1rem; color: var(--canopy); }
.card-icon svg { width: 24px; height: 24px; }

.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.value-list li { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; }
.value-list .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--sprout); color: var(--forest); display: grid; place-items: center; font-weight: 900; flex: none; margin-top: 2px; }

.pill { display: inline-block; background: var(--mist); color: var(--canopy); border-radius: 999px; padding: .3rem .8rem; font-size: .8rem; font-weight: 800; letter-spacing: .02em; }

/* stat / fact strip (honest, no invented metrics) */
.factbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--mist-2); border: 1px solid var(--mist-2); border-radius: var(--radius); overflow: hidden; }
.factbar div { background: var(--paper); padding: 1.4rem 1.5rem; }
.factbar b { font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--canopy); display: block; }
.factbar span { font-size: .85rem; color: var(--stone); }
@media (max-width: 620px){ .factbar { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: .4rem; color: var(--forest); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--forest);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--canopy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sprout) 30%, transparent); }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 560px){ .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--stone); }

.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: 1rem; }
@media (max-width: 560px){ .amount-grid { grid-template-columns: repeat(2,1fr);} }
.amount-grid label { cursor: pointer; }
.amount-grid input { position: absolute; opacity: 0; }
.amount-grid .chip { display: block; text-align: center; padding: .75rem; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 800; background: var(--paper); }
.amount-grid input:checked + .chip { border-color: var(--sprout); background: var(--mist); color: var(--canopy); }

/* callout / notice */
.notice { border-left: 4px solid var(--sprout); background: var(--mist); padding: 1.1rem 1.25rem; border-radius: 0 12px 12px 0; }
.notice.warn { border-color: #C6862B; background: #FBF3E6; }
.notice h4 { margin: 0 0 .35rem; font-family:"Mulish",sans-serif; font-weight: 800; }
.notice p:last-child { margin-bottom: 0; }

/* prose (legal, blog, reports) */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.toc { background: var(--mist); border-radius: 12px; padding: 1.25rem 1.5rem; }
.toc ul { margin: .5rem 0 0; padding-left: 1.1rem; }

/* breadcrumb */
.crumbs { font-size: .85rem; color: var(--stone); padding: 1.2rem 0 0; }
.crumbs a { color: var(--stone); text-decoration: none; }
.crumbs a:hover { color: var(--canopy); }

/* ---------- footer ---------- */
.site-footer { background: var(--forest); color: #B9CBAD; padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #EAF3E2; font-family:"Mulish",sans-serif; font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: #B9CBAD; text-decoration: none; }
.site-footer a:hover { color: var(--sprout); }
.footer-brand p { color: #93A889; font-size: .92rem; max-width: 34ch; }
.footer-brand .brand-text b { color: #fff; }
.footer-brand .brand-text span { color: var(--sprout); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; color: #8DA283; }
.ein-tag { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -999px; top: 0; background: var(--forest); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; }

/* sprout hero animation */
@keyframes grow-stem { from { stroke-dashoffset: 220; } to { stroke-dashoffset: 0; } }
@keyframes leaf-in { from { opacity: 0; transform: scale(.4) rotate(-8deg); } to { opacity: 1; transform: none; } }
.sprout-anim .stem { stroke-dasharray: 220; stroke-dashoffset: 220; animation: grow-stem 1.6s ease forwards .2s; }
.sprout-anim .leaf { opacity: 0; transform-origin: center bottom; animation: leaf-in .7s ease forwards; }
.sprout-anim .leaf-1 { animation-delay: 1.1s; }
.sprout-anim .leaf-2 { animation-delay: 1.35s; }
.sprout-anim .leaf-3 { animation-delay: 1.6s; }

.center { text-align: center; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
