/*
Theme Name: Lema Agrivest
Theme URI: https://lema.co.ls
Author: Lema Agriventures Pty Ltd
Author URI: https://lema.co.ls
Description: Custom climate-smart agriculture theme for Lema Agriventures (Lema Agrivest). Modern, fast, farmer- and funder-facing design with a hydroponic-channel visual signature. Replaces the previous Elementor build.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lema-agrivest
Tags: custom-menu, featured-images, translation-ready
*/

/* =============================================================
   1. TOKENS — change --lema-green once to retune the brand
   ============================================================= */
:root {
  --lema-green: #0669c9;      /* Lema brand blue (logo wordmark #067cff, tuned for contrast) */
  --deep: #072b4e;            /* dark forest — headers, footer, dark sections */
  --deep-2: #0a3a66;
  --leaf: #b8e03f;            /* lime accent (logo leaves #96bf26/#7aa800) */
  --sand: #4dc1e9;            /* sky accent from the logo — used sparingly */
  --paper: #f4f7fa;           /* page background, faint green cast */
  --card: #ffffff;
  --ink: #0f1f2e;
  --ink-soft: #475a6b;
  --line: #d9e2ec;

  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", -apple-system, "Segoe UI", sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 18px;
  --radius-pill: 999px;
  --wrap: 1160px;
  --shadow: 0 14px 40px -18px rgba(7, 43, 78, 0.25);
}

/* =============================================================
   2. RESET / BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lema-green); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 2px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

/* Eyebrow — data voice */
.eyebrow {
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lema-green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--lema-green);
  display: inline-block;
}
.on-dark .eyebrow { color: var(--leaf); }
.on-dark .eyebrow::before { background: var(--leaf); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--lema-green); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--deep-2); color: #fff; }
.btn--ghost { border-color: var(--lema-green); color: var(--lema-green); background: transparent; }
.btn--ghost:hover { background: rgba(6, 105, 201, 0.08); }
.on-dark .btn--ghost { border-color: var(--leaf); color: var(--leaf); }
.on-dark .btn--ghost:hover { background: rgba(184, 224, 63, 0.12); }
.btn--leaf { background: var(--leaf); color: var(--deep); }
.btn--leaf:hover { background: #cbe957; }

/* =============================================================
   3. SIGNATURE — the hydroponic channel motif
   A rounded bar with evenly spaced "net pot" holes; sprouted
   holes mark progress. Used under headings and as dividers.
   ============================================================= */
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 18px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #e4ecf4, #d3dfeb);
  border: 1px solid var(--line);
  width: max-content;
  margin: 22px 0 0;
}
.channel span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px #aebfd0;
}
.channel span.grown {
  background: var(--lema-green);
  box-shadow: 0 0 0 3px rgba(6, 105, 201, 0.18);
}
.on-dark .channel { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
.on-dark .channel span { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35); }
.on-dark .channel span.grown { background: var(--leaf); box-shadow: 0 0 0 3px rgba(184,224,63,0.2); }

/* =============================================================
   4. HEADER
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 248, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--deep);
  line-height: 1.05;
}
.brand-name small {
  display: block;
  font-family: var(--font-data);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lema-green);
}
.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.97rem;
}
.main-nav a:hover, .main-nav .current-menu-item > a {
  background: rgba(6, 105, 201, 0.1);
  color: var(--deep);
  text-decoration: none;
}
.header-cta { white-space: nowrap; }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-data);
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--deep);
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 24px 20px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .header-cta { display: none; }
}

/* =============================================================
   5. HERO
   ============================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 110px;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(184, 224, 63, 0.35), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(6, 105, 201, 0.12), transparent 60%),
    var(--paper);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--lema-green); }
.hero-lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note {
  margin-top: 26px;
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.hero-art svg { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; margin: 0 auto; }
}

/* =============================================================
   6. IMPACT STRIP (dark, data voice — for funders & advisors)
   ============================================================= */
.impact {
  background: var(--deep);
  color: #e9f0f7;
  padding: 64px 0;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}
.metric { border-left: 2px solid rgba(184, 224, 63, 0.5); padding-left: 20px; }
.metric b {
  display: block;
  font-family: var(--font-data);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: #fff;
  letter-spacing: -0.02em;
}
.metric b i { font-style: normal; color: var(--leaf); }
.metric span { font-size: 0.92rem; color: #b9cbdc; }
.impact-src {
  margin-top: 30px;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #8aa4bd;
  text-transform: uppercase;
}
@media (max-width: 900px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .impact-grid { grid-template-columns: 1fr; } }

/* =============================================================
   7. OFFERS ("What we do")
   ============================================================= */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.offer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.offer:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.offer-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(6, 105, 201, 0.1);
  display: grid;
  place-items: center;
  color: var(--lema-green);
}
.offer-icon svg { width: 26px; height: 26px; }
.offer p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.offer-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.tag {
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(6, 105, 201, 0.08);
  color: var(--deep);
  border: 1px solid rgba(6, 105, 201, 0.18);
}
@media (max-width: 900px) { .offers-grid { grid-template-columns: 1fr; } }

