/* ============================================
   Africa Community Development — Global Styles
   africacommunitydevelopment.com
   ============================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Variables ---- */
:root {
  --green-deep:   #1E4D2B;
  --green-mid:    #2E7D45;
  --green-light:  #6DAF7C;
  --green-pale:   #EAF3EC;
  --earth:        #C47C5A;
  --earth-light:  #F0DDD3;
  --gold:         #C89A3A;
  --cream:        #FAF7F2;
  --white:        #FFFFFF;
  --charcoal:     #1E1E1E;
  --gray-dark:    #4A4A4A;
  --gray-mid:     #7A7A7A;
  --gray-light:   #E8E8E8;

  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;

  --max-w:        1200px;
  --radius:       8px;
  --shadow:       0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.12);
  --transition:   0.25s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1.05rem; color: var(--gray-dark); }

.serif { font-family: var(--font-serif); }
.text-green { color: var(--green-mid); }
.text-earth  { color: var(--earth); }
.text-gold   { color: var(--gold); }
.text-center { text-align: center; }

/* ---- Layout ---- */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }

/* ---- Navigation ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-light);
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.2;
}
.nav-logo-text span { display: block; font-size: 0.7rem; font-weight: 400; color: var(--gray-mid); font-family: var(--font-sans); letter-spacing: 0.05em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; flex-wrap: nowrap; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-dark);
  letter-spacing: 0.01em;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-deep); }
.nav-cta {
  background: var(--green-deep);
  color: white !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--green-mid) !important; transform: translateY(-1px); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: var(--transition); }
.nav-mobile { display: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}
.btn-primary { background: var(--green-deep); color: white; }
.btn-primary:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,77,43,0.3); }
.btn-secondary { background: white; color: var(--green-deep); border: 2px solid var(--green-deep); }
.btn-secondary:hover { background: var(--green-pale); transform: translateY(-2px); }
.btn-earth { background: var(--earth); color: white; }
.btn-earth:hover { background: #b36d4b; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(196,124,90,0.3); }
.btn-white { background: white; color: var(--green-deep); }
.btn-white:hover { background: var(--green-pale); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: white; border: 2px solid white; }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-lg { padding: 18px 42px; font-size: 1.05rem; }

/* ---- Cards ---- */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 28px; }

/* ---- Section Headers ---- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
}
.section-header { margin-bottom: 20px; }
.section-header p { font-size: 1.1rem; max-width: 640px; margin-top: 12px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 12px auto 0; }

/* ---- Divider ---- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--green-mid);
  border-radius: 2px;
  margin: 16px 0;
}
.divider.centered { margin: 16px auto; }
.divider.earth { background: var(--earth); }
.divider.gold { background: var(--gold); }

/* ---- Backgrounds ---- */
.bg-cream    { background: var(--cream); }
.bg-white    { background: white; }
.bg-green    { background: var(--green-deep); color: white; }
.bg-green p  { color: rgba(255,255,255,0.85); }
.bg-pale     { background: var(--green-pale); }
.bg-earth    { background: var(--earth-light); }

/* ---- Stats Grid ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.stat-item { text-align: center; padding: 24px 16px; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--gray-mid); margin-top: 6px; font-weight: 500; }

/* ---- Program Cards ---- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.program-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.program-card-icon {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.program-card-body { padding: 24px; }
.program-card-body h3 { font-size: 1.25rem; margin-bottom: 10px; }
.program-card-body p { font-size: 0.95rem; }
.program-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* ---- Quote Block ---- */
.quote-block {
  border-left: 4px solid var(--green-mid);
  padding: 20px 28px;
  background: var(--green-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote-block p { font-family: var(--font-serif); font-size: 1.2rem; color: var(--green-deep); font-style: italic; }
.quote-block cite { font-size: 0.85rem; color: var(--gray-mid); margin-top: 8px; display: block; }

/* ---- Footer ---- */
footer {
  background: var(--green-deep);
  color: white;
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }
.footer-col h5 { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.75); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--green-mid); }

/* ---- Utility ---- */
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.gap-y-8 > * + * { margin-top: 32px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile.open {
    display: block;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--gray-light);
    padding: 20px 24px;
  }
  .nav-mobile ul { list-style: none; }
  .nav-mobile ul li { padding: 12px 0; border-bottom: 1px solid var(--gray-light); }
  .nav-mobile ul li a { font-size: 1rem; font-weight: 500; color: var(--charcoal); }
  .section { padding: 60px 0; }
  .section-lg { padding: 70px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  h1 { font-size: 2.2rem; }
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
