/* ==========================================================================
   RACI — Main Stylesheet
   Forest green primary, savanna gold accent, soft sand neutral, white base.
   Fonts: Fraunces (headings) + Work Sans (body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Work+Sans:wght@400;500;600&display=swap');
:root {
  /* Brand colors */
  --color-forest: #1f5a3c;
  --color-forest-dark: #163f2a;
  --color-gold: #c99a3e;
  --color-gold-dark: #a87f2f;
  --color-sand: #f4ede0;
  --color-white: #ffffff;
  --color-ink: #1f2d24;
  --color-ink-soft: #4a5750;

  /* Type */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --radius: 6px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.6;
}

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

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: var(--space-sm); }
h3 { font-size: 1.25rem; margin-bottom: var(--space-xs); }

p { color: var(--color-ink-soft); }

main { overflow-x: hidden; }

/* ---------- Layout helpers ---------- */
.container,
header, footer,
section > *:not(.hero):not(.page-header) {
  max-width: var(--max-width);
  margin-inline: auto;
}

section { padding: var(--space-lg) var(--space-md); }
section:nth-of-type(even) { background: var(--color-sand); }

/* ---------- Header & Nav ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-sand);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

header img { height: 56px; width: auto; }

header nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
}

header nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--color-forest);
  position: relative;
  padding-bottom: 4px;
}

header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.25s ease;
}

header nav a:hover::after,
header nav a:focus-visible::after {
  width: 100%;
}

header nav a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.nav-badge {
  display: inline-block;
  margin-left: 0.35em;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-forest);
  background: var(--color-sand);
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  padding: 0.1em 0.5em;
  vertical-align: middle;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--color-forest);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75em 1.75em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-forest-dark);
  transform: translateY(-1px);
}

.btn-primary:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }

/* ---------- Hero (photo + green ribbon h1) ---------- */
.hero {
  position: relative;
  margin-bottom: var(--space-lg);
}

.hero img {
  width: 100%;
  height: clamp(280px, 45vw, 460px);
  object-fit: cover;
}

.hero h1 {
  position: relative;
  display: inline-block;
  color: var(--color-white);
  background: var(--color-forest);
  margin: -2.5rem 0 0 0;
  margin-inline-start: var(--space-md);
  padding: 0.6em 1.2em;
  box-shadow: 0 6px 18px rgba(31, 90, 60, 0.25);
}

/* ---------- Page header (solid band, no photo) ---------- */
.page-header {
  background: var(--color-forest);
  padding: var(--space-md) var(--space-md);
  margin-bottom: var(--space-lg);
}

.page-header h1 {
  color: var(--color-white);
  max-width: var(--max-width);
  margin-inline: auto;
}

.page-header__intro {
  color: var(--color-sand);
  max-width: 50ch;
  margin: var(--space-xs) auto 0;
  font-size: 1.05rem;
}

.page-header--motif {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-lg);
}

.page-header--motif::before {
  content: "";
  position: absolute;
  right: -60px;
  top: 50%;
  width: 280px;
  height: 280px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 2px solid rgba(244, 237, 224, 0.18);
  pointer-events: none;
}

.page-header--motif::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 170px;
  height: 170px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 2px solid rgba(201, 154, 62, 0.35);
  pointer-events: none;
}

/* ---------- Offerings (homepage teaser) ---------- */
.offerings-intro {
  max-width: 60ch;
  margin-bottom: var(--space-md);
}

.offering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.offering-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(31, 45, 36, 0.08);
}

.offering-card img { height: 190px; object-fit: cover; width: 100%; }
.offering-card > div { padding: var(--space-sm); }

.offerings-cta {
  margin-top: var(--space-md);
  text-align: center;
}

/* ---------- CTA section ---------- */
.cta-box {
  background: var(--color-gold);
  border-radius: var(--radius);
  padding: var(--space-md);
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.cta-box h2, .cta-box p { color: var(--color-forest-dark); }

/* ---------- Programs page ---------- */
.programs-category {
  padding-top: var(--space-md);
}

.category-heading {
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-md);
  display: inline-block;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.program-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(31, 45, 36, 0.08);
  padding-bottom: var(--space-sm);
}

.program-card img { height: 180px; object-fit: cover; width: 100%; }
.program-card h3, .program-card p { padding-inline: var(--space-sm); }
.program-card h3 { margin-top: var(--space-sm); }

.program-detail {
  font-size: 0.9rem;
  color: var(--color-forest);
  border-top: 1px dashed var(--color-sand);
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
}

/* ---------- Newsletter ---------- */
.newsletter-section {
  background: var(--color-forest);
  text-align: center;
}

