/* =========================================================
   DAYLIGHT AGRO TECH LIMITED — Site Stylesheet
   Palette derived from brand logo (see design guide)
   ========================================================= */

:root {
  /* Brand colors */
  --green-deep: #366931;
  --green-deep-dark: #274d24;
  --green-primary: #67b03d;
  --orange: #f18a2e;
  --orange-dark: #d9741a;
  --gold: #ffd500;
  --cream: #fbf8f1;
  --charcoal: #2e2e2e;
  --white: #ffffff;
  --grey-line: #e6e2d8;
  --grey-text: #6b6b64;
  --placeholder: #111111;

  /* Typography */
  --font-head: "Poppins", Arial, sans-serif;
  --font-body: "Lato", Arial, sans-serif;

  /* Layout */
  --max-width: 1280px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-card: 0 4px 18px rgba(46, 46, 46, 0.08);
  --shadow-lift: 0 12px 30px rgba(54, 105, 49, 0.18);

  --nav-height: 84px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Image placeholders ----------
   Any media container using onerror="imgFallback(this)" gets a plain
   solid-black fill the moment the referenced file is missing, and
   reverts automatically the instant a correctly-named file is added. */
.hero-visual.media-missing,
.snapshot-image.media-missing,
.product-card .thumb.media-missing,
.news-card .thumb.media-missing,
.page-hero-media.media-missing,
.team-photo.media-missing,
.partner-logo.media-missing,
.bento-card.media-missing,
.media-missing {
  background: var(--placeholder) !important;
}

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--green-deep);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { color: var(--charcoal); }

.section {
  padding: 96px 0;
}
.section--cream { background: var(--cream); }
.section--deep { background: var(--green-deep); color: var(--white); }
.section--deep h2, .section--deep h3 { color: var(--white); }
.section--deep p { color: rgba(255,255,255,0.88); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
}
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.btn--outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn--outline:hover { background: var(--white); color: var(--green-deep); transform: translateY(-2px); }

.btn--outline-dark {
  background: transparent;
  border-color: var(--green-deep);
  color: var(--green-deep);
}
.btn--outline-dark:hover { background: var(--green-deep); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--green-deep);
  padding: 15px 6px;
}
.btn--ghost:hover { color: var(--orange); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
/* Fixed + transparent so it floats over the hero image/gradient; the JS
   scroll listener (initScrollHeader in main.js) adds .is-scrolled once the
   user scrolls past the hero, swapping in a solid blurred bar. Every page
   starts with a dark section (.hero or .page-hero) so white nav text/logo
   stays legible against it while transparent. */
/* backdrop-filter (and transform/filter/perspective generally) on an element
   makes it the "containing block" for any position:fixed descendant —
   including .main-nav, the mobile slide-out menu, which lives inside
   .site-header. That confined the fixed mobile menu to the header's own
   ~70px-tall box (instead of the full viewport) the moment .is-scrolled
   applied backdrop-filter directly here, so it looked empty/cut-off until
   scrolling back to top removed the class. Fix: keep backdrop-filter off
   the real .site-header element and put it on a ::before pseudo-element
   behind the content instead — pseudo-elements aren't real ancestors of
   .main-nav, so they can't hijack its containing block. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: transparent;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: height 0.3s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  height: calc(var(--nav-height) - 16px);
}
.site-header.is-scrolled::before {
  background: rgba(39, 77, 36, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { height: 48px; width: auto; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  font-size: 1.05rem;
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.main-nav > a {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.92);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  position: relative;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.main-nav > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav > a:hover,
.main-nav > a:focus-visible { color: var(--white); }
.main-nav > a:hover::after,
.main-nav > a:focus-visible::after { transform: scaleX(1); }
.main-nav > a.is-active { color: var(--gold); }
.main-nav > a.is-active::after { background: var(--orange); transform: scaleX(1); }

/* ---- Dropdown nav items (About / Services / Impact / Resources) ---- */
.nav-item.has-dropdown {
  position: relative;
}
.nav-drop-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.92);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-drop-toggle .chev { transition: transform 0.2s ease; flex-shrink: 0; }
.nav-item.has-dropdown:hover .nav-drop-toggle,
.nav-drop-toggle:focus-visible,
.nav-drop-toggle.is-active,
.nav-drop-toggle[aria-expanded="true"] { color: var(--gold); }
.nav-drop-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown-menu {
  display: flex;
  flex-direction: column;
  min-width: 210px;
  background: var(--white);
  border-radius: 10px;
  border-top: 3px solid var(--orange);
  box-shadow: 0 16px 34px rgba(20, 30, 18, 0.16);
  padding: 8px;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.dropdown-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-deep);
  transition: background 0.15s ease, color 0.15s ease;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible { background: var(--cream); color: var(--orange); }

