/*
Theme Name: Excell Africa Agro-Processing — v1.3.1 Hotfix
Theme URI: https://agroprocessing.excellafrica.com
Author: Smart AI Matters
Description: Institutional WordPress theme for Excell Africa Agro-Processing & Product Innovation Centre.
Version: 1.3.1
Text Domain: excell-agroprocessing
*/
:root{--ink:#10231b;--forest:#164c35;--leaf:#2d7b4d;--lime:#c8e84b;--cream:#f5f2e8;--sand:#e8dfc7;--white:#fff;--muted:#5f6f67;--gold:#d5a62b}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.6}a{color:inherit;text-decoration:none}.wrap{width:min(1180px,92vw);margin:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid #e7ece9}.nav{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:12px;font-weight:900;letter-spacing:-.02em}.brand-mark{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--forest);color:var(--lime);font-weight:900}.brand small{display:block;color:var(--leaf);font-weight:700;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase}.menu{display:flex;gap:20px;align-items:center;font-size:.92rem;font-weight:700}.btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 20px;border-radius:999px;font-weight:800;background:var(--lime);color:var(--ink);border:1px solid transparent}.btn.dark{background:var(--ink);color:#fff}.btn.outline{background:transparent;border-color:rgba(255,255,255,.35);color:#fff}
.hero{background:radial-gradient(circle at 78% 20%,rgba(200,232,75,.2),transparent 27%),linear-gradient(135deg,#0d2d21,#153f2d 58%,#1e5d3c);color:#fff;overflow:hidden}.hero-grid{min-height:720px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:56px;padding:70px 0}.eyebrow{font-size:.78rem;font-weight:900;letter-spacing:.15em;text-transform:uppercase;color:var(--lime)}h1{font-size:clamp(3rem,6vw,6.2rem);line-height:.93;letter-spacing:-.06em;margin:.18em 0}.hero p{font-size:1.2rem;color:#dce8e0;max-width:680px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.hero-card{position:relative;min-height:500px;border-radius:36px;padding:32px;background:linear-gradient(160deg,rgba(255,255,255,.13),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.18);box-shadow:0 30px 80px rgba(0,0,0,.25)}.path{display:grid;gap:11px;margin-top:26px}.path span{display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.08);padding:13px 16px;border-radius:14px;font-weight:800}.path b{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--lime);color:var(--ink);font-size:.8rem}
.band{background:var(--lime);padding:18px 0;font-weight:900}.band .wrap{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}
section{padding:92px 0}.kicker{color:var(--leaf);font-weight:900;text-transform:uppercase;letter-spacing:.13em;font-size:.75rem}.section-title{font-size:clamp(2.2rem,4.5vw,4.6rem);line-height:1;letter-spacing:-.05em;margin:.18em 0 .35em}.lead{font-size:1.14rem;color:var(--muted);max-width:760px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:42px}.card{padding:28px;border-radius:24px;background:#fff;border:1px solid #e2e9e5;box-shadow:0 14px 45px rgba(16,35,27,.06)}.card h3{font-size:1.35rem;margin:.3em 0}.num{font-size:.75rem;font-weight:900;color:var(--leaf);letter-spacing:.12em}.soft{background:var(--cream)}.dark-section{background:var(--ink);color:#fff}.dark-section .lead{color:#cbd8d1}.products{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:36px}.product{min-height:210px;border-radius:24px;padding:24px;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(150deg,#e6ecd5,#f7f4e9);border:1px solid #dce4d5}.product strong{font-size:1.25rem}.product small{color:var(--muted)}
.pipeline{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-top:36px}.pipe{padding:18px 10px;text-align:center;border-radius:18px;background:#fff;border:1px solid #dde5df;font-weight:900;font-size:.84rem}.quote{font-size:clamp(2rem,4vw,4.1rem);line-height:1.05;letter-spacing:-.045em;max-width:1000px}.quote em{color:var(--lime);font-style:normal}.split{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center}.panel{background:#fff;border-radius:28px;padding:34px;border:1px solid #e1e8e3}.check{list-style:none;padding:0;margin:20px 0}.check li{padding:10px 0;border-bottom:1px solid #edf0ee}.check li:before{content:"✓";font-weight:900;color:var(--leaf);margin-right:10px}
.cta{padding:52px;border-radius:34px;background:linear-gradient(135deg,var(--forest),#0e2b20);color:#fff}.cta h2{font-size:clamp(2.3rem,4vw,4rem);line-height:1;margin:0 0 14px}.footer{background:#071a13;color:#c8d4ce;padding:54px 0 30px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}.footer h4{color:#fff}.footer a:hover{color:var(--lime)}.fine{border-top:1px solid #254035;margin-top:35px;padding-top:20px;font-size:.82rem;color:#8da097}
@media(max-width:900px){.menu{display:none}.hero-grid,.split{grid-template-columns:1fr}.hero-grid{padding:55px 0}.hero-card{min-height:auto}.grid3{grid-template-columns:1fr}.products{grid-template-columns:1fr 1fr}.pipeline{grid-template-columns:repeat(3,1fr)}.footer-grid{grid-template-columns:1fr}section{padding:68px 0}}
@media(max-width:560px){.products{grid-template-columns:1fr}.pipeline{grid-template-columns:1fr 1fr}.hero-card{padding:22px}.cta{padding:30px}}

/* v1.1 visual and mobile uplift */
.menu-toggle{display:none;border:0;background:var(--ink);color:#fff;border-radius:999px;padding:9px 13px;font-weight:800}
.product{overflow:hidden;min-height:0}
.product::before{content:"";display:block;height:150px;background:linear-gradient(145deg,#dce8c9,#f5eedc);border-bottom:1px solid #dce4d5}
.product:nth-child(1)::before{background:linear-gradient(145deg,#b9d89b,#edf1d9)}
.product:nth-child(2)::before{background:linear-gradient(145deg,#efd6d9,#f6eddf)}
.product:nth-child(3)::before{background:linear-gradient(145deg,#c9dec0,#f1f0dc)}
.product:nth-child(4)::before{background:linear-gradient(145deg,#d7dfa9,#f4efd8)}
.product:nth-child(5)::before{background:linear-gradient(145deg,#e8c3a7,#f5e7d8)}
.product:nth-child(6)::before{background:linear-gradient(145deg,#bed5ad,#eef0d9)}
.product:nth-child(7)::before{background:linear-gradient(145deg,#b9d7aa,#edf1dd)}
.product:nth-child(8)::before{background:linear-gradient(145deg,#c6d9b8,#f2efdc)}
.product{padding:0}.product strong,.product small{display:block;padding-left:22px;padding-right:22px}.product small{padding-top:18px}.product strong{padding-bottom:22px}
.roadmap{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:34px}.road{padding:24px;border-radius:22px;background:#fff;border:1px solid #dfe7e2}.road b{display:block;font-size:1.18rem;margin:.3em 0}
.formbox{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:26px}.formbox input,.formbox select,.formbox textarea{width:100%;padding:14px;border-radius:14px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.09);color:#fff;font:inherit}.formbox option{color:#111}.formbox textarea{grid-column:1/-1;min-height:120px}.formbox .wide{grid-column:1/-1}.notice{margin-top:16px;padding:12px 15px;border:1px solid rgba(200,232,75,.4);background:rgba(200,232,75,.12);border-radius:12px}
@media(max-width:900px){
 .nav{min-height:64px}.header-cta{display:none}.menu-toggle{display:inline-flex}
 .menu{display:none;position:absolute;top:68px;left:4vw;right:4vw;flex-direction:column;align-items:flex-start;background:#fff;border:1px solid #dfe7e2;border-radius:18px;padding:16px;box-shadow:0 18px 45px rgba(0,0,0,.14)}.menu.open{display:flex}
 .roadmap{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
 .brand-mark{width:36px;height:36px}.brand{gap:9px}.brand small{font-size:.55rem;max-width:220px}.roadmap{grid-template-columns:1fr}.formbox{grid-template-columns:1fr}.formbox textarea,.formbox .wide{grid-column:1}.product::before{height:120px}
}

/* v1.2 Product Incubation OS */
:root{--panel:#f8faf8;--success:#dff2e7}
.header-cta{padding:10px 16px}
@media(min-width:1100px){.menu{gap:16px}.menu a{white-space:nowrap;font-size:.88rem}}
.os-shell{background:linear-gradient(180deg,#f8fbf9,#eef4f0);border:1px solid var(--line);border-radius:28px;padding:28px;margin-top:34px}
.os-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}
.os-panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px}
.os-panel h3{margin:.2em 0 .6em}.os-list{display:grid;gap:10px;margin-top:18px}
.os-row{display:grid;grid-template-columns:40px 1fr auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid #e6ece8;border-radius:14px}
.os-row b{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--lime);font-size:.78rem}
.os-row span:last-child{font-size:.76rem;font-weight:900;color:var(--leaf);letter-spacing:.08em}
.passport-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:28px}
.passport-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px}
.passport-card small{display:block;color:var(--leaf);font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.passport-card strong{display:block;font-size:1.15rem;margin-top:6px}
.status{display:inline-flex;padding:6px 10px;border-radius:999px;background:var(--success);font-size:.74rem;font-weight:900;color:var(--forest)}
.incubator-table{width:100%;border-collapse:collapse;margin-top:18px;font-size:.92rem}
.incubator-table th,.incubator-table td{padding:12px 10px;border-bottom:1px solid #e9eeeb;text-align:left}
.incubator-table th{font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;color:var(--leaf)}
.product-link{display:inline-flex;margin-top:12px;font-size:.82rem;font-weight:900;color:var(--leaf)}
.photo-note{font-size:.84rem;color:var(--muted);margin-top:12px}
.admin-note{background:#fff9df;border:1px solid #eadc9f;padding:14px 16px;border-radius:14px;margin-top:18px;font-size:.9rem}
@media(max-width:900px){
 .os-grid{grid-template-columns:1fr}.passport-grid{grid-template-columns:1fr 1fr}
 .incubator-table{display:block;overflow:auto;white-space:nowrap}
}
@media(max-width:560px){.passport-grid{grid-template-columns:1fr}}


/* ==========================================================
   v1.2.1 RECOVERY LAYER
   Purpose: restore the proven full-width v1.2 presentation
   while preserving the Product Incubation OS.
   ========================================================== */

html, body {
  width: 100% !important;
  max-width: none !important;
  overflow-x: hidden !important;
}

body {
  background: #fff !important;
}

body *, body *::before, body *::after {
  box-sizing: border-box !important;
}

/* Defeat accidental WordPress/global container constraints */
body .wrap,
body header .wrap,
body main .wrap,
body footer .wrap {
  width: min(1180px, 92vw) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body main,
body main > section,
body .hero,
body .band,
body .soft,
body .dark-section,
body .footer,
body .site-header {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Keep every grid child allowed to shrink inside its own column */
body .hero-grid > *,
body .split > *,
body .grid3 > *,
body .products > *,
body .roadmap > *,
body .pipeline > *,
body .os-grid > *,
body .passport-grid > *,
body .footer-grid > * {
  min-width: 0 !important;
  max-width: 100% !important;
}

/* Reinstate desktop grids explicitly */
@media (min-width: 901px) {
  body .hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr) !important;
    width: 100% !important;
  }

  body .split {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
  }

  body .grid3 {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }

  body .products {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  }

  body .roadmap {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  }

  body .pipeline {
    display: grid !important;
    grid-template-columns: repeat(6,minmax(0,1fr)) !important;
  }

  body .os-grid {
    display: grid !important;
    grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr) !important;
  }

  body .passport-grid {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  }

  body .footer-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr !important;
  }
}

/* Header recovery */
body .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 60 !important;
  background: rgba(255,255,255,.96) !important;
}

body .nav {
  width: 100% !important;
  min-height: 72px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

body .site-header a,
body .site-header a:visited {
  color: var(--ink) !important;
  text-decoration: none !important;
}

body .site-header .brand small {
  color: var(--leaf) !important;
}

body .site-header .header-cta,
body .site-header .header-cta:visited {
  background: var(--lime) !important;
  color: var(--ink) !important;
  white-space: nowrap !important;
}

/* Typography / overflow recovery */
body h1,
body h2,
body h3,
body .section-title,
body .quote {
  max-width: 100% !important;
}

body .quote,
body .section-title {
  overflow-wrap: normal !important;
  word-break: normal !important;
}

body .dark-section .quote {
  width: 100% !important;
  max-width: 1000px !important;
}

/* Cards and sections must not escape their parent */
body .card,
body .product,
body .panel,
body .road,
body .os-shell,
body .os-panel,
body .passport-card,
body .cta,
body .hero-card {
  width: 100% !important;
  max-width: 100% !important;
}

/* Prevent stray global link rules from turning internal UI blue */
body main a:not(.btn),
body footer a {
  color: inherit;
}

/* Product passport link remains branded green */
body .product-link,
body .product-link:visited {
  color: var(--leaf) !important;
}

/* Mobile retains v1.1/v1.2 responsive behaviour */
@media (max-width: 900px) {
  body .wrap,
  body header .wrap,
  body main .wrap,
  body footer .wrap {
    width: 92vw !important;
    max-width: 92vw !important;
  }

  body .hero-grid,
  body .split,
  body .grid3,
  body .os-grid,
  body .footer-grid {
    grid-template-columns: 1fr !important;
  }

  body .products,
  body .roadmap,
  body .passport-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  body .pipeline {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }
}

@media (max-width: 560px) {
  body .products,
  body .roadmap,
  body .passport-grid {
    grid-template-columns: 1fr !important;
  }

  body .pipeline {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}

/* v1.3 real-evidence visual layer */
.real-photo{position:relative;overflow:hidden;border-radius:28px;background:#dce7df;min-height:340px}
.real-photo img{width:100%;height:100%;object-fit:cover;display:block;position:absolute;inset:0}
.real-photo .photo-empty{position:absolute;inset:0;display:grid;place-items:center;padding:32px;text-align:center;color:var(--forest);font-weight:900;background:linear-gradient(145deg,#dbe9d6,#f1ecd9)}
.real-photo .caption{position:absolute;left:18px;bottom:18px;background:rgba(7,26,19,.84);color:#fff;padding:10px 14px;border-radius:999px;font-size:.78rem;font-weight:900}
.evidence-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:18px;margin-top:34px}
.evidence-stack{display:grid;grid-template-rows:1fr 1fr;gap:18px}
.evidence-stack .real-photo{min-height:160px}
.journey-case{background:var(--ink);color:#fff;border-radius:32px;padding:34px;margin-top:38px}
.journey-case .lead{color:#cbd8d1}
.journey-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:24px}
.journey-step{border:1px solid rgba(255,255,255,.17);background:rgba(255,255,255,.07);border-radius:18px;padding:18px}
.journey-step small{color:var(--lime);display:block;font-weight:900;letter-spacing:.1em}
.journey-step strong{display:block;margin-top:6px}
.complete-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
@media(max-width:900px){.evidence-grid{grid-template-columns:1fr}.journey-steps{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.journey-steps{grid-template-columns:1fr}.real-photo{min-height:240px}}
