/* ============================================
   Kids Foundation Academy — Design System
   ============================================ */

:root {
  --primary: #0D47A1;
  --primary-dark: #0a3a85;
  --primary-light: #1565C0;
  --secondary: #FFD700;
  --secondary-dark: #e6c200;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-dark: #0a1628;
  --text: #222222;
  --text-muted: #5a6474;
  --text-light: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(13, 71, 161, 0.06);
  --shadow-md: 0 8px 30px rgba(13, 71, 161, 0.1);
  --shadow-lg: 0 20px 60px rgba(13, 71, 161, 0.15);
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --nav-height: 80px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Typography
   ============================================ */

.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section {
  padding: 6rem 0;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-light);
  box-shadow: 0 4px 20px rgba(13, 71, 161, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 71, 161, 0.45);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-nav {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* ============================================
   Navigation
   ============================================ */

.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--transition);
}

.nav-header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.nav-header.scrolled .nav-logo,
.nav-header.scrolled .nav-link {
  color: var(--text);
}

.nav-header.scrolled .logo-icon {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-light);
  transition: color var(--transition);
  z-index: 1001;
}

.logo-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFD700;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  display: none;
}

@media (min-width: 480px) {
  .logo-text {
    display: inline;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
}

.nav-header.scrolled .nav-link:hover,
.nav-header.scrolled .nav-link.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-header.scrolled .nav-toggle span {
  background: var(--text);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    background: var(--bg);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    color: var(--text);
    padding: 1rem;
    font-size: 1.0625rem;
  }

  .nav-links .btn-nav {
    margin-top: 1rem;
    text-align: center;
  }
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.85) 0%,
    rgba(13, 71, 161, 0.55) 50%,
    rgba(10, 22, 40, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  animation: fadeUp 1s ease forwards 1.2s;
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   Mission
   ============================================ */

.mission {
  background: var(--bg-alt);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mission-lead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.mission-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.mission-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.mission-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.mission-stat span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.mission-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.mission-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--primary);
}

.mission-card-icon svg {
  width: 100%;
  height: 100%;
}

.mission-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.mission-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ============================================
   Impact Cards
   ============================================ */

.impact-section {
  background: var(--bg);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.impact-card {
  text-align: left;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.impact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.impact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.impact-card:hover::before {
  transform: scaleX(1);
}

.impact-icon {
  width: 52px;
  height: 52px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.1), rgba(255, 215, 0, 0.15));
  border-radius: var(--radius-sm);
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.impact-card:hover .impact-icon {
  background: var(--primary);
  color: var(--text-light);
  transform: scale(1.05);
}

.impact-icon svg {
  width: 100%;
  height: 100%;
}

.impact-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.impact-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.impact-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition);
}

.impact-card:hover .impact-link {
  color: var(--secondary-dark);
}

@media (max-width: 900px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Gallery
   ============================================ */

.gallery-section {
  background: var(--bg-alt);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--text-light);
  font-weight: 600;
  font-size: 1rem;
}

.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item,
  .gallery-item--large,
  .gallery-item--wide {
    grid-column: span 1;
    grid-row: span 1;
    height: 200px;
  }

  .gallery-item--large {
    grid-column: span 2;
    height: 260px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--large {
    grid-column: span 1;
  }
}

/* ============================================
   Counters
   ============================================ */

.counters-section {
  position: relative;
  padding: 5rem 0;
  background: var(--primary);
  overflow: hidden;
}

.counters-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  opacity: 0.95;
}

.counters-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.counter-item {
  color: var(--text-light);
}

.counter-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--secondary);
}

.counter-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--secondary);
}

.counter-label {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .counters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* ============================================
   Faith Section
   ============================================ */

.faith-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.faith-image {
  position: relative;
}

.faith-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.faith-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--secondary);
  border-radius: var(--radius-md);
  z-index: -1;
}

.faith-lead {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.faith-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .faith-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .faith-image img {
    height: 320px;
  }

  .faith-image-accent {
    display: none;
  }
}

/* ============================================
   Testimonials
   ============================================ */

.testimonials-section {
  background: var(--bg-alt);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--secondary);
  opacity: 0.6;
  margin-bottom: -1rem;
}

.testimonial-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text);
}

.testimonial-author span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* ============================================
   CTA Banner
   ============================================ */

.cta-section {
  padding: 4rem 0 6rem;
}

.cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  overflow: hidden;
  text-align: center;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-light);
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.125rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.cta-decoration {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  color: var(--secondary);
  opacity: 0.15;
  pointer-events: none;
}

.cta-decoration svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .cta-banner {
    padding: 3rem 1.5rem;
  }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-links ul li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  font-size: 0.9375rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary);
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.7;
}

.footer-contact a:hover {
  color: var(--secondary);
}

.footer-presence-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
}

.footer-presence-title svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
  color: var(--secondary);
}

