/* ============================================================
   ZamGrow — single-page site
   Palette pulled from the ZamGrow investor deck.
   ============================================================ */

:root {
  /* Greens */
  --green-900: #122a14;
  --green-800: #16341a;
  --green-700: #1b3b1c;
  --green-600: #234d22;
  --green-500: #356a2f;

  /* Accent (sprout / lime) */
  --accent: #a8d24a;
  --accent-strong: #93c233;
  --accent-deep: #4b921c; /* readable lime-green for light backgrounds */

  /* Neutrals */
  --cream: #f5f2e9;
  --cream-2: #ece9dc;
  --ink: #16210f;
  --ink-soft: #43503c;
  --white: #ffffff;

  --maxw: 1140px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--accent); }
.eyebrow--hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.28em;
  margin-bottom: 22px;
}
.eyebrow--hero::after {
  content: "";
  width: 38px;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.8;
}

.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }

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

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(18, 42, 20, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
/* Blog pages: nav strip stays solid green over the off-white article background */
.nav--solid { background: var(--green-800); box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; color: var(--white); }
.brand__logo { height: 32px; width: auto; display: block; }
.brand--footer .brand__logo { height: 28px; }

.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { color: rgba(255,255,255,0.85); font-weight: 500; font-size: .98rem; transition: color .2s; }
.nav__links a:hover { color: var(--accent); }
.nav__links a.btn { color: var(--green-900); }
.nav__links a.btn:hover { color: var(--green-900); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  /* Swap this for your satellite/farm image in assets/hero.jpg */
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(53,106,47,0.55), transparent 60%),
    linear-gradient(160deg, #1d3f1e 0%, #16341a 45%, #0f2511 100%);
  background-size: cover;
  background-position: center;
}
/* When a hero image is supplied it layers under the green wash via the .has-hero-image class */
.hero.has-hero-image .hero__bg {
  background-image:
    linear-gradient(170deg, rgba(16,40,20,0.62) 0%, rgba(16,40,20,0.40) 30%, rgba(10,26,13,0.86) 100%),
    radial-gradient(130% 90% at 78% 12%, rgba(60,120,55,0.30), transparent 55%),
    url("assets/hero.jpg");
  background-blend-mode: multiply, normal, normal;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 30% 38%, transparent, rgba(9,24,12,0.35) 90%),
    linear-gradient(0deg, rgba(9,22,11,0.55) 0%, transparent 35%);
  pointer-events: none;
}
/* Full container width so the hero text's left edge lines up with the section content below */
.hero__inner { position: relative; z-index: 2; padding-block: 150px 120px; }

.hero__title {
  font-size: clamp(3rem, 8.2vw, 6.6rem);
  margin-bottom: 28px;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(255,255,255,0.86);
  max-width: 640px;
  margin-bottom: 38px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 14px;
  display: flex; justify-content: center;
}
.hero__scroll span {
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 7px;
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot { 0%{opacity:0;transform:translateY(0)} 30%{opacity:1} 80%{opacity:0;transform:translateY(12px)} 100%{opacity:0} }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats { background: var(--accent); color: var(--green-900); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-block: 48px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 3.5vw, 2.9rem); line-height: 1; letter-spacing: -0.03em; }
.stat__label { font-size: .95rem; font-weight: 500; color: #234d22; max-width: 24ch; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: clamp(72px, 11vw, 130px); }
.section--cream { background: var(--cream); }
.section--light { background: var(--white); }
.section--dark { background: var(--green-800); color: var(--cream); }
.section--green { background: var(--green-700); color: var(--cream); }

.section__head { max-width: 760px; margin-bottom: 56px; }
.section__title { font-size: clamp(1.9rem, 4vw, 3.1rem); margin-bottom: 22px; }
.section__intro { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--ink-soft); }
.section__intro strong { color: var(--ink); }
.section__intro--light { color: rgba(245,242,233,0.82); }
.section__intro--light strong { color: var(--white); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(18,42,20,0.4); }
.card__title { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: .98rem; }

