/* Import Google Fonts — Poppins only */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* Custom Primary Colors - NIVA Brand */
:root {
  --primary-50: #FFFEF7;
  --primary-100: #FEFCEB;
  --primary-200: #FDF8D1;
  --primary-300: #FCF4B7;
  --primary-400: #FCEF88;
  --primary-500: #FCDF5A;
  --primary-600: #F5D42A;
  --primary-700: #D4B91E;
  --primary-800: #A39217;
  --primary-900: #7A6D11;
  
  /* Custom Gray Colors - NIVA Brand */
  --tlgray-50: #F9FAFB;
  --tlgray-100: #F3F4F6;
  --tlgray-200: #E5E7EB;
  --tlgray-300: #D1D5DB;
  --tlgray-400: #9CA3AF;
  --tlgray-500: #6B7280;
  --tlgray-600: #4B5563;
  --tlgray-700: #374151;
  --tlgray-800: #1F2937;
  --tlgray-900: #111827;

  /* Shared body / description typography */
  --text-body-color: #111827;
  --text-muted-color: #4B5563;
  --text-body-size: 1.125rem;
  --text-lead-size: 1.25rem;
  --text-body-lh: 1.7;
}

/* Primary Color Classes */
.bg-primary-500 { background-color: var(--primary-500) !important; }
.border-primary-500 { border-color: var(--primary-500) !important; }
.text-primary-500 { color: var(--primary-500) !important; }
.bg-primary-400 { background-color: var(--primary-400) !important; }
.border-primary-400 { border-color: var(--primary-400) !important; }
.text-primary-400 { color: var(--primary-400) !important; }

/* Tlgray Color Classes */
.bg-tlgray-50 { background-color: var(--tlgray-50) !important; }
.bg-tlgray-100 { background-color: var(--tlgray-100) !important; }
.bg-tlgray-200 { background-color: var(--tlgray-200) !important; }
.bg-tlgray-300 { background-color: var(--tlgray-300) !important; }
.bg-tlgray-400 { background-color: var(--tlgray-400) !important; }
.bg-tlgray-500 { background-color: var(--tlgray-500) !important; }
.bg-tlgray-600 { background-color: var(--tlgray-600) !important; }
.bg-tlgray-700 { background-color: var(--tlgray-700) !important; }
.bg-tlgray-800 { background-color: var(--tlgray-800) !important; }
.bg-tlgray-900 { background-color: var(--tlgray-900) !important; }

.text-tlgray-50 { color: var(--tlgray-50) !important; }
.text-tlgray-100 { color: var(--tlgray-100) !important; }
.text-tlgray-200 { color: var(--tlgray-200) !important; }
.text-tlgray-300 { color: var(--tlgray-300) !important; }
.text-tlgray-400 { color: var(--tlgray-400) !important; }
.text-tlgray-500 { color: var(--tlgray-500) !important; }
.text-tlgray-600 { color: var(--tlgray-600) !important; }
.text-tlgray-700 { color: var(--tlgray-700) !important; }
.text-tlgray-800 { color: var(--tlgray-800) !important; }
.text-tlgray-900 { color: var(--tlgray-900) !important; }

.border-tlgray-50 { border-color: var(--tlgray-50); }
.border-tlgray-100 { border-color: var(--tlgray-100); }
.border-tlgray-200 { border-color: var(--tlgray-200); }
.border-tlgray-300 { border-color: var(--tlgray-300); }
.border-tlgray-400 { border-color: var(--tlgray-400); }
.border-tlgray-500 { border-color: var(--tlgray-500); }
.border-tlgray-600 { border-color: var(--tlgray-600); }
.border-tlgray-700 { border-color: var(--tlgray-700); }
.border-tlgray-800 { border-color: var(--tlgray-800); }
.border-tlgray-900 { border-color: var(--tlgray-900); }