@media (min-width: 1100px) {
  .nav-item.has-dropdown:hover .dropdown-menu,
  .nav-item.has-dropdown:focus-within .dropdown-menu,
  .nav-item.has-dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-cta .btn { padding: 12px 20px; font-size: 0.76rem; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Tablet + desktop, below the point where 7 items + 3 dropdowns + CTA
   comfortably fit on one line -> collapse into the mobile/tablet menu */
@media (max-width: 1099px) {
  .brand-text span { display: none; } /* reclaim header height on tablets */

  .main-nav {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    background: var(--green-deep-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.is-open { transform: translateX(0); box-shadow: -12px 0 30px rgba(0,0,0,0.25); }
  .main-nav > a {
    padding: 15px 12px;
    font-size: 0.98rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: flex; margin-top: 18px; }
  .nav-cta-mobile .btn { width: 100%; }
  .nav-toggle { display: block; }

  /* Dropdown becomes an inline accordion on mobile/tablet */
  .nav-item.has-dropdown { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-drop-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 15px 12px;
    font-size: 0.98rem;
    min-height: 48px;
    color: var(--white);
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    background: rgba(0,0,0,0.15);
    border-radius: 6px;
    margin: 0 0 8px;
    max-height: 0;
    overflow: hidden;
    display: flex;
    padding: 0 4px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-item.has-dropdown.is-open .dropdown-menu {
    max-height: 320px;
    padding: 6px 4px;
  }
  .dropdown-menu a { color: rgba(255,255,255,0.85); padding: 13px 12px; min-height: 44px; display: flex; align-items: center; }
  .dropdown-menu a:hover, .dropdown-menu a:focus-visible { background: rgba(255,255,255,0.08); color: var(--gold); }
}

/* Small phones: logo + "Daylight AgroTech" + hamburger were tight enough to
   overflow the viewport width on narrow screens (~360px and below), pushing
   the hamburger off-screen and forcing horizontal scroll. Shrink the brand
   block and let its text truncate with an ellipsis instead of overflowing. */
@media (max-width: 480px) {
  .site-header .container { padding: 0 16px; }
  .brand { gap: 8px; min-width: 0; flex-shrink: 1; }
  .brand img { height: 34px; flex-shrink: 0; }
  .brand-text {
    font-size: 0.86rem;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

/* Comfortable, evenly spaced nav for large desktop */
@media (min-width: 1100px) and (max-width: 1259px) {
  .main-nav > a,
  .nav-drop-toggle { padding: 10px 9px; font-size: 0.84rem; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--green-deep) 0%, var(--green-deep-dark) 55%, #1e3a1c 100%);
  color: var(--white);
  overflow: hidden;
  padding: 120px 0 160px;
}
.hero::before {
  /* sunrise glow, echoing the logo mark */
  content: "";
  position: absolute;
  top: -220px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,213,0,0.55) 0%, rgba(241,138,46,0.28) 45%, rgba(241,138,46,0) 72%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero p.lead {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.86);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--green-primary);
  box-shadow: var(--shadow-lift);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* path divider under hero, echoing the white swoosh in the logo */
.hero-path {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 1;
  line-height: 0;
}
.hero-path svg { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
}

/* =========================================================
   ABOUT SNAPSHOT
   ========================================================= */
.snapshot {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.snapshot-image {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 5/4;
  background: var(--cream);
  border: 1px solid var(--grey-line);
}
.snapshot-list { margin-top: 22px; }
.snapshot-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--grey-line);
  font-weight: 500;
}
.snapshot-list li:last-child { border-bottom: none; }
.snapshot-list .mark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-primary);
  color: var(--white);
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-top: 2px;
}
@media (max-width: 900px) {
  .snapshot { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   IMPACT STATS
   ========================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 44px 32px;
  padding-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.stat { text-align: center; padding: 0 10px; }
.stat .icon {
  width: 30px;
  height: 30px;
  margin: 0 auto 18px;
  color: var(--gold);
}
.stat .icon svg { width: 100%; height: 100%; }
.stat .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}
.stat .label {
  font-size: 0.95rem;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 8px;
}
.stat .desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  max-width: 22ch;
  margin: 0 auto;
}

/* =========================================================
   PRODUCTS
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.product-grid--featured { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .product-grid--featured { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .product-grid--featured { grid-template-columns: 1fr; } }
.product-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--green-primary);
}
.product-card .thumb {
  aspect-ratio: 4/3;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-text);
  font-size: 0.78rem;
  font-family: var(--font-head);
  border-bottom: 3px solid var(--green-primary);
}
.product-card .body { padding: 18px 20px 22px; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.product-card p { font-size: 0.88rem; color: var(--grey-text); margin-bottom: 12px; }
.product-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--light-green, #eaf4e2);
  padding: 4px 10px;
  border-radius: 999px;
}
.products-footer { text-align: center; margin-top: 44px; }

/* =========================================================
   BENTO GRID (Featured Products) — mixed large/small photo
   tiles in one grid, bottom-anchored gradient + white text,
   inspired by a mosaic "growth corridors" grid reference.
   ========================================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 24px;
}
/* Longer catalogues (more than one large+wide+small set) pack tighter with
   dense flow, so smaller cards fill gaps left by the large/wide ones. */
.bento-grid--catalogue { grid-auto-flow: dense; grid-auto-rows: 220px; }
.bento-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: var(--green-primary);
  box-shadow: var(--shadow-card);
}
.bento-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.bento-card:hover img { transform: scale(1.06); }
.bento-card .bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 43, 21, 0.93) 0%, rgba(23, 43, 21, 0.45) 45%, rgba(23, 43, 21, 0) 78%);
}
.bento-card .bento-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px;
  color: var(--white);
}
.bento-card .tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.bento-card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 6px; }
.bento-card p { color: rgba(255,255,255,0.82); font-size: 0.88rem; max-width: 32ch; }
.bento-card .bento-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.bento-card:hover .bento-cta { opacity: 1; transform: translateY(0); }
.bento-card .bento-cta svg { transition: transform 0.2s ease; }
.bento-card:hover .bento-cta svg { transform: translateX(3px); }

