/* WildLensAI — sage palette, mobile-first, no framework */

:root {
  --c-bg: #fbfaf6;            /* warm cream */
  --c-bg-alt: #f1ede4;        /* deeper cream for alt sections */
  --c-sage: #b8cdb6;           /* brand sage */
  --c-sage-deep: #87a684;
  --c-forest: #1a3526;         /* deep forest green */
  --c-forest-soft: #29503b;
  --c-ink: #16201a;            /* near-black, hint of green */
  --c-muted: #5d6a60;
  --c-line: rgba(26, 53, 38, 0.12);

  --max: 1140px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --t-fast: 180ms ease;
  --t-med: 320ms cubic-bezier(.2,.8,.2,1);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-h1: clamp(2.4rem, 5.5vw + 0.5rem, 4.4rem);
  --fs-h2: clamp(1.8rem, 3vw + 0.6rem, 2.8rem);
  --fs-h3: clamp(1.15rem, 1vw + 0.8rem, 1.4rem);
  --fs-lede: clamp(1.05rem, 0.6vw + 0.95rem, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--c-forest);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(26,53,38,.35);
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
a:hover { color: var(--c-forest-soft); text-decoration-color: var(--c-forest); }
a:focus-visible {
  outline: 2px solid var(--c-forest);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; color: var(--c-ink); margin: 0 0 0.6em; }
h1 { font-size: var(--fs-h1); font-weight: 400; letter-spacing: -0.025em; }
h1 em { font-style: italic; color: var(--c-forest); font-weight: 400; }
h2 { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-sage-deep);
  font-weight: 600;
  margin: 0 0 1.2em;
}
.lede { font-size: var(--fs-lede); color: var(--c-muted); max-width: 60ch; }
.subhead { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--c-forest); margin: 2.5em 0 1em; }
.sources { font-size: var(--fs-small); color: var(--c-muted); font-style: italic; margin-top: 1.5em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-forest);
  color: var(--c-bg);
  padding: 0.75em 1em;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  background: rgba(251, 250, 246, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: auto;
  height: clamp(44px, 6vw, 56px);
  object-fit: contain;
  object-position: left center;
  display: block;
  /* The logo is a pale sage on transparent — boost contrast slightly so it reads
     against the cream nav background */
  filter: brightness(0.7) saturate(1.3);
}

.site-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-list a {
  color: var(--c-ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.nav-list a:hover { border-bottom-color: var(--c-forest); color: var(--c-forest); }
.nav-cta {
  background: var(--c-forest);
  color: var(--c-bg) !important;
  padding: 0.55rem 1rem !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--c-forest-soft); color: var(--c-bg) !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--c-ink);
  transition: transform var(--t-med), opacity var(--t-fast);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    padding: 0.5rem var(--pad) 1.25rem;
    transform: translateY(-110%);
    transition: transform var(--t-med);
    box-shadow: 0 14px 30px rgba(20, 35, 25, 0.06);
  }
  .nav-list.is-open { transform: translateY(0); }
  .nav-list li { width: 100%; border-bottom: 1px solid var(--c-line); }
  .nav-list li:last-child { border-bottom: 0; }
  .nav-list a { display: block; padding: 0.95rem 0; font-size: 1.05rem; }
  .nav-cta { display: inline-block; margin-top: 0.6rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  letter-spacing: 0.005em;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--c-forest); color: var(--c-bg); }
.btn-primary:hover { background: var(--c-forest-soft); color: var(--c-bg); }
.btn-ghost { background: transparent; color: var(--c-forest); border-color: var(--c-forest); }
.btn-ghost:hover { background: var(--c-forest); color: var(--c-bg); }
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) var(--pad) clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(184, 205, 182, 0.45), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(184, 205, 182, 0.35), transparent 60%),
    linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-alt) 100%);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.hero h1 { max-width: 16ch; }