/* Secondary and Accent Colors */
.bg-secondary-600 { background-color: #2563EB; }
.text-secondary-600 { color: #2563EB; }
.bg-accent-500 { background-color: #7C3AED; }
.text-accent-500 { color: #7C3AED; }

/* Custom styles for NIVA Foundation */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  background-color: #fff;
}

/* Fixed header — sticky fails when html/body use overflow-x: hidden */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
}

body {
  position: relative;
  padding-top: 4.625rem; /* header: py-4 + h-10 logo + border */
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  background: transparent;
}

/* Site-wide background texture — shows through all transparent sections */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('/img/background.jpeg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: top center;
  opacity: 0.35;
}

.font-sans,
.font-display {
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Custom hover effects */
.hover-lift {
  transition: transform 0.2s ease-in-out;
}

.hover-lift:hover {
  transform: translateY(-2px);
}

/* Shared paragraph / description styles */
.text-body,
.text-lead,
.text-muted {
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
}

.text-body {
  font-size: var(--text-body-size);
  line-height: var(--text-body-lh);
  color: var(--text-body-color);
}

.text-lead {
  font-size: var(--text-lead-size);
  line-height: var(--text-body-lh);
  color: var(--text-body-color);
}

.text-muted {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted-color);
}

.text-body.font-semibold,
.text-lead.font-semibold {
  font-weight: 600;
}

/* Prose improvements */
.prose {
  max-width: none;
}

.prose h2, .prose h3, .prose h4 {
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  color: #111827; /* tlgray-900 */
}

.prose p {
  font-size: var(--text-body-size);
  line-height: var(--text-body-lh);
  color: var(--text-body-color);
}

/* Button improvements */
.btn-primary {
  background-color: #FCDF5A; /* primary-500 */
  color: #111827; /* tlgray-900 */
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: #FCF4B7; /* primary-300 */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: #2563EB; /* secondary-600 */
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
  background-color: #1D4ED8; /* secondary-700 */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Image overlay effects */
.image-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.image-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 41, 55, 0.3), transparent);
  pointer-events: none;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem; /* 36px */
    line-height: 2.5rem; /* 40px */
  }
}

/* Focus improvements for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #FCDF5A;
  outline-offset: 2px;
}

/* Stats counter animations */
@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stat-number {
  animation: countUp 0.8s ease-out;
}

/* Newsletter form improvements */
.newsletter-form input {
  background-color: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.newsletter-form input:focus {
  border-color: #FCDF5A;
  background-color: rgba(31, 41, 55, 0.9);
}

/* Hero section enhancements */
.hero-parallax {
  isolation: isolate;
  position: relative;
}

.hero-parallax__media {
  overflow: hidden;
}

.hero-parallax__image {
  position: relative;
  height: 145%;
  max-width: none;
  top: -8%;
  object-position: center bottom;
}

.bottom-gradient-overlay {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.6) 35%,
    rgba(0, 0, 0, 0.25) 60%,
    transparent 100%
  );
}

.hero-viewport-height {
  height: calc(100vh - 8rem); /* Subtract header height (pt-32 = 8rem) */
  min-height: 600px;
}

/* Stacked hero on smaller screens: full image on top, text below, no overlay */
@media (max-width: 1023px) {
  .hero-parallax.hero-viewport-height {
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
  }

  .hero-parallax__media {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 0;
    width: 100%;
    height: min(92vw, 680px);
    flex: 0 0 auto;
    overflow: hidden;
  }

  .hero-parallax__image,
  .hero-viewport-height .hero-parallax__image {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    width: 100%;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: center bottom;
    display: block;
  }

  .hero-parallax--centered .hero-parallax__image {
    object-position: 20% 20% !important;
  }

  .hero-parallax__content {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin-top: 0;
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
    background-color: transparent;
  }

  .hero-parallax__title {
    color: var(--tlgray-900) !important;
    text-shadow: none !important;
    word-spacing: 100vw; /* one word per line */
  }

  .hero-parallax__subtitle {
    color: var(--tlgray-600) !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }
}

.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 100%; /* 70% from left (favor right), 100% from top (show bottom) */
}

/* Desktop-only: shift image up for full-bleed hero crop */
@media (min-width: 1024px) {
  .hero-viewport-height .hero-parallax__image {
    object-position: center bottom !important;
    top: -45% !important;
  }

  .hero-parallax--centered .hero-parallax__image {
    height: 100% !important;
    object-position: 20% 20% !important;
    top: 0% !important;
  }

  /* Team hero: show natural crop without the upward shift */
  .hero-parallax--team .hero-parallax__image {
    top: 0 !important;
    object-position: center center !important;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: left;
  max-width: 6rem;
  margin: 0;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 900 !important;
  color: white !important;
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.9), 0 4px 8px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.7) !important;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: white !important;
  font-weight: 500 !important;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.7) !important;
  margin-bottom: 2rem;
  max-width: 48rem;
}