.newsletter-section h2, .newsletter-section p { color: var(--color-white); }
.newsletter-section p { margin-bottom: var(--space-md); max-width: 50ch; margin-inline: auto; }

.newsletter-from {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  max-width: 700px;
  margin-inline: auto;
}

.newsletter-from label {
  width: 100%;
  text-align: left;
  font-size: 0.8rem;
  color: var(--color-sand);
  margin-bottom: -0.5rem;
}

.newsletter-from .form-status {
  width: 100%;
  text-align: center;
}

.newsletter-from .form-status--success { color: var(--color-gold); }
.newsletter-from .form-status--error { color: #f3a3a3; }

.newsletter-from input {
  flex: 1 1 240px;
  padding: 0.7em 1em;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
}

.newsletter-from button {
  flex: 0 0 auto;
  background: var(--color-gold);
  color: var(--color-forest-dark);
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 0.7em 1.5em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-from button:hover { background: var(--color-gold-dark); color: var(--color-white); }

/* ---------- Contact page ---------- */
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-lg);
  align-items: start;
}

.org-details {
  background: var(--color-sand);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.org-details h2 { margin-bottom: var(--space-sm); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-list li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.contact-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--color-forest);
  color: var(--color-white);
  border-radius: 50%;
}

.contact-icon svg { width: 18px; height: 18px; }

.contact-list strong {
  display: block;
  color: var(--color-forest);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.15em;
}

.contact-list p { margin: 0; color: var(--color-ink); }
.contact-list a { color: var(--color-gold-dark); text-decoration: underline; }

.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(31, 45, 36, 0.08); }
.map-container iframe { width: 100%; height: 100%; min-height: 360px; }

/* ---------- Message form ---------- */
.message-section { text-align: center; }

.contact-form {
  max-width: 700px;
  margin-inline: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-forest);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7em 1em;
  border: 1px solid var(--color-sand);
  border-radius: var(--radius);
  font-family: var(--font-body);
  background: var(--color-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
}

.contact-form button { align-self: flex-start; margin-top: var(--space-xs); }

.form-status {
  font-size: 0.95rem;
  margin-top: var(--space-xs);
  min-height: 1.2em;
}

.form-status--success { color: var(--color-forest); font-weight: 600; }
.form-status--error { color: #a33; font-weight: 600; }

/* ---------- About page ---------- */
.who-we-are {
  max-width: 75ch;
  margin-inline: auto;
}

.vmm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.vmm-card {
  background: var(--color-white);
  border-top: 4px solid var(--color-gold);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: 0 2px 10px rgba(31, 45, 36, 0.08);
}

.vmm-card--motto {
  background: var(--color-forest);
  border-top-color: var(--color-gold);
}

.vmm-card--motto h2,
.vmm-card--motto p {
  color: var(--color-white);
}

.value-tags,
.priority-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.value-tags li,
.priority-tags li {
  background: var(--color-forest);
  color: var(--color-white);
  border-radius: 999px;
  padding: 0.5em 1.25em;
  font-size: 0.9rem;
  font-weight: 500;
}

.priority-tags li {
  background: var(--color-white);
  color: var(--color-forest);
  border: 1.5px solid var(--color-gold);
}

.focus-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  counter-reset: focus-counter;
}

.focus-list li {
  counter-increment: focus-counter;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(31, 45, 36, 0.08);
  padding: var(--space-md) var(--space-sm) var(--space-sm);
  font-weight: 500;
  color: var(--color-forest);
}

.focus-list li::before {
  content: counter(focus-counter);
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.approach-card {
  background: var(--color-sand);
  border-left: 4px solid var(--color-forest);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
}

.approach-card h4 {
  font-family: var(--font-heading);
  color: var(--color-forest);
  margin-bottom: var(--space-xs);
}
/* ---------- Peace Project page ---------- */
.stat-strip {
  background: var(--color-forest);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
  padding: var(--space-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
  max-width: 240px;
}

.stat-number {
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-size: 1.75rem;
  font-weight: 700;
}

.stat-label {
  color: var(--color-sand);
  font-size: 0.85rem;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(244, 237, 224, 0.3);
}

.scope-section, .vision-section { max-width: 75ch; margin-inline: auto; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.pillar-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(31, 45, 36, 0.08);
  padding: var(--space-md);
}

.pillar-tagline {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.pillar-tag {
  background: var(--color-sand);
  color: var(--color-forest);
  border-radius: 999px;
  padding: 0.3em 0.9em;
  font-size: 0.8rem;
  font-weight: 600;
}

.pillar-tag--gold {
  background: var(--color-gold);
  color: var(--color-white);
}

.pillar-arrow { color: var(--color-gold-dark); font-weight: 700; }

.uganda-note {
  margin-top: var(--space-sm);
  background: var(--color-sand);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius);
  padding: var(--space-sm);
  font-size: 0.9rem;
}

.uganda-note strong { color: var(--color-forest); }

.lead-org-banner {
  background: var(--color-gold);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
  align-items: baseline;
  margin-bottom: var(--space-md);
}

.lead-org-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--color-forest-dark);
}