.card--dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
.card--dark .card__title { color: var(--white); }
.card--dark p { color: rgba(245,242,233,0.78); }
.card--dark:hover { box-shadow: 0 18px 40px -22px rgba(0,0,0,0.6); border-color: rgba(168,210,74,0.4); }
.card__tag {
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.cards--products { margin-top: 28px; }

/* ---------- Process flow ---------- */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 8px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.flow__step {
  position: relative;
  padding: 30px 30px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.flow__step:first-child { border-left: 0; padding-left: 0; }
.flow__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.flow__step h4 { color: var(--white); font-size: 1.18rem; margin: 14px 0 8px; }
.flow__step p { color: rgba(245,242,233,0.74); font-size: .95rem; }

/* ============================================================
   FAQ (accordion)
   ============================================================ */
.faq__list { max-width: 860px; }
.faq__item { border-top: 1px solid rgba(255,255,255,0.12); }
.faq__item:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--white);
  letter-spacing: -0.01em;
  transition: color .2s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }

.faq__icon { position: relative; flex: 0 0 auto; width: 20px; height: 20px; }
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq__icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq__icon::after  { left: 9px; top: 0; width: 2px; height: 20px; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); opacity: 0; }

.faq__answer { padding: 0 0 28px; max-width: 70ch; }
.faq__answer p { color: rgba(245,242,233,0.8); font-size: 1.02rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__title { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 56px; color: var(--ink); }
.contact__title .accent { color: var(--accent-deep); }
.contact__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact__people { display: flex; flex-direction: column; gap: 28px; }
.person { display: flex; flex-direction: column; gap: 2px; }
.person__name { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.person__role { font-size: .9rem; color: var(--accent-deep); margin-bottom: 6px; }
.person a { color: var(--ink-soft); border-bottom: 1px solid rgba(75,146,28,0.35); width: fit-content; transition: color .2s, border-color .2s; }
.person a:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

.contact__hiring {
  background: var(--green-700);
  border-radius: var(--radius);
  padding: 36px 34px;
  box-shadow: 0 24px 50px -28px rgba(18,42,20,0.45);
}
.contact__hiring h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 12px; }
.contact__hiring p { color: rgba(245,242,233,0.82); margin-bottom: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--green-900); color: rgba(245,242,233,0.6); padding-block: 56px 40px; }

.refs { padding-bottom: 36px; margin-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.refs__title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,242,233,0.45);
  margin-bottom: 18px;
}
.refs__list {
  margin: 0;
  padding-left: 1.2em;
  columns: 2;
  column-gap: 48px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(245,242,233,0.55);
}
.refs__list li { margin-bottom: 8px; break-inside: avoid; }
.refs__list li::marker { color: var(--accent); font-weight: 600; }
.refs__list em { font-style: italic; color: rgba(245,242,233,0.7); }
.refs__list li:target { color: var(--accent); }

.footer__bar { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer__meta { font-size: .9rem; }
.footer__copy { font-size: .82rem; color: rgba(245,242,233,0.4); }

/* Citations / footnote markers */
.cite { font-size: 0.62em; font-weight: 600; line-height: 0; vertical-align: super; margin-left: 1px; }
.cite a { color: var(--green-500); transition: color .2s; }
.cite a:hover { color: var(--accent-strong); }
.cite--light a { color: var(--accent); }
.cite--light a:hover { color: var(--white); }
.cite--dark a { color: #2f6b22; }
.cite--dark a:hover { color: var(--green-900); }
:target { scroll-margin-top: 90px; }

/* ============================================================
   BLOG (landing section cards)
   ============================================================ */
/* Very faint green dot texture behind the cream sections (mission, insights, contact) */
#mission, #blog, #contact {
  background-color: var(--cream);
  background-image: radial-gradient(rgba(53, 106, 47, 0.07) 1px, transparent 1.5px);
  background-size: 22px 22px;
}

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -24px rgba(18,42,20,0.45); }
.post-card__cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--green-800); }
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.post-card:hover .post-card__cover img { transform: scale(1.04); }
.post-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card__tag { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 12px; }
.post-card__title { font-size: 1.45rem; line-height: 1.15; margin-bottom: 12px; }
.post-card__title a { color: var(--ink); transition: color .2s; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover .post-card__title a { color: var(--accent-deep); }
.post-card__excerpt { color: var(--ink-soft); font-size: .98rem; margin-bottom: 20px; }
.post-card__meta { margin-top: auto; font-size: .85rem; color: var(--green-500); font-weight: 500; }
.post-card__meta .post-card__readmore { font-family: var(--font-head); font-weight: 600; color: var(--accent-deep); }

/* ============================================================
   ARTICLE (blog post page)
   ============================================================ */
/* The whole article sits on the off-white background; only the fixed nav strip is green. */
.article__hero { background: var(--cream); color: var(--ink); padding: 124px 0 36px; }
.article__hero .back-link { margin-bottom: 22px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--accent-deep); transition: gap .2s var(--ease); }
.back-link:hover { gap: 12px; }
.article__eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 16px; }
.article__title { font-size: clamp(2.1rem, 5vw, 3.4rem); color: var(--ink); max-width: 18ch; margin-bottom: 20px; }
.article__intro { color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 60ch; }
.article__meta { margin-top: 26px; font-size: .88rem; color: var(--ink-soft); display: flex; gap: 10px; align-items: center; }
.article__meta span { color: var(--accent-deep); }

