/* ═══════════════════════════════════════════════════════════
   Amaka Nweke Foundation — Shared Stylesheet
   amakanwekefoundation.org
═══════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1a4fa0;
  --blue-dark:  #123a78;
  --blue-light: #e8eef8;
  --red:        #8b1c24;
  --red-light:  #f9eced;
  --white:      #ffffff;
  --off-white:  #f7f8fa;
  --gray:       #6b7280;
  --gray-light: #e5e7eb;
  --text:       #1f2937;
  --radius:     8px;
  --shadow:     0 2px 16px rgba(0,0,0,.08);
  --max-w:      1100px;
  --section-pad: 80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }
p  { color: var(--gray); }

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 640px;
  margin-top: 12px;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin-top: 14px;
}

.section-header { margin-bottom: 48px; }

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary  { background: var(--blue); color: var(--white); }
.btn-primary:hover  { background: var(--blue-dark); }
.btn-outline  { border: 2px solid var(--blue); color: var(--blue); }
.btn-outline:hover  { background: var(--blue); color: var(--white); }
.btn-white    { background: var(--white); color: var(--blue); font-weight: 700; }
.btn-white:hover    { background: var(--blue-light); }
.btn-ghost    { border: 2px solid rgba(255,255,255,.5); color: var(--white); }
.btn-ghost:hover    { background: rgba(255,255,255,.1); }
.btn-red      { background: var(--red); color: var(--white); }
.btn-red:hover      { background: #6e151c; }

/* ─── NAV ───────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 14px 0;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 400;
  color: var(--red);
  letter-spacing: .08em;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ─── PAGE HERO (inner pages) ───────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #2563c9 100%);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-tag { color: rgba(255,255,255,.7); }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 580px; }

/* ─── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 6px; }

/* ─── SECTION ───────────────────────────────────────────────── */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--off-white); }
.section-blue { background: var(--blue); color: var(--white); }
.section-blue .section-tag { color: rgba(255,255,255,.7); }
.section-blue h2 { color: var(--white); }
.section-blue .divider { background: rgba(255,255,255,.4); }
.section-blue p { color: rgba(255,255,255,.75); }

/* ─── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--blue);
}
.card.card-red { border-top-color: var(--red); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.icon-blue { background: var(--blue-light); }
.icon-red  { background: var(--red-light); }

/* ─── STATS BAR ─────────────────────────────────────────────── */
.stats-bar {
  background: var(--red);
  color: var(--white);
  padding: 28px 0;
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 1.8rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
.stat-item span {
  font-size: .8rem;
  opacity: .85;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── OBJECTIVE ITEMS ───────────────────────────────────────── */
.objectives-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.obj-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  padding: 18px 20px;
  border-radius: var(--radius);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.obj-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.obj-item p { color: var(--text); font-size: .9rem; line-height: 1.55; }

/* ─── PROGRAM CARDS ─────────────────────────────────────────── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.program-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.program-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.program-card-top {
  height: 6px;
  background: var(--blue);
}
.program-card-top.red { background: var(--red); }
.program-card-body { padding: 24px; }
.program-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.program-card h3 { color: var(--blue); }
.program-card p  { margin-top: 8px; font-size: .9rem; }

/* ─── IMPACT GRID ───────────────────────────────────────────── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.impact-item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.impact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.impact-item h4 { color: var(--white); font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 600; margin-bottom: 4px; }
.impact-item p  { color: rgba(255,255,255,.7); font-size: .85rem; }

/* ─── ACHIEVEMENT LIST ──────────────────────────────────────── */
.achievement-list { list-style: none; display: grid; gap: 10px; }
.achievement-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--text);
}
.achievement-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ─── AWARDS TABLE ──────────────────────────────────────────── */
.awards-year { margin-bottom: 36px; }
.awards-year h3 {
  color: var(--blue);
  font-size: 1.1rem;
  border-left: 4px solid var(--red);
  padding-left: 12px;
  margin-bottom: 16px;
}
.award-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: .9rem;
}
.award-item:last-child { border-bottom: none; }
.award-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ─── GALLERY ────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-light);
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: var(--white);
  font-size: .8rem;
  padding: 20px 12px 10px;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ─── DONATE / CONTACT ──────────────────────────────────────── */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.donate-box, .contact-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.donate-box { border-top: 3px solid var(--red); }
.contact-box { border-top: 3px solid var(--blue); }
.donate-box h3, .contact-box h3 { color: var(--blue); font-size: 1.3rem; margin-bottom: 20px; }

.bank-detail {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: .9rem;
}
.bank-detail:last-child { border-bottom: none; }
.bank-detail .label { color: var(--gray); }
.bank-detail .value { font-weight: 600; color: var(--text); }

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.ci-icon {
  width: 36px;
  height: 36px;
  background: var(--blue-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.ci-text .label { font-size: .75rem; color: var(--gray); }
.ci-text .value { font-size: .9rem; font-weight: 500; color: var(--text); }

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.6);
  padding: 48px 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand img { width: 60px; margin-bottom: 14px; }
.footer-brand p  { font-size: .85rem; max-width: 280px; }
.footer-reg      { font-size: .75rem; opacity: .6; margin-top: 10px; }
.footer-col h4 {
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: .85rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}
.footer-tagline { color: rgba(255,255,255,.35); font-style: italic; }

/* ─── HAMBURGER ─────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section-pad: 56px; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .objectives-grid      { grid-template-columns: 1fr; }
  .programs-grid        { grid-template-columns: 1fr 1fr; }
  .impact-grid          { grid-template-columns: 1fr; }
  .donate-grid          { grid-template-columns: 1fr; }
  .gallery-grid         { grid-template-columns: 1fr 1fr; }
  .footer-top           { grid-template-columns: 1fr 1fr; }

  /* Mobile nav */
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--gray-light);
    flex-direction: column;
    padding: 8px 24px 16px;
    gap: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    z-index: 50;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--gray-light); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: none !important;
  }
}
@media (max-width: 600px) {
  .programs-grid { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: 1fr; }
  .footer-top    { grid-template-columns: 1fr; }
}
