/* ---------------------------------------------------------------
   Friends Peace House — style.css
   Palette drawn from the Rwandan landscape and imigongo art:
   forest green, sun gold, warm paper, green-black ink.
--------------------------------------------------------------- */

:root {
  --ink: #1d2a22;
  --forest: #407050;
  --forest-deep: #2b4a37;
  --leaf: #5c8f6c;
  --sun: #e8e070;
  --sun-soft: #f5f2c8;
  --paper: #f6f5ee;
  --white: #ffffff;
  --line: #dcdacb;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, Segoe UI, sans-serif;

  --wrap: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 43, 37, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
}

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

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

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest-deep);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.2rem; max-width: 46ch; }

a { color: var(--forest); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--sun); color: var(--forest-deep); }
.btn-primary:hover { background: #efe98e; }

.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: var(--white); }

.btn-light { background: var(--white); color: var(--forest-deep); }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 237, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo {
  height: 78px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest-deep);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}

.nav-menu > li { position: relative; }

.nav-menu a {
  display: block;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
}
.nav-menu a:hover { background: rgba(92, 143, 108, 0.12); }
.nav-menu a.active { color: var(--forest); }
.nav-menu a.active::after {
  content: "";
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--sun);
  margin-top: 2px;
}

.has-dropdown > a::after { content: " ▾"; font-size: 0.7em; }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  list-style: none;
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a { font-weight: 500; font-size: 0.92rem; }

/* Mega-menu: one column per program area, subprograms beneath */
.dropdown.mega {
  display: grid;
  grid-template-columns: repeat(4, minmax(196px, 1fr));
  gap: 0.4rem 1.2rem;
  width: max-content;
  max-width: min(94vw, 940px);
  left: auto;
  right: 0;
  padding: 1.3rem 1.5rem 1.4rem;
}
.dropdown.mega > li { list-style: none; }

.dropdown.mega .mega-head {
  display: block;
  padding: 0;
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.dropdown.mega .mega-head img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  display: block;
}
.dropdown.mega .mega-head strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--forest-deep);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--sun);
}
.dropdown.mega .mega-head:hover strong { color: var(--forest); }
.dropdown.mega .mega-head:hover img { opacity: 0.88; }

.dropdown.mega ul { list-style: none; padding: 0; }
.dropdown.mega ul a {
  padding: 0.32rem 0.45rem;
  font-size: 0.87rem;
  color: #45524c;
  border-radius: 6px;
}

.nav-cta { margin-left: 0.6rem; }

/* ---------- Imigongo pattern band (signature element) ---------- */

.pattern-band {
  display: block;
  width: 100%;
  height: 26px;
  color: var(--forest-deep);
}
.pattern-band.gold { color: var(--sun); }

/* ---------- Hero ---------- */

.hero {
  background: var(--forest-deep);
  color: var(--paper);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 4.2rem;
  padding-bottom: 4.2rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  line-height: 1.3;
  max-width: 32ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--sun);
}

.hero p {
  margin: 1.4rem 0 2rem;
  font-size: 1.15rem;
  max-width: 48ch;
  color: rgba(246, 244, 237, 0.85);
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 340px;
}
.hero-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.4s ease;
}
.hero-photos a { display: block; overflow: hidden; border-radius: 10px; }
.hero-photos a:hover img { transform: scale(1.06); }

/* ---------- Sections ---------- */

section.block { padding: 4.5rem 0; }

