/* ==========================================================================
   CHILUMBA.BE — African-Inspired NGO Design System
   Colors: Terracotta, Gold, Deep Green, Rich Brown, Malawi Flag (🖤❤️💚)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* African Earth Palette */
  --terracotta: #C85A3A;
  --terracotta-light: #E07A5A;
  --terracotta-dark: #9E3E22;
  --gold: #D4A843;
  --gold-light: #ECC872;
  --gold-dark: #B08A2A;
  --deep-green: #2D6A4F;
  --deep-green-light: #3A8A68;
  --deep-green-dark: #1B4332;
  --brown: #6B3F2A;
  --brown-light: #8B5E3C;
  --sand: #F5E6CC;
  --sand-light: #FDF3E4;
  --cream: #FFFAF0;
  --warm-white: #FEFCF7;
  --charcoal: #2C2C2C;
  --dark-bg: #1A1612;

  /* Malawi Flag Colors */
  --malawi-black: #1C1C1C;
  --malawi-red: #CE1126;
  --malawi-green: #339E35;

  /* Functional */
  --text-primary: #1F1A15;
  --text-secondary: #3D3027;
  --text-light: #6B5D4F;
  --text-on-dark: #F5E6CC;

  /* 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: 6rem;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow-soft: 0 4px 24px rgba(108, 63, 42, 0.08);
  --shadow-medium: 0 8px 40px rgba(108, 63, 42, 0.12);
  --shadow-heavy: 0 16px 64px rgba(108, 63, 42, 0.16);
  --shadow-glow: 0 0 40px rgba(212, 168, 67, 0.2);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-smooth: 0.4s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--warm-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--terracotta-dark);
}

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

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section-padding {
  padding: var(--space-4xl) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--terracotta);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  color: var(--charcoal);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 660px;
  line-height: 1.8;
  font-weight: 400;
}

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-lg) 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(254, 252, 247, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: var(--space-md) 0;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: color var(--transition-fast);
}

.nav-logo .heart {
  font-size: 1.2em;
  animation: heartbeat 2s ease-in-out infinite;
}

.navbar.scrolled .nav-logo {
  color: var(--charcoal);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.navbar.scrolled .nav-links a {
  color: var(--text-secondary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition-smooth);
}

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

.nav-links a:hover {
  color: white;
}

.navbar.scrolled .nav-links a:hover {
  color: var(--terracotta);
}

.nav-cta {
  background: var(--terracotta) !important;
  color: white !important;
  padding: var(--space-sm) var(--space-xl) !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: all var(--transition-fast) !important;
  box-shadow: 0 4px 16px rgba(200, 90, 58, 0.3);
}

.nav-cta:hover {
  background: var(--terracotta-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(200, 90, 58, 0.4) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: white;
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.navbar.scrolled .nav-toggle span {
  background: var(--charcoal);
}

.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);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--dark-bg);
  background-image:
    linear-gradient(180deg,
      rgba(26, 22, 18, 0.4) 0%,
      rgba(26, 22, 18, 0.2) 50%,
      rgba(200, 90, 58, 0.3) 100%),
    url("https://images.unsplash.com/photo-1516026672322-bc52d61a55d5?q=80&w=2072&auto=format&fit=crop");
  /* Lake Malawi Sunset vibe */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 L50 20 L40 40 L30 20Z' fill='rgba(212,168,67,0.06)'/%3E%3Cpath d='M0 40 L10 60 L0 80 L-10 60Z' fill='rgba(212,168,67,0.04)'/%3E%3Cpath d='M80 40 L90 60 L80 80 L70 60Z' fill='rgba(212,168,67,0.04)'/%3E%3C/svg%3E");
  animation: patternDrift 30s linear infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--warm-white), transparent);
  z-index: 1;
}

/* Decorative sun */
.hero-sun {
  position: absolute;
  top: 15%;
  right: 10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.4) 0%, rgba(212, 168, 67, 0.1) 50%, transparent 70%);
  animation: sunGlow 4s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--space-xl);
  max-width: 900px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  color: white;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.hero-content h1 .accent {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--terracotta-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-2xl);
  letter-spacing: 2px;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: var(--space-md) var(--space-2xl);
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--terracotta);
  color: white;
  box-shadow: 0 4px 24px rgba(200, 90, 58, 0.3);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(200, 90, 58, 0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
  transform: translateY(-3px);
}

.btn-secondary {
  background: var(--deep-green);
  color: white;
  box-shadow: 0 4px 24px rgba(45, 106, 79, 0.3);
}

.btn-secondary:hover {
  background: var(--deep-green-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(45, 106, 79, 0.4);
  color: white;
}

/* Malawi flag stripe */
.hero-flag-stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  display: flex;
  z-index: 3;
}

.hero-flag-stripe span {
  flex: 1;
}

.hero-flag-stripe span:nth-child(1) {
  background: var(--malawi-black);
}

.hero-flag-stripe span:nth-child(2) {
  background: var(--malawi-red);
}

