/* ==========================================================================
   Kaduna Agricultural Hub — Shared Design System
   Brands: KILPIS (livestock & poultry) / KICGIS (crops & grains)
   Base identity shared from both official crest logos: forest green + lime.
   ========================================================================== */

:root {
  /* Shared umbrella identity — sampled from the KILPIS/KICGIS crest logos */
  --forest:      #1f3d2c;
  --forest-dark: #16291e;
  --lime:        #a9d14a;
  --lime-dark:   #7fae2f;

  /* Brand accents */
  --kilpis:      #a85d34;
  --kilpis-tint: #f5e9e0;
  --kicgis:      #ef8d44;
  --kicgis-tint: #fdf0e2;
  --synergos:    #7ba98e;

  /* Neutrals — warm-biased toward the forest green, not generic grey */
  --paper:       #faf9f4;
  --paper-raised:#ffffff;
  --ink:         #1b2118;
  --muted:       #5d6a58;
  --rule:        #dfe2d4;

  /* Semantic */
  --focus:       #2f6fed;

  /* Active brand accent — overridden per page via body class */
  --accent:      var(--forest);
  --accent-tint: #eaf1e3;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(27,33,24,0.08);
  --shadow-md: 0 6px 24px rgba(27,33,24,0.10);
  --container: 1180px;
}

