/* Layout: a single 1140px column of quiet white sections. Only the hero camera
   view and the contact band carry colour. */
:root {
  --bg: #ffffff;
  --surface: #f3f7ef;
  --ink: #17221b;
  --muted: #4d5d52;
  --line: #dbe4d5;
  --brand: #0b5d1e;
  --brand-hover: #084a17;
  --leaf: #88bd41;
  --logo: #88bd41;
  --leaf-ink: #4b7a0c;
  --alert: #b8600f;
  --band: #0b5d1e;
  --on-band: #ffffff;
  --on-band-muted: #cfe3d3;

  /* Field illustration */
  --soil: #eadfcc;
  --bed: #dfd0b6;
  --crop: #3f8f2a;
  --weed: #6a7d1f;
  --petal: #ffffff;
  --pollen: #e7b821;
  --hud: rgba(23, 34, 27, 0.78);

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-logo: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 10px;
  --container: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1511;
    --surface: #141e18;
    --ink: #e6eee7;
    --muted: #a3b3a8;
    --line: #253229;
    --brand: #2f8a45;
    --brand-hover: #3a9c51;
    --leaf: #97cf38;
    --leaf-ink: #a7d957;
    --alert: #eba15a;
    --band: #0f3f1d;
    --on-band: #ffffff;
    --on-band-muted: #b9d4be;
    --soil: #2a241b;
    --bed: #342c20;
    --crop: #58a83c;
    --weed: #9aaa3a;
    --petal: #f2f2ec;
    --pollen: #e7b821;
    --hud: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0e1511;
  --surface: #141e18;
  --ink: #e6eee7;
  --muted: #a3b3a8;
  --line: #253229;
  --brand: #2f8a45;
  --brand-hover: #3a9c51;
  --leaf: #97cf38;
  --leaf-ink: #a7d957;
  --alert: #eba15a;
  --band: #0f3f1d;
  --on-band: #ffffff;
  --on-band-muted: #b9d4be;
  --soil: #2a241b;
  --bed: #342c20;
  --crop: #58a83c;
  --weed: #9aaa3a;
  --petal: #f2f2ec;
  --pollen: #e7b821;
  --hud: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { margin: 0; }

a { color: inherit; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf-ink);
}

.section { padding-block: var(--section-y); }

