/* ============================================
   Gugulethu Foundation — Design System
   ============================================ */

:root {
  /* Brand palette — credible, calm, hopeful */
  --primary: #1E3A5F;
  --primary-hover: #163049;
  --primary-light: #E8EEF4;
  --accent: #D97706;
  --accent-hover: #B45309;
  --accent-light: #FFFBEB;
  --success: #2E5E4E;
  --success-light: #E8F0EC;
  --text: #1F2937;
  --text-heading: #111827;
  --bg-light: #F9FAFB;
  --bg-section: #F3F4F6;

  /* Mapped tokens */
  --white: #FFFFFF;
  --off-white: var(--bg-light);
  --light-gray: var(--bg-section);
  --charcoal: var(--text-heading);
  --text-body: var(--text);
  --navy: var(--primary);
  --navy-light: var(--primary-hover);
  --orange: var(--accent);
  --orange-hover: var(--accent-hover);
  --orange-light: var(--accent-light);
  --blue: var(--primary);
  --blue-hover: var(--primary-hover);
  --blue-light: var(--primary-light);
  --red: var(--primary);
  --red-light: var(--primary-light);
  --green: var(--success);
  --green-light: var(--success-light);
  --gold: var(--primary);
  --gold-light: var(--primary-light);

  --gradient-rainbow: var(--primary);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-padding: 5rem 0;
  --container-max: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.25;
  font-weight: 700;
}

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

/* Gradient Top Bar */
.gradient-bar {
  height: 3px;
  background: var(--gradient-rainbow);
  width: 100%;
}

/* Section Divider */
.section-divider {
  height: 3px;
  width: 80px;
  background: var(--gradient-rainbow);
  border-radius: 2px;
  margin: 1rem auto 0;
}

.section-divider.left { margin-left: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.25);
}

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

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

.btn-navy {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-navy:hover {
  background: var(--bg-light);
  border-color: var(--bg-light);
  color: var(--primary);
}

/* ============================================
   Header
   ============================================ */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  width: auto;
  object-fit: contain;
}

.logo-img-header {
  height: 56px;
  max-width: 220px;
}

.logo-img-footer {
  height: 72px;
  max-width: 260px;
  margin-bottom: 1rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--charcoal);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--charcoal);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--charcoal);
}

.mobile-toggle svg { width: 28px; height: 28px; }

/* ============================================
   Hero Sections
   ============================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.bg-parallax-target {
  inset: -8%;
  transform: scale(1.06);
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.75) 0%,
    rgba(15, 23, 42, 0.45) 50%,
    rgba(15, 23, 42, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   Home Hero — Stacked Headline
   ============================================ */
.hero-home {
  min-height: 85vh;
  align-items: center;
}

.hero-home .container {
  max-width: none;
  width: 100%;
  padding-left: clamp(2rem, 7vw, 9rem);
  padding-right: 2rem;
}

.hero-home .hero-bg::after {
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.82) 0%,
    rgba(15, 23, 42, 0.55) 45%,
    rgba(15, 23, 42, 0.15) 100%
  );
}

.hero-content-stacked {
  max-width: 680px;
  margin-left: 0;
  margin-right: auto;
  padding: 6rem 0;
  text-align: left;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5rem;
  font-weight: 800;
  line-height: 1.05;
}

.hero-line {
  display: block;
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero-line-accent {
  color: var(--white);
}

.btn-hero {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ============================================
   South Africa Dot Map Section
   ============================================ */
.sa-map-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.sa-map-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/the-gugulethufoundationis.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.sa-map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
}

.sa-map-content {
  position: relative;
  z-index: 2;
}

.sa-map-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
  min-height: 380px;
}

.sa-map-text {
  display: flex;
  align-items: center;
}

.sa-map-paragraph {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--charcoal);
  max-width: 520px;
}

