/* WPESS - Women Peace Envoy South Sudan
   Base styles */

:root {
  --color-primary: #0281bc;
  --color-primary-dark: #045173;
  --color-primary-light: #e7f4fb;
  --color-accent: #029508;
  --color-accent-dark: #027a07;
  --color-footer: #06293b;
  --color-ink: #1f2422;
  --color-muted: #5c6663;
  --color-bg: #faf8f3;
  --color-surface: #ffffff;
  --color-border: #e2e6ea;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(15, 45, 84, 0.08);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Quicksand", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

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

a {
  color: var(--color-primary-dark);
}

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

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 0.5em;
}

section {
  padding: 64px 0;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-heading .eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-heading p {
  color: var(--color-muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: var(--color-primary);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--color-primary-dark);
}

.btn-paypal {
  background: #003087;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.btn-paypal:hover {
  background: #001c64;
  color: #fff;
}

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 16px rgba(15, 45, 84, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-ink);
}

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

.brand-logo-color {
  display: none;
}

.brand-logo-white {
  display: block;
}

.site-header.scrolled .brand-logo-color {
  display: block;
}

.site-header.scrolled .brand-logo-white {
  display: none;
}

.footer-logo {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: #fff;
  opacity: 0.8;
}

.site-header.scrolled .nav-links a {
  color: var(--color-ink);
}

.site-header.scrolled .nav-links a.active,
.site-header.scrolled .nav-links a:hover {
  color: var(--color-primary);
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-actions .btn,
.nav-actions .btn:hover {
  color: #fff;
}

/* Header search */
.nav-search {
  position: relative;
}

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-header.scrolled .search-toggle {
  color: var(--color-ink);
}

.search-toggle:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.nav-search-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 300px;
  max-width: 82vw;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}

.nav-search.open .nav-search-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-search-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--color-bg);
  color: var(--color-ink);
}

.nav-search-results {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 240px;
  overflow-y: auto;
}

.nav-search-results a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-search-results a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.nav-search-empty {
  color: var(--color-muted);
  font-size: 0.85rem;
  padding: 6px 4px;
}

/* Mega menu */
.has-mega {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.mega-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-ink);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  width: 640px;
  max-width: 90vw;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 28px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.has-mega:hover .mega-menu,
.has-mega.open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 28px;
}

.mega-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 14px;
}

.mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-col li {
  margin-bottom: 10px;
}

.mega-col a {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.mega-col a:hover {
  color: var(--color-primary);
}

.mega-feature {
  background: var(--color-primary-light);
  border-radius: 10px;
  padding: 18px;
}

.mega-feature h4 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: var(--color-primary-dark);
  margin: 10px 0 6px;
}

.mega-feature p {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.mega-feature-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.25s ease;
}

