/* ============================================================
   HEAR NGO — Main Stylesheet
   Version: 2.0.0
   A modern, accessible, mobile-first CSS for all public pages.
   Completely rewritten to match HTML class names.
   ============================================================ */

/* ------------------------------------------------------------
   0. CSS CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {
  /* HEAR Brand — Monochromatic (Black #000 / White #FFF) */
  --color-primary: #000000;
  --color-primary-light: #333333;
  --color-primary-dark: #000000;
  --color-accent: #000000;
  --color-accent-light: #333333;
  --color-accent-dark: #000000;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F5F5;
  --color-text: #0A0A0A;
  --color-text-light: #444444;
  --color-text-muted: #777777;
  --color-success: #1A8754;
  --color-alert: #C0392B;
  --color-border: #E0E0E0;

  /* Surfaces & Overlays */
  --color-surface: #FFFFFF;
  --color-surface-raised: #FFFFFF;
  --color-overlay: rgba(0, 0, 0, 0.72);
  --color-overlay-dark: rgba(0, 0, 0, 0.6);
  --color-glass-bg: rgba(255, 255, 255, 0.15);
  --color-glass-border: rgba(255, 255, 255, 0.25);

  /* Shadows — softer for monochromatic */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-card-hover: 0 12px 36px rgba(0, 0, 0, 0.12);

  /* Typography — Meiro-inspired geometric sans-serif stack */
  --font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3.25rem;
  --font-size-5xl: 4rem;
  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.04em;
  --letter-spacing-wider: 0.08em;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  --space-5xl: 6rem;
  --space-section: clamp(4rem, 8vw, 6rem);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* Header */
  --header-height: 72px;
}

/* Dark Mode — Inverted Monochromatic */
[data-theme="dark"] {
  --color-primary: #FFFFFF;
  --color-primary-light: #CCCCCC;
  --color-primary-dark: #FFFFFF;
  --color-accent: #FFFFFF;
  --color-accent-light: #CCCCCC;
  --color-accent-dark: #FFFFFF;
  --color-bg: #0A0A0A;
  --color-bg-alt: #141414;
  --color-text: #F0F0F0;
  --color-text-light: #BBBBBB;
  --color-text-muted: #888888;
  --color-success: #34d399;
  --color-alert: #f87171;
  --color-border: #2A2A2A;
  --color-surface: #111111;
  --color-surface-raised: #1A1A1A;
  --color-overlay: rgba(0, 0, 0, 0.8);
  --color-overlay-dark: rgba(0, 0, 0, 0.85);
  --color-glass-bg: rgba(20, 20, 20, 0.6);
  --color-glass-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-card-hover: 0 12px 36px rgba(0, 0, 0, 0.5);
}


/* ------------------------------------------------------------
   1. RESET & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text);
}

h1 { font-size: clamp(2.25rem, 5vw, var(--font-size-5xl)); }
h2 { font-size: clamp(1.75rem, 4vw, var(--font-size-3xl)); }
h3 { font-size: clamp(1.25rem, 3vw, var(--font-size-xl)); }
h4 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background-color: #000000;
  color: #FFFFFF;
}

[data-theme="dark"] ::selection {
  background-color: #FFFFFF;
  color: #000000;
}


/* ------------------------------------------------------------
   2. ACCESSIBILITY
   ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: var(--z-toast);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}


/* ------------------------------------------------------------
   3. LAYOUT
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.grid-4-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.grid-5-col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-xl);
}

.grid-align-center {
  align-items: center;
}

.grid-align-start {
  align-items: start;
}

.text-center {
  text-align: center;
}


/* ------------------------------------------------------------
   4. NAVIGATION
   ------------------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: var(--z-sticky);
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
  background: transparent;
}

.navbar.nav-scrolled {
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .navbar.nav-scrolled {
  background: var(--color-surface);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.logo-img {
  height: 44px;
  width: auto;
  transition: opacity var(--transition-base);
}

.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

.nav-scrolled .logo-light {
  display: none;
}

.nav-scrolled .logo-dark {
  display: block;
}

[data-theme="dark"] .logo-light {
  display: block;
}

[data-theme="dark"] .logo-dark {
  display: none;
}

/* Dark mode + scrolled: keep white logo since nav bg is dark */
[data-theme="dark"] .nav-scrolled .logo-light {
  display: block;
}