.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head p { margin-top: 0.8rem; color: #4a5751; }

.block.tinted { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Pillar / program cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow: hidden;
}
.card.on-tint { background: var(--paper); box-shadow: none; }

.card-photo {
  width: calc(100% + 3.2rem);
  margin: -1.7rem -1.6rem 0.3rem;
  height: 180px;
  object-fit: cover;
  max-width: none;
}

.card-icon {
  width: 44px;
  height: 44px;
  color: var(--forest);
}

.card h3 { margin-top: 0.2rem; }
.card p { font-size: 0.98rem; color: #4a5751; flex: 1; }

.card .card-link {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.3rem;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.card .card-link .arrow { flex: none; white-space: nowrap; transition: transform 0.15s ease; }
.card .card-link:hover .arrow { transform: translateX(3px); }
.card .card-link:hover { text-decoration: underline; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; list-style: none; }
.tag-list li {
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(92, 143, 108, 0.13);
  color: var(--forest);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

/* ---------- Impact strip ---------- */

.impact {
  background: var(--forest);
  color: var(--paper);
}
.impact .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  text-align: center;
}
.impact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--sun);
  font-variant-numeric: tabular-nums;
}
.impact span { font-size: 0.95rem; }

/* ---------- Trades panel (VTC) ---------- */

.trades {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sun);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem 1.2rem;
  margin: 0 0 1.2rem;
}
.block.tinted .trades { background: var(--paper); }

.trades-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.7rem;
}
.trades ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.trades li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(92, 143, 108, 0.12);
  color: var(--forest-deep);
  border-radius: 999px;
  padding: 0.5rem 1rem 0.5rem 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.trades li svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--forest);
}
.trades-note {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: #4a5751;
}

/* ---------- Mission & vision ---------- */

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 2.6rem;
}
.mv-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sun);
  border-radius: var(--radius);
  padding: 1.8rem 1.8rem 2rem;
  box-shadow: var(--shadow);
}
.mv-card .eyebrow { margin-bottom: 0.6rem; }
.mv-card p {
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.45;
  color: var(--forest-deep);
}

@media (max-width: 760px) {
  .mission-vision { grid-template-columns: 1fr; }
}

/* ---------- Partners ---------- */

.partners {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.partners .wrap { padding-top: 3.2rem; padding-bottom: 3.2rem; }
.partners .section-head { margin-bottom: 2rem; text-align: center; max-width: none; }
.partners .section-head p { margin: 0.4rem auto 0; max-width: 50ch; }

.partner-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.6rem 2rem;
  align-items: center;
}
.partner-row a,
.partner-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 0.4rem;
}
.partner-row img {
  max-width: 100%;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.9);
  opacity: 0.92;
  transition: opacity 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}
.partner-row a:hover img,
.partner-row span:hover img { opacity: 1; filter: none; transform: scale(1.04); }

/* ---------- Team ---------- */

.team-group {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
  font-family: var(--font-body);
  margin: 2.2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.team-group:first-of-type { margin-top: 0; }

.staff-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 1.6rem 1.8rem;
  padding: 0;
}
.staff-grid li {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.block.tinted .staff-grid li { background: none; box-shadow: none; }

.staff-grid .avatar {
  flex: none;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--forest-deep);
  box-shadow: 0 0 0 1px rgba(64, 112, 80, 0.22);
}
.staff-grid strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--forest-deep);
  line-height: 1.25;
}
.staff-grid span {
  display: block;
  font-size: 0.88rem;
  color: #4a5751;
  margin-top: 0.2rem;
  line-height: 1.35;
}

/* ---------- Report download card ---------- */

.report-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.4rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow);
}
.report-card .doc-icon {
  width: 46px;
  height: 46px;
  color: var(--forest);
  flex: none;
}
.report-card h3 { margin-bottom: 0.25rem; }
.report-card p { font-size: 0.95rem; color: #4a5751; }
.report-card .btn { white-space: nowrap; }

@media (max-width: 700px) {
  .report-card { grid-template-columns: 1fr; text-align: left; gap: 1rem; }
  .report-card .btn { justify-self: start; }
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--sun-soft);
  border-top: 1px solid var(--line);
}
.cta-banner .wrap {
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: center;
}
.cta-banner p { max-width: 55ch; margin: 0.9rem auto 1.8rem; }

/* ---------- Page intro (inner pages) ---------- */

