/* =========================================================
   Kenya ChildSafe Homes Initiative — Stylesheet
   Design tokens
   ========================================================= */
:root{
  --color-cream:      #FAF6EF;
  --color-cream-dim:  #F1EADB;
  --color-navy:       #1B3A4B;
  --color-navy-deep:  #122730;
  --color-ink:        #1E2A2E;
  --color-gold:       #E8A33D;
  --color-coral:      #E15B4D;
  --color-sage:       #6B8F71;
  --color-line:       #DCD3C0;
  --color-white:      #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --container: 1120px;

  --shadow-soft: 0 12px 32px -16px rgba(18, 39, 48, 0.28);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--color-navy-deep);
}
p{ margin: 0 0 1em; }
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow{
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-coral);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width: 22px; height: 2px;
  background: var(--color-coral);
  display:inline-block;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 2px solid transparent;
  cursor:pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn:focus-visible{ outline: 3px solid var(--color-gold); outline-offset: 2px; }
.btn-primary{
  background: var(--color-coral);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover{ background:#c94a3d; }
.btn-ghost{
  background: transparent;
  border-color: rgba(250,246,239,0.4);
  color: var(--color-cream);
}
.btn-ghost:hover{ border-color: var(--color-cream); background: rgba(255,255,255,0.08); }
.btn-outline{
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn-outline:hover{ background: var(--color-navy); color: var(--color-cream); }

/* =========================================================
   Signature motif: the rooftop skyline divider
   A repeating row of small house-roof triangles — reused
   as a section divider, a footer band, and a bullet marker.
   ========================================================= */
.roofline{
  width:100%;
  height: 22px;
  display:block;
  background-repeat: repeat-x;
  background-size: 44px 22px;
}
.roofline--gold{
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'><path d='M0 22 L11 4 L22 22 Z' fill='%23E8A33D'/><path d='M22 22 L33 4 L44 22 Z' fill='%23E15B4D'/></svg>");
}
.roofline--navy{
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'><path d='M0 22 L11 4 L22 22 Z' fill='%231B3A4B'/><path d='M22 22 L33 4 L44 22 Z' fill='%236B8F71'/></svg>");
}
.roofline--cream{
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'><path d='M0 22 L11 4 L22 22 Z' fill='%23FAF6EF' fill-opacity='0.9'/><path d='M22 22 L33 4 L44 22 Z' fill='%23FAF6EF' fill-opacity='0.55'/></svg>");
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header{
  position: sticky;
  top:0;
  z-index: 100;
  background: var(--color-navy-deep);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color: var(--color-cream);
}
.brand-mark{ width:38px; height:38px; flex-shrink:0; }
.brand-name{
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.brand-name small{
  display:block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 3px;
}
.nav-links{
  display:flex;
  align-items:center;
  gap: 30px;
  list-style:none;
  margin:0; padding:0;
}
.nav-links a{
  color: rgba(250,246,239,0.82);
  font-weight: 600;
  font-size: 0.94rem;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active{ color: var(--color-cream); }
.nav-links a.active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-4px;
  height:2px;
  background: var(--color-gold);
}
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display:none;
  background:none; border:none;
  color: var(--color-cream);
  font-size: 1.6rem;
  cursor:pointer;
}

@media (max-width: 860px){
  .nav-links{
    position:absolute;
    top:100%; left:0; right:0;
    background: var(--color-navy-deep);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding: 6px 24px 18px;
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links li{ width:100%; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle{ display:block; }
  .nav-cta .btn-ghost{ display:none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position:relative;
  background: linear-gradient(180deg, var(--color-navy-deep) 0%, var(--color-navy) 100%);
  color: var(--color-cream);
  overflow:hidden;
  padding: 88px 0 0;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items:center;
  padding-bottom: 64px;
}
.hero h1{
  color: var(--color-cream);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  margin-bottom: 0.4em;
}
.hero h1 em{
  font-style: normal;
  color: var(--color-gold);
}
.hero-lead{
  font-size: 1.12rem;
  color: rgba(250,246,239,0.86);
  max-width: 46ch;
}
.hero-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top: 30px;
}
.hero-stats{
  display:flex;
  gap: 28px;
  margin-top: 46px;
  flex-wrap:wrap;
}
.hero-stat b{
  display:block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-gold);
}
.hero-stat span{
  font-size: 0.82rem;
  color: rgba(250,246,239,0.7);
}
.hero-art{ position:relative; }
.hero-skyline{ width:100%; height:auto; }

/* =========================================================
   Sections
   ========================================================= */
section{ padding: 84px 0; }
.section-cream{ background: var(--color-cream); }
.section-dim{ background: var(--color-cream-dim); }
.section-navy{ background: var(--color-navy-deep); color: var(--color-cream); }
.section-navy h2{ color: var(--color-cream); }
.section-head{
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p{ color:#4A5457; font-size:1.05rem; }

/* Mission callout */
.mission-callout{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items:center;
}
.mission-quote{
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--color-navy-deep);
  line-height:1.35;
  margin:0;
}
.mission-quote::before{ content:"“"; color: var(--color-coral); }
.mission-quote::after{ content:"”"; color: var(--color-coral); }

/* Programs grid */
.programs-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
.program-card{
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.program-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.program-icon{
  width:48px; height:48px;
  margin-bottom: 18px;
}
.program-card h3{ font-size: 1.15rem; margin-bottom: 0.4em; }
.program-card p{ color:#4A5457; font-size: 0.96rem; margin-bottom: 0.6em; }
.program-card a{
  font-weight:700;
  font-size:0.88rem;
  color: var(--color-coral);
}

/* Values / how-we-work strip */
.values-strip{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 34px;
}
.value-item{ display:flex; gap:16px; align-items:flex-start; }
.value-item .num{
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-gold);
  flex-shrink:0;
}
.value-item h4{ font-size: 1.02rem; margin-bottom: 0.3em; color: var(--color-cream); }
.value-item p{ color: rgba(250,246,239,0.72); font-size:0.92rem; margin:0; }

/* Donate / CTA band */
.cta-band{
  background: var(--color-coral);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 48px;
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items:center;
}
.cta-band h2{ color: var(--color-white); font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.cta-band p{ color: rgba(255,255,255,0.9); }
.mpesa-box{
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.mpesa-box .label{ font-size:0.78rem; text-transform:uppercase; letter-spacing:0.1em; opacity:0.85; }
.mpesa-box .number{ font-family: var(--font-display); font-size: 1.5rem; margin-top:4px; }

/* Team / people */
.people-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 26px;
}
.people-card{ text-align:center; }
.people-avatar{
  width: 96px; height:96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--color-cream-dim);
  border: 2px solid var(--color-gold);
  display:flex; align-items:center; justify-content:center;
}
.people-card h4{ margin-bottom:0.15em; font-size:1rem; }
.people-card span{ font-size:0.85rem; color: var(--color-sage); font-weight:600; }

/* Timeline (about page) */
.timeline{ position:relative; padding-left: 28px; border-left: 2px solid var(--color-line); }
.timeline-item{ position:relative; padding-bottom: 34px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{
  content:"";
  position:absolute;
  left:-35px; top:4px;
  width:14px; height:14px;
  border-radius:50%;
  background: var(--color-coral);
  border: 3px solid var(--color-cream);
  box-shadow: 0 0 0 2px var(--color-coral);
}
.timeline-item h4{ margin-bottom:0.2em; }
.timeline-item .when{ font-size:0.8rem; color: var(--color-sage); font-weight:700; text-transform:uppercase; letter-spacing:0.06em; }

/* Contact page */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-card{
  background: var(--color-white);
  border:1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 34px;
}
.contact-row{ display:flex; gap:16px; margin-bottom:22px; align-items:flex-start; }
.contact-row .ico{ width:22px; height:22px; flex-shrink:0; margin-top:3px; color: var(--color-coral); }
.contact-row h4{ margin:0 0 3px; font-size:0.95rem; }
.contact-row p{ margin:0; color:#4A5457; font-size:0.94rem; }
.form-field{ margin-bottom: 18px; }
.form-field label{ display:block; font-weight:700; font-size:0.86rem; margin-bottom:6px; }
.form-field input, .form-field textarea{
  width:100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-cream);
  color: var(--color-ink);
}
.form-field input:focus, .form-field textarea:focus{
  outline: 2px solid var(--color-coral);
  outline-offset: 1px;
}
.form-note{ font-size:0.82rem; color:#7A8386; margin-top:10px; }

/* Map placeholder */
.map-frame{
  border-radius: var(--radius-md);
  overflow:hidden;
  border: 1px solid var(--color-line);
  height: 320px;
}
.map-frame iframe{ width:100%; height:100%; border:0; }

/* Footer */
.site-footer{
  background: var(--color-navy-deep);
  color: rgba(250,246,239,0.7);
  padding: 56px 0 26px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand{ color: var(--color-cream); }
.footer-brand p{ font-size:0.92rem; margin-top: 14px; max-width: 32ch; }
.footer-col h5{
  color: var(--color-cream);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-col ul{ list-style:none; margin:0; padding:0; }
.footer-col li{ margin-bottom: 10px; }
.footer-col a{ font-size:0.92rem; }
.footer-col a:hover{ color: var(--color-gold); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
}

/* Utility */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in{ opacity:1; transform:none; }
.skip-link{
  position:absolute; left:-999px; top:auto;
  background: var(--color-gold); color:var(--color-navy-deep);
  padding: 10px 16px; z-index: 1000; font-weight:700;
}
.skip-link:focus{ left: 16px; top: 16px; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; max-width: 340px; margin: 0 auto; }
  .mission-callout{ grid-template-columns: 1fr; }
  .cta-band{ grid-template-columns: 1fr; padding: 34px; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  section{ padding: 56px 0; }
  .footer-grid{ grid-template-columns: 1fr; }
  .cta-band{ padding: 26px; }
}