[data-theme="dark"] .nav-scrolled .logo-dark {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: #FFFFFF;
  font-weight: 600;
}

.nav-scrolled .nav-link {
  color: var(--color-text);
}

.nav-scrolled .nav-link:hover {
  color: var(--color-primary);
  background-color: var(--color-bg-alt);
}

.nav-scrolled .nav-link.active {
  color: var(--color-accent-dark);
}

[data-theme="dark"] .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .nav-scrolled .nav-link {
  color: var(--color-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.dark-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--font-size-lg);
  backdrop-filter: blur(4px);
}

.dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.nav-scrolled .dark-mode-toggle {
  color: var(--color-text);
  border-color: var(--color-border);
  background: var(--color-bg-alt);
}

.nav-scrolled .dark-mode-toggle:hover {
  background: var(--color-border);
}

[data-theme="dark"] .dark-mode-toggle {
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
}

.icon-sun {
  display: none;
}

.icon-moon {
  display: inline;
}

[data-theme="dark"] .icon-sun {
  display: inline;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  gap: 5px;
  z-index: var(--z-modal);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav-scrolled .hamburger span {
  background-color: var(--color-text);
}

[data-theme="dark"] .hamburger span {
  background-color: var(--color-text);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--color-surface);
  z-index: var(--z-overlay);
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
  box-shadow: var(--shadow-xl);
  transition: right var(--transition-slow);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.mobile-link {
  display: block;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mobile-link:hover,
.mobile-link.active {
  background-color: var(--color-bg-alt);
  color: var(--color-accent-dark);
}


/* ------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

.btn-primary:hover {
  background-color: #222222;
  border-color: #222222;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .btn-primary {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

[data-theme="dark"] .btn-primary:hover {
  background-color: #E0E0E0;
  border-color: #E0E0E0;
  color: #000000;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-text-muted);
  transform: translateY(-2px);
}

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

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-alert {
  background-color: var(--color-alert);
  color: #fff;
  border-color: var(--color-alert);
}

.btn-alert:hover {
  background-color: #a93226;
  border-color: #a93226;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--font-size-base);
}

.btn-full {
  width: 100%;
}


/* ------------------------------------------------------------
   6. HERO SECTION
   ------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-page {
  min-height: 65vh;
}

.hero-bg {
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 160%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.parallax {
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 160%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.78) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--header-height) var(--container-padding) var(--space-xl);
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, var(--font-size-5xl));
  font-weight: 800;
  color: #fff;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, var(--font-size-lg));
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-xl);
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-12px); }
  60% { transform: translateX(-50%) translateY(-6px); }
}


/* ------------------------------------------------------------
   7. SECTIONS
   ------------------------------------------------------------ */
.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.section-white {
  background-color: var(--color-bg);
}

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

.section-dark {
  background-color: #000000 !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .section-dark {
  background-color: #0A0A0A !important;
  color: #FFFFFF !important;
}

.section-header {
  text-align: center;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-accent-dark);
  margin-bottom: var(--space-sm);
}

.section-label-light,
.section-dark .section-label {
  color: rgba(255, 255, 255, 0.85) !important;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, var(--font-size-3xl));
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: var(--line-height-snug);
}

.section-title-light,
.section-dark .section-title {
  color: #FFFFFF !important;
}

.section-subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-text {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

.section-text-lg {
  font-size: var(--font-size-md);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}


/* ------------------------------------------------------------
   8. CARDS
   ------------------------------------------------------------ */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid var(--color-border);
}

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

.card-glass {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: none;
}

.card-value {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-value:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.card-population {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
}

.card-service {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card-hover:hover .card-img-wrapper img,
.card-service:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card-img-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-img-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  z-index: 1;
}

.card-body {
  padding: var(--space-xl);
  text-align: center;
}

.card-body-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  z-index: 2;
}

.card-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.card-title-overlay {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.card-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
}

.card-text-overlay {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--line-height-relaxed);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: rgba(0, 0, 0, 0.08);
  color: var(--color-text);
  font-size: var(--font-size-xl);
  margin: 0 auto var(--space-md);
}

