/* ==========================================================================
   Impact Haven Foundation — main stylesheet
   ========================================================================== */

:root {
  /* Brand colours, taken from the logo */
  --navy: #0c2d48;
  --blue-dark: #1673b0;
  --blue: #2aa3dc;
  --blue-light: #5ec2ee;
  --blue-soft: #e8f6fd;
  --pink: #e5157e;
  --pink-dark: #c10f69;
  --pink-light: #f589bd;
  --pink-soft: #fde9f3;
  --cream: #faf9f6;
  --white: #ffffff;
  --ink: #1f2933;
  --muted: #5a6572;
  --line: #e2e8ef;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(12, 45, 72, 0.08);
  --shadow-lg: 0 20px 50px rgba(12, 45, 72, 0.14);
  --container: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

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

img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
a:hover { color: var(--blue); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--pink);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pink); color: var(--white); }
.btn-primary:hover { background: var(--pink-dark); color: var(--white); }
.btn-dark { background: var(--blue-dark); color: var(--white); }
.btn-dark:hover { background: var(--navy); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn-outline-dark { border-color: var(--blue-dark); color: var(--blue-dark); background: transparent; }
.btn-outline-dark:hover { background: var(--blue-dark); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}
.nav > nav { display: contents; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand span {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--pink);
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--pink);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
}
.nav-links a:hover { background: var(--blue-soft); color: var(--navy); }
.nav-links a.active { color: var(--blue-dark); background: var(--blue-soft); }
.nav-links .btn { margin-left: 10px; padding: 0.65em 1.4em; color: var(--white); }
.nav-links .btn:hover { background: var(--pink-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s, top 0.25s, opacity 0.2s;
  content: "";
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    padding: 16px 20px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
  }
  .nav-open .nav-links { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-links .btn { margin: 10px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}
.hero .media {
  position: absolute;
  inset: 0;
  border-radius: 0;
}
.hero .media::after { display: none; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12, 45, 72, 0.94) 0%, rgba(12, 45, 72, 0.75) 45%, rgba(12, 45, 72, 0.25) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 120px 0 130px;
  max-width: 680px;
}
.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; color: var(--pink-light); }
.hero p.lead { font-size: 1.2rem; opacity: 0.92; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-dark);
  margin-bottom: 14px;
}
.hero .eyebrow,
.section-dark .eyebrow { color: var(--pink-light); }

/* Inner-page intro: light, like the homepage hero */
.page-hero { padding: 64px 0 0; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid #dedfd9; }
.page-hero .eyebrow { display: flex; align-items: center; gap: 9px; font-size: .7rem; letter-spacing: .13em; color: #53666b; }
.page-hero h1 { font-size: clamp(2.5rem, 4.4vw, 3.8rem); line-height: 1.08; letter-spacing: -.045em; margin: 12px 0 0; }
.page-hero h1 em { color: var(--pink-dark); font-weight: 500; }
.page-hero .lead { color: var(--muted); font-size: 1.02rem; line-height: 1.8; margin: 0; max-width: 460px; }
@media (max-width: 760px) { .page-hero { padding-top: 36px; } .page-hero-grid { grid-template-columns: 1fr; gap: 18px; padding-bottom: 28px; } }
.breadcrumb { font-size: 0.9rem; opacity: 0.75; margin-bottom: 12px; }
.breadcrumb a { color: inherit; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-white { background: var(--white); }
.section-tint { background: var(--blue-soft); }
.section-dark { background: var(--navy); color: rgba(255, 255, 255, 0.88); }
.section-dark h2,
.section-dark h3 { color: var(--white); }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.78); }

.grid { display: grid; gap: 28px; }
.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: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
}

/* ---------- Media (images with graceful placeholder) ---------- */
.media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--blue-dark);
  background-image:
    radial-gradient(circle at 20% 25%, rgba(232, 25, 127, 0.45), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(135deg, var(--blue), var(--navy));
  background-size: cover;
  background-position: center;
  aspect-ratio: 4 / 3;
}
.media.tall { aspect-ratio: 4 / 5; }
.media.wide { aspect-ratio: 16 / 9; }
.media::after {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
}
.media.has-img::after { display: none; }