.bento-card--large { grid-column: span 2; grid-row: span 2; }
.bento-card--large h3 { font-size: 1.7rem; }
.bento-card--large .bento-content { padding: 32px; }
.bento-card--wide { grid-column: span 2; grid-row: span 1; }

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
}
@media (max-width: 560px) {
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .bento-card--large,
  .bento-card--wide { grid-column: span 1; grid-row: span 1; }
}

/* =========================================================
   EXTENSION SERVICES
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.service-card {
  text-align: center;
  padding: 34px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--grey-line);
}
.service-card .icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--green-primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-deep);
  font-family: var(--font-head);
  font-weight: 700;
}
.service-card h3 { font-size: 1rem; margin-bottom: 8px; }
.service-card p { font-size: 0.87rem; color: var(--grey-text); }

.services-quote {
  margin-top: 56px;
  border-left: 4px solid var(--orange);
  padding: 8px 0 8px 24px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--green-deep);
  font-weight: 600;
  max-width: 640px;
}

/* =========================================================
   PROCESS TIMELINE (Seed Processing)
   ========================================================= */
.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  counter-reset: step;
}
.timeline-step {
  flex: 1 1 150px;
  text-align: center;
  position: relative;
  padding: 0 12px 24px;
}
.timeline-step .circle {
  counter-increment: step;
  width: 46px; height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.timeline-step .circle::before { content: counter(step); }
.timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--grey-line);
  z-index: 1;
}
.timeline-step p {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--green-deep);
}
.timeline-step .desc {
  font-size: 0.82rem;
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--grey-text);
  margin-top: 6px;
}
.timeline--detailed .timeline-step { flex: 1 1 220px; }

