/* ============================================================
   ECA Agribusiness — Stylesheet
   Design system: Open Sans typography, brand colour palette
   sampled from the ECA Agribusiness logo (leaves + African
   sunrise). Update the variables below to re-theme the site.
   ============================================================ */

/* ---------- Self-hosted fonts ----------
   Open Sans is a variable font: one file covers weights 400/600/700/800,
   so only two files are needed (normal + italic). Both cover the Latin
   subset used by this site's English copy. Source: Google Fonts (OFL). */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-variable-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---- Brand palette (strict design system) ---- */
  --primary-green: #81BB36;
  --dark-green:    #115D1C;
  --accent-orange: #F26E22;
  --accent-yellow: #FFBC11;
  --bg-white:      #FFFFFF;
  --text-dark:     #333333;

  /* ---- Derived tones (color-mix keeps everything anchored to the palette above) ---- */
  --primary-green-dark: color-mix(in srgb, var(--primary-green) 80%, black);
  --dark-green-deep:    color-mix(in srgb, var(--dark-green) 82%, black);
  --accent-orange-dark: color-mix(in srgb, var(--accent-orange) 82%, black);
  --muted:  color-mix(in srgb, var(--text-dark) 62%, white);
  --line:   color-mix(in srgb, var(--primary-green) 18%, white);
  --tint:   color-mix(in srgb, var(--primary-green) 10%, white);
  --tint-2: color-mix(in srgb, var(--primary-green) 5%, white);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(17, 93, 28, 0.08);
  --shadow-md: 0 16px 44px rgba(17, 93, 28, 0.16);
  --maxw: 1160px;

  --font-body: "Open Sans", sans-serif;
  --font-head: var(--font-body);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--dark-green); line-height: 1.15; font-weight: 700; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: 96px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; cursor: pointer;
  border: 2px solid transparent; font-family: var(--font-body);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

/* Primary buttons: accent-orange with white text + subtle drop-shadow on hover */
.btn-primary { background: var(--accent-orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-orange-dark); box-shadow: 0 14px 28px rgba(242, 110, 34, 0.35); }

/* Secondary buttons: primary-green with white text */
.btn-secondary { background: var(--primary-green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--primary-green-dark); box-shadow: 0 14px 28px rgba(129, 187, 54, 0.35); }

.btn-nav { padding: 10px 22px; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--dark-green); color: #fff; padding: 12px 20px;
  border-radius: 0 0 8px 0; z-index: 100; font-weight: 600;
}
.skip-link:focus {
  left: 0; top: 0;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent-orange); outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 76px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-weight: 600; color: var(--dark-green); font-size: .96rem; transition: color .2s; }
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).is-active { color: var(--primary-green); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--dark-green); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(17,93,28,.96) 0%, rgba(17,93,28,.9) 48%, rgba(129,187,54,.75) 100%),
    radial-gradient(circle at 82% 22%, #81BB36 0%, #115D1C 62%);
}
.hero::before {
  content:""; position:absolute; right:-6%; top:-12%; width:520px; height:520px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,188,17,.35), rgba(242,110,34,.12) 55%, transparent 70%);
  pointer-events:none;
}
.hero::after {
  content:""; position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 6c9 8 9 22 0 30-9-8-9-22 0-30z' fill='%23ffffff' opacity='0.045'/%3E%3C/svg%3E");
  opacity:.7;
}
.hero-inner { position: relative; z-index: 2; padding: 100px 24px 108px; max-width: 880px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent-yellow); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: #fff; font-weight: 700; letter-spacing: -.5px; }
.hero h1 .accent { color: var(--accent-yellow); }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.92); margin: 22px 0 34px; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: 20px; margin-top: 58px; flex-wrap: nowrap; }
.hero-stats li {
  flex: 1 1 0; text-align: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.hero-stats strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 2.8vw, 2.6rem); font-weight: 800; color: var(--accent-yellow); letter-spacing: -.5px; line-height: 1; }
.hero-stats span:last-child { display: block; font-size: .95rem; color: rgba(255,255,255,.85); margin-top: 12px; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-tint { background: var(--tint-2); }
.section-head { max-width: 660px; margin: 0 auto 54px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.section-head .eyebrow { color: var(--primary-green-dark); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 66px; align-items: center; }
.about-media { position: relative; }
.about-media img {
  width: 100%; height: 100%; min-height: 420px; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.about-copy { text-align: left; }
.about-copy h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 18px; }
.about-copy p { margin-bottom: 16px; }
.about-copy .eyebrow { color: var(--primary-green-dark); }

/* ---------- Why we exist ---------- */
.why-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--primary-green); }
.why-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--dark-green); }
.why-card p { color: var(--muted); font-size: .98rem; }