.hero-flag-stripe span:nth-child(3) {
  background: var(--malawi-green);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-indicator .arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
}

/* ---------- Impact Stats ---------- */
.impact-stats {
  position: relative;
  margin-top: -60px;
  z-index: 5;
  padding-bottom: var(--space-3xl);
}

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

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-smooth);
  border: 1px solid rgba(212, 168, 67, 0.1);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Mission Section ---------- */
.mission {
  background: var(--warm-white);
  position: relative;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.mission-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--dark-bg);
  background-image:
    url("https://images.unsplash.com/photo-1489710437720-ebb67ec84dd2?q=80&w=2070&auto=format&fit=crop");
  /* African community/children */
  background-size: cover;
  background-position: center;
}

.mission-visual .pattern-overlay {
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='30' cy='30' r='8' fill='none' stroke='rgba(255,255,255,0.15)' stroke-width='2'/%3E%3Ccircle cx='30' cy='30' r='16' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3Cline x1='30' y1='0' x2='30' y2='14' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3Cline x1='30' y1='46' x2='30' y2='60' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3Cline x1='0' y1='30' x2='14' y2='30' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3Cline x1='46' y1='30' x2='60' y2='30' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3C/svg%3E");
}

.mission-visual .visual-text {
  position: absolute;
  bottom: var(--space-2xl);
  left: var(--space-2xl);
  right: var(--space-2xl);
  color: white;
  z-index: 2;
}

.mission-visual .visual-text h3 {
  font-size: 2rem;
  color: white;
  margin-bottom: var(--space-sm);
}

.mission-visual .visual-text p {
  font-size: 0.95rem;
  opacity: 0.85;
}

.mission-text p {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.85;
}

.mission-values {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.value-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--deep-green);
  font-size: 0.95rem;
}

.value-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-green), var(--deep-green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- African Divider ---------- */
.african-divider {
  height: 60px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'%3E%3Cpath d='M0 30 L15 10 L30 30 L15 50Z' fill='%23C85A3A' opacity='0.1'/%3E%3Cpath d='M30 30 L45 10 L60 30 L45 50Z' fill='%23D4A843' opacity='0.1'/%3E%3Cpath d='M60 30 L75 10 L90 30 L75 50Z' fill='%232D6A4F' opacity='0.1'/%3E%3Cpath d='M90 30 L105 10 L120 30 L105 50Z' fill='%23C85A3A' opacity='0.1'/%3E%3C/svg%3E") repeat-x center;
}

/* ---------- School Section ---------- */
.school {
  background: var(--sand-light);
  position: relative;
  overflow: hidden;
}

.school::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.1), transparent);
  pointer-events: none;
}

.school-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.school-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.feature-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  border: 1px solid rgba(212, 168, 67, 0.1);
  transition: all var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--gold);
}

.feature-card .emoji {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  display: block;
}

.feature-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--charcoal);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.school-story {
  background-color: var(--deep-green);
  background-image:
    linear-gradient(135deg, rgba(45, 106, 79, 0.95), rgba(27, 67, 50, 0.8)),
    url("https://images.unsplash.com/photo-1577896851231-70ef18881754?q=80&w=2070&auto=format&fit=crop");
  /* School kids */
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  color: white;
}

.school-story h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: var(--space-lg);
}

.school-story p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.85;
  margin-bottom: var(--space-lg);
}

.school-story .highlight {
  display: inline-block;
  background: rgba(212, 168, 67, 0.2);
  padding: 2px 10px;
  border-radius: 4px;
  color: var(--gold-light);
  font-weight: 600;
}

/* ---------- Events Section ---------- */
.events {
  background: var(--warm-white);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.event-card {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-smooth);
  border: 1px solid rgba(212, 168, 67, 0.08);
}

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

.event-card-header {
  padding: var(--space-2xl) var(--space-xl) var(--space-lg);
  background: linear-gradient(135deg, var(--terracotta), var(--gold-dark));
  position: relative;
}

.event-card-header.past {
  background: linear-gradient(135deg, var(--text-light), var(--text-secondary));
}

.event-date {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.event-month {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.event-status {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: var(--space-xs) var(--space-md);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(4px);
}

.event-card-body {
  padding: var(--space-xl);
}

.event-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.event-card-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.event-card-body .btn {
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  padding: var(--space-sm) var(--space-xl);
}

/* ---------- Get Involved (Bouw Mee) ---------- */
.get-involved {
  background:
    linear-gradient(135deg, var(--dark-bg), #2D1B0E);
  color: white;
  position: relative;
  overflow: hidden;
}

.get-involved::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='2' fill='rgba(212,168,67,0.08)'/%3E%3Ccircle cx='0' cy='0' r='2' fill='rgba(212,168,67,0.05)'/%3E%3Ccircle cx='100' cy='100' r='2' fill='rgba(212,168,67,0.05)'/%3E%3C/svg%3E");
}

.get-involved .section-label {
  color: var(--gold);
}

.get-involved .section-label::before {
  background: var(--gold);
}

.get-involved .section-title {
  background: linear-gradient(135deg, white 0%, var(--sand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.get-involved .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.involvement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.involvement-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-smooth);
}

.involvement-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.involvement-card .card-icon {
  font-size: 2.4rem;
  margin-bottom: var(--space-lg);
  display: block;
}

.involvement-card h3 {
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.involvement-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Donation box */
.donation-box {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  margin-top: var(--space-2xl);
  text-align: center;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.donation-box h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
}

.donation-box p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-lg);
}

.bank-info {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bank-info small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-sm);
  letter-spacing: 0;
}

/* ---------- In Memoriam ---------- */
.memoriam {
  background: var(--cream);
  position: relative;
}

.memoriam-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.memoriam-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--terracotta));
  margin: 0 auto var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: 0 0 0 8px rgba(212, 168, 67, 0.1), 0 0 0 24px rgba(212, 168, 67, 0.05);
}