.media-stack { position: relative; }
.media-badge {
  position: absolute;
  bottom: -24px;
  right: -12px;
  background: var(--pink);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 220px;
}
.media-badge strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; }
@media (max-width: 640px) { .media-badge { right: 12px; } }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p { color: var(--muted); }
.card .media { margin: -32px -32px 24px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

.icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.icon svg { width: 28px; height: 28px; }
.section-dark .icon { background: rgba(255, 255, 255, 0.1); color: var(--blue-light); }

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-arrow::after { content: "→"; transition: transform 0.2s; }
.link-arrow:hover::after { transform: translateX(4px); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231673b0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--pink-light);
  line-height: 1.1;
}
.stat span { color: rgba(255, 255, 255, 0.8); font-size: 0.97rem; }
.grid .stat strong { white-space: nowrap; font-size: clamp(1.8rem, 3vw, 2.4rem); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }

/* ---------- Programs ---------- */
.program {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.program:last-child { border-bottom: 0; }
.program:nth-child(even) > .media { order: 2; }
@media (max-width: 860px) {
  .program { grid-template-columns: 1fr; gap: 28px; }
  .program:nth-child(even) > .media { order: 0; }
}
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
}

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card .avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 18px;
  aspect-ratio: 1;
}
.team-card .avatar::after { display: none; }
.team-card h3 { margin-bottom: 4px; }
.team-card .role { color: var(--pink-dark); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }

/* ---------- Testimonial ---------- */
.quote {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.quote blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.4;
  color: var(--white);
  margin: 0 0 24px;
  font-style: italic;
}
.quote cite { font-style: normal; color: var(--pink-light); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(circle at 90% 10%, rgba(94, 194, 238, 0.35), transparent 45%),
    linear-gradient(120deg, var(--pink) 0%, #d4127a 55%, #b80f6c 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 8px; color: var(--white); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.92); max-width: 560px; }
.cta-band .btn-dark { background: var(--white); color: var(--pink-dark); }
.cta-band .btn-dark:hover { background: var(--navy); color: var(--white); }
@media (max-width: 640px) { .cta-band { padding: 36px 26px; } }

/* ---------- News ---------- */
.post-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.post-card h3 a { text-decoration: none; color: var(--navy); }
.post-card h3 a:hover { color: var(--blue); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}
.filter.active,
.filter:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery .media {
  aspect-ratio: auto;
  height: 100%;
  cursor: zoom-in;
  border-radius: var(--radius);
  border: 0;
  padding: 0;
  width: 100%;
  transition: transform 0.25s;
}
.gallery .media:hover { transform: scale(0.98); }
.gallery .span-2 { grid-column: span 2; }
.gallery .row-2 { grid-row: span 2; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 34, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox .media { width: min(1000px, 100%); aspect-ratio: 16 / 10; background-size: contain; background-repeat: no-repeat; background-color: transparent; }
.lightbox .media:not(.has-img) { background-color: var(--blue-dark); }
.lightbox .media::after { font-size: 1rem; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(42, 163, 220, 0.12);
}
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  background: var(--white);
}
.checkbox-group input { accent-color: var(--blue-dark); }

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 500;
}
.form-status.success { display: block; background: var(--blue-soft); color: var(--navy); }
.form-status.error { display: block; background: #fdecea; color: #8a1f11; }

/* ---------- Donate ---------- */
.donate-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
@media (max-width: 640px) { .donate-box { padding: 26px 20px; } }
.amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.amount-btn {
  padding: 16px 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s;
}
.amount-btn:hover { border-color: var(--blue); }
.amount-btn.active { background: var(--blue-dark); color: var(--white); border-color: var(--blue-dark); }
.impact-note {
  background: var(--blue-soft);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 22px;
}
.input-prefix { position: relative; }
.input-prefix span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--muted);
}
.input-prefix input { padding-left: 58px; }

.pay-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.pay-method:last-child { border-bottom: 0; }
.pay-method .icon { flex-shrink: 0; margin: 0; }
.pay-method h3 { margin-bottom: 6px; }
.pay-method dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 0.97rem; }
.pay-method dt { color: var(--muted); }
.pay-method dd { margin: 0; font-weight: 600; }
.secure-note { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 14px; }

/* ---------- Contact ---------- */
.contact-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-item .icon { margin: 0; flex-shrink: 0; }
.contact-item h3 { font-size: 1.05rem; margin-bottom: 2px; font-family: var(--font-body); font-weight: 700; }
.contact-item p { margin: 0; color: var(--muted); }
.map-embed {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--radius-lg);
  filter: saturate(0.85);
}

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--pink-dark); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 14px 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: #081f33;
  color: rgba(255, 255, 255, 0.72);
  padding: 80px 0 30px;
  font-size: 0.97rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.2fr;
  gap: 32px;
  margin-bottom: 56px;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--white); margin-bottom: 18px; }
