/* Kadogo Gives — brand: black, Kadogo yellow, warm white */

:root {
  --black: #111111;
  --ink: #1C1C1C;
  --muted: #4A4A4A;
  --yellow: #F8CF40; /* sampled from the Kadogo logo */
  --yellow-soft: #FFF4CF;
  --cream: #FAF8F2;
  --line: #E4E0D4;
  --white: #FFFFFF;
  --font-head: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; }
a { color: var(--black); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--black); padding: 12px 16px; font-weight: 700; border-radius: 6px; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 96px 32px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 800; color: var(--black); letter-spacing: -0.02em; }
h1 { margin: 0 0 24px; font-size: clamp(40px, 6.4vw, 76px); line-height: 1.04; max-width: 900px; }
h2 { margin: 0 0 16px; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; }
h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; }

.eyebrow { margin: 0 0 12px; font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lede { margin: 0 0 48px; font-size: 20px; color: var(--muted); max-width: 720px; }

/* The three-diamond mark, drawn in CSS so it scales and recolors. */
.diamonds { display: inline-flex; gap: 6px; margin-bottom: 20px; }
.diamonds i { width: 16px; height: 16px; background: var(--yellow); transform: rotate(45deg); border-radius: 2px; }

.btn { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 17px; text-decoration: none; padding: 14px 28px; border-radius: 999px; border: 2px solid transparent; }
.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--yellow:hover { background: #FFDA6B; color: var(--black); }
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: #333; color: var(--white); }
.btn--outline { border-color: currentColor; color: inherit; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.placeholder { background: var(--yellow-soft); outline: 1px dashed #C99A00; padding: 0 4px; color: var(--black); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: var(--wrap); margin: 0 auto; padding: 14px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { display: block; height: 40px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; }
.nav a:not(.btn) { font-family: var(--font-head); font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink); padding: 8px 0; }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.nav .btn { padding: 10px 22px; font-size: 15px; }
.nav-toggle { display: none; background: var(--black); color: var(--white); border: 0; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: 15px; padding: 10px 20px; cursor: pointer; }

@media (max-width: 1100px) {
  .js .nav-toggle { display: inline-block; }
  .js .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; padding-bottom: 12px; }
  .js .nav.is-open { display: flex; }
}

/* Sections */
.bg-cream { background: var(--cream); }
.bg-black { background: var(--black); color: var(--white); }
.bg-black h2, .bg-black h3 { color: var(--white); }
.bg-black .lede, .bg-black .eyebrow { color: #C9C9C9; }
.bg-yellow { background: var(--yellow); }
.bg-yellow .lede, .bg-yellow .eyebrow { color: var(--ink); }

.hero .wrap { padding-top: 104px; padding-bottom: 112px; }
.hero__text { margin: 0 0 36px; font-size: 21px; color: var(--muted); max-width: 760px; }
.hero h1 mark { background: linear-gradient(transparent 62%, var(--yellow) 62%); color: inherit; padding: 0 4px; }

/* Goal */
.goal-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.goal { border-top: 4px solid var(--yellow); padding-top: 18px; }
.goal__num { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(44px, 6vw, 68px); line-height: 1; color: var(--yellow); }
.goal__label { margin: 10px 0 0; font-size: 17px; color: #E6E6E6; }
.goal-why { margin-top: 56px; max-width: 820px; border-left: 6px solid var(--yellow); padding-left: 28px; }
.goal-why h3 { font-size: 28px; margin-bottom: 12px; }
.goal-why p { margin: 0 0 16px; font-size: 19px; color: #E6E6E6; }
.goal-why .btn { margin-top: 8px; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { margin: 0; font-size: 17px; color: var(--muted); }
.card__num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 16px; background: var(--yellow); border-radius: 10px; font-family: var(--font-head); font-weight: 800; font-size: 17px; }

/* Platform */
.steps { list-style: none; margin: 0 0 56px; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step { background: var(--cream); border-radius: var(--radius); padding: 28px; }
.step p { margin: 0; font-size: 17px; color: var(--muted); }
.tracks-title { font-size: 28px; margin: 0 0 20px; }
.track { border-top: 6px solid var(--yellow); }
.track .eyebrow { margin-bottom: 6px; }
.mindset { margin-top: 56px; background: var(--black); color: var(--white); border-radius: var(--radius); padding: 36px; }
.mindset .eyebrow { color: var(--yellow); }
.mindset__lead { margin: 0 0 24px; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.mindset h3 { color: var(--white); }
.mindset p { margin: 0; color: #D6D6D6; font-size: 17px; }
.mindset .grid { gap: 28px; }

/* Focus areas */
.causes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cause { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.cause p { margin: 0 0 12px; font-size: 16px; color: var(--muted); }
.cause .cause__with { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--black); }

/* Leadership: org chart and people come from shared/css/family.css */
.leadership { margin-bottom: 40px; }

.trust { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); background: var(--cream); border-radius: var(--radius); padding: 32px; }
.trust__stats { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.trust__stats li { font-size: 15px; color: var(--muted); }
.trust__stats strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 32px; color: var(--black); line-height: 1.1; }
.trust__with { margin: 0; font-size: 15px; color: var(--muted); }
.trust__box { background: var(--white); border: 2px solid var(--black); border-radius: var(--radius); padding: 24px 28px; }
.trust__box ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; }

/* Partner chips */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { background: var(--white); border: 2px solid var(--black); border-radius: 999px; padding: 10px 20px; font-family: var(--font-head); font-weight: 700; font-size: 16px; }

/* Cities */
.cities { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.cities li { background: var(--white); border-radius: var(--radius); padding: 22px 24px; border-left: 6px solid var(--black); }
.cities strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.cities span { font-size: 16px; color: var(--muted); }

/* Program feature */
.program { display: grid; gap: 32px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.program + .program { margin-top: 20px; }
.program img { height: 72px; width: auto; }
.program p { margin: 0 0 20px; color: var(--muted); }
.program .tag { display: inline-block; margin-bottom: 10px; background: var(--yellow-soft); border-radius: 999px; padding: 2px 12px; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

/* Split */
.split { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.contact-box { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 32px; }
.contact-box p { margin: 0 0 10px; color: var(--ink); }
.contact-box p:last-child { margin: 0; }

/* Footer */
.site-footer { background: var(--black); color: #CFCFCF; font-size: 15px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--white); }

@media (max-width: 640px) {
  .wrap { padding: 64px 16px; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  .site-header__inner { padding: 12px 16px; }
  .logo img { height: 32px; }
  .program { padding: 24px; }
}

/* ---------- Kadogo Gives family components (shared/css/family.css) in Kadogo colors ---------- */

:root {
  --fam-accent: var(--yellow);
  --fam-ink: var(--black);
  --fam-muted: var(--muted);
  --fam-surface: var(--white);
  --fam-tint: var(--cream);
  --fam-line: var(--line);
  --fam-dark: var(--black);
  --fam-head: var(--font-head);
  --fam-radius: var(--radius);
}

/* Hero with shared photo */
.hero__grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
.hero__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% center; border-radius: var(--radius); }
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.15fr 1fr; }
  .hero__img { aspect-ratio: 4 / 5; }
}

/* Shared event photos */
.photos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.photos img { display: block; width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); }

/* News */
.fam-news-section { background: var(--white); }
.fam-news-btn, .fam-news-page .btn { background: var(--black); color: var(--white); }
.fam-news-btn:hover { background: #333; color: var(--white); }
.fam-news-page h1 { margin-bottom: 16px; }