body.brand-kilpis { --accent: var(--kilpis); --accent-tint: var(--kilpis-tint); }
body.brand-kicgis { --accent: var(--kicgis); --accent-tint: var(--kicgis-tint); }
body.brand-hub    { --accent: var(--forest); --accent-tint: #eaf1e3; }

@media (prefers-color-scheme: dark) {
  :root {
    --paper:        #14170f;
    --paper-raised: #1b1f15;
    --ink:          #eef0e6;
    --muted:         #9aa48f;
    --rule:          #303628;
    --kilpis-tint:   #2a1c14;
    --kicgis-tint:   #2c2013;
    --accent-tint:   #1d2b1f;
  }
  body.brand-kilpis { --accent-tint: #2a1c14; }
  body.brand-kicgis { --accent-tint: #2c2013; }
}

/* ── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
p  { color: var(--muted); max-width: 68ch; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section { padding: 3.5rem 0; }
.section-tight { padding: 2.25rem 0; }
@media (min-width: 768px) {
  .section { padding: 5.5rem 0; }
  .section-tight { padding: 3rem 0; }
}
.section-alt { background: var(--paper-raised); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: var(--accent-tint); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ── Header / Nav ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,244,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(20,23,15,0.92); }
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 0.7rem; padding-bottom: 0.7rem; gap: 1rem; }
.brand-lockup { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-lockup img { height: 38px; width: auto; }
.brand-lockup .brand-word { font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--rule); background: var(--paper-raised);
}
.nav-toggle svg { width: 22px; height: 22px; }

.main-nav {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); z-index: 95;
  background: var(--paper-raised); box-shadow: -8px 0 32px rgba(0,0,0,0.18);
  padding: 5.5rem 1.5rem 2rem; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.25s ease;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.main-nav.open { transform: translateX(0); }
.nav-scrim {
  position: fixed; inset: 0; background: rgba(20,23,15,0.4);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 90;
}
.nav-scrim.open { opacity: 1; pointer-events: auto; }
.main-nav a {
  display: block; padding: 0.85rem 0.25rem; text-decoration: none;
  font-weight: 600; border-bottom: 1px solid var(--rule); min-height: 44px;
}
.main-nav a.current { color: var(--accent); }
.main-nav .nav-cta { margin-top: 1rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-scrim { display: none; }
  .main-nav {
    position: static; width: auto; transform: none; box-shadow: none;
    background: transparent; padding: 0; flex-direction: row; align-items: center; gap: 1.75rem;
  }
  .main-nav a { border-bottom: none; padding: 0.4rem 0; min-height: auto; position: relative; }
  .main-nav a.current::after,
  .main-nav a:hover::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent);
  }
  .main-nav .nav-cta { margin-top: 0; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 3rem 0 3.5rem; position: relative; }
@media (min-width: 768px) { .hero { padding: 5rem 0 5.5rem; } }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; } }
.hero-kicker { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.hero-fullname {
  display: block; font-family: "Playfair Display", Georgia, serif; font-style: italic;
  font-weight: 600; font-size: clamp(0.8rem, 1.6vw + 0.5rem, 1.05rem);
  color: var(--accent); letter-spacing: 0.01em; margin-bottom: 0.6rem;
  max-width: 40ch;
}
@media (min-width: 768px) { .hero-fullname { margin-bottom: 0.85rem; } }
.hero p.lede { font-size: 1.1rem; color: var(--muted); margin: 1.1rem 0 1.75rem; }
.media-frame-wrap { position: relative; }
.media-frame-wrap::before {
  content: ""; position: absolute; inset: 10px -10px -10px 10px;
  border: 2px solid var(--accent); border-radius: var(--radius-lg); z-index: 0;
}
@media (min-width: 640px) { .media-frame-wrap::before { inset: 16px -16px -16px 16px; } }

.hero-art {
  position: relative; z-index: 1;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--accent-tint);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule); box-shadow: var(--shadow-md);
}
.hero-art img.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-art .hero-caption {
  position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 2;
  background: rgba(20,23,15,0.72); color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.4rem 0.8rem; border-radius: 999px;
  backdrop-filter: blur(3px);
}

/* ── Dual hero (hub landing — diagonal two-photo split) ─────────────────── */
.hero-art.dual { padding: 0; background: none; border: none; box-shadow: none; display: flex; }
.dual-half { position: relative; width: 52%; height: 100%; overflow: hidden; }
.dual-half img { width: 100%; height: 100%; object-fit: cover; }
.dual-half:first-child { clip-path: polygon(0 0, 100% 0, 84% 100%, 0% 100%); z-index: 1; }
.dual-half:last-child { width: 56%; margin-left: -12%; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0% 100%); }
.dual-half .hero-caption { position: absolute; bottom: 0.85rem; left: 1.1rem; z-index: 2; }
.dual-half:last-child .hero-caption { left: auto; right: 1.1rem; }

/* ── Page banner — photographic hero for secondary pages ────────────────── */
.hero.hero-photo {
  position: relative; min-height: 300px; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #fff; overflow: hidden;
}
@media (min-width: 768px) { .hero.hero-photo { min-height: 380px; } }
.hero.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(15,20,12,0.90) 0%, rgba(15,20,12,0.62) 42%, rgba(15,20,12,0.28) 100%);
}
.hero.hero-photo .container { position: relative; z-index: 1; }
.hero.hero-photo .eyebrow { color: var(--lime); }
.hero.hero-photo h1 { color: #fff; }
.hero.hero-photo .hero-fullname { color: rgba(255,255,255,0.78); }
.hero.hero-photo p.lede { color: rgba(255,255,255,0.86); }

/* ── At-a-glance / stat strip ─────────────────────────────────────────── */
.glance { display: grid; gap: 1rem; grid-template-columns: repeat(2,1fr); }
@media (min-width: 700px) { .glance { grid-template-columns: repeat(4,1fr); } }
.glance-item {
  padding: 1.25rem 1rem; background: var(--paper-raised); border: 1px solid var(--rule);
  border-radius: var(--radius-md); text-align: left;
}
.glance-item .k { font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.05rem; color: var(--accent); display: block; margin-bottom: 0.25rem; }
.glance-item .v { font-size: 0.85rem; color: var(--muted); }

/* ── Cards ────────────────────────────────────────────────────────────── */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid.cols-2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4,1fr); }
}
.card {
  background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent-tint);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 0.25rem;
}
.card h3 { font-size: 1.05rem; }
.card p { font-size: 0.92rem; margin: 0; }

