/* ===========================================================
   Farmintel Africa — shared stylesheet
   =========================================================== */

:root{
  --green-900:#0d3b1e;
  --green-800:#11471f;
  --green-700:#155724;
  --green-600:#1b6e2e;
  --green-500:#2f8f3f;
  --green-50:#eef7ef;
  --ink:#11321a;
  --text:#33402f;
  --muted:#6b7a64;
  --line:#e3e9dd;
  --cream:#fafaf7;
  --white:#ffffff;
  --radius-lg:18px;
  --radius-md:12px;
  --radius-sm:8px;
  --shadow-sm:0 1px 2px rgba(17,50,26,.06);
  --shadow-md:0 8px 24px rgba(17,50,26,.08);
  --maxw:1200px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{margin:0;padding:0;list-style:none;}
button{font-family:inherit;cursor:pointer;}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 32px;}

h1,h2,h3,h4{
  margin:0;
  color:var(--ink);
  line-height:1.15;
  font-weight:700;
  letter-spacing:-.01em;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:11px 20px;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  border:1px solid transparent;
  white-space:nowrap;
  transition:transform .15s ease, opacity .15s ease, background .15s ease;
}
.btn-primary{ background:var(--green-700); color:#fff; }
.btn-primary:hover{ background:var(--green-800); }
.btn-outline{ background:transparent; color:var(--ink); border:1px solid var(--line); }
.btn-outline:hover{ background:var(--green-50); }
.btn-ghost{ background:transparent; color:var(--text); font-weight:500; }
.btn-light{ background:#fff; color:var(--green-800); }
.btn-light:hover{ opacity:.9; }
.btn-sm{ padding:8px 16px; font-size:13px; }
.btn-block{ width:100%; }

/* ---------- Header / Nav ---------- */
header.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.nav{
  max-width:var(--maxw);
  margin:0 auto;
  padding:14px 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand{
  display:flex;
  align-items:center;
  gap:9px;
  font-weight:800;
  font-size:16px;
  color:var(--ink);
  line-height:1.05;
}
.brand .mark{
  width:30px;height:30px;border-radius:8px;
  background:var(--green-700);
  display:flex;align-items:center;justify-content:center;
  flex:none;
}
.brand .mark svg{width:16px;height:16px;}
.brand small{
  display:block;
  font-size:9px;
  font-weight:700;
  letter-spacing:.12em;
  color:var(--muted);
}
.nav-links{
  display:flex;
  align-items:center;
  gap:32px;
  font-size:14px;
  font-weight:500;
  color:var(--text);
}
.nav-links a{ position:relative; padding:4px 0; }
.nav-links a.active{ color:var(--green-700); font-weight:600; }
.nav-links a:hover{ color:var(--green-700); }
.nav-actions{ display:flex; align-items:center; gap:10px; }

.mobile-toggle{ display:none; background:none; border:none; padding:6px; }
.mobile-toggle span{ display:block; width:22px; height:2px; background:var(--ink); margin:4px 0; border-radius:2px; }

/* ---------- Hero (home) ---------- */
.hero-home{
  padding:64px 0 56px;
  position:relative;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.8) 45%, rgba(255,255,255,.45) 100%),
    url('hero-tractor.jpg');
  background-size:cover;
  background-position:center 35%;
}
.hero-home .grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--green-50);
  color:var(--green-700);
  font-size:12px;
  font-weight:600;
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:18px;
}
.eyebrow .dot{ width:6px;height:6px;border-radius:50%;background:var(--green-600); }
.hero-home h1{ font-size:42px; margin-bottom:18px; }
.hero-home p.lead{ font-size:16px; color:var(--muted); max-width:460px; margin-bottom:26px; line-height:1.6; }
.hero-cta{ display:flex; gap:12px; margin-bottom:18px; }
.hero-meta{ display:flex; gap:22px; font-size:13px; color:var(--muted); }
.hero-meta span{ display:flex; align-items:center; gap:6px; }

