/* ===========================
   HIF - Hope International Foundation
   Prototype stylesheet
=========================== */

:root {
  --navy: #1c3a5c;
  --navy-dark: #102538;
  --green: #3f7d4a;
  --green-light: #5fa86a;
  --bronze: #ad7a3c;
  --bronze-light: #c79a5e;
  --cream: #f7f5f0;
  --white: #ffffff;
  --text: #232a33;
  --text-muted: #5b6470;
  --border: #e5e1d8;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1180px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(28, 58, 92, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }

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

ul { list-style: none; }

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

section { padding: 80px 0; }

.section-tight { padding: 56px 0; }

.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bronze);
  margin-bottom: 14px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 { font-size: 2.1rem; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.btn-primary { background: var(--bronze); color: var(--white); }
.btn-primary:hover { background: var(--bronze-light); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-donate { background: var(--green); color: var(--white); padding: 10px 22px; font-size: 0.9rem; }
.btn-donate:hover { background: var(--green-light); }
.btn-block { width: 100%; text-align: center; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 24px;
}

.brand-logo { height: 56px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--bronze);
}

.header-inner .btn-donate { flex-shrink: 0; margin-left: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  background: var(--navy-dark);
  color: var(--white);
  padding: 130px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 16s infinite;
}

.hero-bg:nth-of-type(1) { animation-delay: 0s; }
.hero-bg:nth-of-type(2) { animation-delay: 8s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  46%  { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(16,37,56,0.92) 5%, rgba(28,58,92,0.82) 50%, rgba(63,125,74,0.72) 130%);
}

.hero-inner { max-width: 720px; margin: -28px 0 0; position: relative; z-index: 2; }

.hero h1 { color: var(--white); font-size: 2.6rem; margin-bottom: 20px; }

.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.page-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
}
.page-banner h1 { color: var(--white); font-size: 2.3rem; margin-bottom: 10px; }
.page-banner p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }

/* ===== Pillars ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.pillar-card:hover { transform: translateY(-6px); }

.pillar-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 18px;
  color: var(--white);
}

.pillar-icon.health { background: var(--navy); }
.pillar-icon.opportunity { background: var(--green); }
.pillar-icon.poverty { background: var(--bronze); }
.pillar-icon.education { background: var(--bronze-light); }

.pillar-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pillar-card p { color: var(--text-muted); font-size: 0.95rem; }
.pillar-card a.more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.88rem; color: var(--navy); }

/* ===== Stats ===== */
.stats-overlap {
  position: relative;
  z-index: 3;
  margin-top: -90px;
  padding: 0 0 30px;
}
.stats-overlap + section { padding-top: 30px; }
.stats-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 25px 60px rgba(16, 37, 56, 0.22);
  padding: 42px 30px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-grid > div {
  border-left: 1px solid var(--border);
}
.stats-grid > div:first-child { border-left: none; }
.stat-number {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--bronze);
}
.stat-label { color: var(--text-muted); font-size: 0.95rem; margin-top: 6px; }

/* ===== Highlights / Cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.highlight-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.highlight-media {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--white);
}
.highlight-media.health { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); }
.highlight-media.opportunity { background: linear-gradient(135deg, var(--green), var(--green-light)); }
.highlight-media.education { background: linear-gradient(135deg, var(--bronze), var(--bronze-light)); }

.highlight-body { padding: 22px; }
.highlight-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.highlight-body p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 14px; }
.highlight-body a { font-weight: 600; font-size: 0.88rem; color: var(--navy); }

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--bronze);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 26px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== About page ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.fact-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.fact-box dt { font-weight: 700; color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 18px; }
.fact-box dt:first-child { margin-top: 0; }
.fact-box dd { color: var(--text-muted); margin-top: 4px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-item { text-align: center; }
.value-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--bronze-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.4rem;
}
.value-item h4 { font-size: 1rem; margin-bottom: 6px; }
.value-item p { font-size: 0.88rem; color: var(--text-muted); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card { text-align: center; }
.avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.team-card h4 { margin-bottom: 4px; }
.team-card .role { color: var(--bronze); font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; }
.team-card p.bio { color: var(--text-muted); font-size: 0.9rem; }

/* ===== Programs page ===== */
.program-section { border-bottom: 1px solid var(--border); }
.program-section:last-child { border-bottom: none; }

.program-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 50px;
  align-items: start;
}

.program-head .pillar-icon { margin: 0 0 18px; }
.program-head h2 { font-size: 1.7rem; margin-bottom: 12px; }
.program-head p { color: var(--text-muted); }

.initiative-list { display: grid; gap: 14px; }
.initiative-item {
  display: flex;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.initiative-bullet {
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 7px;
}
.initiative-item h4 { font-size: 0.98rem; margin-bottom: 4px; }
.initiative-item p { font-size: 0.88rem; color: var(--text-muted); }

/* ===== Get Involved ===== */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.involve-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.involve-card h3 { margin-bottom: 10px; }
.involve-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 20px; }

.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 10px; font-style: italic; }

form .form-row { margin-bottom: 16px; }
form label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy); }
form input, form select, form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--green-light); border-color: var(--green); }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
}
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item > div { min-width: 0; }
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: var(--text-muted); font-size: 0.92rem; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 30px;
}
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.85); padding-top: 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-brand-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-logo { height: 52px; width: auto; }
.footer-brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--white); line-height: 1.3; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: var(--bronze-light); }
.footer-contact li { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .pillars-grid, .stats-grid, .cards-grid, .values-grid, .team-grid, .involve-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .program-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid > div { border-left: none; }
  .stats-grid > div { border-top: 1px solid var(--border); padding-top: 16px; }
  .stats-grid > div:nth-child(-n+2) { border-top: none; padding-top: 0; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .header-inner .btn-donate { display: none; }
  .hero h1 { font-size: 2rem; }
  .pillars-grid, .cards-grid, .values-grid, .team-grid, .involve-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  section { padding: 56px 0; }
}