.hero-description-bg {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .hero-description-bg {
    padding: 1.5rem 1.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-description-bg {
    margin-top: 1.5rem;
  }
}

/* Mobile stacked hero sits on the page texture — skip the dark glass */
@media (max-width: 1023px) {
  .hero-description-bg {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-top: 0;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-start;
  align-items: flex-start;
}

.hero-button-primary {
  background-color: #FCDF5A !important;
  color: #111827 !important;
  font-weight: 700 !important;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(252, 223, 90, 0.4) !important;
  border: 2px solid #F5D42A !important;
}

.hero-button-primary:hover {
  background-color: #FCF4B7 !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(252, 223, 90, 0.5) !important;
}

.hero-button-secondary {
  background-color: white !important;
  color: #111827 !important;
  font-weight: 700 !important;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  border: 2px solid white !important;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

.hero-button-secondary:hover {
  background-color: #f3f4f6 !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

/* Responsive hero adjustments */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 5rem;
  }
  
  .hero-subtitle {
    font-size: 1.75rem;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 6rem;
  }
  
  .hero-subtitle {
    font-size: 2rem;
  }
}

/* Enhanced Header Navigation Styles */
.header-glass {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(252, 223, 90, 0.2);
}

/* Selected / hover: chalk behind a white overlay that peels away L→R */
.nav-link {
  position: relative;
  z-index: 0;
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 8%;
  bottom: 8%;
  z-index: -1;
  /* Crop transparent margins in chalk.png so the stroke fills the band */
  background: url('/img/chalk.png') center 48% / 100% 175% no-repeat;
  opacity: 0.7;
  pointer-events: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 8%;
  bottom: 8%;
  z-index: -1;
  background: #fff;
  pointer-events: none;
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link-active::after {
  transform: scaleX(0);
}

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

/* Active Link Styles */
.active-link {
  position: relative;
  font-weight: 600 !important;
}

.active-link::after {
  content: '•';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 8px;
  height: 8px;
  background: linear-gradient(45deg, #FCDF5A, #F5D42A);
  border-radius: 50%;
  font-size: 20px;
  color: #FCDF5A;
  animation: pulse-active 2s ease-in-out infinite;
  z-index: 20;
}

.active-indicator {
  animation: glow-active 2s ease-in-out infinite alternate;
}

@keyframes pulse-active {
  0%, 100% { 
    opacity: 0.7;
    transform: scale(1);
  }
  50% { 
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes glow-active {
  0% { 
    box-shadow: 0 0 5px rgba(252, 223, 90, 0.5);
  }
  100% { 
    box-shadow: 0 0 15px rgba(252, 223, 90, 0.8), 0 0 25px rgba(252, 223, 90, 0.4);
  }
}

/* Debug Information - only visible in development */
[data-url]:hover::before {
  content: 'URL: ' attr(data-url) ' | Current: ' attr(data-current);
  position: absolute;
  bottom: -35px;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  animation: debug-fadeIn 0.3s ease-in-out forwards;
}

@keyframes debug-fadeIn {
  to { opacity: 1; }
}

/* Premium Navigation Links */
.nav-link-premium {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-link-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(252, 223, 90, 0.15), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-premium:hover::before {
  left: 100%;
}

.nav-link-premium:hover {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.05);
}

/* Active Link Enhanced Styling */
.nav-link-premium.active-link {
  background: linear-gradient(135deg, rgba(252, 223, 90, 0.2), rgba(245, 212, 42, 0.15)) !important;
  border: 2px solid rgba(252, 223, 90, 0.4);
  box-shadow: 0 4px 20px rgba(252, 223, 90, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.mobile-nav-premium.active-link {
  background: linear-gradient(135deg, rgba(252, 223, 90, 0.2), rgba(245, 212, 42, 0.15)) !important;
  border-left: 4px solid #FCDF5A !important;
  box-shadow: 0 4px 20px rgba(252, 223, 90, 0.2);
}

/* Premium Donate Button */
.donate-btn-premium {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(252, 223, 90, 0.3);
}

.donate-btn-premium:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 15px 35px rgba(252, 223, 90, 0.5);
}

/* Logo Enhancements */
.logo-container:hover .logo-default {
  transform: rotate(5deg) scale(1.1);
}

.logo-container:hover .logo-wrapper {
  transform: rotate(-2deg) scale(1.05);
}

/* Mobile Menu Premium Styles */
.mobile-menu-premium {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.mobile-nav-premium {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-nav-premium:hover {
  transform: translateX(8px) scale(1.02);
}

/* Better Active State Visibility */
.active-link .relative.z-10 {
  text-shadow: 0 1px 3px rgba(252, 223, 90, 0.5);
}

/* Navigation Breadcrumb Style */
.nav-link-premium.active-link::before {
  background: linear-gradient(90deg, rgba(252, 223, 90, 0.3), rgba(252, 223, 90, 0.6), rgba(252, 223, 90, 0.3));
}

/* Advanced Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(252, 223, 90, 0.3); }
  50% { box-shadow: 0 0 40px rgba(252, 223, 90, 0.6); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hover Animations */
.nav-link-premium:hover {
  animation: float 2s ease-in-out infinite;
}

.donate-btn-premium:hover,
.donate-btn-mobile-premium:hover {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Glass Morphism Effects */
.nav-link-premium,
.mobile-nav-premium {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.nav-link-premium:hover,
.mobile-nav-premium:hover {
  background: rgba(252, 223, 90, 0.1);
  border: 1px solid rgba(252, 223, 90, 0.3);
}

/* 3D Transform Effects */
.nav-link-premium {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.nav-link-premium:hover {
  transform: rotateX(10deg) rotateY(-10deg) translateY(-5px);
}

/* Micro Interactions */
.nav-underline {
  transform-origin: left;
  animation: underline-grow 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes underline-grow {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Premium Focus States */
.nav-link-premium:focus,
.mobile-nav-premium:focus,
.donate-btn-premium:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(252, 223, 90, 0.5),
              0 0 20px rgba(252, 223, 90, 0.3);
  transform: scale(1.05);
}

/* Scroll Effects */
.header-scrolled {
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .mobile-menu-premium {
    margin-top: 16px;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  
  .mobile-nav-premium {
    margin-bottom: 8px;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .nav-link-premium,
  .mobile-nav-premium,
  .donate-btn-premium,
  .logo-container *,
  .active-link::after,
  .active-indicator,
  .nav-link::after {
    animation: none !important;
    transition-duration: 0.1s !important;
  }
}

/* High Performance GPU Acceleration */
.nav-link-premium,
.mobile-nav-premium,
.donate-btn-premium,
.logo-container {
  transform: translateZ(0);
  will-change: transform, opacity, box-shadow;
}

/* Custom Scrollbar for Mobile Menu */
.mobile-menu-premium::-webkit-scrollbar {
  width: 4px;
}

.mobile-menu-premium::-webkit-scrollbar-track {
  background: rgba(252, 223, 90, 0.1);
  border-radius: 2px;
}

.mobile-menu-premium::-webkit-scrollbar-thumb {
  background: rgba(252, 223, 90, 0.5);
  border-radius: 2px;
}

.mobile-menu-premium::-webkit-scrollbar-thumb:hover {
  background: rgba(252, 223, 90, 0.8);
}

/* Why We Do Section */
.why-we-do__header {
  margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .why-we-do__header {
    margin-bottom: 3rem;
  }
}

.why-we-do__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .why-we-do__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .why-we-do__card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.875rem);
    justify-self: center;
  }
}

@media (min-width: 1024px) {
  .why-we-do__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .why-we-do__card:last-child {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
}

.why-we-do__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.25rem 2rem 2rem;
  background: #ffffff;
  border: 1px solid rgba(252, 223, 90, 0.35);
  border-radius: 1.25rem;
  box-shadow:
    0 1px 2px rgba(17, 24, 39, 0.04),
    0 8px 24px rgba(17, 24, 39, 0.06);
  height: 100%;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.why-we-do__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500) 0%, var(--primary-400) 100%);
}

.why-we-do__card:hover {
  transform: translateY(-4px);
  border-color: rgba(252, 223, 90, 0.65);
  box-shadow:
    0 4px 8px rgba(17, 24, 39, 0.05),
    0 16px 40px rgba(17, 24, 39, 0.1);
}

.why-we-do .why-we-do__card {
  gap: 0;
  padding: 1.25rem 1.5rem 1.5rem;
}

.why-we-do .why-we-do__card-top {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.why-we-do__clipart {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  line-height: 0;
}

.why-we-do__clipart img {
  height: 110px;
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  object-fit: contain;
  object-position: center top;
}

@media (min-width: 1024px) {
  .why-we-do__clipart img {
    height: 120px;
  }
}

.why-we-do__title {
  margin: 0;
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.45;
  color: var(--tlgray-900);
}

.why-we-do__text {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--tlgray-100);
  text-align: left;
  font-size: var(--text-body-size);
  line-height: var(--text-body-lh);
  font-weight: 400;
  color: var(--text-body-color);
}

.why-we-do__highlight {
  font-weight: 600;
  color: var(--tlgray-900);
  text-decoration: underline;
  text-decoration-color: var(--primary-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.why-we-do__highlight:hover {
  color: var(--primary-800);
  text-decoration-color: var(--primary-600);
}

@media (prefers-reduced-motion: reduce) {
  .why-we-do__card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .why-we-do__card:hover {
    transform: none;
  }
}

/* Mission Section */
.vision-mission__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.vision-mission__content {
  width: 100%;
  max-width: 42rem;
}

.vision-mission__header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vision-mission__text {
  margin: 0;
  font-size: var(--text-lead-size);
  line-height: var(--text-body-lh);
  font-weight: 600;
  font-style: italic;
  color: var(--text-body-color);
}

.vision-mission__image {
  width: 16rem;
  max-width: 16rem;
  overflow: hidden;
  border-radius: 1.25rem;
}

.vision-mission__image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 1024px) {
  .vision-mission__layout {
    gap: 2.5rem;
  }

}

/* Theory of Change — stepped infographic */
.theory-of-change__above {
  position: relative;
  z-index: 10;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  padding: 2.5rem 0;
}

.theory-of-change__above-img {
  display: block;
  width: 50%;
  height: auto;
  max-height: 500px;
  margin: 0 auto;
  object-fit: contain;
}

.theory-of-change {
}

.theory-of-change__steps {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.theory-of-change__step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 22rem;
  animation: fadeInUp 0.7s ease-out both;
}

.theory-of-change__step--1 { animation-delay: 0.05s; }
.theory-of-change__step--2 { animation-delay: 0.15s; }
.theory-of-change__step--3 { animation-delay: 0.25s; }
.theory-of-change__step--4 { animation-delay: 0.35s; }

.theory-of-change__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.875rem;
  color: var(--primary-500);
  --animate-duration: 1.6s;
}

.theory-of-change__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.theory-of-change__bar {
  width: 100%;
  max-width: 11rem;
  height: 0.625rem;
  margin-bottom: 1.25rem;
  background: var(--primary-500);
  border-radius: 0.125rem;
  transform-origin: left center;
  animation: tocBarGrow 0.6s ease-out both;
}

.theory-of-change__step--1 .theory-of-change__bar { animation-delay: 0.2s; }
.theory-of-change__step--2 .theory-of-change__bar { animation-delay: 0.3s; }
.theory-of-change__step--3 .theory-of-change__bar { animation-delay: 0.4s; }
.theory-of-change__step--4 .theory-of-change__bar { animation-delay: 0.5s; }

@keyframes tocBarGrow {
  from {
    transform: scaleX(0);
    opacity: 0.4;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.theory-of-change__text {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 500;
  color: var(--tlgray-800);
}

@media (min-width: 768px) {
  .theory-of-change__steps {
    margin-top: 3rem;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
    align-items: start;
  }

  .theory-of-change__step {
    max-width: none;
  }

  .theory-of-change__step--2,
  .theory-of-change__step--4 {
    margin-top: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .theory-of-change__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.75rem;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
  }

  /* Ascending staircase: left lowest → right highest */
  .theory-of-change__step--1 { margin-top: 7.5rem; }
  .theory-of-change__step--2 { margin-top: 5rem; }
  .theory-of-change__step--3 { margin-top: 2.5rem; }
  .theory-of-change__step--4 { margin-top: 0; }

  .theory-of-change__icon {
    width: 3rem;
    height: 3rem;
  }

  .theory-of-change__bar {
    max-width: 100%;
    height: 0.7rem;
  }

  .theory-of-change__text {
    font-size: 1.0625rem;
    line-height: 1.7;
  }
}

@media (min-width: 1280px) {
  .theory-of-change__steps {
    gap: 2.25rem 2.5rem;
  }

  .theory-of-change__step--1 { margin-top: 9rem; }
  .theory-of-change__step--2 { margin-top: 6rem; }
  .theory-of-change__step--3 { margin-top: 3rem; }

  .theory-of-change__text {
    font-size: 1.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theory-of-change__step,
  .theory-of-change__bar {
    animation: none !important;
  }
}

/* Intro copy + supporting image — side by side */
.approach-with-image {
  padding: 3rem 0 2.5rem;
}

.approach-with-image__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.approach-with-image__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.approach-with-image__lead {
  margin: 0;
}

.approach-with-image__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 70vh;
}

.approach-with-image__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

@media (min-width: 768px) {
  .approach-with-image {
    padding: 3.5rem 0 3rem;
  }

  .approach-with-image__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem 3rem;
    align-items: center;
  }

  .approach-with-image__media {
    aspect-ratio: 3 / 4;
    max-height: min(36rem, 72vh);
  }
}

@media (min-width: 1024px) {
  .approach-with-image__inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 3rem 4rem;
  }

  .approach-with-image__copy {
    gap: 1.5rem;
  }

  .approach-with-image__media {
    max-height: min(42rem, 78vh);
  }
}

/* Closing full-bleed image */
.approach-closing {
  aspect-ratio: 16 / 9;
  min-height: 240px;
}

.approach-closing__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80
  %;
}

@media (min-width: 768px) {
  .approach-closing {
    aspect-ratio: 21 / 9;
    min-height: 300px;
  }
}

@media (min-width: 1280px) {
  .approach-closing {
    aspect-ratio: 2.5 / 1;
  }
}

/* Our Values Section */
.our-values__header {
  margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .our-values__header {
    margin-bottom: 3rem;
  }
}

.our-values__intro {
  margin: 2rem 0 0;
  font-size: var(--text-lead-size);
  line-height: var(--text-body-lh);
  font-weight: 400;
  color: var(--text-body-color);
}

.our-values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .our-values__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .our-values__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.our-values__title {
  margin: 0;
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tlgray-900);
}

/* Site Footer */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 3rem 0 2rem;
  font-weight: 600;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* CTA */
.site-footer__cta {
  text-align: center;
  padding: 2rem 0 2.5rem;
}

.site-footer__cta-title {
  margin: 0 0 1.75rem;
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--tlgray-900);
}

.site-footer__donate-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tlgray-900);
  background: var(--primary-500);
  border: none;
  border-radius: 0.625rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(252, 223, 90, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-footer__donate-btn:hover {
  background: var(--primary-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(252, 223, 90, 0.45);
}

.site-footer__donate-btn:active {
  transform: translateY(0);
}

/* Footer layout: flex 2 (brand) + flex 3 (links) */
.site-footer__grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 0.5rem 0;
}

.site-footer__links-group {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .site-footer__links-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem 1rem;
  }

  .site-footer__links-group .site-footer__col {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 10rem;
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
  }

  .site-footer__brand {
    flex: 2;
    min-width: 0;
  }

  .site-footer__links-group {
    flex: 3;
    flex-wrap: nowrap;
    gap: 1rem;
    min-width: 0;
  }

  .site-footer__links-group .site-footer__col {
    flex: 1;
    min-width: 0;
  }
}

.site-footer__links-group .site-footer__heading {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.site-footer__links-group .site-footer__contact {
  gap: 1rem;
}

.site-footer__links-group .site-footer__nav {
  gap: 0.5rem;
}

.site-footer__col {
  min-width: 0;
}

/* Brand column */
.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.site-footer__brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-footer__brand-link:hover {
  opacity: 0.85;
}

.site-footer__logo {
  height: 3rem;
  width: auto;
}

.site-footer__org-name {
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tlgray-900);
}

.site-footer__about {
  width: 100%;
  max-width: 18rem;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted-color);
}

.site-footer__about p {
  margin: 0 0 0.75rem;
}

.site-footer__about p:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .site-footer__about {
    max-width: none;
    margin-inline: 0;
    text-align: left;
  }
}

/* Column headings */
.site-footer__heading {
  margin: 0 0 1.25rem;
  padding-bottom: 0.625rem;
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tlgray-900);
  border-bottom: 2px solid var(--primary-500);
  display: inline-block;
}

/* Contact block */
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.site-footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.site-footer__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tlgray-500);
}

.site-footer__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tlgray-700);
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-word;
}

