/* ============================================================
   INUA AFRICA — Digital Flyer
   Design tokens: deep navy, inua green, warm gold, mint
   Mobile-first (320-390px baseline) — max-width 1440px tested
   ============================================================ */

:root {
  --navy-900: #081a33;
  --navy-800: #0b2545;
  --navy-700: #12345f;
  --navy-600: #1c4a85;
  --green-700: #0e5c45;
  --green-600: #0e8a62;
  --green-500: #17a97a;
  --green-100: #d9f2e6;
  --mint-50:  #f0f8f4;
  --gold-500: #d9a441;
  --gold-400: #e6b95c;
  --gold-100: #f7ecd2;
  --ink:      #10243f;
  --paper:    #ffffff;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 14px 34px rgba(8, 26, 51, 0.09);
  --shadow-soft: 0 4px 14px rgba(8, 26, 51, 0.07);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;            /* 16px min body */
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons (min 44px tap targets) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.78rem 1.6rem;
  border-radius: 999px; font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: #ffffff; box-shadow: 0 10px 24px rgba(14, 138, 98, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14, 138, 98, 0.4); }
.btn-ghost {
  background: transparent; color: var(--navy-800);
  border: 2px solid var(--navy-800);
}
.btn-ghost:hover { background: var(--navy-800); color: #fff; }
.btn-light { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-soft); }
.btn-light:hover { transform: translateY(-2px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.25rem;
  background: rgba(11, 37, 69, 0.94);
  backdrop-filter: blur(10px);
  color: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; }
.brand-mark { color: var(--gold-400); display: inline-flex; }
.brand-text { font-weight: 800; font-size: 1.12rem; letter-spacing: 0.14em; }
.brand-text .brand-accent { color: var(--gold-400); margin-left: 0.15em; }

.site-nav ul { display: flex; align-items: center; gap: 1rem; }
.site-nav li { display: inline-flex; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.3rem 0.5rem;
  font-weight: 600; font-size: 0.95rem; color: rgba(255,255,255,0.85); transition: color 0.15s;
}
.site-nav a:hover { color: var(--gold-400); }
.site-nav .nav-cta {
  background: var(--gold-500); color: var(--navy-900);
  padding: 0.5rem 1.25rem; border-radius: 999px; font-weight: 700;
}
.site-nav .nav-cta:hover { background: var(--gold-400); color: var(--navy-900); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  min-height: 44px; min-width: 44px;
  align-items: center; justify-content: center;
  padding: 0.4rem; border-radius: 10px;
}
.nav-toggle .bar { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(23, 169, 122, 0.28), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(217, 164, 65, 0.22), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 46%, var(--navy-700) 100%);
  color: #fff;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero-inner { position: relative; z-index: 2; }

.hero-art {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: min(44vw, 460px); opacity: 0.85; pointer-events: none;
  z-index: 1;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-400);
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid rgba(217, 164, 65, 0.35);
  padding: 0.5rem 1rem; border-radius: 999px;
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(2.2rem, 6.4vw, 3.9rem);
  line-height: 1.06; letter-spacing: -0.015em;
  margin-top: 1.4rem; max-width: 15ch;
  text-wrap: balance;
}
.hero-title em { color: var(--gold-400); font-style: normal; }
.hero-lede {
  margin-top: 1.2rem; max-width: 52ch;
  font-size: clamp(1.02rem, 2.6vw, 1.22rem); line-height: 1.6;
  color: rgba(255,255,255,0.88);
}
.pillars {
  display: flex; flex-wrap: wrap; gap: 0.65rem 1.1rem;
  margin-top: 1.6rem;
}
.pillars li {
  font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-100); padding-left: 1.15rem; position: relative;
}
.pillars li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--green-500);
}
.hero-tagline { margin-top: 1.1rem; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: rgba(255,255,255,0.75); }
.hero-tagline em { color: var(--gold-400); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }
.hero .btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--navy-900); border-color: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.4rem, 7vw, 5.5rem) 0; }
.section-kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 0.7rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(1.75rem, 4.6vw, 2.85rem);
  line-height: 1.12; letter-spacing: -0.012em;
  text-wrap: balance; max-width: 22ch;
}
.section-title em { font-style: normal; color: var(--green-600); }
.section-lede { margin-top: 1rem; max-width: 60ch; font-size: 1.06rem; color: #40536b; }

/* ---------- Journey ---------- */
.section-journey { background: var(--mint-50); }
.journey-list {
  margin-top: 2.4rem;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  counter-reset: journey;
}
.journey-item {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: #fff; border-radius: var(--radius-md);
  padding: 1.15rem 1.3rem;
  border: 1px solid rgba(14, 92, 69, 0.1);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.journey-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.journey-num {
  flex: 0 0 auto;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  color: var(--gold-500);
  border: 2px solid var(--gold-500); border-radius: 12px;
  width: 52px; height: 52px; display: grid; place-items: center;
}
.journey-body h3 { font-size: 1.13rem; color: var(--navy-800); }
.journey-body p { color: #4a5f78; margin-top: 0.12rem; }
.closing-line {
  margin-top: 2.2rem; text-align: center;
  font-family: var(--font-display); font-size: clamp(1.3rem, 3.6vw, 1.8rem); font-weight: 600;
  color: var(--navy-800);
}
.closing-line em { color: var(--green-600); font-style: normal; }

/* ---------- Platform ---------- */
.capability-grid {
  margin-top: 2.4rem;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.capability-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(11, 37, 69, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.capability-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.cap-icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-100); color: var(--green-700);
  font-size: 1.25rem; margin-bottom: 0.9rem;
}
.capability-card h3 { font-size: 1.15rem; color: var(--navy-800); }
.capability-card p { margin-top: 0.35rem; color: #4a5f78; font-size: 0.98rem; }
.capability-note {
  background: linear-gradient(140deg, var(--navy-800), var(--navy-900));
  color: #fff; border: 0;
}
.capability-note h3 { color: var(--gold-400); font-size: 1.2rem; }
.capability-note p { color: rgba(255,255,255,0.82); }

/* ---------- Pilot (Kenya) ---------- */
.section-pilot { background: var(--mint-50); }
.metric-row {
  margin: 2.2rem 0 0;
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
.metric {
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1rem; text-align: center;
  border-top: 5px solid var(--gold-500);
}
.metric-value {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 7vw, 2.7rem); color: var(--green-600);
  line-height: 1.1;
}
.metric-label {
  display: block; margin-top: 0.35rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy-700);
}
.pilot-cols { margin-top: 2.2rem; display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
.pilot-workstreams h3, .pilot-outcomes h3 {
  font-size: 1.02rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: 1rem;
}
.workstream-list { display: grid; gap: 0.8rem; }
.workstream-list li {
  background: #fff; border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem; box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--green-500);
  display: grid; gap: 0.1rem;
}
.workstream-list strong { color: var(--navy-800); font-size: 1.02rem; }
.workstream-list span { color: #4a5f78; font-size: 0.92rem; }
.outcome-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
.outcome-list li {
  background: #fff; border-radius: var(--radius-sm);
  padding: 0.85rem 1rem; text-align: center;
  font-weight: 700; color: var(--navy-800);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(14, 92, 69, 0.12);
}
.outcome-note {
  margin-top: 1rem; font-family: var(--font-display); font-style: italic;
  color: var(--gold-500); font-weight: 600; font-size: 1.05rem;
  text-align: center;
}

/* ---------- Partners ---------- */
.partner-grid {
  margin-top: 2.4rem;
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
.partner-card {
  display: flex; flex-direction: column; gap: 0.35rem;
  background: #fff; border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(11, 37, 69, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.partner-icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gold-100); color: var(--gold-500);
  font-size: 1.3rem; margin-bottom: 0.4rem;
}
.partner-card h3 { font-size: 1.15rem; color: var(--navy-800); }
.partner-card p { color: #4a5f78; font-size: 0.98rem; }

/* ---------- Coalition ---------- */
.section-coalition { background: linear-gradient(150deg, var(--navy-800), var(--navy-900)); color: #fff; }
.section-coalition .section-kicker { color: var(--gold-400); }
.section-coalition .section-title em { color: var(--gold-400); }
.section-coalition .section-lede { color: rgba(255,255,255,0.82); }
.seeking-grid { margin-top: 2.4rem; display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
.seeking-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
}
.seeking-card h3 {
  font-size: 1rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 1.2rem;
}
.seeking-list { display: grid; gap: 0.9rem; }
.seeking-list li {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  display: grid; gap: 0.1rem;
}
.seeking-list strong { color: #fff; font-size: 1.02rem; }
.seeking-list span { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.coalition-aside {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 260px at 90% 0%, rgba(23, 169, 122, 0.35), transparent 65%),
    rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 1.8rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem; justify-content: center;
}
.aside-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4.5vw, 2.3rem); line-height: 1.12; }
.aside-big:last-of-type { color: var(--gold-400); }
.aside-small { color: rgba(255,255,255,0.8); margin-top: 0.7rem; }

/* ---------- Contact ---------- */
.section-contact { background: var(--mint-50); }
.contact-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.1;
  color: var(--navy-800);
}
.contact-title em { color: var(--green-600); font-style: normal; }
.contact-lede { margin-top: 0.9rem; font-size: 1.08rem; color: #40536b; }
.contact-card {
  margin-top: 2.2rem;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(11, 37, 69, 0.07);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  max-width: 560px;
}
.contact-name { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--navy-800); }
.contact-org { color: #4a5f78; font-weight: 500; margin-top: 0.2rem; }
.contact-links { margin-top: 1.3rem; display: grid; gap: 0.55rem; }
.contact-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 600; color: var(--green-700);
  min-height: 44px; padding: 0.5rem 0.7rem; margin: -0.5rem -0.7rem;
  border-radius: var(--radius-sm);
}
.contact-link:hover { background: var(--green-100); }
.contact-link::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); flex: 0 0 auto; }
.contact-ctas { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.contact-scan {
  margin-top: 1.4rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #7c8ba0; text-align: center;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: 2.6rem 0; }
.footer-inner { display: grid; gap: 0.6rem; text-align: center; }
.footer-brand { font-weight: 800; letter-spacing: 0.18em; color: #fff; }
.footer-brand span { color: var(--gold-400); }
.footer-tag { font-family: var(--font-display); font-style: italic; color: var(--gold-400); }
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-links { display: flex; gap: 0.6rem; justify-content: center; font-size: 0.9rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.8); min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--gold-400); }

/* ---------- Desktop breakpoints ---------- */
@media (min-width: 640px) {
  .journey-list { grid-template-columns: repeat(2, 1fr); }
  .metric-row { grid-template-columns: repeat(3, 1fr); }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .outcome-list { grid-template-columns: repeat(3, 1fr); }
  .pilot-cols { grid-template-columns: 1.2fr 1fr; }
}

@media (min-width: 900px) {
  .journey-list { grid-template-columns: repeat(2, 1fr); }
  .capability-grid { grid-template-columns: repeat(4, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .seeking-grid { grid-template-columns: 1.4fr 1fr; }
  .site-header { padding: 0.85rem 2rem; }
}

@media (min-width: 1024px) {
  .journey-list { grid-template-columns: repeat(3, 1fr); }
  .metric-row { margin-top: 2.6rem; }
}

/* ---------- Mobile nav (below 900px) ---------- */
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-800);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 18px 30px rgba(0,0,0,0.25);
    display: none;
    padding: 0.8rem 1.25rem 1.4rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .site-nav a {
    display: flex; padding: 0.8rem 0.4rem;
    font-size: 1.05rem; border-radius: 8px; min-height: 44px;
  }
  .site-nav .nav-cta { text-align: center; margin-top: 0.5rem; padding: 0.85rem; justify-content: center; }
  .hero-art { width: min(55vw, 380px); right: -80px; opacity: 0.6; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}