.hero-art{ position:relative; }
.dashboard-card{
  background:#16321d;
  border-radius:var(--radius-lg);
  padding:18px;
  box-shadow:var(--shadow-md);
}
.dashboard-card .dash-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.dashboard-card .dash-head span{ color:#cfe7d3; font-size:12px; font-weight:600; }
.dashboard-card .dash-head .live{ display:flex; align-items:center; gap:6px; font-size:11px; color:#9fd6ab; }
.dash-body{ background:#fff; border-radius:12px; padding:16px; }
.dash-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px; }
.dash-stats .stat{ background:var(--green-50); border-radius:10px; padding:10px 12px; }
.dash-stats .stat .num{ font-size:17px; font-weight:700; color:var(--ink); }
.dash-stats .stat .lbl{ font-size:10px; color:var(--muted); margin-top:2px; }
.dash-chart{ height:90px; border-radius:10px; background:linear-gradient(180deg,#f3f9f0,#fff); position:relative; overflow:hidden; margin-bottom:12px;}
.dash-chart svg{ width:100%; height:100%; }
.dash-foot{ display:flex; gap:10px; }
.donut-mini{ width:64px;height:64px;border-radius:50%; background:conic-gradient(var(--green-600) 0% 68%, #e7efe3 68% 100%); display:flex;align-items:center;justify-content:center; flex:none;}
.donut-mini i{ width:42px;height:42px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--ink);}
.dash-foot .legend{ font-size:10px; color:var(--muted); display:flex; flex-direction:column; gap:4px; justify-content:center; }
.dash-foot .legend .row{ display:flex; align-items:center; gap:6px; }
.dash-foot .legend .sw{ width:7px;height:7px;border-radius:50%; }
.float-chip{
  position:absolute;
  background:#fff;
  border-radius:12px;
  box-shadow:var(--shadow-md);
  padding:10px 14px;
  font-size:11px;
  font-weight:600;
  color:var(--ink);
  display:flex; align-items:center; gap:8px;
}
.float-chip.c1{ top:-14px; right:18px; }
.float-chip .ic{ width:26px;height:26px;border-radius:7px;background:var(--green-50);display:flex;align-items:center;justify-content:center;}

/* ---------- Section heads ---------- */
.section{ padding:60px 0; }
.section-head{ text-align:center; max-width:620px; margin:0 auto 36px; }
.section-head h2{ font-size:28px; margin-bottom:10px; }
.section-head p{ color:var(--muted); font-size:15px; line-height:1.6; }
.section-tag{
  display:inline-flex; align-items:center; gap:7px;
  font-size:12px; font-weight:600; color:var(--green-700);
  margin-bottom:10px;
}
.section-tag .dot{ width:6px;height:6px;border-radius:50%;background:var(--green-600); }

/* ---------- Feature grid (home) ---------- */
.feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.feature-card{
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:20px;
  background:#fff;
  transition:box-shadow .15s ease, transform .15s ease;
}
.feature-card:hover{ box-shadow:var(--shadow-sm); transform:translateY(-2px); }
.feature-card .ic{
  width:38px;height:38px;border-radius:10px;
  background:var(--green-50);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:14px;
  color:var(--green-700);
}
.feature-card h3{ font-size:15px; margin-bottom:6px; }
.feature-card p{ font-size:13px; color:var(--muted); line-height:1.55; margin:0; }

/* ---------- Stats banner ---------- */
.stats-banner{
  background:var(--green-800);
  border-radius:var(--radius-lg);
  padding:30px 36px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  color:#fff;
}
.stats-banner .stat{ text-align:center; }
.stats-banner .stat .ic{
  width:30px;height:30px;border-radius:50%;
  background:rgba(255,255,255,.12);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 10px;
}
.stats-banner .num{ font-size:24px; font-weight:800; }
.stats-banner .lbl{ font-size:12px; color:#c9ddc7; margin-top:2px; }
.stats-banner-title{ text-align:center; font-size:13px; font-weight:700; color:#fff; margin-bottom:18px; letter-spacing:.02em; }

/* ---------- Marketplace ---------- */
.market-head{ display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:22px; }
.market-head h2{ font-size:24px; margin-bottom:4px; }
.market-head p{ color:var(--muted); font-size:13px; margin:0; }
.market-head a{ font-size:13px; font-weight:600; color:var(--green-700); }
.market-scroll{ position:relative; }
.market-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.produce-card{
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  overflow:hidden;
  background:#fff;
}
.produce-card .photo{ height:120px; background-size:cover; background-position:center; position:relative; }
.produce-card .badge{
  position:absolute; top:8px; left:8px;
  background:rgba(255,255,255,.92);
  font-size:10px; font-weight:700; color:var(--green-700);
  padding:3px 8px; border-radius:999px;
}
.produce-card .body{ padding:12px 14px; }
.produce-card h4{ font-size:13.5px; margin-bottom:2px; }
.produce-card .grade{ font-size:11px; color:var(--muted); margin-bottom:8px; }
.produce-card .price{ font-size:13px; font-weight:700; color:var(--ink); }
.produce-card .price span{ font-size:11px; font-weight:400; color:var(--muted); }
.produce-card .loc{ font-size:11px; color:var(--muted); margin:6px 0 10px; display:flex; align-items:center; gap:4px; }
.produce-card .view{
  display:block; text-align:center;
  font-size:12px; font-weight:600; color:var(--green-700);
  border:1px solid var(--line); border-radius:8px; padding:7px 0;
}
.produce-card .view:hover{ background:var(--green-50); }
.market-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:30px;height:30px;border-radius:50%;
  background:#fff; border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-sm);
}
.market-nav.prev{ left:-15px; }
.market-nav.next{ right:-15px; }

/* ---------- Testimonials ---------- */
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.testi-card{ border:1px solid var(--line); border-radius:var(--radius-md); padding:22px; background:#fff; }
.testi-card .quote-mark{ color:var(--green-200, #bfe0c4); font-size:26px; line-height:1; margin-bottom:8px; color:var(--green-500); }
.testi-card p.body-text{ font-size:13.5px; color:var(--text); line-height:1.6; margin-bottom:18px; }
.testi-person{ display:flex; align-items:center; gap:10px; }
.testi-person img{ width:38px;height:38px;border-radius:50%; object-fit:cover; }
.testi-person .name{ font-size:13px; font-weight:700; color:var(--ink); }
.testi-person .role{ font-size:11.5px; color:var(--muted); }

/* ---------- Footer ---------- */
footer.site-footer{ background:var(--green-900); color:#cfe0cc; padding:48px 0 22px; }
.footer-top{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; margin-bottom:34px; }
.footer-brand .brand{ color:#fff; margin-bottom:12px; }
.footer-brand .mark{ background:rgba(255,255,255,.12); }
.footer-brand p{ font-size:13px; color:#9fb89a; line-height:1.6; max-width:260px; margin-bottom:16px; }
.footer-social{ display:flex; gap:10px; }
.footer-social a{
  width:30px;height:30px;border-radius:50%;
  background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
}
.footer-col h4{ color:#fff; font-size:13px; margin-bottom:14px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col ul a{ font-size:13px; color:#a9c2a5; }
.footer-col ul a:hover{ color:#fff; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:18px;
  display:flex; justify-content:space-between;
  font-size:12px; color:#84a07f;
}
.footer-bottom .links{ display:flex; gap:18px; }

/* ---------- About page ---------- */
.hero-photo{
  position:relative;
  border-radius:0 0 16px 16px;
  overflow:hidden;
  min-height:230px;
  display:flex;
  align-items:center;
  background-size:cover;
  background-position:center;
  margin:0 0 0;
}
.hero-photo::after{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(13,40,22,.72) 0%, rgba(13,40,22,.38) 55%, rgba(13,40,22,.18) 100%);
}
.hero-photo .wrap{ position:relative; z-index:1; padding-top:50px; padding-bottom:50px; color:#fff; }
.hero-photo h1{ color:#fff; font-size:30px; margin-bottom:10px; }
.hero-photo p{ color:#dceadb; font-size:14px; max-width:460px; line-height:1.6; margin:0; }

.mv-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.mv-card{ border:1px solid var(--line); border-radius:var(--radius-md); padding:24px; }
.mv-card .ic{ width:34px;height:34px;border-radius:9px; background:var(--green-50); color:var(--green-700); display:flex;align-items:center;justify-content:center; margin-bottom:14px;}
.mv-card h3{ font-size:16px; margin-bottom:8px; }
.mv-card p{ font-size:13.5px; color:var(--muted); line-height:1.65; margin:0; }

.why-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.why-card{ text-align:center; padding:18px 14px; }
.why-card .ic{ width:42px;height:42px;border-radius:11px; background:var(--green-50); color:var(--green-700); display:flex;align-items:center;justify-content:center; margin:0 auto 14px; }
.why-card h3{ font-size:14px; margin-bottom:6px; }
.why-card p{ font-size:12.5px; color:var(--muted); line-height:1.55; margin:0; }

.team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.team-card{ text-align:center; }
.team-card .avatar{ width:100%; aspect-ratio:1/1; border-radius:14px; background-size:cover; background-position:center; margin-bottom:12px; }
.team-card h4{ font-size:14px; margin-bottom:2px; }
.team-card .role{ font-size:12px; color:var(--green-700); font-weight:600; margin-bottom:8px; }
.team-card .social{ display:flex; justify-content:center; gap:8px; }
.team-card .social a{ width:24px;height:24px;border-radius:50%; background:var(--green-50); display:flex;align-items:center;justify-content:center; color:var(--green-700);}

.timeline{ position:relative; display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.timeline::before{
  content:'';
  position:absolute; top:8px; left:0; right:0; height:2px;
  background:var(--line);
}
.tl-item{ position:relative; padding-top:26px; text-align:center; }
.tl-item .tl-dot{
  position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:16px;height:16px;border-radius:50%;
  background:var(--green-600); border:3px solid #fff; box-shadow:0 0 0 2px var(--green-600);
}
.tl-item .year{ font-size:13px; font-weight:700; color:var(--green-700); margin-bottom:6px; }
.tl-item h4{ font-size:14px; margin-bottom:6px; }
.tl-item p{ font-size:12px; color:var(--muted); line-height:1.55; margin:0; }

/* ---------- Contact page ---------- */
.contact-grid{ display:grid; grid-template-columns:1.4fr 1fr; gap:20px; margin-bottom:20px;}
.panel{ border:1px solid var(--line); border-radius:var(--radius-md); padding:26px; background:#fff; }
.panel h3{ font-size:17px; margin-bottom:18px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field.full{ grid-column:1/-1; }
.field label{ font-size:12.5px; font-weight:600; color:var(--ink); }
.field input, .field textarea{
  border:1px solid var(--line);
  border-radius:9px;
  padding:11px 13px;
  font-size:13.5px;
  font-family:inherit;
  color:var(--ink);
  resize:none;
}
.field input:focus, .field textarea:focus{ outline:2px solid var(--green-600); outline-offset:1px; }
.field textarea{ min-height:96px; }

.info-list{ display:flex; flex-direction:column; gap:18px; margin-bottom:0;}
.info-item{ display:flex; gap:12px; align-items:flex-start; }
.info-item .ic{ width:34px;height:34px;border-radius:9px; background:var(--green-50); color:var(--green-700); display:flex;align-items:center;justify-content:center; flex:none; }
.info-item h4{ font-size:13px; margin-bottom:3px; }
.info-item p{ font-size:12.5px; color:var(--muted); margin:0; line-height:1.55; }

.loc-grid{ display:grid; grid-template-columns:1.4fr 1fr; gap:20px; margin-bottom:20px; align-items:stretch;}
.map-box{ border:1px solid var(--line); border-radius:var(--radius-md); overflow:hidden; min-height:230px; position:relative; }
.map-box iframe{ width:100%; height:100%; min-height:230px; border:0; display:block; }
.static-map{
  width:100%; height:100%; min-height:230px;
  background:
    radial-gradient(circle at 22% 30%, rgba(255,255,255,.5) 0, rgba(255,255,255,0) 35%),
    repeating-linear-gradient(0deg, rgba(17,71,31,.06) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(17,71,31,.06) 0 1px, transparent 1px 38px),
    linear-gradient(135deg,#e3efe1,#cfe3cc);
  position:relative;
  display:flex; align-items:center; justify-content:center;
}
.static-map .road{ position:absolute; background:rgba(255,255,255,.85); }
.static-map .road.h1{ top:38%; left:0; right:0; height:7px; }
.static-map .road.v1{ left:34%; top:0; bottom:0; width:7px; }
.static-map .pin{ position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; }
.static-map .pin .head{
  width:34px;height:34px;border-radius:50% 50% 50% 0;
  background:var(--green-700);
  transform:rotate(-45deg);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 10px rgba(13,59,30,.35);
}
.static-map .pin .head span{ transform:rotate(45deg); color:#fff; font-size:14px; }
.static-map .pin .label{
  margin-top:8px; background:#fff; padding:4px 10px; border-radius:999px;
  font-size:11px; font-weight:700; color:var(--ink); box-shadow:var(--shadow-sm);
}
.loc-panel h4{ font-size:15px; margin-bottom:8px; }
.loc-panel p{ font-size:13px; color:var(--muted); line-height:1.6; margin:0; }

.faq-other{ display:grid; grid-template-columns:1.4fr 1fr; gap:20px; align-items:start; }
.faq-list{ display:flex; flex-direction:column; gap:10px; }
.faq-item{ border:1px solid var(--line); border-radius:10px; padding:14px 18px; display:flex; justify-content:space-between; align-items:center; font-size:13.5px; font-weight:600; color:var(--ink); }
.faq-item .plus{ width:20px;height:20px;border-radius:50%; border:1px solid var(--line); display:flex;align-items:center;justify-content:center; font-size:14px; color:var(--muted); flex:none; }
.other-reach{ background:var(--green-50); border-radius:var(--radius-md); padding:22px; }
.other-reach h4{ font-size:14px; margin-bottom:16px; }
.reach-item{ display:flex; gap:10px; margin-bottom:16px; }
.reach-item:last-child{ margin-bottom:0; }
.reach-item .ic{ width:30px;height:30px;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;color:var(--green-700); flex:none;}
.reach-item h5{ font-size:13px; margin:0 0 3px; color:var(--ink); }
.reach-item p{ font-size:12px; color:var(--muted); margin:0; line-height:1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .nav-links{ display:none; }
  .mobile-toggle{ display:block; }
  .hero-home .grid{ grid-template-columns:1fr; }
  .feature-grid{ grid-template-columns:repeat(2,1fr); }
  .stats-banner{ grid-template-columns:repeat(2,1fr); }
  .market-grid{ grid-template-columns:repeat(2,1fr); }
  .testi-grid{ grid-template-columns:1fr; }
  .mv-grid{ grid-template-columns:1fr; }
  .why-grid{ grid-template-columns:repeat(2,1fr); }
  .team-grid{ grid-template-columns:repeat(2,1fr); }
  .timeline{ grid-template-columns:1fr; }
  .timeline::before{ display:none; }
  .contact-grid, .loc-grid, .faq-other{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .form-row{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .feature-grid, .market-grid, .why-grid, .team-grid{ grid-template-columns:1fr 1fr; }
  .footer-top{ grid-template-columns:1fr; }
}