.site-footer__link:hover {
  color: var(--primary-800);
}

.site-footer__address {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.65;
  color: var(--tlgray-600);
}

/* Social icons */
.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--tlgray-600);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--tlgray-200);
  border-radius: 0.5rem;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-footer__social svg {
  width: 1rem;
  height: 1rem;
}

.site-footer__social:hover {
  color: var(--tlgray-900);
  background: var(--primary-500);
  border-color: var(--primary-500);
  transform: translateY(-2px);
}

/* Nav links */
.site-footer__nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.site-footer__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tlgray-600);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__nav-link::before {
  content: "";
  flex-shrink: 0;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--primary-500);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-footer__nav-link:hover {
  color: var(--tlgray-900);
  transform: translateX(4px);
}

.site-footer__nav-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.site-footer__nav-link--button {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

/* Copyright */
.site-footer__bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tlgray-500);
}

/* Center footer columns on smaller screens */
@media (max-width: 1023px) {
  .site-footer__col {
    text-align: center;
  }

  .site-footer__contact,
  .site-footer__contact-item {
    align-items: center;
  }

  .site-footer__socials {
    justify-content: center;
  }

  .site-footer__nav {
    align-items: center;
  }

  .site-footer__nav-link:hover {
    transform: none;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    padding: 4rem 0 2.5rem;
  }

  .site-footer__inner {
    gap: 3rem;
  }

  .site-footer__cta {
    padding: 2.5rem 0 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__donate-btn:hover,
  .site-footer__social:hover,
  .site-footer__nav-link:hover {
    transform: none;
  }

  .site-footer__nav-link::before {
    transition: opacity 0.2s ease;
  }
}

/* Contact page */
.contact-intro {
  padding: 3rem 0 1.5rem;
}

.contact-intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.contact-intro__copy {
  max-width: 40rem;
}

.contact-intro__brand {
  margin: 0 0 0.75rem;
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tlgray-600);
  opacity: 0;
  animation: fadeInUp 0.55s ease-out 0.05s forwards;
}