/* =============================================================
   8. LESPONIX (dark feature) & FARMFLEX (split feature)
   ============================================================= */
.feature-dark {
  background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%);
  color: #e9f0f7;
  border-radius: 28px;
  padding: 72px 64px;
  position: relative;
  overflow: hidden;
}
.feature-dark h2, .feature-dark h3 { color: #fff; }
.feature-dark p { color: #cfdfeb; }
.feature-dark .wrap-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; position: relative; }
.growth-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px;
}
.growth-panel .label {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 14px;
}
.growth-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.growth-row b { font-family: var(--font-data); font-size: 2rem; color: #fff; }
.growth-row span { color: #b9cbdc; font-size: 0.9rem; }
.growth-bar {
  height: 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  margin: 14px 0 4px;
}
.growth-bar i {
  display: block;
  height: 100%;
  width: 34%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lema-green), var(--leaf));
}
.growth-bar + .growth-bar i { width: 100%; }
.growth-caption { font-family: var(--font-data); font-size: 0.72rem; color: #8aa4bd; margin-top: 12px; }
.check-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: #d9e6f0; }
.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  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 fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%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 fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.light-list li { color: var(--ink-soft); }
.light-list li::before { background: var(--lema-green); }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.split.rev { grid-template-columns: 1.1fr 0.9fr; }
.phone-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 24px;
  max-width: 380px;
  margin: 0 auto;
}
.phone-card .ph-head {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lema-green);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.ph-msg {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  max-width: 92%;
}
.ph-msg.in { background: #eaf1f8; color: var(--ink); border-bottom-left-radius: 4px; }
.ph-msg.out { background: var(--lema-green); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.ph-msg small { display: block; opacity: 0.7; font-family: var(--font-data); font-size: 0.62rem; margin-top: 6px; }
@media (max-width: 900px) {
  .feature-dark { padding: 48px 28px; }
  .feature-dark .wrap-inner, .split, .split.rev { grid-template-columns: 1fr; }
}

/* =============================================================
   9. SDG / PARTNER CHIPS
   ============================================================= */
.sdg-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sdg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
}
.sdg b {
  font-family: var(--font-data);
  font-size: 0.78rem;
  background: var(--deep);
  color: var(--leaf);
  border-radius: 8px;
  padding: 4px 8px;
}

/* =============================================================
   10. TESTIMONIALS
   ============================================================= */
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--leaf);
  -webkit-text-stroke: 1.5px var(--lema-green);
}
.quote p { color: var(--ink-soft); font-size: 0.97rem; flex: 1; }
.quote cite { font-style: normal; }
.quote cite b { display: block; color: var(--ink); }
.quote cite span { font-size: 0.82rem; color: var(--ink-soft); }
@media (max-width: 900px) { .quotes-grid { grid-template-columns: 1fr; } }

/* =============================================================
   11. BLOG CARDS
   ============================================================= */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16 / 10; background: #e2e9f1; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .meta { font-family: var(--font-data); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lema-green); }
.post-card h3 { font-size: 1.15rem; margin: 0; }
.post-card h3 a { color: var(--ink); }
.post-card .excerpt { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }
@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr; } }

/* =============================================================
   12. CTA + NEWSLETTER
   ============================================================= */
