/* ==========================================================================
   Project Rainshield — shared stylesheet
   Palette: monsoon navy + teal, marigold amber + coral accents, warm cream
   ========================================================================== */

:root {
  --navy-950: #0c1f33;
  --navy-900: #12283f;
  --navy-800: #1c3a58;
  --indigo-600: #1e4e79;
  --teal-600: #14867e;
  --teal-500: #1aa79c;
  --amber-500: #f5a623;
  --amber-400: #ffbb47;
  --coral-500: #ff6f59;
  --coral-600: #ef5844;
  --cream-50: #fbf6ec;
  --cream-100: #f5ecdb;
  --paper: #ffffff;
  --ink-900: #16233a;
  --ink-700: #34455e;
  --slate-500: #5b6b80;
  --slate-300: #a9b7c6;
  --line: #e4dcc9;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 14px 40px -18px rgba(12, 31, 51, 0.35);
  --shadow-card: 0 10px 30px -16px rgba(12, 31, 51, 0.28);

  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream-50);
  color: var(--ink-900);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-700); }

a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--coral-500); display: inline-block; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--coral-500); color: #fff; box-shadow: 0 12px 24px -10px rgba(239, 88, 68, 0.55); }
.btn-primary:hover { background: var(--coral-600); }
.btn-amber { background: var(--amber-500); color: var(--navy-950); box-shadow: 0 12px 24px -10px rgba(245, 166, 35, 0.5); }
.btn-amber:hover { background: var(--amber-400); }
.btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-outline-dark:hover { background: var(--navy-900); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------------- Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy-900);
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--coral-600); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy-900); border-radius: 2px; }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; background: var(--cream-50);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform 0.25s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-cta .btn-sm-desktop { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, var(--indigo-600) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: #fff;
  overflow: hidden;
  padding: 76px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 60px;
}
.hero h1 { color: #fff; }
.hero .lede { color: var(--slate-300); font-size: 1.12rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { display: flex; gap: 30px; margin-top: 42px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--amber-400); }
.hero-stat span { font-size: 0.85rem; color: var(--slate-300); }
.hero-art { position: relative; }
.rain-line { position: absolute; width: 2px; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(154,206,255,0.55)); animation: fall 2.6s linear infinite; }
@keyframes fall { 0% { transform: translateY(-40px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(220px); opacity: 0; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}

.wave-divider { display: block; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: auto; display: block; }

/* ---------------- Sections ---------------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-navy { background: var(--navy-900); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: var(--slate-300); }
.section-cream-alt { background: var(--cream-100); }
.section-teal { background: linear-gradient(135deg, var(--teal-600), var(--teal-500)); color: #fff; }
.section-teal h2 { color: #fff; }
.section-teal p { color: rgba(255,255,255,0.9); }
.section-header { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-header.left { margin: 0 0 44px; text-align: left; }

/* ---------------- Grids & cards ---------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-100); margin-bottom: 18px;
}
.card-icon svg { width: 30px; height: 30px; }

.pill {
  display: inline-block;
  background: var(--cream-100);
  color: var(--navy-800);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------------- Founder cards ---------------- */
.founder-card { text-align: center; }
.founder-avatar {
  width: 128px; height: 128px; border-radius: 50%;
  margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
}
.founder-card h3 { margin-bottom: 2px; }
.founder-role { color: var(--coral-600); font-weight: 700; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }

/* ---------------- Stats strip ---------------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-strip .num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--amber-500); }
.stat-strip .lbl { font-size: 0.9rem; color: var(--slate-300); }

/* ---------------- Timeline ---------------- */
.timeline { position: relative; padding-left: 34px; border-left: 3px dashed var(--line); }
.timeline-item { position: relative; margin-bottom: 34px; }
.timeline-item::before {
  content: ''; position: absolute; left: -44px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--coral-500); border: 3px solid var(--cream-50);
}
.timeline-item .yr { font-family: var(--font-head); color: var(--teal-600); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------------- Donation tiers ---------------- */
.tier-card { border-top: 6px solid var(--teal-500); text-align: center; }
.tier-card.amber { border-top-color: var(--amber-500); }
.tier-card.coral { border-top-color: var(--coral-500); }
.tier-amount { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--navy-900); margin: 6px 0 14px; }

/* ---------------- Progress bar ---------------- */
.progress-track { background: var(--cream-100); border-radius: 999px; height: 14px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--amber-500), var(--coral-500)); border-radius: 999px; }

/* ---------------- Quote / callout ---------------- */
.callout {
  background: var(--cream-100);
  border-left: 5px solid var(--amber-500);
  padding: 22px 26px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--navy-800);
}

.table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
table { width: 100%; border-collapse: collapse; background: var(--paper); min-width: 560px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
th { background: var(--navy-900); color: #fff; font-family: var(--font-head); }
tr:last-child td { border-bottom: none; }

/* ---------------- Forms ---------------- */
.form-field { margin-bottom: 18px; text-align: left; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; color: var(--navy-800); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); font-family: var(--font-body); font-size: 0.98rem;
  background: var(--paper);
}
.form-field textarea { resize: vertical; min-height: 110px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-950); color: var(--slate-300); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--slate-300); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--amber-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }
.social-row { display: flex; gap: 12px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.social-row a:hover { background: var(--coral-500); }

/* ---------------- Misc ---------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.tag-list span { background: var(--cream-100); padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: var(--navy-800); }
.source-note { font-size: 0.82rem; color: var(--slate-500); margin-top: 6px; }
.banner-cta {
  background: linear-gradient(120deg, var(--coral-500), var(--amber-500));
  border-radius: var(--radius-lg);
  padding: 50px;
  color: #fff;
  text-align: center;
}
.banner-cta h2 { color: #fff; }
.banner-cta p { color: rgba(255,255,255,0.92); }