.contact-intro__title {
  margin: 0 0 1rem;
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--tlgray-900);
  opacity: 0;
  animation: fadeInUp 0.55s ease-out 0.12s forwards;
}

.contact-intro__copy .bg-primary-500 {
  opacity: 0;
  animation: fadeInUp 0.55s ease-out 0.2s forwards;
}

.contact-intro__subtitle {
  margin: 0;
  max-width: 36rem;
  opacity: 0;
  animation: fadeInUp 0.55s ease-out 0.28s forwards;
}

.contact-intro__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: 28rem;
  border-radius: 1.25rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.22s forwards;
}

.contact-intro__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.contact-main {
  padding: 1.5rem 0 4rem;
}

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

.contact-main__heading {
  margin: 0 0 1.5rem;
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--tlgray-900);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 36rem;
}

.contact-form__success {
  max-width: 36rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  background: rgba(252, 223, 90, 0.28);
  border: 1.5px solid var(--primary-500);
  border-radius: 0.625rem;
}

.contact-form__success-title {
  margin: 0 0 0.35rem;
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--tlgray-900);
}

.contact-form__success-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--tlgray-700);
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tlgray-700);
}

.contact-form__input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tlgray-900);
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid var(--tlgray-300);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__input::placeholder {
  color: var(--tlgray-400);
}