.page-intro {
  background: var(--forest-deep);
  color: var(--paper);
}
.page-intro .wrap { padding-top: 4rem; padding-bottom: 4rem; }
.page-intro h1 { color: var(--white); font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
.page-intro p { margin-top: 1rem; max-width: 60ch; color: rgba(246, 244, 237, 0.85); }
.page-intro .eyebrow { color: var(--sun); }

/* ---------- About page ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.split .prose p + p { margin-top: 1rem; }

.value-list { list-style: none; display: grid; gap: 1rem; }
.value-list li {
  background: var(--white);
  border-left: 4px solid var(--sun);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
}
.value-list strong { display: block; font-family: var(--font-display); color: var(--forest-deep); }

/* ---------- Programs page ---------- */

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.anchor-nav a {
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--paper);
  border: 1px solid rgba(246, 244, 237, 0.4);
  padding: 0.4rem 1rem;
  border-radius: 999px;
}
.anchor-nav a:hover { background: rgba(246, 244, 237, 0.15); }

.program-section { scroll-margin-top: 90px; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.contact-intro { max-width: 60ch; margin-bottom: 2rem; }
.contact-intro h2 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.contact-intro p { color: #3c4842; margin-bottom: 1.1rem; }
.contact-intro .btn-light { border: 1.5px solid var(--line); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.1rem;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--paper);
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--leaf);
  outline-offset: 1px;
  border-color: var(--leaf);
}
.field .error-msg {
  display: none;
  color: #a33d1e;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}
.field.invalid input,
.field.invalid textarea { border-color: #a33d1e; }
.field.invalid .error-msg { display: block; }

.form-status {
  display: none;
  background: rgba(92, 143, 108, 0.14);
  color: var(--forest-deep);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
}
.form-status.visible { display: block; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* ---------- Donate ---------- */
.donate-block { background: var(--forest-deep); color: #f2f0e6; }
.donate-block .eyebrow { color: var(--sun); }
.donate-main { max-width: 68ch; }
.donate-main h2 { color: #fff; }
.donate-main p { margin-top: 0.7rem; color: rgba(242, 240, 230, 0.86); }
.donate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.donate-proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2.4rem;
}
.proof-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.proof-card h3 {
  font-size: 1.05rem;
  color: var(--sun);
  margin-bottom: 0.5rem;
}
.proof-card p { font-size: 0.92rem; color: rgba(242, 240, 230, 0.86); }

/* ---------- Volunteer ---------- */
.volunteer-block { background: var(--paper); }
.volunteer-head { max-width: 62ch; margin-bottom: 1.8rem; }
.volunteer-head p { margin-top: 0.6rem; color: #3c4842; }
.volunteer-invite .btn-light { border: 1.5px solid var(--line); }
.volunteer-invite {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 720px;
}
.volunteer-invite h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.volunteer-invite p { color: #3c4842; }
.volunteer-invite ul {
  margin: 0.8rem 0 1rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
  color: #3c4842;
}
.volunteer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}
.detail-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.detail-card h3 { margin-bottom: 0.3rem; }
.detail-card a { word-break: break-word; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest-deep);
  color: rgba(246, 244, 237, 0.8);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 24px 2.5rem;
  max-width: var(--wrap);
  margin: 0 auto;
}
.site-footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.45rem; }
.site-footer a { color: rgba(246, 244, 237, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }

.social-row { display: flex; gap: 0.7rem; margin-top: 1rem; }
.social-row a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(246, 244, 237, 0.35);
}
.social-row a:hover { border-color: var(--sun); }
.social-row svg { width: 17px; height: 17px; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid rgba(246, 244, 237, 0.18);
  text-align: center;
  padding: 1.2rem 24px;
  font-size: 0.85rem;
}

/* ---------- Photos & galleries ---------- */

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(246, 244, 237, 0.15);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}
.photo-row figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.photo-row img { width: 100%; height: 220px; object-fit: cover; }
.photo-row figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest-deep);
}