/* ---------- Mission / Vision ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 76px; }
.mv-card { border-radius: var(--radius-lg); padding: 40px; color: #fff; box-shadow: var(--shadow-md); }
.mv-vision { background: linear-gradient(150deg, var(--primary-green), var(--dark-green)); }
.mv-mission { background: linear-gradient(150deg, var(--dark-green), var(--dark-green-deep)); }
.mv-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 12px; }
.mv-card p { color: rgba(255,255,255,.92); font-size: 1.02rem; }
.values-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.values-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.values-head .eyebrow { color: var(--primary-green-dark); }

/* ---------- Cards (values + services) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.values-cards { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--dark-green); }
.card p { color: var(--muted); font-size: .97rem; }

/* ---------- Featured solution ---------- */
.feature {
  margin-top: 44px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: stretch;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 44px; box-shadow: var(--shadow-md);
  border-left: 6px solid #fe7110; /* Featured Solution accent — requested one-off, outside the standard palette */
}
.feature-media { border-radius: 16px; overflow: hidden; min-height: 280px; box-shadow: var(--shadow-sm); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-main .eyebrow { color: #fe7110; }
.feature-main h3 { font-size: 1.7rem; margin-bottom: 14px; color: var(--dark-green); }
.feature-main p { margin-bottom: 14px; color: var(--text-dark); }
.feature-main h4 { font-size: 1.05rem; color: var(--dark-green); margin: 6px 0 16px; }
.feature-list { list-style: none; display: grid; gap: 14px; }
.feature-list li { position: relative; padding-left: 32px; font-weight: 500; color: var(--dark-green); }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--tint); color: var(--primary-green-dark);
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
}

.solutions-outro {
  margin-top: 44px; text-align: center; font-size: 1.15rem; font-weight: 600;
  color: var(--dark-green); background: var(--tint); border-radius: var(--radius);
  padding: 26px 32px;
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-card h3 { font-size: 1.15rem; color: var(--dark-green); margin-bottom: 4px; }
.team-card .bio { color: var(--muted); font-size: .94rem; margin-top: 8px; }

/* ---------- Impact (dark) ---------- */
.section-dark { background: linear-gradient(160deg, var(--dark-green), var(--dark-green-deep)); color: rgba(255,255,255,.85); }
.section-head-light h2 { color: #fff; }
.section-head-light .eyebrow { color: var(--accent-yellow); }
.impact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: stretch; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.impact-grid-3 { grid-template-columns: repeat(3, 1fr); }
.impact-grid-2 { grid-template-columns: repeat(2, 1fr); }
.impact-stat { text-align: center; padding: 44px 28px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); background: rgba(255,255,255,.04); }
.impact-stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 3.4vw, 3rem); font-weight: 800; color: var(--accent-yellow); letter-spacing: -.5px; margin-bottom: 14px; }
.impact-stat span:last-child { font-size: 1.02rem; color: rgba(255,255,255,.85); }

/* Featured lead stat: same card language, scaled up, sitting to the left of the 2x2 grid */
.impact-stat-featured {
  display: flex; flex-direction: column; justify-content: center;
  padding: 44px 36px;
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.07);
}
.impact-stat-featured strong { font-size: clamp(3rem, 4.5vw, 3.6rem); margin-bottom: 16px; }
.impact-stat-featured span:last-child { font-size: 1.12rem; }

/* ---------- Partners ---------- */
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-bottom: 20px; }
.logo-tile {
  flex: 1 1 180px; max-width: 210px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  min-height: 120px; display: grid; place-items: center; padding: 24px 28px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.logo-tile img { max-height: 60px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.logo-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.logo-wall.is-loading { min-height: 120px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 16px; }
.contact-copy .eyebrow { color: var(--primary-green-dark); }
.offices { display: grid; gap: 24px; margin-top: 30px; }
.office { border-left: 3px solid var(--primary-green); padding-left: 18px; }
.office h4 { font-size: 1.05rem; color: var(--dark-green); margin-bottom: 8px; }
.office p { font-size: .96rem; margin-bottom: 6px; }
.office a:not(.btn):hover { color: var(--primary-green-dark); }
.office .btn { margin-top: 12px; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--text-dark); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .98rem; color: var(--text-dark); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary-green); box-shadow: 0 0 0 3px rgba(129,187,54,.2);
}
.field textarea { resize: vertical; }
.field-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form-note-error { color: var(--accent-orange-dark); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-green); color: rgba(255,255,255,.85); padding: 32px 0; }
.footer-bottom { text-align: center; font-size: .9rem; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media img { min-height: 320px; }
  .cards, .values-cards, .why-cards, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid, .impact-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .impact-layout { grid-template-columns: 1fr; }
  .logo-tile { flex-basis: 150px; }
  .mv-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 96px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.open { max-height: 460px; }
  .site-nav a { padding: 14px 24px; }
  .site-nav .btn-nav { margin: 8px 24px; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stats li { flex-basis: calc(50% - 8px); }
}
@media (max-width: 560px) {
  .cards, .values-cards, .why-cards, .team-grid, .impact-grid, .impact-grid-3, .impact-grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-inner { padding: 76px 24px; }
  .feature { padding: 30px; }
  .impact-stat-featured { padding: 36px 26px; }
  .hero-stats li { flex-basis: 100%; }
  .logo-tile { flex-basis: 130px; }
}