.contact-form__input:hover {
  border-color: var(--tlgray-400);
  background: rgba(255, 255, 255, 0.9);
}

.contact-form__input:focus {
  border-color: var(--primary-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(252, 223, 90, 0.35);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 9rem;
}

.contact-form__submit {
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.875rem 2rem;
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tlgray-900);
  background: var(--primary-500);
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(252, 223, 90, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form__submit:hover {
  background: var(--primary-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(252, 223, 90, 0.45);
}

.contact-form__submit:active {
  transform: translateY(0);
}

.contact-form__submit:focus-visible {
  outline: 2px solid var(--tlgray-900);
  outline-offset: 3px;
}

.contact-main__aside {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 0.25rem;
}

.contact-aside__heading {
  margin: 0 0 1rem;
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tlgray-900);
}

.contact-aside__list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-aside__item {
  margin: 0;
}

.contact-aside__label {
  margin: 0 0 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tlgray-500);
}

.contact-aside__value {
  margin: 0;
  font-size: var(--text-body-size);
  line-height: var(--text-body-lh);
  font-weight: 500;
  color: var(--tlgray-900);
}

.contact-aside__link {
  color: var(--tlgray-900);
  text-decoration: underline;
  text-decoration-color: var(--primary-500);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.contact-aside__link:hover {
  color: var(--tlgray-700);
  text-decoration-color: var(--primary-600);
}

.contact-aside__note {
  margin: 1.25rem 0 0;
}

.contact-aside__audiences {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-aside__audiences li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--primary-500);
}

.contact-aside__audience-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tlgray-900);
}

