/* ============================================
   RISE & RALLY — Premium Redesign
   Teal + Slate palette, modern effects
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary teal palette */
  --teal-50:  #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  /* Accent — the original brand teal */
  --brand:       #2bbede;
  --brand-dark:  #1a9cb8;
  --brand-light: #7dd3e8;

  /* Neutrals */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --white:  #ffffff;
  --black:  #000000;

  /* Functional */
  --bg:          var(--white);
  --bg-alt:      var(--slate-50);
  --text:        var(--slate-800);
  --text-muted:  var(--slate-500);
  --border:      var(--slate-200);

  /* Typography */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 8rem);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);

  /* Radius */
  --radius-sm:  0.5rem;
  --radius-md:  0.75rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --radius-2xl: 2rem;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* ---------- Typography ---------- */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}
.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.25rem;
  height: 2px;
  background: var(--brand);
  transform: translateY(-50%);
}
.section-tag.light { color: var(--teal-200); }
.section-tag.light::before { background: var(--teal-200); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--slate-900);
  margin-bottom: 1.25rem;
}
.section-title.light { color: var(--white); }

.accent-text {
  background: linear-gradient(135deg, var(--brand) 0%, var(--teal-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
}

.section-text {
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.75;
}

.centered { text-align: center; }
.centered .section-subtitle { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(43,190,222,0.35);
}
.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 6px 20px rgba(43,190,222,0.45);
}

.btn-secondary {
  background: var(--slate-800);
  color: var(--white);
}
.btn-secondary:hover { background: var(--slate-900); }

.btn-accent {
  background: linear-gradient(135deg, var(--teal-500), var(--brand));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(20,184,166,0.35);
}
.btn-accent:hover { box-shadow: 0 6px 20px rgba(20,184,166,0.5); }

.btn-ghost {
  background: transparent;
  color: var(--slate-700);
  border-color: var(--slate-300);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-white {
  background: var(--white);
  color: var(--slate-900);
  box-shadow: var(--shadow-lg);
}
.btn-white:hover { box-shadow: var(--shadow-xl); }

.btn-outline-white {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease-out);
}
.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--teal-500) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.875rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-text {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--white);
  transition: color 0.4s;
}
.navbar.scrolled .logo-text { color: var(--slate-900); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--slate-600); }
.navbar.scrolled .nav-links a:hover { color: var(--slate-900); }

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.nav-actions .btn-ghost {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
}
.nav-actions .btn-ghost:hover {
  color: var(--white);
  border-color: var(--white);
}
.navbar.scrolled .nav-actions .btn-ghost {
  color: var(--slate-700);
  border-color: var(--slate-300);
}
.navbar.scrolled .nav-actions .btn-ghost:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.navbar.scrolled .nav-toggle span { background: var(--slate-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--slate-900);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.25;
  filter: brightness(0.8) contrast(1.1);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(15,23,42,0.7) 0%, rgba(12,46,58,0.5) 40%, rgba(19,78,74,0.6) 100%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(43,190,222,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(20,184,166,0.1) 0%, transparent 60%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.03;
  background-image:
    radial-gradient(circle at 25% 25%, var(--white) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, var(--white) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem clamp(1.25rem, 4vw, 2rem) 4rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(43,190,222,0.12);
  border: 1px solid rgba(43,190,222,0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 800px;
}
.hero-title .accent-text {
  background: linear-gradient(135deg, var(--brand) 0%, var(--teal-300) 50%, var(--brand-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--brand);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* ---------- Marquee ---------- */
.marquee-section {
  background: var(--slate-900);
  padding: 1.25rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.marquee-track {
  display: flex;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee-scroll 20s linear infinite;
}

.marquee-content span {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: rgba(255,255,255,0.12);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.3s;
}

.marquee-content span:hover {
  color: rgba(43,190,222,0.4);
}

.marquee-dot {
  width: 8px !important;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  opacity: 0.4;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Hero Rotated Text ---------- */
.hero-rotated-text {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: center;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Gravestone Image ---------- */
.gravestone-img {
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg) !important;
}

/* ---------- Skewed Accent ---------- */
.skewed-accent {
  position: absolute;
  top: -60px;
  left: -5%;
  right: -5%;
  height: 120px;
  background: var(--bg-alt);
  transform: skewY(-2deg);
  z-index: 1;
}

/* ---------- Arrow Link ---------- */
.arrow-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
}
.arrow-link svg {
  transition: transform 0.3s var(--ease-out);
}
.arrow-link:hover svg {
  transform: translateX(5px);
}

/* ---------- Custom Cursor ---------- */
.custom-cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), opacity 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
}
.custom-cursor.visible {
  opacity: 1;
}
.custom-cursor.hover {
  width: 60px;
  height: 60px;
  border-color: var(--brand-light);
}

@media (max-width: 768px) {
  .custom-cursor { display: none; }
  .hero-rotated-text { display: none; }
}

/* ---------- Session Banner ---------- */
.session-banner {
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
  position: relative;
}

.banner-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

.banner-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--teal-400), var(--brand));
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

.banner-content {
  padding: clamp(2rem, 4vw, 3rem);
}

.banner-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.banner-detail {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.banner-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.detail-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}

.detail-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.detail-value {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
}

.detail-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---------- About ---------- */
.about {
  padding: var(--section-pad) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-stack {
  position: relative;
  height: 480px;
}

.about-img-card {
  position: absolute;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-img-1 {
  width: 75%;
  height: 340px;
  top: 0;
  left: 0;
  z-index: 1;
}

.about-img-2 {
  width: 55%;
  height: 240px;
  bottom: 0;
  right: 0;
  z-index: 2;
  border: 4px solid var(--white);
}

.about-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.05) saturate(1.1);
}

.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--slate-100), var(--slate-200));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--slate-400);
}
.img-placeholder::after {
  content: attr(data-label);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-float-stat {
  position: absolute;
  bottom: 80px;
  left: -20px;
  z-index: 3;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow-2xl);
  text-align: center;
}