.site-header.scrolled .nav-toggle span {
  background: var(--color-ink);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  background-color: var(--color-primary-dark);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Crect width='10' height='10' fill='%23045173' fill-opacity='0.72'/%3E%3C/svg%3E"),
    url("/images/savanna-landscape.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  color: #fff;
  padding: calc(var(--header-h, 76px) + 48px) 0 48px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero > .container {
  width: 100%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-inner > div {
  min-width: 0;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 18px;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-tag svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.hero-stat-badge .avatars {
  display: flex;
}

.hero-stat-badge .avatars span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--color-primary-dark);
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
}

.hero-stat-badge .avatars span:first-child {
  margin-left: 0;
}

.hero-stat-badge .avatars span:nth-child(2) {
  background: var(--color-primary);
}

.hero-stat-badge strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

.hero-stat-badge small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}

.hero-media {
  position: relative;
  border-radius: 42% 58% 54% 46% / 46% 42% 58% 54%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media svg {
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slideshow-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-slideshow-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-slideshow-dots button.active {
  background: #fff;
  transform: scale(1.25);
}

.page-hero {
  background-color: var(--color-primary-dark);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Crect width='10' height='10' fill='%23045173' fill-opacity='0.72'/%3E%3C/svg%3E"),
    url("/images/savanna-landscape.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  color: #fff;
  padding: calc(var(--header-h, 76px) + 64px) 0 64px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 60ch;
  margin: 0 auto;
}

/* Stats */
.stats-bar {
  background: var(--color-primary-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.stat-label {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.stats-note {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: 22px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--color-muted);
  margin-bottom: 0;
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* Two column feature */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-split p {
  text-align: justify;
  hyphens: none;
}

.feature-media {
  background: var(--color-primary-light);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.feature-media.photo {
  padding: 0;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-media svg {
  width: 70%;
  height: 70%;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Banner CTA */
.cta-banner {
  background-color: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='2' cy='2' r='1.6' fill='%23ffffff' fill-opacity='0.14'/%3E%3C/svg%3E");
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: 12px;
}

.cta-banner p {
  max-width: 60ch;
  margin: 0 auto 24px;
}

.cta-banner .btn {
  background: #fff;
  color: var(--color-primary-dark);
}

.cta-banner .btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.form-field label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--color-ink);
}

.form-field label svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Contact page */
.contact-grid {
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
}

.contact-intro {
  color: var(--color-muted);
  margin-bottom: 26px;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-item .icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-detail-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-detail-item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.contact-detail-item a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-detail-item a:hover {
  text-decoration: underline;
}

.contact-map-section {
  padding-top: 0;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}

.map-embed iframe {
  display: block;
}

.social-icons.light {
  margin-top: 4px;
}

.social-icons.light a {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.social-icons.light a:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn svg {
  vertical-align: -2px;
  margin-right: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-ink);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Donate options */
.donate-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.donate-option {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--color-surface);
}

.donate-option h3 {
  font-size: 1.05rem;
}

.donate-option dl {
  margin: 14px 0 0;
  font-size: 0.9rem;
}

.donate-option dt {
  color: var(--color-muted);
  margin-top: 8px;
}

.donate-option dd {
  margin: 0;
  font-weight: 600;
}

/* Timeline / news */
.news-post {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.news-post p {
  text-align: justify;
  hyphens: none;
}

.news-meta {
  color: var(--color-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.placeholder-card {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--color-muted);
  background: rgba(0, 0, 0, 0.015);
}

/* Contact strip: an inset card that stands between the page content and the footer,
   with its lower edge overlapping the footer's dark background */
.contact-strip {
  position: relative;
  z-index: 2;
  padding: 0;
  margin: 40px 0 -44px;
}

.contact-strip-grid {
  background-color: var(--color-accent);
  border-radius: 20px;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-strip-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.contact-strip-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-strip-item strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
  font-weight: 700;
}

.contact-strip-item span {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background-color: var(--color-footer);
  color: rgba(255, 255, 255, 0.85);
  padding: 104px 0 0;
}

.footer-post {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-post-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-post-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.footer-post-title {
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.35;
}

.newsletter-inline {
  display: flex;
  margin-top: 12px;
}

.newsletter-inline input {
  flex: 1;
  min-width: 0;
  border-radius: 999px 0 0 999px;
  border: none;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 0.9rem;
}

.newsletter-inline button {
  border-radius: 0 999px 999px 0;
  border: none;
  background: var(--color-accent);
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
}

.newsletter-agree {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 10px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 52px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons a:hover {
  background: var(--color-accent);
}

.social-icons svg {
  width: 15px;
  height: 15px;
}

/* Bottom bar: a full-width green strip carrying copyright + legal links */
.footer-bottom {
  background: var(--color-accent);
  margin-top: 36px;
}

.footer-bottom-inner {
  padding: 26px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #fff;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-inner,
  .feature-split {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .card-grid,
  .donate-options {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .contact-strip-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 620px) {
  .nav-right {
    gap: 8px;
  }

  .nav-links-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  }

  .nav-links-wrap.open {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
  }

  .site-header .nav-links a {
    color: var(--color-ink);
  }

  .site-header .nav-links a.active,
  .site-header .nav-links a:hover {
    color: var(--color-primary);
    opacity: 1;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    overflow: hidden;
    min-height: 0;
  }

  .nav-toggle {
    display: block;
  }

  .search-toggle {
    width: 32px;
    height: 32px;
  }

  .nav-actions .btn {
    padding: 9px 16px;
    font-size: 0.88rem;
  }

  .has-mega {
    width: 100%;
    flex-wrap: wrap;
  }

  .mega-toggle {
    display: block;
    margin-left: auto;
    transition: transform 0.2s ease;
  }

  .has-mega.open .mega-toggle {
    transform: rotate(180deg);
  }

  .mega-menu {
    position: static;
    width: 100%;
    max-width: none;
    box-shadow: none;
    border: none;
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .mega-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 12px 0 4px;
  }

  .hero {
    padding: calc(var(--header-h, 64px) + 24px) 0 40px;
    min-height: auto;
  }

  .hero-inner {
    gap: 0;
  }

  .hero-inner > div:not(.hero-media) {
    min-width: 0;
    text-align: center;
  }

  .hero-media {
    width: 260px;
    height: 195px;
    max-width: 100%;
    justify-self: center;
    margin: 0 auto 22px;
  }

  .hero-tag {
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 14px;
  }

  .hero p {
    font-size: 1rem;
    margin: 0 auto 24px;
    max-width: 34ch;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .hero-stat-badge {
    max-width: 100%;
    margin-top: 20px;
  }

  .hero-stat-badge > div {
    min-width: 0;
    text-align: left;
  }

  .card-grid,
  .donate-options,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 48px 0;
  }

  .cta-banner {
    padding: 32px 20px;
  }

  .contact-strip {
    margin: 24px 0 -20px;
  }

  .contact-strip-grid {
    padding: 22px 20px;
    border-radius: 16px;
  }

  .site-footer {
    padding-top: 56px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .feature-split p,
  .news-post p {
    text-align: left;
  }
}

/* Scroll-reveal animation (class added by script.js; content stays fully
   visible if JS never runs, since the .reveal class is never in the HTML) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.8, 0.24, 1),
    transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Gentle continuous float on the hero image panel */
@keyframes wpess-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-media {
  animation: wpess-float 6s ease-in-out infinite;
}

/* Respect users who've asked for reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition: opacity 0.3s ease;
    transform: none;
  }

  .hero-media {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}
