/* =========================================
   Liberty Education Fund — Main Stylesheet
   ========================================= */

:root {
  --navy:    #1a3a5c;
  --navy-dk: #0f2238;
  --gold:    #c9922a;
  --gold-lt: #e6a835;
  --white:   #ffffff;
  --off-white: #f7f9fc;
  --text:    #2c3e50;
  --text-lt: #5d6d7e;
  --border:  #dde3ea;
  --shadow:  0 4px 20px rgba(0,0,0,0.08);
  --radius:  10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

/* ── NAVBAR ───────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--white);
}
.logo-icon { font-size: 1.4rem; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85); font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-lt); }
.btn-nav {
  background: var(--gold); color: var(--white) !important;
  padding: 8px 20px; border-radius: 6px; font-weight: 600 !important;
  transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--gold-lt) !important; }

/* ── HERO ─────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 60%, #1e4d7a 100%);
  color: var(--white);
  padding: 80px 24px 60px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 40px;
}
.hero-inner { max-width: 740px; }
.hero-badge {
  display: inline-block;
  background: rgba(201,146,42,0.2); border: 1px solid var(--gold);
  color: var(--gold-lt); padding: 6px 16px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,0.85);
  max-width: 600px; margin: 0 auto 28px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note {
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  margin-top: 16px;
}
.hero-visual {
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;
}
.stat-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 20px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 140px;
}
.stat-num {
  font-size: 2rem; font-weight: 800; color: var(--gold-lt);
}
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.65); text-align: center; }

/* ── BUTTONS ──────────────────────────────── */
.btn-primary {
  background: var(--gold); color: var(--white);
  padding: 14px 28px; border-radius: 8px;
  font-weight: 700; font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-primary.large { padding: 16px 36px; font-size: 1.1rem; }
.btn-secondary {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  padding: 14px 28px; border-radius: 8px;
  font-weight: 600; font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ── SECTIONS ─────────────────────────────── */
.section-light { background: var(--off-white); padding: 72px 24px; }
.section-dark  { background: var(--navy); color: var(--white); padding: 72px 24px; }
.section-cta   {
  background: linear-gradient(135deg, var(--gold) 0%, #b8821f 100%);
  color: var(--white); padding: 72px 24px; text-align: center;
}
.container { max-width: 1100px; margin: 0 auto; }
.container.narrow { max-width: 720px; }
.center { text-align: center; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; margin-bottom: 12px; text-align: center;
}
.section-title.light { color: var(--white); }
.section-sub {
  text-align: center; color: var(--text-lt);
  font-size: 1.05rem; margin-bottom: 48px;
  max-width: 580px; margin-left: auto; margin-right: auto;
}
.section-dark .section-sub { color: rgba(255,255,255,0.7); }
.section-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; }
.section-cta p { margin-bottom: 28px; opacity: 0.9; font-size: 1.05rem; }
.section-cta .btn-primary { background: var(--navy); }
.section-cta .btn-primary:hover { background: var(--navy-dk); }

/* ── STEPS ────────────────────────────────── */
.steps {
  display: flex; align-items: flex-start; gap: 12px;
  justify-content: center; flex-wrap: wrap;
}
.step {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px 28px;
  flex: 1; min-width: 220px; max-width: 300px;
  text-align: center;
}
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step p  { font-size: 0.92rem; color: var(--text-lt); line-height: 1.6; }
.step-arrow { font-size: 1.8rem; color: var(--gold); margin-top: 40px; }

/* ── FEATURES ─────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 48px;
}
.feature {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 28px 24px;
}
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--gold-lt); }
.feature p  { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.65; }

/* ── EXPLAINER ────────────────────────────── */
.explainer { margin: 32px 0; }
.explainer-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 12px;
}
.explainer-row.highlight {
  border-color: var(--gold); background: #fffbf2;
}
.explainer-label {
  font-weight: 700; font-size: 0.95rem; min-width: 110px; color: var(--navy);
}
.explainer-arrow { font-size: 1.2rem; color: var(--text-lt); }
.explainer-desc  { font-size: 0.95rem; color: var(--text); line-height: 1.5; }
.credit-notes {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px;
  display: flex; flex-direction: column; gap: 10px; margin-top: 24px;
}
.credit-notes p { font-size: 0.95rem; color: var(--text); }

/* ── FOOTER ───────────────────────────────── */
.footer {
  background: var(--navy-dk); color: rgba(255,255,255,0.65);
  padding: 48px 24px 32px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; color: var(--white);
  margin-bottom: 20px;
}
.footer-links {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-links a {
  font-size: 0.9rem; color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-lt); }
.footer-legal {
  font-size: 0.78rem; line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px; margin-bottom: 12px;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* ── FAQ PAGE ─────────────────────────────── */
.page-hero {
  background: var(--navy); color: var(--white);
  padding: 60px 24px 48px; text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.faq-list { max-width: 740px; margin: 0 auto; padding: 56px 24px; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: 24px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.faq-a { font-size: 0.95rem; color: var(--text-lt); line-height: 1.7; }
.faq-a strong { color: var(--text); }

/* ── DONATE / SCHOOL SEARCH ───────────────── */
.search-section { padding: 56px 24px; background: var(--off-white); }
.search-box {
  max-width: 640px; margin: 0 auto;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px;
}
.search-box h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.search-box p  { color: var(--text-lt); margin-bottom: 24px; }
.search-input-row { display: flex; gap: 10px; }
.search-input-row input {
  flex: 1; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 1rem; font-family: inherit;
  outline: none; transition: border-color 0.2s;
}
.search-input-row input:focus { border-color: var(--navy); }
.search-input-row button {
  background: var(--navy); color: var(--white);
  border: none; padding: 12px 22px; border-radius: 6px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.search-input-row button:hover { background: var(--gold); }
.notify-section {
  max-width: 640px; margin: 32px auto 0;
  background: var(--navy); border-radius: var(--radius);
  padding: 32px; color: var(--white); text-align: center;
}
.notify-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.notify-section p  { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-bottom: 20px; }
.notify-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.notify-form input {
  flex: 1; padding: 11px 14px; border-radius: 6px; border: none;
  font-size: 0.95rem; font-family: inherit; outline: none;
}
.notify-form button {
  background: var(--gold); color: var(--white);
  border: none; padding: 11px 20px; border-radius: 6px;
  font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background 0.2s;
}
.notify-form button:hover { background: var(--gold-lt); }

/* ── ABOUT PAGE ───────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; padding: 64px 24px; max-width: 1000px; margin: 0 auto;
  align-items: center;
}
.about-text h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; color: var(--navy); }
.about-text p  { color: var(--text-lt); line-height: 1.8; margin-bottom: 14px; }
.about-stats { display: flex; flex-direction: column; gap: 16px; }
.about-stat {
  background: var(--off-white); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 20px;
}
.about-stat .num  { font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.about-stat .desc { font-size: 0.88rem; color: var(--text-lt); }

/* ── HOW IT WORKS PAGE ────────────────────── */
.hiw-detail { padding: 64px 24px; max-width: 800px; margin: 0 auto; }
.hiw-step {
  display: flex; gap: 28px; margin-bottom: 48px; align-items: flex-start;
}
.hiw-num {
  width: 56px; height: 56px; min-width: 56px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-size: 1.5rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.hiw-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.hiw-content p  { color: var(--text-lt); line-height: 1.7; }
.hiw-note {
  background: #fffbf2; border: 1px solid var(--gold);
  border-radius: var(--radius); padding: 20px 24px; margin-top: 12px;
  font-size: 0.9rem; color: var(--text);
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .explainer-row { flex-direction: column; gap: 8px; }
  .hiw-step { flex-direction: column; }
  .notify-form { flex-direction: column; }
  .search-input-row { flex-direction: column; }
}