.contact-aside__audience-text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted-color);
}

@media (min-width: 768px) {
  .contact-intro {
    padding: 4rem 0 2rem;
  }

  .contact-intro__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem 3rem;
  }

  .contact-intro__media {
    max-height: min(22rem, 40vh);
  }

  .contact-main {
    padding: 2rem 0 5rem;
  }
}

@media (min-width: 1024px) {
  .contact-intro__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 3rem 4rem;
  }

  .contact-intro__media {
    max-height: min(26rem, 42vh);
  }

  .contact-main__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: 4rem 5rem;
  }

  .contact-main__aside {
    gap: 3rem;
    padding-top: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-intro__brand,
  .contact-intro__title,
  .contact-intro__copy .bg-primary-500,
  .contact-intro__subtitle,
  .contact-intro__media {
    opacity: 1;
    animation: none;
  }

  .contact-form__submit:hover {
    transform: none;
  }
}

/* ===== Team page ===== */
.team-members {
  padding: 3rem 0 5rem;
}

.team-group + .team-group {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--tlgray-200);
}

.team-group__header {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.team-group__title {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--tlgray-900);
  margin: 0 0 0.75rem;
}

.team-group__intro {
  margin: 0;
}

.team-members__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2.5rem;
}

.team-member {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.team-member__photo {
  width: 100%;
  max-width: 12rem;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 0.75rem;
  background: var(--primary-100);
  display: block;
}

.team-member__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-100);
  color: var(--primary-800);
  font-family: var(--font-display, inherit);
  font-size: 2.5rem;
  font-weight: 800;
}

