/* ==========================================================================
   GenHeart Initiative — static site styles
   Rebuilt to match the original genheart.org design (Poppins/Inter, blue+green)
   ========================================================================== */

:root {
  --blue:      #0073a8;
  --blue-dark: #005177;
  --navy:      #002866;
  --green:     #27ae60;
  --green-dark:#1e8e4e;
  --ink:       #1f2a37;
  --muted:     #5b6675;
  --line:      #e5e7eb;
  --bg-soft:   #f3f6fa;
  --white:     #ffffff;
  --shadow:    0 10px 30px rgba(0, 40, 102, .10);
  --radius:    14px;
  --maxw:      1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1rem; color: var(--muted); }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.text-center { text-align: center; }

.eyebrow {
  display: inline-block;
  color: var(--green);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: .6rem;
}

.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.lead { font-size: 1.12rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  font-size: .95rem;
}
.btn:hover { transform: translateY(-2px); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.brand img { height: 46px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .96rem;
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--green);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; color: var(--navy); line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(0,40,102,.88), rgba(0,81,119,.78)),
    url("../images/hero.jpg") center/cover no-repeat;
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 20px 104px;
}
.hero__box { max-width: 720px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin-bottom: .4em;
}
.hero p { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- Page title banner (interior pages) ---------- */
.page-banner {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 74px 20px;
  background:
    linear-gradient(120deg, rgba(0,40,102,.9), rgba(0,115,168,.8)),
    url("../images/page-title-bg.jpg") center/cover no-repeat;
}
.page-banner h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0; }
.page-banner .crumbs { margin-top: 10px; color: rgba(255,255,255,.85); font-size: .95rem; }
.page-banner .crumbs a { color: #fff; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat__num {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 2.3rem;
  color: var(--blue);
  line-height: 1;
}
.stat__num span { color: var(--green); }
.stat__label {
  margin-top: 8px;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Two-column feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ---------- Cause cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease;
}
.card:hover { transform: translateY(-4px); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.card__body p { font-size: .95rem; flex: 1; }
.card__foot { margin-top: 14px; }

/* ---------- Donation callout ---------- */
.donate-callout {
  background: linear-gradient(120deg, var(--navy), var(--blue-dark));
  color: #fff;
  border-radius: 18px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
}
.donate-callout h2 { color: #fff; }
.donate-callout p { color: rgba(255,255,255,.9); }
.donate-box {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  color: var(--ink);
}
.donate-box label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 16px; }
.amount-grid button {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 12px 0;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  color: var(--navy);
  transition: all .15s ease;
}
.amount-grid button:hover, .amount-grid button.is-active {
  border-color: var(--green); background: rgba(39,174,96,.08); color: var(--green-dark);
}
.donate-box .note { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- Quote / mission band ---------- */
.mission-band {
  background: linear-gradient(120deg, rgba(0,40,102,.9), rgba(0,115,168,.82)),
    url("../images/cta-helping-hand.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
}
.mission-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); max-width: 820px; margin: 0 auto .4em; }
.mission-band .quote { font-style: italic; color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto 24px; }

/* ---------- Ways to give ---------- */
.give-list { list-style: none; padding: 0; margin: 0 0 18px; }
.give-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 500;
}
.give-list li:last-child { border-bottom: 0; }
.give-list li span.ic-sm { font-size: 1.25rem; }

.method-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
  height: 100%; display: flex; flex-direction: column;
}
.method-card .ic {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(0,115,168,.1); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 16px; font-size: 1.5rem;
}
.method-card h3 { font-size: 1.25rem; margin-bottom: 14px; }
.detail-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .95rem;
}
.detail-row:last-of-type { border-bottom: 0; }
.detail-row .k { color: var(--muted); }
.detail-row .v { font-weight: 600; color: var(--navy); text-align: right; }
.todo {
  display: inline-block; background: #fff3cd; color: #8a6d3b;
  padding: 1px 8px; border-radius: 5px; font-size: .85em; font-weight: 600;
}

/* ---------- Annual report cover card ---------- */
.report-cover {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 360px;
  padding: 38px 34px;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(150deg, var(--navy) 0%, var(--blue-dark) 55%, var(--blue) 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.report-cover:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,40,102,.28); color:#fff; }
.report-cover::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(39,174,96,.25);
}
.report-cover__badge {
  align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  background: rgba(255,255,255,.14); color: #fff;
  padding: 6px 12px; border-radius: 30px;
  position: relative; z-index: 1;
}
.report-cover__eyebrow {
  margin-top: auto;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: #9fe6c2; font-weight: 600; position: relative; z-index: 1;
}
.report-cover__title {
  font-family: "Poppins", sans-serif; font-weight: 700;
  font-size: 1.7rem; line-height: 1.2; color: #fff; position: relative; z-index: 1;
}
.report-cover__org { font-size: .95rem; color: rgba(255,255,255,.85); position: relative; z-index: 1; }
.report-cover__cta {
  margin-top: 8px; font-weight: 600; color: #fff;
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px;
  position: relative; z-index: 1;
}

/* ---------- Partners ---------- */
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}
.partners img { height: 74px; width: auto; filter: grayscale(1); opacity: .8; transition: all .2s ease; }
.partners img:hover { filter: none; opacity: 1; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,115,168,.12);
}
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { margin-top: 12px; font-weight: 600; font-size: .95rem; }

/* ---------- Info tiles ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center; box-shadow: var(--shadow);
}
.info-tile .ic {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(0,115,168,.1); color: var(--blue);
  display: grid; place-items: center; margin: 0 auto 14px;
  font-size: 1.4rem;
}
.info-tile h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.info-tile p { margin: 0; font-size: .95rem; }

/* ---------- Bullets ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--muted); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cdd6e4;
  padding: 60px 0 0;
}
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 40px;
}
.footer-grid a { color: #cdd6e4; }
.footer-grid a:hover { color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-brand img { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { color: #9fb0c9; font-size: .92rem; }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff;
  display: grid; place-items: center; font-size: .95rem;
  transition: background .2s ease;
}
.social a:hover { background: var(--green); }
.newsletter { display: flex; gap: 8px; margin-top: 8px; }
.newsletter input {
  flex: 1; padding: 11px 14px; border: 0; border-radius: 8px; font: inherit;
}
.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  font-size: .86rem;
  color: #9fb0c9;
}
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #9fb0c9; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px; display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .info-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .donate-callout { grid-template-columns: 1fr; padding: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .mission-band { background-attachment: scroll; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