.card-icon-lg {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ------------------------------------------------------------
   9. STATS
   ------------------------------------------------------------ */
.stats-section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.stat-card {
  text-align: center;
  padding: var(--space-xl);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: rgba(212, 168, 67, 0.12);
  color: var(--color-accent);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
}

.section-dark .stat-icon {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-accent-light);
}

.stat-number {
  font-size: clamp(1.6rem, 3.5vw, var(--font-size-4xl));
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-sm);
  white-space: nowrap;
}

.section-dark .stat-number {
  color: var(--color-accent-light);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  font-weight: 500;
}

.section-dark .stat-label {
  color: rgba(255, 255, 255, 0.7);
}

/* ------------------------------------------------------------
   9b. OUR REACH — Live SADD Summary Section
   ------------------------------------------------------------ */
.reach-section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

/* Hero total number */
.reach-hero {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.reach-hero-number {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.03em;
}

.reach-hero-label {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.reach-hero-projects {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Gender Breakdown Cards */
.reach-gender-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.reach-gender-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  border-top: 4px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.reach-gender-male { border-top-color: #333; }
.reach-gender-female { border-top-color: #333; }
.reach-gender-other { border-top-color: #333; }

.reach-gender-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.reach-gender-male .reach-gender-icon { background: rgba(0,0,0,0.08); color: #333; }
.reach-gender-female .reach-gender-icon { background: rgba(0,0,0,0.08); color: #333; }
.reach-gender-other .reach-gender-icon { background: rgba(0,0,0,0.08); color: #333; }

.reach-gender-number {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 2px;
}

.reach-gender-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}

.reach-gender-pct {
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.reach-gender-male .reach-gender-pct { color: #333; }
.reach-gender-female .reach-gender-pct { color: #333; }
.reach-gender-other .reach-gender-pct { color: #333; }

.reach-gender-bar {
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
}

.reach-gender-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reach-bar-male { background: #333; }
.reach-bar-female { background: #333; }
.reach-bar-other { background: #333; }

/* Gender Footnote */
.reach-gender-footnote {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
  padding: var(--space-md) var(--space-lg);
  background: rgba(139, 92, 246, 0.06);
  border-left: 3px solid #999999;
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
  text-align: left;
}

.reach-gender-footnote strong {
  color: var(--color-text);
}

[data-theme="dark"] .reach-gender-footnote {
  background: rgba(139, 92, 246, 0.1);
}

/* Age Group Breakdown */
.reach-age-section {
  margin-bottom: var(--space-3xl);
}

.reach-age-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  text-align: center;
}

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

.reach-age-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--color-primary);
}

.reach-age-card-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.reach-age-card-number {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.reach-age-card-breakdown {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.reach-age-m { color: #000000; font-weight: 600; }
.reach-age-f { color: #555555; font-weight: 600; }
.reach-age-o { color: #999999; font-weight: 600; }

.reach-age-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
  padding: var(--space-2xl);
}

/* Summary Badges (safe — no project names) */
.reach-projects-summary {
  margin-top: var(--space-lg);
}

.reach-summary-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.reach-summary-badge {
  text-align: center;
  padding: var(--space-lg) var(--space-2xl);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-width: 140px;
}

.reach-summary-badge-number {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.reach-summary-badge-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .reach-gender-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .reach-age-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .reach-age-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark mode overrides */
[data-theme="dark"] .reach-hero-number {
  color: var(--color-accent-light);
}

[data-theme="dark"] .reach-gender-card {
  background: var(--color-surface);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .reach-gender-number {
  color: #fff;
}

[data-theme="dark"] .reach-gender-male .reach-gender-icon { background: rgba(255,255,255,0.1); color: #fff; }
[data-theme="dark"] .reach-gender-female .reach-gender-icon { background: rgba(255,255,255,0.08); color: #ccc; }
[data-theme="dark"] .reach-gender-other .reach-gender-icon { background: rgba(255,255,255,0.06); color: #aaa; }
[data-theme="dark"] .reach-gender-male .reach-gender-pct { color: #fff; }
[data-theme="dark"] .reach-gender-female .reach-gender-pct { color: #ccc; }
[data-theme="dark"] .reach-gender-other .reach-gender-pct { color: #aaa; }
[data-theme="dark"] .reach-gender-male { border-top-color: #fff; }
[data-theme="dark"] .reach-gender-female { border-top-color: #ccc; }
[data-theme="dark"] .reach-gender-other { border-top-color: #aaa; }
[data-theme="dark"] .reach-bar-male { background: #fff; }
[data-theme="dark"] .reach-bar-female { background: #ccc; }
[data-theme="dark"] .reach-bar-other { background: #aaa; }

[data-theme="dark"] .service-icon-badge {
  background: #fff;
  color: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

[data-theme="dark"] .reach-age-card {
  background: var(--color-surface);
}

[data-theme="dark"] .reach-age-card-number {
  color: var(--color-accent-light);
}

[data-theme="dark"] .reach-summary-badge {
  background: var(--color-surface);
}

[data-theme="dark"] .reach-summary-badge-number {
  color: var(--color-accent-light);
}


/* ------------------------------------------------------------
   10. ANIMATIONS
   ------------------------------------------------------------ */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: none;
}

[data-animation="fade-in"] {
  opacity: 0;
}

[data-animation="fade-in"].animated {
  opacity: 1;
}

[data-animation="slide-up"] {
  opacity: 0;
  transform: translateY(40px);
}

[data-animation="slide-up"].animated {
  opacity: 1;
  transform: translateY(0);
}

[data-animation="slide-left"] {
  opacity: 0;
  transform: translateX(40px);
}

[data-animation="slide-left"].animated {
  opacity: 1;
  transform: translateX(0);
}

[data-animation="slide-right"] {
  opacity: 0;
  transform: translateX(-40px);
}

[data-animation="slide-right"].animated {
  opacity: 1;
  transform: translateX(0);
}

[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="600"] { transition-delay: 600ms; }
[data-delay="700"] { transition-delay: 700ms; }
[data-delay="800"] { transition-delay: 800ms; }


/* ------------------------------------------------------------
   11. FOOTER
   ------------------------------------------------------------ */
.footer {
  background-color: #000000;
  color: rgba(255, 255, 255, 0.8);
  padding-top: var(--space-4xl);
  padding-bottom: 0;
}

[data-theme="dark"] .footer {
  background-color: #050505;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-lg);
}

.footer-tagline {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
}

.footer-email,
.footer-email a,
footer .footer-email a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: #FFFFFF !important;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-email:hover,
.footer-email a:hover {
  color: #FFFFFF !important;
}

.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: #fff;
  margin-bottom: var(--space-lg);
}

.footer-nav a {
  display: block;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: #FFFFFF;
}

.footer-commitment {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: var(--line-height-relaxed);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-lg) 0;
  text-align: center;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.45);
}


/* ------------------------------------------------------------
   12. CTA BANNER
   ------------------------------------------------------------ */
.cta-banner {
  position: relative;
  padding: var(--space-5xl) 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(18, 40, 64, 0.88) 0%,
    rgba(27, 58, 92, 0.82) 100%
  );
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, var(--font-size-3xl));
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-md);
}

.cta-subtitle {
  font-size: var(--font-size-md);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2xl);
  line-height: var(--line-height-relaxed);
}


/* ------------------------------------------------------------
   13. CHECKLIST
   ------------------------------------------------------------ */
.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.checklist-light .checklist-item {
  color: rgba(255, 255, 255, 0.9);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: var(--line-height-normal);
}

.checklist-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: rgba(46, 125, 111, 0.12);
  color: var(--color-success);
  font-size: var(--font-size-xs);
  margin-top: 2px;
}

.checklist-light .checklist-icon {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-accent-light);
}

.checklist-icon-animated {
  animation: checkPop 0.3s var(--transition-spring);
}

@keyframes checkPop {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md) var(--space-2xl);
}


/* ------------------------------------------------------------
   14. TIMELINE (GOVERNANCE)
   ------------------------------------------------------------ */
.timeline-horizontal {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: var(--space-xl) 0;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 160px;
  text-align: center;
  position: relative;
}

.timeline-marker {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-alt);
  border: 3px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 2;
  transition: all var(--transition-base);
}

.timeline-marker.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.1);
}

.timeline-connector {
  flex: 0 0 auto;
  width: 40px;
  height: 3px;
  background-color: var(--color-border);
  align-self: flex-start;
  margin-top: 23px;
}

.timeline-content {
  max-width: 180px;
}

.timeline-phase {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-accent-dark);
  margin-bottom: var(--space-xs);
}

.timeline-period {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}


/* ------------------------------------------------------------
   15. THEORY OF CHANGE
   ------------------------------------------------------------ */
.toc-flowchart {
  display: flex;
  align-items: stretch;
  gap: var(--space-md);
  overflow-x: auto;
  padding: var(--space-xl) 0;
}

.toc-box {
  flex: 1;
  min-width: 180px;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.toc-if {
  background-color: #f8f8f8;
  border: 2px solid #333;
  color: #222;
}

.toc-and {
  background-color: #f0f0f0;
  border: 2px solid #333;
  color: #222;
}

.toc-then {
  background-color: #f0f0f0;
  border: 2px solid #555;
  color: #222;
}

.toc-because {
  background-color: #eee;
  border: 2px solid #444;
  color: #222;
}

.toc-impact {
  background-color: #000;
  border: 2px solid #000;
  color: #fff;
  font-weight: 700;
}

[data-theme="dark"] .toc-if,
[data-theme="dark"] .toc-and {
  background-color: rgba(255,255,255,0.06);
  border-color: #666;
  color: #eee;
}

[data-theme="dark"] .toc-then {
  background-color: rgba(255,255,255,0.06);
  border-color: #888;
  color: #eee;
}

[data-theme="dark"] .toc-because {
  background-color: rgba(255,255,255,0.08);
  border-color: #aaa;
  color: #eee;
}

[data-theme="dark"] .toc-impact {
  background-color: #fff;
  border-color: #fff;
  color: #000;
}

.toc-label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  margin-bottom: var(--space-sm);
  opacity: 0.7;
}

.toc-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  color: var(--color-text-muted);
  flex-shrink: 0;
}


/* ------------------------------------------------------------
   16. RESULTS CHAIN
   ------------------------------------------------------------ */
.results-chain {
  display: flex;
  align-items: stretch;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: var(--space-xl) 0;
}

.rc-step {
  flex: 1;
  min-width: 140px;
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.rc-step-highlight {
  background: #000;
  border-color: #000;
  color: #fff;
}

.rc-step-highlight h3,
.rc-step-highlight p,
.rc-step-highlight .rc-icon { color: #fff !important; }

.rc-icon {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-sm);
}

.rc-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  color: var(--color-text-muted);
  flex-shrink: 0;
}


/* ------------------------------------------------------------
   17. SERVICES GRID
   ------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.service-icon-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  box-shadow: var(--shadow-md);
  z-index: 2;
}


/* ------------------------------------------------------------
   18. PARTNER PAGE
   ------------------------------------------------------------ */
.partner-logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.partner-type-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  padding: var(--space-2xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.funding-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.funding-step {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.funding-year {
  text-align: center;
}

.funding-year-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.funding-year-value {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-primary);
}

.funding-bar {
  height: 12px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.funding-bar-fill {
  height: 100%;
  width: var(--bar-width, 0%);
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: var(--radius-full);
  transition: width 1.2s ease;
}

.funding-details {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.funding-amount {
  font-weight: 700;
  color: var(--color-accent-dark);
  font-size: var(--font-size-lg);
}

.highlight-box {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.08), rgba(212, 168, 67, 0.04));
  border: 2px solid rgba(212, 168, 67, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

[data-theme="dark"] .highlight-box {
  background: linear-gradient(135deg, rgba(224, 190, 110, 0.1), rgba(224, 190, 110, 0.05));
  border-color: rgba(224, 190, 110, 0.2);
}


/* ------------------------------------------------------------
   19. ABOUT PAGE
   ------------------------------------------------------------ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-xl);
}

.value-icon {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
  display: block;
}

.value-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.value-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-accent-dark);
  background: rgba(212, 168, 67, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  border: 2px solid rgba(212, 168, 67, 0.2);
}


/* ------------------------------------------------------------
   20. FORMS
   ------------------------------------------------------------ */
.contact-form {
  max-width: 640px;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(27, 58, 92, 0.1);
}

[data-theme="dark"] .form-input:focus {
  box-shadow: 0 0 0 4px rgba(74, 143, 212, 0.2);
}

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

.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-alert);
  margin-top: var(--space-xs);
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  padding: var(--space-md) var(--space-lg);
  background-color: rgba(46, 125, 111, 0.1);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-md);
  color: var(--color-success);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.required {
  color: var(--color-alert);
  margin-left: 2px;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--font-size-base);
  color: var(--color-text-light);
}


/* ------------------------------------------------------------
   21. UTILITY CLASSES
   ------------------------------------------------------------ */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  color: var(--color-accent-dark);
  transition: gap var(--transition-base), color var(--transition-fast);
}

.link-arrow:hover {
  gap: var(--space-md);
  color: var(--color-accent);
}

.rounded-img {
  border-radius: var(--radius-lg);
}

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

.about-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base), background-color var(--transition-fast);
  z-index: var(--z-sticky);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}


/* ------------------------------------------------------------
   22. DARK MODE OVERRIDES
   ------------------------------------------------------------ */
[data-theme="dark"] body {
  background-color: var(--color-bg);
  color: var(--color-text);
}

[data-theme="dark"] .card,
[data-theme="dark"] .card-service,
[data-theme="dark"] .card-value,
[data-theme="dark"] .partner-type-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}

/* Value cards inside dark sections must stay light for contrast */
.section-dark .card-value,
[data-theme="dark"] .section-dark .card-value {
  background: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.1);
}

.section-dark .card-value .value-title,
[data-theme="dark"] .section-dark .card-value .value-title {
  color: #0A0A0A;
}

.section-dark .card-value .value-text,
[data-theme="dark"] .section-dark .card-value .value-text {
  color: #444444;
}

.section-dark .card-value .value-icon,
[data-theme="dark"] .section-dark .card-value .value-icon {
  color: #000000;
}

[data-theme="dark"] .section-alt {
  background-color: var(--color-bg-alt);
}

[data-theme="dark"] .section-title {
  color: var(--color-text);
}

[data-theme="dark"] .card-title {
  color: var(--color-text);
}

[data-theme="dark"] .value-title {
  color: var(--color-text);
}

[data-theme="dark"] .form-input {
  background-color: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

[data-theme="dark"] .form-label {
  color: var(--color-text);
}

[data-theme="dark"] .stat-card {
  background: transparent;
}

[data-theme="dark"] .rc-step {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

[data-theme="dark"] .rc-step-highlight {
  background: #fff;
  border-color: #fff;
  color: #000;
}

[data-theme="dark"] .rc-step-highlight h3,
[data-theme="dark"] .rc-step-highlight p,
[data-theme="dark"] .rc-step-highlight .rc-icon { color: #000 !important; }

[data-theme="dark"] .timeline-marker {
  background-color: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .compliance-badge {
  background: rgba(224, 190, 110, 0.1);
  border-color: rgba(224, 190, 110, 0.2);
  color: var(--color-accent);
}

[data-theme="dark"] .checklist-icon {
  background-color: rgba(78, 204, 163, 0.15);
}

[data-theme="dark"] .card-icon-circle {
  background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .back-to-top {
  background-color: var(--color-surface-raised);
  color: var(--color-accent);
}

[data-theme="dark"] .mobile-menu {
  background: var(--color-surface);
}

[data-theme="dark"] .mobile-link:hover,
[data-theme="dark"] .mobile-link.active {
  background-color: var(--color-bg-alt);
}


/* ------------------------------------------------------------
   23. RESPONSIVE — TABLET (max-width: 768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Grids */
  .grid-2-col {
    grid-template-columns: 1fr;
  }

  .grid-3-col {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .partner-logos-grid {
    grid-template-columns: 1fr;
  }

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

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  /* Hero */
  .hero-page {
    min-height: 50vh;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, var(--font-size-3xl));
  }

  /* Checklist */
  .checklist-grid {
    grid-template-columns: 1fr;
  }

  /* Funding */
  .funding-step {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
    padding: var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
  }

  /* Theory of Change */
  .toc-flowchart {
    flex-direction: column;
  }

  .toc-arrow {
    transform: rotate(90deg);
  }

  /* Results Chain */
  .results-chain {
    flex-direction: column;
  }

  .rc-arrow {
    transform: rotate(90deg);
  }

  /* Timeline */
  .timeline-horizontal {
    flex-direction: column;
    align-items: stretch;
  }

  .timeline-item {
    flex-direction: row;
    text-align: left;
    min-width: unset;
    gap: var(--space-md);
  }

  .timeline-connector {
    width: 3px;
    height: 30px;
    margin-top: 0;
    margin-left: 23px;
    align-self: auto;
  }

  .timeline-content {
    max-width: none;
  }
}


/* ------------------------------------------------------------
   24. RESPONSIVE — MOBILE (max-width: 480px)
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  .grid-4-col {
    grid-template-columns: 1fr;
  }

  .grid-5-col {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: var(--font-size-sm);
  }
}


/* ------------------------------------------------------------
   25. REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .hero-scroll-indicator {
    animation: none;
  }

  .parallax {
    transform: none !important;
  }
}


/* ------------------------------------------------------------
   26. PRINT STYLES
   ------------------------------------------------------------ */
@media print {
  .navbar,
  .hamburger,
  .mobile-menu,
  .back-to-top,
  .hero-scroll-indicator,
  .dark-mode-toggle,
  .cta-banner {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto !important;
    padding: 2rem 0;
  }

  .hero-overlay {
    background: rgba(0, 0, 0, 0.05);
  }

  .hero-title,
  .hero-subtitle {
    color: #000;
  }

  .section {
    padding: 2rem 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}


/* ------------------------------------------------------------
   27. PAGE LOAD TRANSITION
   ------------------------------------------------------------ */
main {
  animation: pageFadeIn 0.4s ease-out both;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }
}


/* ------------------------------------------------------------
   28. ENHANCED FOCUS & INTERACTION STYLES
   ------------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Subtle hover lift for all interactive cards */
.card-hover:hover,
.card-value:hover,
.partner-type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Link underline animation */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base), left var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

/* Button press effect */
.btn-primary:active,
.btn-outline:active {
  transform: scale(0.97);
}

/* Image hover zoom for cards */
.card-img-wrapper {
  overflow: hidden;
}

.card-img-wrapper img {
  transition: transform 0.4s ease;
}

.card-img-wrapper:hover img {
  transform: scale(1.05);
}

/* Selection color */
::selection {
  background: var(--color-accent);
  color: #fff;
}

[data-theme="dark"] ::selection {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

/* Smooth scroll for the whole page */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* ============================================================
   HEAR BRAND ELEMENTS — Diagonal Slash & Repeating Patterns
   ============================================================ */

/* Diagonal slash accent — used on section dividers */
.brand-slash {
  position: relative;
  overflow: hidden;
}

.brand-slash::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 120px;
  height: 200%;
  background: #000000;
  transform: rotate(15deg);
  opacity: 0.06;
  pointer-events: none;
}

[data-theme="dark"] .brand-slash::after {
  background: #FFFFFF;
  opacity: 0.04;
}

/* Repeating diagonal stripe pattern — for backgrounds */
.brand-pattern {
  position: relative;
}

.brand-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(0, 0, 0, 0.02) 20px,
    rgba(0, 0, 0, 0.02) 21px
  );
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .brand-pattern::before {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.02) 20px,
    rgba(255, 255, 255, 0.02) 21px
  );
}

/* Section divider with brand slash line */
.section-divider {
  width: 60px;
  height: 3px;
  background: #000000;
  margin: 0 auto 1.5rem;
  position: relative;
  transform: rotate(-5deg);
}

[data-theme="dark"] .section-divider {
  background: #FFFFFF;
}

/* Monochromatic badge style — replaces colored badges across the site */
.badge-mono {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.75em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 9999px;
  background: #000000;
  color: #FFFFFF;
}

.badge-mono-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.75em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 9999px;
  background: transparent;
  color: #000000;
  border: 1px solid #000000;
}

[data-theme="dark"] .badge-mono {
  background: #FFFFFF;
  color: #000000;
}

[data-theme="dark"] .badge-mono-outline {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

/* Functional color badges — kept for critical UI states only */
.badge-alert {
  background: #C0392B;
  color: #FFFFFF;
}

.badge-success {
  background: #1A8754;
  color: #FFFFFF;
}