.section-head {
  display: grid;
  gap: 14px;
  max-width: 44rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-lead {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 62ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn-sm { padding: 10px 18px; font-size: 0.95rem; }

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

.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-light { background: #fff; color: #0b5d1e; }
.btn-light:hover { background: #eaf3e3; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { height: 38px; width: auto; }
/* Matches the wordmark in the logo file */
.brand-name {
  font-family: var(--font-logo);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--logo);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--muted);
  transition: color 0.2s;
}
.site-nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.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 { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 104px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
}

.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy .lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
}

.hero-visual { margin: 0; min-width: 0; }

.field-view {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 48px -28px rgba(11, 61, 25, 0.45);
}
.field-view .soil { fill: var(--soil); }
.field-view .bed { fill: var(--bed); }
.field-view .leaf { fill: var(--crop); }
.field-view .petal { fill: var(--petal); }
.field-view .pollen { fill: var(--pollen); }
.field-view .weed { fill: var(--weed); }

.field-view .box rect:not(.tag) { fill: none; stroke-width: 2.5; }
.field-view .box text {
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.08em;
  fill: #fff;
}
.field-view .box-crop rect:not(.tag) { stroke: #2fa84f; }
.field-view .box-crop .tag { fill: #2fa84f; }
.field-view .box-weed rect:not(.tag) { stroke: #e8892b; stroke-dasharray: 5 4; }
.field-view .box-weed .tag { fill: #e8892b; }

.field-view .hud rect { fill: var(--hud); }
.field-view .hud text {
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.1em;
  fill: #fff;
}
.field-view .hud .rec { fill: #ff5a4f; animation: blink 1.6s ease-in-out infinite; }

@keyframes blink { 50% { opacity: 0.25; } }

.hero-visual figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}
.key {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 2px solid;
}
.key-crop { border-color: #2fa84f; }
.key-weed { border-color: #e8892b; border-style: dashed; margin-left: 10px; }

/* ---------- Challenge ---------- */
.challenge { background: var(--surface); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.stat {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 22px;
  border-top: 2px solid var(--line);
}
.stat-figure {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 1;
  color: var(--alert);
  font-variant-numeric: tabular-nums;
}
.stat h3 { font-size: 1.15rem; }
.stat p:last-child { color: var(--muted); }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.step-num {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--line);
}
.step-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface);
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 6px;
}
.step p { color: var(--muted); }

/* ---------- Why us ---------- */
.why { background: var(--surface); }

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.why-grid .section-head { margin-bottom: 0; position: sticky; top: 110px; }

.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.benefits li {
  display: grid;
  gap: 6px;
  padding-left: 30px;
  position: relative;
}
.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background: var(--leaf);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20C4 10 10 4 21 3c0 11-6 17-16 17h-1zm2-2c3-4 6-7 10-10' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20C4 10 10 4 21 3c0 11-6 17-16 17h-1zm2-2c3-4 6-7 10-10' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.benefits h3 { font-size: 1.12rem; }
.benefits p { color: var(--muted); font-size: 1rem; }

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(16px, 2.5vw, 24px);
}
.service {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.service p { color: var(--muted); }

.service-main {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.service-main p { color: rgba(255, 255, 255, 0.85); }
.service-main .service-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c6e88f;
}
.service-main .btn { justify-self: start; margin-top: 8px; }

/* ---------- Who we serve ---------- */
.serve-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.serve-grid > div { display: grid; gap: 16px; }
.serve-grid strong { color: var(--ink); font-weight: 600; }

.growth {
  margin: 0;
  display: grid;
  gap: 22px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.growth figcaption { display: grid; gap: 4px; }
.growth-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.growth-sub { color: var(--muted); font-size: 0.95rem; }

.bars { display: grid; gap: 16px; }
.bar-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr 3.2rem;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}
.bar-label { color: var(--muted); }
.bar-value { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bar-track {
  height: 14px;
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}
/* Scale: full track = 3% of farmland */
.bar-fill {
  display: block;
  height: 100%;
  width: calc(var(--v) / 3 * 100%);
  border-radius: inherit;
  background: var(--muted);
  opacity: 0.55;
}
.bar-fill-target { background: var(--leaf); opacity: 1; }
.growth-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  background: var(--band);
  color: var(--on-band);
  padding-block: clamp(56px, 8vw, 96px);
}
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.cta-inner > div:first-child { display: grid; gap: 14px; }
.cta p { color: var(--on-band-muted); font-size: 1.125rem; max-width: 34rem; }

.cta-actions { display: grid; justify-items: start; gap: 16px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-email {
  font-weight: 600;
  user-select: all;
  overflow-wrap: anywhere;
}
.copy-btn {
  padding: 5px 12px;
  font: 600 0.82rem/1 var(--font-body);
  color: var(--on-band);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  cursor: pointer;
}
.copy-btn:hover { border-color: #fff; }
.contact-link {
  color: var(--on-band-muted);
  font-weight: 500;
  text-decoration: none;
}
.contact-link:hover { color: var(--on-band); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 32px;
}
.site-footer .brand img { height: 31px; }
.site-footer .brand-name { font-size: 1.05rem; }
.footer-tag { color: var(--muted); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--brand); }
.copyright {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .why-grid,
  .serve-grid,
  .cta-inner { grid-template-columns: minmax(0, 1fr); }

  .why-grid .section-head { position: static; }
  .service-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .service-main { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.25);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; }

  .stats,
  .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .benefits,
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 auto; }
  .bar-row { grid-template-columns: 5.2rem 1fr 3rem; }
  .growth,
  .step,
  .service { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