/* =========================================================
   COMMUNITY IMPACT
   ========================================================= */
.impact-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.impact-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 30px 26px;
  border-top: 4px solid var(--orange);
}
.impact-card h3 { margin-bottom: 10px; }
.impact-card p { font-size: 0.92rem; color: var(--charcoal); }
.impact-card ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--charcoal);
}
.impact-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-primary);
}

/* =========================================================
   PARTNERS STRIP
   ========================================================= */
.partners-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
}
.partner-logo {
  width: 160px;
  height: 84px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--grey-line);
  display: flex; align-items: center; justify-content: center;
  padding: 16px 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.partner-logo:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); border-color: var(--green-primary); }
.partner-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* =========================================================
   NEWS
   ========================================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.news-card .thumb {
  aspect-ratio: 16/10;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 20px 22px 24px; }
.news-card .date {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.news-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.news-card p { font-size: 0.88rem; color: var(--grey-text); }
.news-card .read-more { display: inline-block; margin-top: 12px; font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; color: var(--green-deep); }
.news-card .read-more:hover { color: var(--orange); }

/* =========================================================
   CLOSING CTA
   ========================================================= */
.cta-band {
  background: linear-gradient(120deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 auto 30px; }
.cta-band .btn--primary { background: var(--white); color: var(--orange-dark); }
.cta-band .btn--primary:hover { background: var(--cream); }
.cta-band .btn--outline { border-color: var(--white); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--green-deep-dark);
  color: rgba(255,255,255,0.82);
  padding: 72px 0 0;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.72); font-size: 0.88rem; max-width: 300px; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); }

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: rgba(255,255,255,0.78); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-col address { font-style: normal; color: rgba(255,255,255,0.78); margin-bottom: 16px; font-size: 0.88rem; line-height: 1.6; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--charcoal);
  padding: 12px 20px;
  z-index: 1000;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 400;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, visibility 0.25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--orange); }
.back-to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 480px) {
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--green-deep) 0%, var(--green-deep-dark) 60%, #1e3a1c 100%);
  color: var(--white);
  /* top padding clears the fixed transparent nav (--nav-height) plus room to breathe */
  padding: 152px 0 96px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,213,0,0.4) 0%, rgba(241,138,46,0.2) 45%, rgba(241,138,46,0) 72%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.page-hero.no-media .page-hero-grid { grid-template-columns: 1fr; max-width: 760px; }
.breadcrumb {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.page-hero p.lead { color: rgba(255,255,255,0.86); font-size: 1.05rem; max-width: 560px; }
.page-hero-media,
.team-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--green-primary);
  box-shadow: var(--shadow-lift);
}
.page-hero-media img,
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media { max-width: 460px; }
}

/* =========================================================
   VALUE GRID (core values / pillars)
   ========================================================= */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}
.value-card {
  padding: 30px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--grey-line);
  text-align: center;
}
.value-card .icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--green-primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-deep);
  font-family: var(--font-head);
  font-weight: 700;
}
.value-card h3 { font-size: 1rem; margin-bottom: 6px; }
.value-card p { font-size: 0.86rem; color: var(--grey-text); }

/* =========================================================
   TEAM / LEADERSHIP
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.team-card { text-align: center; }
.team-card .team-photo { aspect-ratio: 1/1; border-radius: 16px; margin-bottom: 16px; }
.team-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.team-card .role {
  display: block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
}

/* Managing Director — featured above the rest of the leadership team */
.leadership-lead {
  max-width: 320px;
  margin: 0 auto 64px;
  text-align: center;
}
.leadership-lead .team-photo {
  aspect-ratio: 1/1;
  border-radius: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-lift);
  border: 4px solid var(--white);
  outline: 1px solid var(--grey-line);
}
.leadership-lead h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.leadership-lead .role {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}
.leadership-lead .role::before,
.leadership-lead .role::after {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--orange);
}