.highlight-tag {
  display: inline;
  background: none;
  color: var(--primary);
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  box-decoration-break: unset;
  -webkit-box-decoration-break: unset;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.sa-map-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.sa-map-graphic svg {
  width: 100%;
  max-width: 480px;
  height: auto;
}

/* ============================================
   Parallax Impact Circles
   ============================================ */
.parallax-impact {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background: var(--bg-light);
}

.parallax-impact-bg,
.parallax-impact-overlay {
  display: none;
}

.parallax-impact .container {
  position: relative;
  z-index: 2;
}

.impact-circles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
  max-width: 1240px;
  margin: 0 auto;
}

.impact-circle {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  min-height: 320px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--white);
  border: 2px solid var(--primary-light);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.impact-circle:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.impact-circle-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.impact-circle-icon svg {
  width: 100%;
  height: 100%;
}

.impact-circle-red,
.impact-circle-gold,
.impact-circle-green {
  background: var(--white);
}

.impact-circle-text {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.impact-circle-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
  line-height: 1.3;
  color: var(--text-heading);
}

.impact-highlight {
  display: inline;
  background: none;
  color: var(--primary);
  padding: 0;
  border-radius: 0;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  box-decoration-break: unset;
  -webkit-box-decoration-break: unset;
}

/* Hero with badge (inner pages) */
.hero-inner {
  min-height: 380px;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}

.hero-badge {
  position: relative;
  z-index: 2;
  background: var(--bg-section);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 2rem;
  border-radius: 50px;
  margin-bottom: -2rem;
  box-shadow: var(--shadow);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 3rem 0 1.5rem;
  font-size: 0.875rem;
  color: var(--text-body);
}

.breadcrumbs a { color: var(--primary); }
.breadcrumbs span { color: var(--text-heading); font-weight: 500; }

/* ============================================
   Section Styles
   ============================================ */
.section {
  padding: var(--section-padding);
}

.section-alt { background: var(--bg-light); }

.section-dark {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
}

.section-dark h2,
.section-dark h3 { color: var(--white); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-body);
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   Impact Cards (3-column)
   ============================================ */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.impact-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.impact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.impact-card.red::before { background: var(--red); }
.impact-card.gold::before { background: var(--gold); }
.impact-card.green::before { background: var(--green); }

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.impact-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
}

.impact-card.red .impact-icon { background: var(--red-light); }
.impact-card.gold .impact-icon { background: var(--gold-light); }
.impact-card.green .impact-icon { background: var(--green-light); }

.impact-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.impact-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   About Split Section
   ============================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.reveal-media:hover img,
.about-image:hover img,
.overlap-image:hover img,
.programme-card-media:hover img {
  transform: scale(1.06);
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--gradient-rainbow);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.3;
}

.about-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

/* ============================================
   Involvement Cards
   ============================================ */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.involve-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.involve-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.involve-icon {
  width: auto;
  height: auto;
  min-height: 88px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 3.5rem;
  background: transparent !important;
  line-height: 1;
}

.involve-icon-img {
  padding: 0;
  overflow: visible;
  background: transparent !important;
}

.involve-icon-img img {
  width: 120px;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}

.involve-card:hover .involve-icon-img img {
  transform: scale(1.08) translateY(-4px);
}

.involve-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.involve-card p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.involve-card a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================
   Page Layout with Sidebar
   ============================================ */
.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-nav {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sidebar-nav a {
  display: block;
  padding: 1rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--charcoal);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-nav a:last-child { border-bottom: none; }

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
  padding-left: 1.75rem;
}

.page-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

/* Value Tags */
.value-highlight {
  margin-bottom: 2rem;
}

.value-tag {
  display: inline-block;
  background: var(--bg-section);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.value-highlight h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Focus Areas — Programme Cards (image card layout) */
.programme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.programme-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.programme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.programme-card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.programme-card-media {
  overflow: hidden;
}

.programme-card-body {
  padding: 1.5rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.programme-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  color: var(--navy);
  line-height: 1.35;
}

.programme-card-tagline {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.programme-card--red .programme-card-tagline,
.programme-card--green .programme-card-tagline,
.programme-card--gold .programme-card-tagline,
.programme-card--blue .programme-card-tagline,
.programme-card--orange .programme-card-tagline {
  color: var(--text);
}

.programme-card-desc {
  font-size: 0.92rem;
  margin-bottom: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  flex: 1;
}

.programme-card-initiatives-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.programme-card-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.programme-card-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  margin-bottom: 0.3rem;
  color: var(--text-body);
  line-height: 1.5;
}

.programme-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.programme-card--red .programme-card-list li::before,
.programme-card--green .programme-card-list li::before,
.programme-card--gold .programme-card-list li::before,
.programme-card--blue .programme-card-list li::before,
.programme-card--orange .programme-card-list li::before {
  background: var(--primary);
}

.programme-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--light-gray);
}