.article__feature { margin: 0; }
.article__feature img, .article__feature svg { width: 100%; display: block; }
.article__feature figcaption,
.article figure figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }

.article__body { max-width: 720px; margin: 0 auto; padding: 56px 24px 24px; }
.article__body > p:first-of-type { font-size: 1.18rem; color: var(--ink); }
.article__body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 44px 0 14px; }
.article__body h3 { font-size: 1.22rem; margin: 30px 0 10px; }
.article__body p { margin-bottom: 18px; font-size: 1.08rem; line-height: 1.78; color: var(--ink); }
.article__body ul { margin: 0 0 20px; padding-left: 1.3em; }
.article__body li { margin-bottom: 9px; font-size: 1.08rem; line-height: 1.7; color: var(--ink); }
.article__body li::marker { color: var(--accent-deep); }
.article__body a.inline { color: var(--accent-deep); border-bottom: 1px solid rgba(75,146,28,0.4); }
.article__body a.inline:hover { border-color: var(--accent-deep); }

.pullquote {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--green-600);
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 40px 0;
}

.article__body figure { margin: 36px 0; }
.figure--diagram { background: var(--cream); border: 1px solid var(--cream-2); border-radius: var(--radius); padding: 26px; }
.figure--diagram svg { border-radius: 6px; }

.article__refs { border-top: 1px solid var(--cream-2); margin-top: 48px; padding-top: 28px; }
.article__refs h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; font-family: var(--font-body); }
.article__refs ol { padding-left: 1.3em; font-size: .9rem; color: var(--ink-soft); line-height: 1.6; }
.article__refs li { margin-bottom: 8px; }
.article__refs li::marker { color: var(--accent-deep); font-weight: 600; }
.article__refs em { font-style: italic; }

/* CTA banner: full container width (matches the feature image) with even spacing above */
.article__authors { border-top: 1px solid var(--cream-2); margin-top: 44px; padding-top: 26px; }
.article__authors p { font-size: .94rem; font-style: italic; color: var(--ink-soft); line-height: 1.65; margin-bottom: 14px; }
.article__authors strong { color: var(--ink); font-style: normal; }

.article__end {
  background: var(--green-700);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 56px 36px;
  margin: 64px 0 88px;
  text-align: center;
}
.article__end h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 10px; }
.article__end p { color: rgba(245,242,233,0.82); margin-bottom: 22px; max-width: 46ch; margin-inline: auto; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__scroll span { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; border-top: 0; }
  .flow__step { border-left: 0; border-top: 1px solid rgba(255,255,255,0.12); padding: 26px 0; }
  .flow__step:nth-child(odd) { padding-right: 28px; }
  .flow__step:nth-child(even) { padding-left: 28px; border-left: 1px solid rgba(255,255,255,0.12); }
  .flow__step:first-child, .flow__step:nth-child(2) { border-top: 0; }
}

/* Collapse nav to the hamburger before the links can crowd the logo */
@media (max-width: 840px) {
  .nav__links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(18,42,20,0.98);
    backdrop-filter: blur(10px);
    padding: 18px 24px 28px;
    transform: translateY(-130%);
    transition: transform .4s var(--ease);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { width: 100%; padding-block: 10px; }
  .nav__links a.btn { margin-top: 8px; width: fit-content; }
  .nav__toggle { display: flex; }
}

@media (max-width: 680px) {
  .cards--3 { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .article__hero { padding-top: 110px; }
  .flow { grid-template-columns: 1fr; }
  .flow__step { border-left: 0 !important; padding: 24px 0 !important; border-top: 1px solid rgba(255,255,255,0.12); }
  .flow__step:first-child { border-top: 0; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .contact__cols { grid-template-columns: 1fr; gap: 36px; }
  .hero__inner { padding-block: 120px 90px; }
  .refs__list { columns: 1; }
}