.site-footer .brand span,
.site-footer .brand small { color: var(--white); }
.site-footer .brand img { background: var(--white); border-radius: 12px; padding: 4px; }
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-grid > * { min-width: 0; }
.site-footer a { overflow-wrap: anywhere; }
.site-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.site-footer a:hover { color: var(--pink-light); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}
.socials a:hover { background: var(--pink); color: var(--white); }
.socials svg { width: 18px; height: 18px; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font: inherit;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter .btn { padding: 0.7em 1.2em; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 1; transform: none; }
.reveal-pending { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .gallery .media { transition: none; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Home: a lighter, more focused introduction ---------- */
.site-header { background: rgba(250, 249, 246, 0.97); }
.home-hero { padding-top: 48px; }
.home-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
.home-hero-copy { padding: 20px 0 36px; }
.home-hero .eyebrow { font-size: .7rem; letter-spacing: .13em; color: #53666b; display: flex; align-items: center; gap: 9px; }
.eyebrow-dot { width: 7px; height: 7px; background: var(--pink); border-radius: 50%; flex-shrink: 0; }
.home-hero h1 { font-size: clamp(2.8rem, 4.8vw, 4.25rem); line-height: 1.08; letter-spacing: -.045em; max-width: 590px; margin: 12px 0 24px; }
.home-hero h1 em { color: var(--pink-dark); font-weight: 500; }
.home-hero .lead { max-width: 450px; color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.home-hero .hero-actions { gap: 12px; margin-top: 28px; }
.home-hero .btn { padding: .85em 1.35em; font-size: .93rem; }
.home-hero .btn-primary { gap: 28px; background: var(--pink-dark); }
.home-hero .btn-primary:hover { background: #9c0b55; }
.home-hero .btn-outline-dark { border: 1px solid #bcc8cc; color: var(--navy); }
.home-hero .btn-outline-dark:hover { color: white; background: var(--navy); border-color: var(--navy); }
.hero-footnote { margin: 23px 0 0; font-size: .76rem; color: var(--muted); }
.hero-art { position: relative; padding: 12px 0 35px; }
.hero-bottom { margin-top: 30px; padding-top: 22px; padding-bottom: 22px; display: flex; justify-content: flex-end; border-top: 1px solid #dedfd9; color: var(--muted); font-size: .76rem; }
.hero-bottom a { text-decoration: none; color: var(--navy); }
.hero-bottom a span { margin-left: 24px; }
.section { padding: 80px 0; }
.home-work { background: white; border-top: 1px solid #efeee9; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 34px; }
h2 { letter-spacing: -.035em; font-size: clamp(2rem, 3vw, 2.75rem); }
.section-heading-row h2 { margin: 0; }
.section-heading-row p { margin: 0; font-size: .9rem; color: var(--muted); }
.eyebrow { font-size: .7rem; letter-spacing: .14em; }
.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.focus-card { display: flex; flex-direction: column; padding: 27px; border: 1px solid transparent; border-radius: 14px; text-decoration: none; color: var(--navy); transition: transform .2s, border-color .2s; }
.focus-card:hover { transform: translateY(-5px); border-color: currentColor; color: var(--navy); }
.focus-food { background: #edf3ef; }
.focus-health { background: #fbeef2; }
.focus-education { background: #ecf3f9; }
.focus-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.focus-number { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: #53666b; }
.focus-arrow { font-size: 1.2rem; }
.focus-icon { width: 58px; height: 58px; margin: 26px 0 21px; color: #356352; }
.focus-icon svg { width: 100%; height: 100%; }
.focus-health .focus-icon { color: #b7326e; }
.focus-education .focus-icon { color: #2a699b; }
.focus-card h3 { font-size: 1.6rem; letter-spacing: -.03em; margin-bottom: 12px; }
.focus-card p { font-size: .9rem; color: #53616c; line-height: 1.75; margin-bottom: 26px; max-width: 29ch; }
.focus-link { margin-top: auto; padding-top: 18px; border-top: 1px solid #1733441a; display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 600; }
.home-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.mission-mark { display: flex; align-items: center; justify-content: center; height: 100%; padding: 35px 25px; background: #f0f1e9; }
.mission-mark img { width: 150px; height: 150px; object-fit: contain; mix-blend-mode: multiply; }
.home-about-copy p { color: var(--muted); max-width: 450px; font-size: .98rem; margin-bottom: 24px; }
.home-about-copy .link-arrow { font-size: .9rem; }
.home-involve { padding-top: 0; }
.involve-panel { background: var(--navy); color: #d3dfe6; border-radius: 20px; padding: 48px; }
.involve-heading { margin-bottom: 34px; }
.involve-heading .eyebrow { color: #f5a7cf; }
.involve-heading h2 { color: white; }
.involve-heading p { font-size: .95rem; margin: 0; }
.involve-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.involve-options > a { display: block; border-top: 1px solid #ffffff38; padding-top: 20px; text-decoration: none; color: white; }
.involve-option-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 500; margin-bottom: 7px; }
.involve-option-title > span { color: #f5a7cf; transition: transform .2s; }
.involve-options a:hover .involve-option-title > span { transform: translate(3px, -3px); }
.involve-options a:hover .involve-option-title { color: #f5a7cf; }
.involve-options a > span:last-child { font-size: .8rem; color: #c3d3df; }
.site-footer { padding-top: 55px; }
@media (max-width: 1100px) and (min-width: 961px) {
  .nav-links a { padding-left: 9px; padding-right: 9px; font-size: .87rem; }
  .nav { gap: 12px; }
}
@media (max-width: 960px) {
  .home-hero-grid { gap: 20px; }
  .home-hero h1 { font-size: clamp(2.6rem, 5.3vw, 3.5rem); }
  .home-about-grid { gap: 40px; }
  .focus-card { padding: 22px; }
  .focus-card h3 { font-size: 1.35rem; }
}
@media (max-width: 700px) {
  .home-hero { padding-top: 28px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-hero-copy { padding: 10px 0 8px; }
  .home-hero h1 { font-size: clamp(2.8rem, 9vw, 3.7rem); max-width: 520px; }
  .home-hero .lead { font-size: 1rem; }
  .hero-art { width: min(100%, 430px); justify-self: center; padding-bottom: 28px; }
  .hero-bottom { margin-top: 15px; font-size: .7rem; }
  .hero-bottom a span { margin-left: 8px; }
  .section { padding: 55px 0; }
  .section-heading-row { display: block; margin-bottom: 26px; }
  .section-heading-row p { margin-top: 16px; }
  .focus-grid { grid-template-columns: 1fr; gap: 15px; }
  .focus-card { padding: 25px; }
  .focus-icon { margin: 18px 0; width: 48px; height: 48px; }
  .focus-card h3 { font-size: 1.6rem; }
  .focus-card p { max-width: 100%; margin-bottom: 20px; }
  .home-about-grid { grid-template-columns: 1fr; gap: 32px; }
  .involve-panel { padding: 32px 24px; }
  .involve-options { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 380px) {
  .brand { gap: 6px; }
  .brand span { font-size: .9rem; }
  .brand small { font-size: .62rem; }
  .home-hero .hero-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .focus-card, .involve-option-title > span { transition: none; }
  .focus-card:hover, .btn:hover, a.card:hover { transform: none; }
}

/* ---------- Inner pages: components in the homepage style ---------- */
.tint-green { background: #edf3ef; }
.tint-pink { background: #fbeef2; }
.tint-blue { background: #ecf3f9; }
.tint-sand { background: #f0f1e9; }
.soft-card { padding: 30px; border-radius: 14px; color: var(--navy); }
.soft-card h3 { font-size: 1.5rem; letter-spacing: -.03em; margin-bottom: 10px; }
.soft-card p { color: #53616c; font-size: .95rem; line-height: 1.75; margin: 0; }
.soft-card .focus-number { display: block; margin-bottom: 18px; }
.section-white { background: white; border-top: 1px solid #efeee9; }
.section-intro { color: var(--muted); font-size: .95rem; max-width: 520px; margin: -14px 0 34px; }

/* numbered rows (values, programmes) */
.rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
.rows.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row { border-top: 1px solid #dfe1da; padding: 22px 0 26px; }
.row .focus-number { display: block; margin-bottom: 10px; }
.row h3 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 8px; }
.row p { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.7; }
.row ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.row li { font-size: .74rem; padding: 4px 10px; border-radius: 999px; background: white; border: 1px solid #e3e4dc; color: var(--navy); }
.section-white .row li { background: var(--cream); }

/* people */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.person { padding: 22px; border-radius: 14px; background: white; border: 1px solid #ecebe6; }
.person .initials { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .95rem; margin-bottom: 16px; color: var(--navy); }
.person h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.person p { margin: 0; font-size: .8rem; color: var(--muted); }
.people.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.people.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.person.lead-person { display: flex; gap: 18px; align-items: center; }
.person.lead-person .initials { width: 64px; height: 64px; margin: 0; flex-shrink: 0; font-size: 1.1rem; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 8px 14px; border-radius: 999px; border: 1px solid #ffffff38; font-size: .82rem; color: #e3ecf2; }
.chips.light li { border-color: #dfe1da; color: var(--navy); background: white; }

/* planned budget bars (single series, direct labels) */
.budget { display: grid; gap: 14px; margin-top: 8px; }
.budget-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) 2fr 44px; gap: 14px; align-items: center; font-size: .85rem; color: #d3dfe6; }
.budget-track { height: 10px; background: #ffffff14; border-radius: 4px; overflow: hidden; }
.budget-bar { height: 100%; background: var(--pink-light); border-radius: 0 4px 4px 0; }
.budget-row strong { color: white; text-align: right; font-weight: 600; }
.budget-note { font-size: .75rem; color: #9fb4c3; margin: 14px 0 0; }

/* two-column navy panel content */
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.panel-grid p { font-size: .95rem; }
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li { border-top: 1px solid #ffffff26; padding: 14px 0; font-size: .92rem; color: #d3dfe6; }
.panel-list li strong { display: block; color: white; font-weight: 600; margin-bottom: 2px; }

/* compact contact list */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { border-top: 1px solid #dfe1da; padding: 16px 0; display: grid; grid-template-columns: 130px 1fr; gap: 16px; font-size: .95rem; }
.contact-list li > span:first-child { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #53666b; padding-top: 3px; }

/* news empty state */
.empty-state { text-align: center; padding: 56px 28px; border-radius: 14px; border: 1px dashed #d4d7ce; background: white; }
.empty-state p { color: var(--muted); max-width: 440px; margin: 0 auto 22px; font-size: .95rem; }

.form-card { background: white; color: var(--ink); border: 1px solid #ecebe6; border-radius: 14px; padding: 32px; }
.form-card h3 { font-size: 1.4rem; letter-spacing: -.02em; }

/* Photo slots keep their artwork or initials until an approved photo loads. */
.photo-frame { position: relative; overflow: hidden; border-radius: 14px; }
.photo-content { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.has-photo > .photo-content { opacity: 1; }
.hero-photo { aspect-ratio: 600 / 580; border-radius: 100px 100px 18px 18px; }
.hero-photo > .photo-fallback { width: 100%; height: 100%; object-fit: contain; }
.community-photo { aspect-ratio: 4 / 3; border: 1px solid #e3e4dc; border-radius: 100px 100px 14px 14px; }
.programme-photo { aspect-ratio: 4 / 3; margin-bottom: 24px; }
.photo-symbol { display: grid; place-items: center; height: 100%; color: #356352; }
.photo-symbol svg { width: 72px; height: 72px; }
.tint-pink .photo-symbol { color: #b7326e; }
.tint-blue .photo-symbol { color: #2a699b; }
.volunteer-photo { aspect-ratio: 16 / 9; margin-top: 28px; background: #edf3ef; }
.volunteer-photo > .photo-fallback { width: 100%; height: 100%; object-fit: contain; }
.person-photo { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 16px; flex-shrink: 0; }
.person .person-photo .initials { width: 100%; height: 100%; margin: 0; }
.lead-person .person-photo { width: 80px; height: 80px; margin: 0; }
.person-photo > .photo-content { object-position: center 30%; }
.contact-alternative p { color: var(--muted); font-size: .95rem; }
.contact-call { display: block; width: fit-content; margin-top: 18px; font-size: .9rem; }
.transfer-note { font-size: .85rem; margin-top: 20px; }
[data-payment-details] li > span:last-child { white-space: pre-line; overflow-wrap: anywhere; }

@media (max-width: 960px) {
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .rows, .rows.two, .panel-grid { grid-template-columns: 1fr; gap: 0 0; }
  .panel-grid { gap: 32px; }
  .people.two { grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
  .people.five { grid-template-columns: 1fr 1fr; gap: 12px; }
  .budget-row { grid-template-columns: 1fr 44px; }
  .budget-row .budget-track { grid-column: 1 / -1; grid-row: 2; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .form-card { padding: 24px 20px; }
}
