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

:root {
  --cream:      #F5F0E8;
  --deep:       #1A2F1F;
  --green:      #2D5A3D;
  --gold:       #C8973A;
  --gold-light: #F0D98A;
  --text:       #1A2F1F;
  --muted:      #5A6B5E;
  --white:      #FFFFFF;
  --sand:       #E8E0D0;
  --border:     rgba(45,90,61,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

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

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}
.eyebrow.light { color: var(--gold-light); }
.eyebrow.light::before { background: var(--gold-light); }
.eyebrow.center { justify-content: center; }
.eyebrow.no-line::before { display: none; }

h1.display, h2.display {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--deep);
}
h1.display { font-size: clamp(2.8rem, 5vw, 4.5rem); }
h2.display { font-size: clamp(2rem, 3.5vw, 3rem); }

h2.display em, h1.display em { font-style: italic; color: var(--green); }
h2.display.light, h1.display.light { color: var(--cream); }
h2.display.light em { color: var(--gold-light); }

.lead {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
}
.lead.light { color: rgba(245,240,232,0.65); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.22s;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary { background: var(--deep); color: var(--gold-light); }
.btn-primary:hover { background: var(--green); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--deep); border: 1.5px solid var(--deep); }
.btn-outline:hover { background: var(--deep); color: var(--cream); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--deep); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--cream); border: 1.5px solid rgba(245,240,232,0.4); }
.btn-outline-light:hover { background: rgba(245,240,232,0.1); }

/* ── NAV ── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(245,240,232,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.site-nav.scrolled { box-shadow: 0 4px 30px rgba(26,47,31,0.08); }

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }

.nav-links { display: flex; gap: 2.25rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--deep); }
.nav-links a.active { border-bottom: 1.5px solid var(--gold); padding-bottom: 1px; }

.nav-donate {
  background: var(--deep) !important;
  color: var(--gold-light) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 40px;
  border-bottom: none !important;
}
.nav-donate:hover { background: var(--green) !important; }

.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--deep); margin: 5px 0; transition: all 0.3s; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 140px 4rem 5rem;
  background: var(--deep);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://humanitymission.org/wp-content/uploads/2020/07/img3.png') center/cover no-repeat;
  opacity: 0.08;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 680px; }
.page-hero .breadcrumb {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.4);
  margin-bottom: 1.25rem;
  letter-spacing: 0.06em;
}
.page-hero .breadcrumb a { color: var(--gold); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: var(--gold-light); }

/* ── FOOTER ── */
footer.site-footer {
  background: var(--deep);
  padding: 4.5rem 4rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245,240,232,0.08);
  margin-bottom: 2rem;
}
.footer-brand-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.footer-brand-logo span { color: var(--gold); }
.footer-brand p {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(245,240,232,0.45);
  line-height: 1.8;
  max-width: 260px;
  margin-bottom: 1.25rem;
}
.footer-501 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(200,151,58,0.12);
  border: 1px solid rgba(200,151,58,0.28);
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  font-size: 0.73rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  font-size: 0.86rem;
  color: rgba(245,240,232,0.45);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
}
.footer-col a:hover { color: rgba(245,240,232,0.85); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p, .footer-bottom a {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.28);
  text-decoration: none;
  font-weight: 300;
}
.footer-bottom a:hover { color: rgba(245,240,232,0.55); }
.footer-bottom-links { display: flex; gap: 1.5rem; }

/* ── MISSION STRIP ── */
.mission-strip {
  background: var(--deep);
  padding: 1.6rem 4rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.strip-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  font-weight: 500;
}
.strip-divider { width: 1px; height: 28px; background: rgba(200,151,58,0.25); flex-shrink: 0; }
.strip-text { font-size: 0.86rem; color: rgba(245,240,232,0.6); font-weight: 300; }

/* ── SECTION LAYOUT ── */
section { padding: 6rem 4rem; }
.container { max-width: 1160px; margin: 0 auto; }
.section-center { text-align: center; max-width: 640px; margin: 0 auto 4rem; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(26,47,31,0.08); }

.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-img-placeholder { width: 100%; height: 220px; background: var(--green); position: relative; overflow: hidden; }
.card-body { padding: 1.75rem; }
.card-body h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--deep); margin-bottom: 0.65rem; letter-spacing: -0.01em; }
.card-body p { font-size: 0.9rem; font-weight: 300; line-height: 1.75; color: var(--muted); }

/* ── DARK CARDS (programs) ── */
.dark-card {
  background: rgba(245,240,232,0.05);
  border: 1px solid rgba(200,151,58,0.18);
  border-radius: 20px;
  padding: 2.25rem 1.75rem;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.dark-card:hover { background: rgba(200,151,58,0.1); border-color: rgba(200,151,58,0.45); transform: translateY(-4px); }
.dark-card-icon {
  width: 46px; height: 46px;
  background: var(--gold);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
}
.dark-card-icon svg { width: 21px; height: 21px; stroke: var(--deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dark-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--cream); margin-bottom: 0.65rem; }
.dark-card p { font-size: 0.88rem; font-weight: 300; line-height: 1.75; color: rgba(245,240,232,0.58); }
.dark-card-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1.25rem; font-size: 0.82rem; font-weight: 500; color: var(--gold); text-decoration: none; letter-spacing: 0.04em; transition: gap 0.2s; }
.dark-card-link:hover { gap: 0.6rem; }
.dark-card-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── FORM ── */
.form-block { background: var(--white); border-radius: 24px; padding: 2.5rem; border: 1px solid var(--border); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.85rem 1.1rem;
  border: 1px solid rgba(45,90,61,0.15);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  color: var(--deep);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { width: 100%; background: var(--deep); color: var(--gold-light); border: none; padding: 1rem; border-radius: 50px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.05em; cursor: pointer; transition: background 0.2s; }
.form-submit:hover { background: var(--green); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ── */
@media (max-width: 900px) {
  nav.site-nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 62px; left: 0; right: 0; background: rgba(245,240,232,0.97); padding: 2rem 1.5rem; gap: 1.25rem; border-bottom: 1px solid var(--border); z-index: 199; }
  .nav-hamburger { display: block; }
  section { padding: 4rem 1.5rem; }
  .page-hero { padding: 110px 1.5rem 3.5rem; }
  .mission-strip { padding: 1.5rem; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}