.programme-card-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  min-width: 0;
}

.programme-card-category svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary);
}

.programme-card--red .programme-card-category svg,
.programme-card--green .programme-card-category svg,
.programme-card--gold .programme-card-category svg,
.programme-card--blue .programme-card-category svg,
.programme-card--orange .programme-card-category svg {
  color: var(--primary);
}

.programme-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.programme-card-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.programme-card--red .programme-card-btn,
.programme-card--green .programme-card-btn,
.programme-card--gold .programme-card-btn,
.programme-card--blue .programme-card-btn,
.programme-card--orange .programme-card-btn {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.programme-card--red .programme-card-btn:hover,
.programme-card--green .programme-card-btn:hover,
.programme-card--gold .programme-card-btn:hover,
.programme-card--blue .programme-card-btn:hover,
.programme-card--orange .programme-card-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Legacy focus grid (kept for compatibility) */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.focus-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.focus-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.focus-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.focus-item p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.focus-item p:last-child { margin-bottom: 0; }

.programme-tagline {
  font-weight: 500;
  color: var(--charcoal);
}

.initiatives-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem !important;
}

.focus-initiatives {
  list-style: none;
  margin: 0;
  padding: 0;
}

.focus-initiatives li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--text-body);
}

.focus-initiatives li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ============================================
   What We Do — Image Cards
   ============================================ */
.program-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.program-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.program-card:hover { transform: translateY(-4px); }

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

.program-card-bar {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}

.program-card-bar.red { background: var(--red); }
.program-card-bar.gold { background: var(--gold); }
.program-card-bar.green { background: var(--green); }

.program-card-bar svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Dark section cards */
.dark-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.dark-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-body);
}

.dark-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
}

.dark-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.dark-card p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ============================================
   Impact Stats
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================
   Impact Translation Cards
   ============================================ */
.impact-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.impact-amount-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.impact-amount-card:hover { transform: translateY(-4px); }

.impact-amount-card .card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.impact-amount-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.amount-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.impact-amount-card .card-body {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   Donation Section
   ============================================ */
.donate-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.donate-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.donate-tabs {
  display: flex;
}

.donate-tab {
  flex: 1;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  background: var(--off-white);
  color: var(--text-body);
  transition: all 0.2s;
}

.donate-tab.active {
  background: var(--primary);
  color: var(--white);
}

.donate-form {
  padding: 2rem;
}

.donate-form h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.amount-btn {
  padding: 0.75rem;
  border: 2px solid rgba(15, 23, 42, 0.12);
  border-radius: 50px;
  background: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--charcoal);
}

.amount-btn:hover,
.amount-btn.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.custom-amount {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid rgba(15, 23, 42, 0.12);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  outline: none;
  transition: border-color 0.2s;
}

.custom-amount:focus {
  border-color: var(--primary);
}

.donate-form .btn-primary {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
}

.donate-disclaimer {
  font-size: 0.8rem;
  color: var(--text-body);
  margin-top: 1rem;
  text-align: center;
  opacity: 0.7;
}

/* Alternative donation cards */
.alt-donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.alt-donate-card {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.alt-donate-card:nth-child(2) {
  background: var(--primary-hover);
}

.alt-donate-card svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  opacity: 0.9;
}

.alt-donate-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.alt-donate-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.95;
}

.alt-donate-card a {
  color: var(--white);
  text-decoration: underline;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-body);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 1rem;
  color: var(--charcoal);
  font-weight: 500;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  background: var(--accent);
  padding: 3.5rem 0;
}

.cta-banner--primary {
  background: var(--primary);
}