.cta-band {
  background: linear-gradient(120deg, var(--lema-green), var(--deep-2));
  border-radius: 28px;
  color: #fff;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d8e9f8; }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.7); }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; padding: 44px 28px; } }

/* =============================================================
   13. FOOTER
   ============================================================= */
.site-footer {
  background: var(--deep);
  color: #b9cbdc;
  padding: 72px 0 34px;
  margin-top: 96px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #b9cbdc; }
.site-footer a:hover { color: var(--leaf); }
.footer-brand p { font-size: 0.93rem; max-width: 30em; }
.footer-bottom {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-data);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: #8aa4bd;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
}
.social-row a:hover { border-color: var(--leaf); text-decoration: none; }
.social-row svg { width: 17px; height: 17px; fill: currentColor; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* =============================================================
   14. INNER PAGES / BLOG
   ============================================================= */
.page-hero {
  background: var(--deep);
  color: #fff;
  padding: 72px 0;
}
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: var(--leaf); }
.page-hero .eyebrow::before { background: var(--leaf); }
.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content img { border-radius: var(--radius); }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content blockquote {
  border-left: 4px solid var(--leaf);
  margin: 1.5em 0;
  padding: 0.4em 0 0.4em 1.2em;
  color: var(--ink-soft);
  font-style: italic;
}
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .archive-grid { grid-template-columns: 1fr; } }
.pagination { margin-top: 48px; display: flex; gap: 8px; justify-content: center; font-family: var(--font-data); }
.pagination .page-numbers {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.pagination .current { background: var(--lema-green); color: #fff; border-color: var(--lema-green); }

/* Reveal on scroll (JS adds .in-view; safe without JS) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* WordPress core alignment classes */
.alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}

/* =============================================================
   15. ABOUT PAGE — story, values, team
   ============================================================= */
.story-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.story-split .lede { font-size: 1.14rem; color: var(--ink-soft); }
.mv-cards { display: grid; gap: 20px; }
.mv-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--lema-green);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.mv-card h3 { margin-bottom: 6px; }
.mv-card p { margin: 0; color: var(--ink-soft); }
.mv-card--vision { border-left-color: var(--sand); }
@media (max-width: 900px) { .story-split { grid-template-columns: 1fr; } }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.value-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.value-card .v-mark {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lema-green);
  display: block;
  margin-bottom: 10px;
}
.value-card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr; } }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.team-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.avatar {
  flex: 0 0 auto;
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(140deg, var(--lema-green), var(--deep-2));
}
.team-card:nth-child(3n+2) .avatar { background: linear-gradient(140deg, var(--deep-2), var(--deep)); }
.team-card:nth-child(3n) .avatar { background: linear-gradient(140deg, #4dc1e9, var(--lema-green)); }
.team-card b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.team-card span { font-size: 0.86rem; color: var(--ink-soft); }
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* =============================================================
   16. FARMFLEX PAGE
   ============================================================= */
.ff-hero {
  background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 70%);
  color: #e9f0f7;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.ff-hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.ff-hero h1 { color: #fff; }
.ff-hero h1 em { font-style: normal; color: var(--leaf); }
.ff-hero p { color: #cfdfeb; font-size: 1.14rem; }
@media (max-width: 900px) { .ff-hero .wrap { grid-template-columns: 1fr; } }

.ff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.ff-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.ff-card .offer-icon { margin-bottom: 14px; }
.ff-card h3 { font-size: 1.15rem; }
.ff-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 900px) { .ff-grid { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; position: relative; }
.step { padding: 0 28px 0 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px dashed var(--line); }
.step .s-pot {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--lema-green);
  display: grid;
  place-items: center;
  font-family: var(--font-data);
  font-weight: 600;
  color: var(--lema-green);
  margin-bottom: 16px;
}
.step:last-child .s-pot { background: var(--lema-green); color: #fff; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step + .step { padding-left: 0; border-left: 0; }
  .step { padding-right: 0; }
}

.honest-note {
  margin-top: 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--sand);
  border-radius: var(--radius);
  padding: 22px 26px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.honest-note b { color: var(--ink); }


/* =============================================================
   17. PHOTOGRAPHY (v1.2.0)
   ============================================================= */
.hero-photo { position: relative; }
.hero-photo img {
  border-radius: 26px;
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.photo-badge {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 10px 16px;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--deep);
  border: 1px solid var(--line);
}
.offer .offer-photo {
  margin: -30px -28px 4px;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.offer .offer-photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.gallery-grid figure { margin: 0; position: relative; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery-grid figcaption {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  background: rgba(7, 43, 78, 0.78);
  color: #fff;
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 7px 10px;
  border-radius: 10px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
.story-photo img { border-radius: 26px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.brand img.custom-lema-logo { height: 54px; width: auto; }

/* =============================================================
   18. FARMFLEX SUB-BRAND (v1.2.0)
   Scoped palette from the Farmflex brand board:
   green #157943 · cream #e8dcc6 · chartreuse #dadb1b
   ============================================================= */
.ff-brand {
  --lema-green: #157943;
  --deep: #0c4527;
  --deep-2: #116338;
  --leaf: #dadb1b;
  --sand: #dadb1b;
  --paper: #f6f1e2;
  --card: #fffdf4;
  --line: #e0d7bd;
  --ink: #14291c;
  --ink-soft: #4c5c50;
  --shadow: 0 14px 40px -18px rgba(12, 69, 39, 0.3);
  background: var(--paper);
}
.ff-brand .ph-msg.in { background: #edf0dd; color: var(--ink); }
.ff-brand .metric b i, .ff-brand .impact-src { color: var(--leaf); }
.ff-lockup {
  display: block;
  max-width: 330px;
  width: 100%;
  border-radius: 14px;
  margin-bottom: 26px;
}

/* =============================================================
   19. PARTNERS & PRODUCTS (v1.3.0)
   ============================================================= */
.partners-strip {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
.partners-strip .plabel {
  text-align: center;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.plogos { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.plogo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 26px;
  display: grid;
  place-items: center;
  min-height: 86px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plogo:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plogo img { max-height: 52px; width: auto; max-width: 170px; object-fit: contain; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product .p-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.product .p-photo img { width: 100%; height: 100%; object-fit: cover; }
.product .p-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product h3 { margin: 0; font-size: 1.18rem; }
.product .p-kicker {
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lema-green);
}
.product p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; flex: 1; }
.product .p-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.product .p-price {
  font-family: var(--font-data);
  font-size: 0.74rem;
  color: var(--ink-soft);
}
.product .p-cta a { font-weight: 700; }
@media (max-width: 900px) { .products-grid { grid-template-columns: 1fr; } }