.float-stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
}
.float-stat-number::after {
  content: '+';
}

.float-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-icon {
  width: 52px;
  height: 52px;
  background: var(--teal-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
  transition: all 0.3s var(--ease-out);
}

.value-item:hover .value-icon {
  background: var(--brand);
  color: var(--white);
  transform: scale(1.05);
}

.value-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.value-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Programs ---------- */
.programs {
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 3.5rem;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--teal-400));
  opacity: 0;
  transition: opacity 0.3s;
}
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(43,190,222,0.15);
}
.program-card:hover::before { opacity: 1; }

.program-card.featured {
  background: linear-gradient(135deg, var(--slate-900), #0c2e3a);
  color: var(--white);
}
.program-card.featured::before { opacity: 1; }
.program-card.featured h3 { color: var(--white); }
.program-card.featured p { color: rgba(255,255,255,0.7); }
.program-card.featured .card-icon { background: rgba(43,190,222,0.15); color: var(--brand-light); }
.program-card.featured .card-link { color: var(--brand-light); }

.card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(43,190,222,0.15);
  color: var(--brand-light);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--teal-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 1.5rem;
  transition: all 0.3s var(--ease-out);
}
.program-card:hover .card-icon { transform: scale(1.08) rotate(-3deg); }

.program-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}

.program-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s var(--ease-out);
}
.card-link:hover { gap: 0.75rem; }

/* ---------- Impact / Stats ---------- */
.impact {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.impact-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--slate-900) 0%, #0c2e3a 50%, var(--teal-900) 100%);
}
.impact-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(43,190,222,0.08) 0%, transparent 70%);
}

.impact .container { position: relative; z-index: 2; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-out);
}
.stat-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  display: inline;
}

.stat-suffix {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--brand);
  display: inline;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Help / CTA Section ---------- */
.help-section {
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.help-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.4s var(--ease-out);
  border: 1px solid transparent;
}
.help-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(43,190,222,0.1);
}

.help-number {
  font-size: 4rem;
  font-weight: 900;
  color: var(--teal-100);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.3s;
}
.help-card:hover .help-number { color: var(--teal-200); }

.help-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}

.help-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

/* ---------- Testimonial ---------- */
.testimonial-section {
  padding: var(--section-pad) 0;
}

.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--teal-100);
  line-height: 0.5;
  margin-bottom: 1rem;
}

blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--brand), var(--teal-500));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
}

.author-name {
  font-weight: 700;
  color: var(--slate-900);
}

.author-role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---------- Newsletter ---------- */
.newsletter {
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
}

.newsletter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
}

.newsletter-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.newsletter-content p {
  color: var(--text-muted);
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.newsletter-form input {
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  width: 280px;
  transition: border-color 0.3s;
  outline: none;
}
.newsletter-form input:focus {
  border-color: var(--brand);
}

/* ---------- Start a Chapter ---------- */
.start-chapter {
  padding: var(--section-pad) 0;
}

.chapter-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.chapter-content {
  padding: clamp(2rem, 4vw, 3.5rem);
}

.chapter-visual {
  height: 100%;
  min-height: 360px;
}

.chapter-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.05) saturate(1.1);
}

.chapter-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .chapter-card { grid-template-columns: 1fr; }
  .chapter-visual { min-height: 240px; order: -1; }
}

/* ---------- Contact ---------- */
.contact {
  padding: var(--section-pad) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--slate-600);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.contact-item svg { color: var(--brand); flex-shrink: 0; margin-top: 3px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg-alt);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-600);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(43,190,222,0.1);
}
.form-group textarea { resize: vertical; }

/* ---------- Footer ---------- */
.footer {
  background: var(--slate-900);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text { color: var(--white); }
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  padding: 0.35rem 0;
  transition: color 0.3s, padding-left 0.3s;
}
.footer-col a:hover {
  color: var(--brand-light);
  padding-left: 0.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.programs-grid .reveal:nth-child(1) { transition-delay: 0s; }
.programs-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.programs-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.stats-grid .reveal:nth-child(1) { transition-delay: 0s; }
.stats-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.help-grid .reveal:nth-child(1) { transition-delay: 0s; }
.help-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.help-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

.about-values .value-item { transition-delay: 0s; }
.about-values .value-item:nth-child(2) { transition-delay: 0.1s; }
.about-values .value-item:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; max-width: 500px; margin: 0 auto; }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: 1fr 1fr; }
  .help-grid .help-card:last-child { grid-column: span 2; }
  .newsletter-card { flex-direction: column; text-align: center; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; width: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile menu */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--slate-900);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 5;
  }
  .nav-links.active a {
    font-size: 1.5rem;
    color: var(--white);
  }
  .nav-actions.active {
    display: flex;
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    gap: 1rem;
  }
  .nav-actions.active .btn-ghost {
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
  }

  .programs-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .help-grid { grid-template-columns: 1fr; }
  .help-grid .help-card:last-child { grid-column: auto; }
  .banner-details { grid-template-columns: 1fr; }
  .about-image-stack { height: 360px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2rem, 8vw, 2.75rem); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .about-image-stack { height: 280px; }
  .about-float-stat { left: 10px; bottom: 40px; }
}