/* Rest of the leadership team — one deliberate row, larger photos than a
   generic auto-fit grid would give since there are exactly 4 of them */
.team-grid--secondary {
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 0 auto;
}
.team-grid--secondary .team-photo { border-radius: 18px; }
@media (max-width: 900px) { .team-grid--secondary { grid-template-columns: repeat(2, 1fr); max-width: 560px; } }
@media (max-width: 480px) { .team-grid--secondary { grid-template-columns: 1fr; max-width: 280px; } }

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--green-deep);
}
.faq-question .chev { flex-shrink: 0; transition: transform 0.2s ease; color: var(--orange); }
.faq-question[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding: 0 22px 20px; color: var(--grey-text); font-size: 0.92rem; }
.faq-item.is-open .faq-answer { max-height: 320px; }

/* =========================================================
   DOWNLOADS / RESOURCE CARDS
   ========================================================= */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.download-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.download-card .file-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
}
.download-card .name { font-family: var(--font-head); font-weight: 600; color: var(--green-deep); font-size: 0.95rem; margin-bottom: 2px; }
.download-card .meta { font-size: 0.8rem; color: var(--grey-text); }
.download-card .btn { margin-left: auto; }

/* =========================================================
   SIMPLE CONTENT UTILITIES
   ========================================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

.icon-list { margin-top: 8px; }
.icon-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--grey-line);
  font-weight: 500;
}
.icon-list li:last-child { border-bottom: none; }
.icon-list .mark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-primary);
  color: var(--white);
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-top: 2px;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.badge-card {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  border-left: 4px solid var(--green-primary);
}
.badge-card h3 { font-size: 1rem; margin-bottom: 8px; }
.badge-card p { font-size: 0.88rem; color: var(--grey-text); }

.empty-state {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 24px;
}
.empty-state .icon {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--green-primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-deep);
}
.empty-state h2 { margin-bottom: 12px; }
.empty-state p { color: var(--grey-text); margin-bottom: 28px; }

/* =========================================================
   MODAL + STEPPED FORMS
   (used both inside the popup modal and embedded inline on
   contact / distributor-registration / farmer-support)
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(20, 26, 18, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  padding: 40px 36px 36px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  color: var(--green-deep);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.modal-close:hover { background: var(--orange); color: var(--white); }
.modal-form-panel { display: none; }
.modal-form-panel.is-active-form { display: block; }
.modal-eyebrow { margin-bottom: 4px; }
.modal-title { margin-bottom: 6px; }
.modal-subtitle { color: var(--grey-text); font-size: 0.92rem; margin-bottom: 24px; }

.stepped-form-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 40px;
}
@media (max-width: 600px) { .stepped-form-card { padding: 28px 22px; } }

.stepped-form__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.step-dot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--grey-text);
  position: relative;
}
.step-dot::before {
  content: attr(data-step-dot);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--grey-line);
  color: var(--grey-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.step-dot em { font-style: normal; text-align: center; }
.step-dot.is-active::before,
.step-dot.is-done::before { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }
.step-dot.is-active { color: var(--green-deep); }
.step-dot.is-done { color: var(--green-primary); }

.stepped-form__panel { display: none; }
.stepped-form__panel.is-active { display: block; animation: formFade 0.2s ease; }
@keyframes formFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--grey-line);
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(103,176,61,0.18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.stepped-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.stepped-form__actions .btn { padding: 13px 24px; }

.review-summary { margin-bottom: 20px; }
.review-summary dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 16px;
  padding: 20px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.review-summary dt { font-family: var(--font-head); font-weight: 600; color: var(--green-deep); }
.review-summary dd { color: var(--charcoal); word-break: break-word; }

.form-error {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fdecea;
  color: #a3341f;
  font-size: 0.86rem;
}
.form-error.is-visible { display: block; }

.stepped-form__success {
  display: none;
  text-align: center;
  padding: 20px 8px 4px;
}
.stepped-form__success.is-visible { display: block; animation: formFade 0.25s ease; }
.stepped-form__success .success-check {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-primary);
  color: var(--white);
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
}
.stepped-form__success h3 { margin-bottom: 10px; }
.stepped-form__success p { color: var(--grey-text); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