.hero-lede {
  font-size: var(--fs-lede);
  color: var(--c-muted);
  max-width: 58ch;
  margin: 1.4em 0 2em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(4rem, 8vw, 6rem) var(--pad);
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section-problem {}
.section-kenya {
  background: var(--c-bg-alt);
}
.section-services {}
.section-buyers {
  background: var(--c-forest);
  color: #e8efe5;
}
.section-buyers .eyebrow { color: var(--c-sage); }
.section-buyers h2, .section-buyers h3 { color: #fbfaf6; }
.section-buyers .lede, .section-buyers p { color: #cfd8d0; }
.section-buyers .sources { color: rgba(255,255,255,0.6); }
.section-buyers strong { color: #fff; }
.section-traction {
  background: var(--c-bg-alt);
}
.section-contact {
  padding-top: clamp(5rem, 9vw, 7rem);
  padding-bottom: clamp(5rem, 9vw, 7rem);
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(184,205,182,0.4), transparent 70%),
    var(--c-bg);
  text-align: center;
}
.contact-inner { max-width: 720px; margin: 0 auto; }
.contact-cta-row { margin: 2em 0 1em; }
.contact-address { font-style: normal; color: var(--c-muted); margin-top: 1rem; }
.noscript-fallback { color: var(--c-muted); margin-top: 1rem; }

/* ---------- Stats grid ---------- */

.stat-grid {
  list-style: none;
  margin: 2.5em 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.stat {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.section-kenya .stat { background: var(--c-bg); }
.stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(20, 50, 30, 0.18);
  border-color: rgba(26, 53, 38, 0.22);
}
.stat-num {
  font-size: clamp(2rem, 2.5vw + 0.6rem, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--c-forest);
  line-height: 1;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--c-muted);
  line-height: 1.5;
}

/* ---------- Callout ---------- */

.callout {
  margin: 2.5em 0 0;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, rgba(184,205,182,0.35), rgba(184,205,182,0.10));
  border-left: 3px solid var(--c-sage-deep);
  border-radius: var(--radius);
  font-size: 1.05rem;
}
.callout strong { color: var(--c-forest); }
.callout-tech { margin-top: 3em; }

/* ---------- Reasons (Kenya) ---------- */

.reason-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.reason-list li {
  padding: 1.1rem 1.25rem;
  border-left: 2px solid var(--c-sage-deep);
  background: var(--c-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.97rem;
  color: var(--c-ink);
}
.reason-list strong { color: var(--c-forest); }

/* ---------- Services ---------- */

.service-grid {
  list-style: none;
  margin: 2.5em 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  counter-reset: service;
}
.service-card {
  position: relative;
  padding: 1.75rem 1.6rem 1.6rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -18px rgba(20, 50, 30, 0.22);
  border-color: var(--c-sage-deep);
}
.service-num {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-sage-deep);
  letter-spacing: 0.1em;
}
.service-card h3 { margin: 0.2rem 0 0.3rem; color: var(--c-forest); }
.service-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c-muted);
  margin: 0 0 0.9rem;
}
.service-card p:last-child { margin: 0; color: var(--c-ink); font-size: 0.97rem; }

/* ---------- Buyers ---------- */

.buyer-grid {
  list-style: none;
  margin: 2.5em 0 2em;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.buyer-card {
  padding: 1.6rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
}
.buyer-card h3 { margin-bottom: 0.4rem; }
.market-line {
  font-size: 1.15rem;
  margin: 1.5em 0 0.5em;
}

/* ---------- Traction ---------- */

.traction-list {
  list-style: none;
  margin: 2.5em 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.traction-list li {
  padding: 1.5rem;
  background: var(--c-bg);
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
}
.traction-list h3 { color: var(--c-forest); margin-bottom: 0.3rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--c-forest);
  color: #cfd8d0;
  padding: 3rem var(--pad) 2.5rem;
  text-align: center;
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 0.4rem; justify-items: center; }
.footer-brand { display: inline-flex; align-items: center; margin-bottom: 0.5rem; line-height: 0; }
.footer-brand img {
  width: auto;
  height: 84px;
  object-fit: contain;
  /* On the dark forest footer the pale sage logo reads cleanly without filtering */
}
.footer-tag { font-style: italic; color: var(--c-sage); margin: 0; }
.footer-meta { font-size: 0.9rem; color: rgba(255,255,255,0.65); display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin: 0.4rem 0 0.6rem; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin: 0; }

/* ---------- Print ---------- */

@media print {
  .site-header, .site-nav, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 1rem 0; }
}