.footer-presence {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-presence li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.presence-flag {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.presence-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.presence-info strong {
  color: var(--text-light);
  font-size: 0.9375rem;
  font-weight: 600;
}

.presence-info span {
  font-size: 0.8125rem;
  opacity: 0.7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Modal
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: modalSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--primary);
  color: var(--text-light);
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  padding: 14px;
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.1), rgba(255, 215, 0, 0.15));
  border-radius: var(--radius-sm);
  color: var(--primary);
}

.modal-icon svg {
  width: 100%;
  height: 100%;
}

.modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Success Modal */
.success-content {
  max-width: 440px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  color: #22c55e;
}

.success-icon svg {
  width: 100%;
  height: 100%;
}

.success-details {
  font-size: 0.9375rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem !important;
}

/* ============================================
   Lightbox
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 22, 40, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

#lightbox-caption {
  color: var(--text-light);
  margin-top: 1rem;
  font-size: 1rem;
  opacity: 0.9;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: var(--text-light);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--primary);
}

/* ============================================
   Donate Page
   ============================================ */

.donate-hero {
  position: relative;
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  overflow: hidden;
}

.donate-hero-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.donate-hero-content {
  position: relative;
  text-align: center;
  color: var(--text-light);
}

.donate-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
}

.donate-hero-content p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
}

.donate-section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.donate-causes {
  padding: 4rem 0;
  background: var(--bg-alt);
}

.causes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cause-card {
  padding: 1.5rem 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition);
}

.cause-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cause-card.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.05), rgba(255, 215, 0, 0.08));
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.15);
}

.cause-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.75rem;
  padding: 8px;
  color: var(--primary);
  transition: all var(--transition);
}

.cause-card.active .cause-icon {
  color: var(--primary);
  transform: scale(1.1);
}

.cause-icon svg {
  width: 100%;
  height: 100%;
}

.cause-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cause-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .causes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .causes-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .cause-card {
    padding: 1rem 0.75rem;
  }

  .cause-card h3 {
    font-size: 0.8125rem;
  }
}

/* Donate Form Layout */
.donate-form-section {
  padding: 4rem 0 6rem;
}

.donate-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.impact-calculator {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--text-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}

.impact-calculator h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.calculator-subtitle {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.impact-list {
  margin-bottom: 1.5rem;
}

.impact-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition);
  cursor: default;
}

.impact-list-item:last-child {
  border-bottom: none;
}

.impact-list-item.highlight {
  background: rgba(255, 215, 0, 0.15);
  margin: 0 -1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-bottom: none;
}

.impact-amount {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--secondary);
  min-width: 48px;
}

.impact-desc {
  font-size: 0.9375rem;
  opacity: 0.9;
}

.calculator-result {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
}

.calculator-result p {
  font-size: 0.9375rem;
  opacity: 0.9;
}

.calc-impact {
  font-family: var(--font-display);
  font-size: 1.25rem !important;
  color: var(--secondary) !important;
  font-weight: 600;
  margin-top: 0.25rem;
}

.donate-form-wrapper {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-selected-cause {
  background: var(--bg-alt);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.form-selected-cause strong {
  color: var(--primary);
  display: block;
  font-size: 1.125rem;
  margin-top: 0.25rem;
}

.donation-type-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg-alt);
  padding: 0.375rem;
  border-radius: 50px;
}

.type-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  color: var(--text-muted);
  transition: all var(--transition);
}

.type-btn.active {
  background: var(--primary);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.amount-btn {
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: all var(--transition);
}

.amount-btn:hover {
  border-color: var(--primary-light);
}

.amount-btn.active {
  border-color: var(--primary);
  background: rgba(13, 71, 161, 0.08);
  color: var(--primary);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.required {
  color: #e53e3e;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  background: var(--bg);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.15);
}

.form-group input.error {
  border-color: #e53e3e;
}

.form-error {
  display: block;
  font-size: 0.8125rem;
  color: #e53e3e;
  margin-top: 0.375rem;
  min-height: 1.25rem;
}

.input-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix span {
  position: absolute;
  left: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.input-prefix input {
  padding-left: 2rem;
}

.form-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form-secure svg {
  width: 16px;
  height: 16px;
}

/* Trust Section */
.trust-section {
  padding: 3rem 0 5rem;
  background: var(--bg-alt);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.trust-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.trust-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  padding: 12px;
  color: var(--primary);
}

.trust-icon svg {
  width: 100%;
  height: 100%;
}

.trust-item h4 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.trust-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .donate-layout {
    grid-template-columns: 1fr;
  }

  .impact-calculator {
    position: static;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 540px) {
  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .donate-form-wrapper {
    padding: 1.5rem;
  }
}

/* ============================================
   Scroll Reveal
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.impact-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.impact-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.impact-grid .reveal:nth-child(4) { transition-delay: 0.1s; }
.impact-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.impact-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

.testimonials-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.testimonials-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

/* Donate page nav always scrolled style */
.donate-page .nav-header {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.donate-page .nav-logo,
.donate-page .nav-link {
  color: var(--text);
}

.donate-page .logo-icon {
  color: var(--primary);
}

.donate-page .nav-toggle span {
  background: var(--text);
}

.donate-page .nav-link:hover,
.donate-page .nav-link.active {
  color: var(--primary);
}