/* ── Focus-area image cards ──────────────────────────────────────────── */
.focus-card {
  background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.focus-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.focus-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--accent-tint); }
.focus-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.focus-card:hover .focus-media img { transform: scale(1.06); }
.focus-num {
  position: absolute; top: 0.75rem; left: 0.75rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: rgba(250,249,244,0.92); color: var(--accent); font-family: "Playfair Display", serif;
  font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
}
.focus-body { padding: 1.35rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.focus-body h3 { font-size: 1.05rem; }
.focus-body p { font-size: 0.92rem; margin: 0; }

/* ── Media split (about page — text + framed photo) ──────────────────── */
.media-split { display: grid; gap: 2.25rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 760px) { .media-split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.media-split.reverse .media-split-media { order: -1; }
.media-split-media .hero-art { aspect-ratio: 5/4; }

/* ── Partner strip ────────────────────────────────────────────────────── */
.partner-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem 3rem; }
.partner-strip a { display: inline-flex; align-items: center; }
.partner-strip img { height: 40px; width: auto; filter: grayscale(0.15); opacity: 0.92; }

.partner-card {
  display: flex; flex-direction: column; gap: 0.9rem; padding: 1.75rem;
  background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius-lg);
}
.partner-card img { height: 46px; width: auto; align-self: flex-start; }
.partner-card .badge {
  align-self: flex-start; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent);
}

/* ── Split / two-path chooser (landing) ──────────────────────────────── */
.path-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .path-grid { grid-template-columns: 1fr 1fr; } }
.path-card {
  border-radius: var(--radius-lg); padding: 2rem; text-decoration: none; color: #fff;
  display: flex; flex-direction: column; gap: 0.9rem; min-height: 260px; justify-content: flex-end;
  background-size: cover; background-position: center; position: relative; overflow: hidden;
  border: 1px solid var(--rule);
}
.path-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.72) 100%);
}
.path-card.kilpis-bg { background-color: var(--kilpis); }
.path-card.kicgis-bg { background-color: var(--kicgis); }
.path-card > * { position: relative; z-index: 1; }
.path-card h3 { color: #fff; font-size: 1.6rem; }
.path-card p { color: rgba(255,255,255,0.88); }
.path-card .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.path-card.primary { min-height: 320px; }
@media (min-width: 760px) {
  .path-grid.emphasize-first { grid-template-columns: 1.3fr 1fr; }
}

/* ── Governance / three-way story ────────────────────────────────────── */
.triad { display: grid; gap: 1.25rem; grid-template-columns: 1fr; counter-reset: triad; }
@media (min-width: 760px) { .triad { grid-template-columns: repeat(3,1fr); } }
.triad-item { padding: 1.5rem; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper-raised); }
.triad-item .role { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
input, select, textarea {
  width: 100%; padding: 0.8rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid var(--rule);
  background: var(--paper-raised); color: var(--ink); font: inherit; min-height: 44px;
}
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }
.alert { padding: 1rem 1.1rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; font-size: 0.92rem; }
.alert-success { background: var(--accent-tint); color: var(--accent); border: 1px solid var(--accent); }
.alert-error { background: #fbe7e4; color: #8a2c1d; border: 1px solid #d9634c; }
@media (prefers-color-scheme: dark) { .alert-error { background: #3a1913; color: #f2a795; } }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--forest); color: #eef0e6; padding: 3rem 0 1.5rem; margin-top: 4rem; }
.site-footer a { color: #eef0e6; text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.9rem; font-family: "Public Sans", sans-serif; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.9rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.25rem; font-size: 0.78rem; opacity: 0.75; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

/* ── Utility ──────────────────────────────────────────────────────────── */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.max-prose { max-width: 68ch; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600;
  padding: 0.4rem 0.75rem; border-radius: 999px; background: var(--paper-raised); border: 1px solid var(--rule);
}
.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data-table th, table.data-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--rule); }
.table-scroll { overflow-x: auto; }
