/* =========================================================
   Uplift Haiti — site.css
   Shared stylesheet for all pages
   ========================================================= */

:root {
  --navy: #0a2342;
  --haiti-blue: #00209F;
  --haiti-red: #D21034;
  --warm: #F5C518;
  --cream: #FDF8F0;
  --sand: #F4ECDC;
  --ink: #1a1a1a;
  --muted: #5b6471;
  --border: #e6dfd1;
  --green: #2f7d4f;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 12px rgba(10,35,66,0.06);
  --shadow-md: 0 12px 30px rgba(10,35,66,0.1);
  --shadow-lg: 0 20px 50px rgba(10,35,66,0.15);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--haiti-red); }
img, svg { max-width: 100%; display: block; }

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

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--haiti-red);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--haiti-red); color: #fff !important; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(210,16,52,0.28); color: #fff !important; }
.btn-outline { border-color: var(--ink); color: var(--ink) !important; background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff !important; }
.btn-light { background: #fff; color: var(--ink) !important; }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 16px 32px; font-size: 15px; }

/* ===== Topbar + Header ===== */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar a { opacity: 0.85; color: #fff; }
.topbar a:hover { opacity: 1; color: var(--warm); }

header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 240, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo img { width: 40px; height: 40px; border-radius: 8px; }

nav.primary ul { list-style: none; display: flex; gap: 28px; align-items: center; }
nav.primary a { font-weight: 500; font-size: 15px; color: var(--ink); }
nav.primary a.active { color: var(--haiti-red); }

.mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
  padding: 80px 0 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 700;
  margin: 18px 0 22px;
}
.hero h1 em { font-style: italic; color: var(--haiti-red); }
.hero p.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  color: var(--haiti-blue);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stats .stat span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Hero image */
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-art .photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: absolute;
  box-shadow: var(--shadow-lg);
  background: #ddd;
}
.hero-art .photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-1 { width: 62%; height: 78%; top: 0; left: 0; }
.photo-2 { width: 48%; height: 52%; bottom: 0; right: 0; border: 6px solid var(--cream); }
.badge-card {
  position: absolute;
  bottom: 8%;
  left: -4%;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 260px;
}
.badge-card .dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.badge-card strong { font-size: 14px; }

/* ===== Page hero (simpler) ===== */
.page-hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
  padding: 72px 0 56px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(36px, 4.8vw, 56px);
  margin: 14px 0 16px;
}
.page-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Sections ===== */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 14px 0 16px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ===== Mission band ===== */
.mission {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 70px;
  align-items: center;
}
.mission-img {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.mission-img img { width: 100%; height: 100%; object-fit: cover; }
.mission h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 14px 0 20px; }
.mission p { font-size: 17px; color: var(--muted); margin-bottom: 16px; }
.mission .quote {
  border-left: 3px solid var(--haiti-red);
  padding: 8px 20px;
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-size: 19px;
  color: var(--ink);
  margin: 26px 0;
}

/* ===== Programs ===== */
.programs { background: var(--cream); }
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.program-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.program-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--sand);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--haiti-red);
}
.program-card h3 { font-size: 22px; margin-bottom: 10px; }
.program-card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.program-card a { color: var(--haiti-red); font-weight: 600; font-size: 14px; }

/* ===== Impact band ===== */
.impact { background: var(--navy); color: #fff; }
.impact h2, .impact .section-head h2 { color: #fff; }
.impact .section-head p { color: rgba(255,255,255,0.75); }
.impact .eyebrow { color: var(--warm); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.stat-card strong {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  color: var(--warm);
  display: block;
  line-height: 1;
}
.stat-card span {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

/* ===== Story / Quote card ===== */
.story { background: #fff; }
.story-card {
  background: var(--sand);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: center;
}
.story-img { aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story blockquote {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 24px;
}
.story cite { font-style: normal; color: var(--muted); font-size: 14px; }
.story cite strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

/* ===== Blog teaser ===== */
.blog-teaser { background: #fff; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-img {
  aspect-ratio: 16/10;
  background: var(--sand);
  overflow: hidden;
}
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post small {
  color: var(--haiti-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}
.post h3 { font-size: 20px; margin: 8px 0 10px; line-height: 1.3; }
.post p { color: var(--muted); font-size: 14px; flex: 1; }
.post-link { margin-top: 16px; color: var(--haiti-red); font-weight: 600; font-size: 14px; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--haiti-red) 0%, #8a0a22 100%);
  color: #fff;
  text-align: center;
}
.cta-band h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 18px; color: #fff; }
.cta-band p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto 36px;
}
.cta-band .eyebrow { color: var(--warm); }
.cta-band .fineprint {
  margin-top: 28px;
  font-size: 13px;
  opacity: 0.85;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Newsletter ===== */
.newsletter {
  background: var(--sand);
  padding: 72px 0;
  text-align: center;
}
.newsletter h2 { font-size: 32px; margin-bottom: 12px; }
.newsletter p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--haiti-red);
}
.newsletter small { display: block; margin-top: 16px; font-size: 12px; color: var(--muted); }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 72px 0 24px;
}
footer.site-footer a { color: rgba(255,255,255,0.85); }
footer.site-footer a:hover { color: var(--warm); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
footer h5 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; font-size: 14px; }
.foot-about p { font-size: 14px; margin-top: 14px; line-height: 1.6; max-width: 360px; }
.foot-about .logo { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
  color: #fff;
}
.social:hover { background: var(--haiti-red); color: #fff; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  opacity: 0.75;
}
.foot-bottom a:hover { opacity: 1; }

/* ===== Give page specific ===== */
.give-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.give-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.give-card-img { aspect-ratio: 4/3; overflow: hidden; }
.give-card-img img { width: 100%; height: 100%; object-fit: cover; }
.give-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.give-card h3 { font-size: 22px; margin-bottom: 10px; }
.give-card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; flex: 1; }

.mail-donate {
  background: var(--sand);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-top: 56px;
}
.mail-donate h3 { font-size: 22px; margin-bottom: 10px; }
.mail-donate address {
  font-style: normal;
  font-size: 18px;
  font-family: 'Fraunces', serif;
  margin: 12px 0;
}
.mail-donate .tax-note {
  font-size: 13px;
  color: var(--muted);
  max-width: 620px;
  margin: 24px auto 0;
  line-height: 1.6;
}

/* ===== Mockup banner (remove before production) ===== */
.mockup-banner {
  background: var(--warm);
  color: var(--ink);
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid,
  .mission-grid,
  .story-card { grid-template-columns: 1fr; gap: 40px; }
  .program-grid,
  .blog-grid,
  .give-options,
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  nav.primary { display: none; }
  .mobile-toggle { display: block; }
  .story-card { padding: 40px; }
  section { padding: 72px 0; }
  .hero { padding: 64px 0 80px; }
}
@media (max-width: 560px) {
  .program-grid,
  .blog-grid,
  .give-options,
  .stat-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero-stats { gap: 24px; }
  .story-card { padding: 28px; }
  .mail-donate { padding: 28px; }
  .topbar-inner { justify-content: center; }
}
