/* ============================================================
   Jilani Foundation — stylesheet
   Brand: Dark Blue (--navy) + Gold contrast (--gold)
   ============================================================ */

:root{
  --bg: oklch(99% 0.004 250);
  --bg-warm: oklch(95.5% 0.02 258);
  --ink: oklch(24% 0.08 258);
  --ink-soft: oklch(42% 0.05 258);
  --line: oklch(87% 0.015 258);
  --navy: oklch(24% 0.08 258);
  --navy-dark: oklch(16% 0.06 258);
  --gold: oklch(74% 0.13 82);
  --gold-dark: oklch(60% 0.13 78);
  --card: oklch(99% 0.003 250);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

h1, h2, h3{
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; }

a{ color: var(--navy-dark); text-decoration: none; }
a:hover{ color: var(--navy); }

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

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  border-radius: 3px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary{ background: var(--navy); color: oklch(99% 0.005 60); }
.btn-primary:hover{ background: var(--navy-dark); color: oklch(99% 0.005 60); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover{ background: var(--ink); color: var(--bg); }

.eyebrow{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header / Nav */
.site-header{
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}
.brand{ display: flex; align-items: center; gap: 10px; }
.brand-name{ font-family: 'Newsreader', serif; font-size: 21px; font-weight: 600; }
.nav-links{ display: flex; align-items: center; gap: 36px; }
.nav-links a{ color: var(--ink); font-size: 15px; font-weight: 500; }
.nav-toggle{ display: none; }

/* Hero */
.hero{
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner{
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  max-width: 760px;
}
.hero-inner h1{ font-size: 56px; line-height: 1.08; color: var(--ink); }
.hero-inner p.lede{ font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 620px; }
.hero-ctas{ display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }

/* Mission strip */
.mission-strip{ background: var(--ink); color: var(--bg); }
.mission-strip .container{ padding-top: 44px; padding-bottom: 44px; }
.mission-strip p{
  font-family: 'Newsreader', serif;
  font-size: 26px;
  font-style: italic;
  line-height: 1.5;
  max-width: 880px;
  color: oklch(96% 0.01 70);
}
.mission-strip .quote-mark{ color: var(--gold); }

/* Programs */
.programs{ padding-top: 96px; padding-bottom: 96px; }
.section-head{ display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin-bottom: 56px; }
.section-head h2{ font-size: 38px; color: var(--ink); }
.program-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.program-card{
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.program-card h3{ font-size: 21px; color: var(--ink); }
.program-card p{ font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }
.program-card svg{ width: 34px; height: 34px; }

/* Impact */
.impact{ background: var(--bg-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.impact .container{ padding-top: 80px; padding-bottom: 80px; }
.stats-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 28px; }
.stat-number{ font-family: 'Newsreader', serif; font-size: 48px; color: var(--navy-dark); }
.stat-label{ font-size: 15px; color: var(--ink-soft); margin-top: 6px; }
.impact-note{ font-size: 13px; color: var(--ink-soft); margin-top: 20px; }

/* Get involved / donate */
.involved{ padding-top: 96px; padding-bottom: 96px; }
.involved-grid{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.involved-copy{ display: flex; flex-direction: column; gap: 18px; }
.involved-copy h2{ font-size: 36px; color: var(--ink); line-height: 1.15; }
.involved-copy p{ font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 480px; }

.donate-card{
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 36px;
}
.donate-card h3{ font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.amount-row{ display: flex; gap: 10px; flex-wrap: wrap; }
.amount-row label{
  flex: 1;
  min-width: 70px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.amount-row input[type="radio"]{ position: absolute; opacity: 0; pointer-events: none; }
.amount-row input[type="radio"]:checked + label{
  border-color: var(--navy);
  color: var(--navy);
  background: var(--bg-warm);
  font-weight: 600;
}
.donate-card .btn{ width: 100%; }

/* Contact form */
.contact-form{ display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
}
.contact-form input:focus,
.contact-form textarea:focus{ outline: none; border-color: var(--navy); }
.contact-form textarea{ resize: vertical; min-height: 100px; }
.form-note{ font-size: 13px; color: var(--ink-soft); }
.form-status{ font-size: 14px; padding: 10px 12px; border-radius: 3px; display: none; }
.form-status.success{ display: block; background: oklch(92% 0.05 148); color: oklch(30% 0.06 148); }
.form-status.error{ display: block; background: oklch(92% 0.05 30); color: oklch(35% 0.1 30); }

/* Footer */
.site-footer{ background: var(--ink); color: oklch(90% 0.01 70); }
.site-footer .container{ padding-top: 64px; padding-bottom: 36px; }
.footer-grid{ display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-brand{ display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand-name{ color: oklch(97% 0.01 70); }
.footer-brand p{ font-size: 14px; line-height: 1.6; max-width: 280px; color: oklch(78% 0.01 70); }
.footer-col{ display: flex; flex-direction: column; gap: 10px; }
.footer-col .col-title{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(78% 0.01 70);
}
.footer-col a{ font-size: 14px; color: oklch(90% 0.01 70); }
.footer-col span{ font-size: 14px; color: oklch(78% 0.01 70); }
.footer-bottom{
  border-top: 1px solid oklch(35% 0.01 70);
  margin-top: 48px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: oklch(65% 0.01 70);
}

/* Page hero (subpages) */
.page-hero{
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .container{ padding-top: 72px; padding-bottom: 56px; max-width: 820px; }
.page-hero h1{ font-size: 42px; line-height: 1.12; color: var(--ink); margin-top: 14px; }
.page-hero p.lede{ font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin-top: 16px; max-width: 640px; }

/* Card link */
.card-link{ font-size: 14px; font-weight: 600; color: var(--navy); margin-top: 4px; }
.card-link:hover{ color: var(--navy-dark); }

/* About teaser (home) */
.about-teaser{ padding-top: 88px; padding-bottom: 88px; background: var(--bg-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-teaser-grid{ max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.about-teaser h2{ font-size: 32px; color: var(--ink); margin-top: 10px; }
.about-teaser p{ font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin-top: 10px; }

/* CTA band */
.cta-band{ background: var(--ink); }
.cta-band-inner{ padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-band h2{ font-size: 30px; color: oklch(97% 0.01 70); max-width: 560px; }
.cta-band p{ font-size: 16px; color: oklch(80% 0.01 70); }
.btn-on-navy{ background: var(--gold); color: var(--navy-dark); margin-top: 8px; }
.btn-on-navy:hover{ background: var(--gold-dark); color: oklch(99% 0.005 60); }

/* Generic content section */
.content-section{ padding-top: 88px; padding-bottom: 88px; }
.content-section.alt{ background: var(--bg-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.content-section h2{ font-size: 32px; color: var(--ink); }
.content-section .section-head{ margin-bottom: 44px; }
.prose{ font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 720px; }
.prose + .prose{ margin-top: 16px; }

/* Values grid */
.values-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.value-card{ display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
.value-card h3{ font-size: 18px; color: var(--ink); }
.value-card p{ font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

/* Timeline / facts */
.facts-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; }
.fact-row{ display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact-row dt{ font-size: 14px; font-weight: 600; color: var(--ink); }
.fact-row dd{ margin: 0; font-size: 14px; color: var(--ink-soft); text-align: right; }

/* Leadership */
.leadership-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.leader-card{ display: flex; flex-direction: column; gap: 4px; }
.leader-avatar{
  width: 100%; aspect-ratio: 1; border-radius: 4px; background: var(--bg-warm);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 13px; margin-bottom: 12px;
}
.leader-card h3{ font-size: 17px; color: var(--ink); }
.leader-card .role{ font-size: 13.5px; color: var(--gold-dark); font-weight: 600; }
.leader-card p{ font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin-top: 4px; }

/* Program detail blocks */
.program-detail{ display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; padding-top: 64px; padding-bottom: 64px; }
.program-detail:not(:last-child){ border-bottom: 1px solid var(--line); }
.program-detail-icon{
  width: 56px; height: 56px; border-radius: 4px; background: var(--card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.program-detail h2{ font-size: 28px; color: var(--ink); }
.program-detail .prose{ margin-top: 14px; }
.program-list{ list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.program-list li{ font-size: 15px; line-height: 1.6; color: var(--ink-soft); padding-left: 22px; position: relative; }
.program-list li::before{
  content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}

/* Involved options */
.involved-options{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.option-card{ display: flex; flex-direction: column; gap: 12px; padding: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
.option-card h3{ font-size: 20px; color: var(--ink); }
.option-card p{ font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); flex-grow: 1; }

/* FAQ */
.faq-list{ display: flex; flex-direction: column; gap: 0; max-width: 760px; }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-item summary{
  cursor: pointer; list-style: none; padding: 20px 0; font-size: 16px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{ content: "+"; font-size: 20px; color: var(--gold-dark); flex-shrink: 0; }
.faq-item[open] summary::after{ content: "\2212"; }
.faq-item p{ font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); padding-bottom: 20px; max-width: 640px; }

/* Responsive */
@media (max-width: 900px){
  .hero-inner h1{ font-size: 42px; }
  .program-grid{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: 1fr; gap: 20px; }
  .involved-grid{ grid-template-columns: 1fr; gap: 40px; }
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
  .values-grid{ grid-template-columns: 1fr; }
  .leadership-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .involved-options{ grid-template-columns: 1fr; }
  .program-detail{ grid-template-columns: 1fr; gap: 20px; }
  .facts-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .container{ padding: 0 20px; }
  .nav-links{
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
  }
  .nav-links.open{ display: flex; }
  .nav-links a{ padding: 10px 0; width: 100%; }
  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .hero-inner h1{ font-size: 34px; }
  .hero-inner p.lede{ font-size: 17px; }
}