.pillar-photos figure { position: relative; }
.pillar-photos figcaption {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

/* ---------- Program detail sections ---------- */

.program-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: stretch;
  padding: 3.2rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.program-detail.first { border-top: none; padding-top: 0.5rem; }
.program-detail .prose { align-self: center; }
/* AVP + Mediation: the photo column's height follows the text column */
#mediation .prose { align-self: start; }
#avp .detail-copy {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  min-width: 0;
}
#avp .quote-row {
  grid-column: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}
#avp .detail-media,
#mediation .detail-media {
  align-content: stretch;
  grid-template-rows: 1fr 1fr;
  height: 100%;
}
#avp .detail-media figure,
#mediation .detail-media figure { position: relative; min-height: 0; }
#avp .detail-media img,
#mediation .detail-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
}

/* Crossing layout: every other section flips media to the left */
.program-detail:nth-of-type(even) .prose { grid-column: 2; grid-row: 1; }
.program-detail:nth-of-type(even) .detail-media { grid-column: 1; grid-row: 1; }

.program-detail h3 {
  font-size: 1.55rem;
  margin-bottom: 0.7rem;
}
.program-detail .prose p + p,
.program-detail .prose ul + p,
.program-detail .prose p + ul { margin-top: 0.9rem; }
.program-detail .prose ul { padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.program-detail .prose { color: #3c4842; }
.program-detail .meta {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.4rem;
}

.detail-media {
  display: grid;
  gap: 1rem;
  grid-auto-rows: minmax(0, 1fr);
  align-content: center;
  min-height: 0;
}
.detail-media figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 0;
}
.detail-media img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  max-height: 460px;
  object-fit: cover;
  display: block;
}
.detail-media .card { align-self: stretch; }

blockquote.testimony {
  border-left: 4px solid var(--sun);
  background: var(--white);
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.1rem;
  font-style: italic;
  color: #3c4842;
  box-shadow: var(--shadow);
}
blockquote.testimony cite {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--forest);
}
.quote-stack { display: grid; gap: 0.9rem; margin-top: 1rem; }

/* Two-column lists keep long enumerations from towering over their photos */
.program-detail .prose ul.split-list {
  columns: 2;
  column-gap: 2rem;
  padding-left: 1.1rem;
  display: block;
}
.program-detail .prose ul.split-list li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
}

/* Testimonies span the full width beneath both columns */
.quote-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}
.quote-row .testimony { margin: 0; font-size: 0.92rem; }

/* GlobalGiving project links */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}
.project-links li { margin: 0; }
.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--forest);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.project-links a span { color: var(--leaf); font-weight: 400; }
.project-links a:hover {
  border-color: var(--sun);
  background: var(--paper);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .program-detail .prose ul.split-list { columns: 1; }
  .quote-row { grid-template-columns: 1fr; margin-top: 1.4rem; }
}


.footer-logo {
  width: 215px;
  margin-bottom: 1.2rem;
}
.footer-logo img { width: 100%; height: auto; display: block; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 3.2rem; padding-bottom: 3.2rem; }
  .hero-photos { order: -1; aspect-ratio: 16 / 10; max-height: 260px; }
  .split, .contact-grid, .program-detail { grid-template-columns: 1fr; }
  .program-detail:nth-of-type(even) .prose,
  .program-detail:nth-of-type(even) .detail-media { grid-column: 1; grid-row: auto; }
  #avp .quote-row { grid-template-columns: 1fr; }
  #avp .detail-media,
  #mediation .detail-media { height: auto; grid-template-rows: none; }
  #avp .detail-media figure,
  #mediation .detail-media figure { position: static; }
  #avp .detail-media img,
  #mediation .detail-media img { position: static; min-height: 210px; max-height: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 16px 1.2rem;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 0.75rem 0.6rem; }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 1rem;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }

  .dropdown.mega {
    width: auto;
    max-width: none;
    padding: 0 0 0 1rem;
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .has-dropdown.open .dropdown.mega { display: grid; }
  .dropdown.mega .mega-head { margin-top: 0.5rem; margin-bottom: 0.2rem; }
  .dropdown.mega .mega-head img { display: none; }

  .nav-cta { margin: 0.8rem 0 0; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; }
}