.team-member__name {
  font-family: var(--font-display, inherit);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tlgray-900);
  margin: 0 0 0.25rem;
}

.team-member__role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tlgray-600);
  margin: 0 0 0.75rem;
}

.team-member__bio {
  margin: 0;
}

.team-member__bio > *:first-child {
  margin-top: 0;
}

.team-member__bio > *:last-child {
  margin-bottom: 0;
}

.team-member__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.team-member__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tlgray-800);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.team-member__link:hover {
  color: var(--tlgray-600);
}

.team-members__empty {
  color: var(--text-muted-color);
  margin: 0;
}

@media (min-width: 768px) {
  .team-members {
    padding: 4rem 0 5rem;
  }

  .team-group + .team-group {
    margin-top: 5rem;
    padding-top: 5rem;
  }

  .team-members__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .team-members__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Impact statistics — cards with a single brand accent */
.impact-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.impact-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
  animation: fadeInUp 0.65s ease-out both;
}

.impact-stat:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.impact-stat--1 { animation-delay: 0.05s; }
.impact-stat--2 { animation-delay: 0.12s; }
.impact-stat--3 { animation-delay: 0.19s; }
.impact-stat--4 { animation-delay: 0.26s; }

.impact-stat__value {
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--tlgray-900);
  margin-bottom: 0.75rem;
}

.impact-stat__label {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--tlgray-900);
  margin-bottom: 0.5rem;
}

.impact-stat__desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted-color);
}

@media (min-width: 768px) {
  .impact-section__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .impact-stat {
    padding: 2rem;
  }

  .impact-stat__value {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .impact-section__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .impact-stat__value {
    font-size: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .impact-stat {
    animation: none;
  }
}

/* Our Offerings — program images */
.offering-program__image {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Donate modal */
body.donate-modal-open {
  overflow: hidden;
}

.donate-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.donate-modal[hidden] {
  display: none;
}

.donate-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: donate-fade-in 0.2s ease;
}

.donate-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.35rem 1.35rem 1.15rem;
  background:
    linear-gradient(180deg, var(--primary-50) 0%, #ffffff 38%),
    #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 1rem;
  box-shadow: 0 24px 64px rgba(17, 24, 39, 0.22);
  text-align: center;
  outline: none;
  animation: donate-rise-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: thin;
}

.donate-modal__accent {
  width: 3.5rem;
  height: 0.35rem;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  background: var(--primary-500);
}

.donate-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--tlgray-500);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.donate-modal__close:hover {
  background: var(--tlgray-100);
  color: var(--tlgray-900);
}

.donate-modal__close:focus-visible {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
}

.donate-modal__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tlgray-500);
}

.donate-modal__title {
  margin: 0 0 0.5rem;
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--tlgray-900);
}

.donate-modal__lead {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--tlgray-600);
}

.donate-modal__qr-wrap {
  display: inline-flex;
  padding: 0.55rem;
  margin-bottom: 0.55rem;
  background: #ffffff;
  border: 1px solid var(--tlgray-200);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.donate-modal__qr {
  display: block;
  width: min(180px, 48vw);
  height: auto;
  image-rendering: pixelated;
}

.donate-modal__hint {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--tlgray-700);
}

.donate-modal__upi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 16rem;
  margin: 0 auto 0.75rem;
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tlgray-900);
  text-decoration: none;
  background: var(--primary-500);
  border-radius: 0.625rem;
  box-shadow: 0 4px 14px rgba(252, 223, 90, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.donate-modal__upi-btn:hover {
  background: var(--primary-400);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(252, 223, 90, 0.45);
}

.donate-modal__points {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.9rem;
  list-style: none;
  text-align: left;
  background: rgba(252, 223, 90, 0.14);
  border-radius: 0.75rem;
}

.donate-modal__points li {
  position: relative;
  padding-left: 1.1rem;
  margin: 0.2rem 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--tlgray-700);
}

.donate-modal__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--primary-600);
}

.donate-modal__thanks {
  margin: 0 0 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tlgray-900);
}

.donate-modal__contact {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--tlgray-500);
}

.donate-modal__contact a {
  color: var(--tlgray-800);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.donate-modal__contact a:hover {
  color: var(--tlgray-900);
}

@keyframes donate-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes donate-rise-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .donate-modal__backdrop,
  .donate-modal__dialog {
    animation: none;
  }
}