.memoriam h3 {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
}

.memoriam .dates {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: var(--space-2xl);
  font-weight: 500;
}

.memoriam blockquote {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: var(--space-xl);
  text-align: left;
  margin-bottom: var(--space-xl);
}

.memoriam .tribute {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--terracotta);
  font-size: 1rem;
}

/* ---------- Team Section ---------- */
.team {
  background: var(--warm-white);
}

.team-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-top: var(--space-2xl);
}

.team-group {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(212, 168, 67, 0.08);
}

.team-group-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--sand);
}

.team-group-header .flag {
  font-size: 2rem;
}

.team-group-header h3 {
  font-size: 1.3rem;
}

.team-group p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ---------- Lodge Section ---------- */
.lodge {
  background: var(--sand-light);
  position: relative;
  overflow: hidden;
}

.lodge-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.lodge-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--sand);
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)),
    url("https://images.unsplash.com/photo-1493246507139-91e8fad9978e?q=80&w=2070&auto=format&fit=crop");
  /* Lodge interior/view */
  background-size: cover;
  background-position: center;
  position: relative;
}

.lodge-visual .pattern-overlay {
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 0L20 10L40 0L40 20L20 30L0 20Z' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
}

.lodge-visual .visual-text {
  position: absolute;
  bottom: var(--space-2xl);
  left: var(--space-2xl);
  right: var(--space-2xl);
  color: white;
}

.lodge-visual .visual-text h3 {
  font-size: 1.8rem;
  color: white;
  margin-bottom: var(--space-sm);
}

.lodge-visual .visual-text p {
  opacity: 0.8;
}

.lodge-info p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: var(--space-lg);
}

.lodge-info .btn {
  margin-top: var(--space-md);
}

/* ---------- Contact Section ---------- */
.contact {
  background: var(--warm-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-top: var(--space-2xl);
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}

.contact-item .icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: white;
}

.contact-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
}

.contact-item a,
.contact-item p {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-social {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-fast);
  font-weight: 600;
  font-family: var(--font-heading);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.social-link.facebook {
  color: #1877F2;
}

.social-link.instagram {
  color: #E4405F;
}

/* Contact Form */
.contact-form {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(212, 168, 67, 0.08);
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--sand);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
  background: var(--warm-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: white;
}

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

.contact-form .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand h3 {
  font-size: 1.4rem;
  color: white;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  line-height: 1.7;
  font-size: 0.92rem;
}

.footer-links h4 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-lg);
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: var(--space-sm);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  font-size: 0.82rem;
}

.footer-flag {
  display: flex;
  gap: 4px;
}

.footer-flag span {
  width: 24px;
  height: 4px;
  border-radius: 2px;
}

.footer-flag span:nth-child(1) {
  background: var(--malawi-black);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-flag span:nth-child(2) {
  background: var(--malawi-red);
}

.footer-flag span:nth-child(3) {
  background: var(--malawi-green);
}

/* ---------- Animations ---------- */
@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

@keyframes sunGlow {
  from {
    transform: scale(1);
    opacity: 0.6;
  }

  to {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes patternDrift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-80px);
  }
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Scroll reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-grid,
  .school-content,
  .lodge-content,
  .contact-grid,
  .team-groups {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  :root {
    --space-4xl: 4rem;
    --space-3xl: 3rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(26, 22, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    z-index: 999;
    padding: var(--space-2xl);
  }

  .nav-links.open {
    display: flex;
    animation: fadeIn 0.3s ease;
  }

  .nav-links a {
    color: white !important;
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
  }

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

  .stat-number {
    font-size: 2rem;
  }

  .hero-sun {
    width: 200px;
    height: 200px;
    top: 10%;
    right: -30px;
  }

  .school-features {
    grid-template-columns: 1fr;
  }

  .mission-values {
    flex-wrap: wrap;
  }

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

  .contact-social {
    flex-direction: column;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-lg);
  }

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

  .stat-card {
    padding: var(--space-lg) var(--space-md);
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .donation-box {
    padding: var(--space-2xl) var(--space-lg);
  }

  .bank-info {
    font-size: 0.95rem;
    padding: var(--space-lg);
  }
}