.cta-banner--primary .btn-primary {
  flex-shrink: 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-banner .btn-navy {
  flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 1.25rem 0;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

.footer-social a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-contact a:hover { color: var(--white); }

.footer-donate { margin-top: 1.25rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--white); }

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-gradient {
  height: 3px;
  background: var(--gradient-rainbow);
}

/* ============================================
   Media Reveal & Motion
   ============================================ */
.reveal-media,
.programme-card {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s ease, box-shadow 0.3s;
}

.reveal-media.is-visible,
.programme-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-media.is-visible:hover,
.programme-card.is-visible:hover {
  transform: translateY(-4px);
}

.programme-card.is-visible {
  transition: opacity 0.75s ease, transform 0.75s ease, box-shadow 0.3s;
}

.overlap-image img {
  transition: transform 0.55s ease;
}

@media (prefers-reduced-motion: reduce) {
  .bg-parallax-target {
    transform: none !important;
    transition: none !important;
  }

  .reveal-media,
  .programme-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-media img,
  .about-image img,
  .overlap-image img,
  .programme-card-media img,
  .involve-icon-img img {
    transition: none;
  }
}

/* ============================================
   Overlap Feature Section
   ============================================ */
.overlap-section {
  position: relative;
  padding: 4rem 0;
}

.overlap-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  align-items: center;
}

.overlap-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  z-index: 2;
  margin-right: -3rem;
  box-shadow: var(--shadow-lg);
}

.overlap-card h2 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.overlap-card p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.overlap-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.overlap-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 1024px) {
  .hero-home {
    min-height: 90vh;
  }

  .hero-home .container {
    padding-left: clamp(3rem, 10vw, 12rem);
  }

  .hero-content-stacked {
    max-width: 700px;
    padding: 8rem 0;
  }

  .sa-map-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1rem;
  }

  .sa-map-graphic svg {
    max-width: 520px;
  }

  .parallax-impact {
    padding: 7rem 0;
  }

  .impact-circles {
    gap: 1.75rem;
  }

  .impact-circle {
    max-width: 360px;
    padding: 3.25rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .impact-circle {
    max-width: 400px;
    padding: 3.5rem 2.75rem;
  }

  .impact-circle-text strong {
    font-size: 1.35rem;
  }
}

@media (max-width: 1024px) {
  .impact-circles {
    gap: 1.5rem;
    max-width: 900px;
  }

  .impact-circle {
    max-width: 340px;
    padding: 2.75rem 2rem;
  }

  .impact-circle-text strong {
    font-size: clamp(1.3rem, 3.2vw, 1.65rem);
  }

  .impact-grid,
  .involve-grid,
  .program-cards,
  .programme-grid,
  .dark-cards,
  .stats-grid,
  .impact-amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
  }

  .sidebar-nav a {
    white-space: nowrap;
    border-bottom: none;
    border-right: 1px solid rgba(15, 23, 42, 0.06);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 0;
  }

  .logo-img-header {
    height: 44px;
    max-width: 180px;
  }

  .logo-img-footer {
    height: 60px;
    max-width: 220px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 0.875rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }

  .mobile-toggle { display: block; }

  .header-actions .btn { display: none; }

  .hero { min-height: 440px; }

  .about-split,
  .donate-layout,
  .contact-layout,
  .overlap-grid {
    grid-template-columns: 1fr;
  }

  .about-image { order: -1; }
  .about-image img { height: 300px; }

  .impact-grid,
  .involve-grid,
  .program-cards,
  .dark-cards,
  .stats-grid,
  .impact-amount-grid,
  .focus-grid,
  .programme-grid,
  .alt-donate-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .overlap-card {
    margin-right: 0;
    margin-bottom: -2rem;
  }

  .overlap-image img { height: 280px; }

  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sa-map-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .sa-map-paragraph {
    max-width: 100%;
  }

  .sa-map-graphic {
    min-height: 280px;
  }

  .impact-circles {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
    gap: 2.5rem;
  }

  .parallax-impact-bg {
    background-attachment: scroll;
    inset: 0;
  }

  .hero-home .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-home {
    min-height: 70vh;
  }

  .hero-content-stacked {
    padding: 4rem 0;
  }
}