.lead-org-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-white);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.partner-country-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(31, 45, 36, 0.08);
  padding: var(--space-md);
}

.partner-country-card--highlight {
  border: 2px solid var(--color-gold);
}

.partner-country-card h3 {
  border-bottom: 2px solid var(--color-sand);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.partner-country-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}

.partner-self {
  font-weight: 700;
  color: var(--color-forest);
}

.partner-self .nav-badge {
  background: var(--color-forest);
  color: var(--color-white);
  border-color: var(--color-gold);
}
/* ---------- Team page ---------- */
.team-section { margin-bottom: var(--space-md); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(31, 45, 36, 0.08);
  padding: var(--space-md);
  text-align: center;
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-sm);
  border: 3px solid var(--color-gold);
}

.team-role {
  color: var(--color-gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.team-bio { font-size: 0.9rem; }

/* ---------- News page ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.news-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(31, 45, 36, 0.08);
}

.news-card img { height: 180px; object-fit: cover; width: 100%; }
.news-card__body { padding: var(--space-sm) var(--space-md) var(--space-md); }

.news-tag {
  display: inline-block;
  background: var(--color-sand);
  color: var(--color-forest);
  border-radius: 999px;
  padding: 0.25em 0.85em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.news-date {
  color: var(--color-gold-dark);
  font-size: 0.8rem;
  margin-bottom: var(--space-xs);
}

.news-link {
  display: inline-block;
  margin-top: var(--space-xs);
  font-weight: 600;
  color: var(--color-forest);
  border-bottom: 2px solid var(--color-gold);
}

/* ---------- Gallery page ---------- */
.gallery-section { margin-bottom: var(--space-md); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(31, 45, 36, 0.08);
}

.gallery-item img { width: 100%; height: 220px; object-fit: cover; }

.gallery-item figcaption {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  background: var(--color-white);
}

/* ---------- Donate page ---------- */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.donate-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(31, 45, 36, 0.08);
  padding: var(--space-md);
}

.donate-card--highlight {
  background: var(--color-forest);
  color: var(--color-white);
}

.donate-card--highlight h3 { color: var(--color-white); }

.donate-detail { font-size: 0.92rem; margin-bottom: 0.4em; }
.donate-card--highlight .donate-detail { color: var(--color-sand); }
.donate-card--highlight .donate-detail strong { color: var(--color-white); }

.amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: var(--space-sm) 0;
}

.amount-chip {
  background: rgba(244, 237, 224, 0.15);
  border: 1.5px solid var(--color-gold);
  color: var(--color-white);
  border-radius: 999px;
  padding: 0.4em 1.1em;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.amount-chip:hover,
.amount-chip:focus-visible {
  background: var(--color-gold);
}

.amount-chip.is-active {
  background: var(--color-gold);
  border-color: var(--color-white);
  color: var(--color-forest-dark);
}

.amount-other {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
  text-align: left;
}

.amount-other label {
  display: block;
  color: var(--color-white);
  font-size: 0.85rem;
  margin-bottom: 0.3em;
}

.amount-other input {
  width: 100%;
  padding: 0.5em 0.8em;
  border-radius: var(--radius);
  border: 1.5px solid var(--color-gold);
  font-size: 1rem;
  font-family: var(--font-body);
}

/* ---------- Footer ---------- */
footer {
  background: var(--color-forest-dark);
  color: var(--color-sand);
  text-align: center;
  padding: var(--space-md);
}

footer p { color: var(--color-sand); margin-bottom: var(--space-sm); }

.footer-legal { font-size: 0.85rem; margin-top: calc(var(--space-sm) * -0.5); }
.footer-legal a { color: var(--color-sand); text-decoration: underline; }
.footer-legal a:hover,
.footer-legal a:focus-visible { color: var(--color-gold); }

footer nav, .socialmedia {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

footer img { height: 22px; width: 22px; filter: brightness(0) invert(1); opacity: 0.85; }
footer a:hover img { opacity: 1; }

.footer-icon {
  height: 22px;
  width: 22px;
  color: var(--color-sand);
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

footer a:hover .footer-icon {
  opacity: 1;
  color: var(--color-gold);
}