/* ============================================================
   SHOBHA BAGRECHA — MAIN STYLESHEET
   Color palette: Teal/turquoise primary, gold accents, white/light-teal backgrounds
   Mobile-first, CSS Custom Properties, no frameworks
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Colors — Teal primary */
  --white:       #FFFFFF;
  --off-white:   #F8FAFA;          /* subtle off-white for section alternation */
  --light-teal:  #EAF4F4;          /* very light teal section background */
  --mid-teal:    #C5E0E0;          /* borders, dividers */
  --teal:        #4A8C8C;          /* PRIMARY accent — buttons, highlights */
  --teal-dark:   #347070;          /* hover state for teal */
  --teal-deep:   #1E5252;          /* dark teal — hero overlay base, deep accents */
  --terracotta:  #B5633A;          /* secondary warm accent */
  --gold:        #C9A96E;          /* stats, credentials */
  --charcoal:    #1E3232;          /* headings (dark teal-charcoal) */
  --body-text:   #2C3E3E;          /* body text (teal-tinged dark) */
  --muted:       #5E7A7A;          /* secondary text */
  --dark-bg:     #142828;          /* footer / newsletter dark background */

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-padding: 5rem 1.25rem;
  --container-max:   1200px;

  /* Effects */
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 28px rgba(30, 82, 82, 0.10);
  --shadow-lg:  0 8px 48px rgba(30, 82, 82, 0.16);
  --transition: 0.3s ease;

  /* Nav height */
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

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

img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); margin-bottom: 0.5rem; }
h4 { font-size: 0.9rem; font-family: var(--font-body); font-weight: 600;
     text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }

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

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
}
.btn:hover  { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(74, 140, 140, 0.25); }
.btn:active { transform: translateY(0); }

/* Primary — teal */
.btn-primary { background-color: var(--teal); color: var(--white); }
.btn-primary:hover { background-color: var(--teal-dark); }

/* Ghost — dark outline (on light backgrounds) */
.btn-ghost {
  background-color: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}
.btn-ghost:hover { background-color: var(--charcoal); color: var(--white); }

/* Ghost white — for dark / image backgrounds */
.btn-ghost-white {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.75);
}
.btn-ghost-white:hover { background-color: rgba(255, 255, 255, 0.15); border-color: var(--white); }

/* Secondary — teal outline */
.btn-secondary {
  background-color: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-secondary:hover { background-color: var(--teal); color: var(--white); }

/* Terracotta — warm accent button */
.btn-terracotta { background-color: var(--terracotta); color: var(--white); }
.btn-terracotta:hover { background-color: #9a5230; }

/* White — for colored section backgrounds */
.btn-white { background-color: var(--white); color: var(--teal); }
.btn-white:hover { background-color: #f0f8f8; }

.btn-large { padding: 0.9rem 2.2rem; font-size: 1rem; }

.text-link {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--transition), color var(--transition);
}
.text-link:hover { gap: 0.5rem; color: var(--teal-dark); }

/* ============================================================
   5. LAYOUT UTILITIES
   ============================================================ */
.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-padding);
}

.section-subheadline {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* ============================================================
   6. SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   7. NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74, 140, 140, 0.12);
  height: var(--nav-height);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(30, 82, 82, 0.10); }

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-logo img { height: 44px; width: auto; object-fit: contain; }

.nav-links { display: none; gap: 0.15rem; margin-left: auto; }
.nav-links a {
  padding: 0.4rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: 4px;
  transition: color var(--transition), background-color var(--transition);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--teal); background-color: rgba(74, 140, 140, 0.08); }

.nav-cta { display: none; margin-left: 0.5rem; padding: 0.55rem 1.2rem; font-size: 0.88rem; }

.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  padding: 6px; margin-left: auto; border-radius: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background-color: var(--charcoal); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 0; right: 0;
  width: min(320px, 82vw); height: 100dvh;
  background-color: var(--white);
  z-index: 1100; padding: 2rem 1.75rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(30, 82, 82, 0.15);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu ul li a {
  display: block; padding: 0.75rem 0;
  font-size: 1.05rem; font-weight: 500;
  border-bottom: 1px solid rgba(74, 140, 140, 0.1);
  transition: color var(--transition);
}
.mobile-menu ul li a:hover { color: var(--teal); }
.mobile-cta { margin-top: 2rem; width: 100%; display: block; text-align: center; }

.mobile-menu-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-size: 1.75rem; line-height: 1; color: var(--charcoal);
  transition: color var(--transition);
}
.mobile-menu-close:hover { color: var(--teal); }

.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(30, 50, 50, 0.5); z-index: 1050;
  backdrop-filter: blur(2px);
}
.mobile-overlay.visible { display: block; }

/* ============================================================
   8. HERO SECTION — Full-width image with text overlay
   ============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--teal-deep); /* fallback while image loads */
}

/* Background image layer */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Gradient overlay — dark on left for text readability, reveals image on right */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20, 40, 40, 0.80) 0%,
    rgba(20, 40, 40, 0.60) 40%,
    rgba(20, 40, 40, 0.25) 70%,
    rgba(20, 40, 40, 0.05) 100%
  );
}

/* Text content — positioned over image */
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 3rem) 1.5rem 4rem;
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  background-color: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(4px);
}

#hero h1 { color: var(--white); margin-bottom: 1.25rem; }

.hero-subheadline {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  line-height: 1.75;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.trust-line {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.social-proof-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.social-proof-badges li {
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
}

/* Page hero (used on sub-pages) */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--teal-deep);
  padding-top: var(--nav-height);
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,40,40,0.88) 0%, rgba(20,40,40,0.40) 100%);
}
.page-hero-content {
  position: relative; z-index: 1;
  padding: 3rem 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  color: var(--white);
}
.page-hero-content .eyebrow { margin-bottom: 0.75rem; }
.page-hero-content h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); }

/* ============================================================
   9. STATS BAR
   ============================================================ */
#stats {
  background-color: var(--light-teal);
  padding: 3.5rem 1.25rem;
}

.stats-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}

.stat-card {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 0.5rem;
}

.stat-icon { width: 56px; height: 56px; object-fit: contain; }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--charcoal);
}

/* ============================================================
   10. PROBLEM SECTION
   ============================================================ */
#problem { background-color: var(--white); }
#problem .section-container { text-align: center; }
#problem h2 { margin-bottom: 2.5rem; }

.problem-cards { display: grid; gap: 1.5rem; margin-bottom: 2.5rem; }

.problem-card {
  background-color: var(--off-white);
  border: 1px solid var(--mid-teal);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: left;
  transition: box-shadow var(--transition), transform var(--transition);
}
.problem-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.problem-icon {
  width: 48px; height: 48px;
  background-color: rgba(74, 140, 140, 0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--teal);
}

.problem-card p { font-size: 1rem; line-height: 1.65; color: var(--body-text); margin: 0; }

.research-note {
  font-size: 0.85rem; color: var(--muted);
  font-style: italic; max-width: 580px;
  margin: 0 auto; padding-top: 1rem;
  border-top: 1px solid var(--mid-teal);
}

/* ============================================================
   11. ABOUT SECTION
   ============================================================ */
#about { background-color: var(--off-white); }
#about .section-container { padding-top: 4rem; padding-bottom: 4rem; }

.about-container { display: flex; flex-direction: column; gap: 3rem; }

.about-image-wrapper {
  position: relative; max-width: 420px;
  margin: 0 auto; width: 100%;
}

.about-img {
  width: 100%; height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.about-text h2 { margin-bottom: 1.25rem; }

.pull-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 600;
  font-style: italic;
  color: var(--teal);
  border-left: 4px solid var(--teal);
  padding-left: 1.25rem;
  margin-bottom: 1.75rem;
  line-height: 1.4;
}

.about-text p { color: var(--body-text); margin-bottom: 1rem; }

.credentials {
  margin: 1.5rem 0;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.credentials li {
  display: flex; align-items: flex-start;
  gap: 0.6rem; font-size: 0.9rem;
  color: var(--charcoal); font-weight: 500;
}
.credentials li::before {
  content: '';
  width: 18px; height: 18px; min-width: 18px;
  border-radius: 50%;
  background-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  margin-top: 2px;
}

/* ============================================================
   12. SCIENCE SECTION
   ============================================================ */
#science { background-color: var(--light-teal); }
#science h2, #science .section-subheadline { text-align: center; }
#science h2 { margin-bottom: 0.75rem; }

.science-cards { display: grid; gap: 1.5rem; }

.science-card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.science-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.science-card img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 1.25rem; }
.science-card h3 { color: var(--charcoal); margin-bottom: 0.75rem; }
.science-card p { font-size: 0.92rem; color: var(--body-text); line-height: 1.7; margin: 0; }

/* ============================================================
   13. PROGRAMS SECTION
   ============================================================ */
#programs { background-color: var(--white); }
#programs h2, #programs .section-subheadline { text-align: center; }
#programs h2 { margin-bottom: 0.75rem; }

.programs-grid { display: grid; gap: 1.5rem; }

.program-card {
  background-color: var(--off-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  border: 1px solid var(--mid-teal);
  transition: transform var(--transition), box-shadow var(--transition);
}
.program-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.program-card-image {
  background-color: var(--light-teal);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; min-height: 160px;
}
.program-card-image img { max-height: 120px; width: auto; object-fit: contain; }

.program-card-body {
  padding: 1.5rem;
  display: flex; flex-direction: column; flex: 1; gap: 0.75rem;
}
.program-card-body h3 { color: var(--charcoal); }
.program-card-body p { font-size: 0.92rem; color: var(--body-text); line-height: 1.7; flex: 1; }

/* ============================================================
   14. FREE RESOURCE SECTION
   ============================================================ */
#free-resource { background-color: var(--teal); color: var(--white); }
#free-resource h2 { color: var(--white); text-align: center; }
#free-resource .section-subheadline { color: rgba(255,255,255,0.85); }

.free-resource-layout { display: flex; flex-direction: column; gap: 2.5rem; }

.checklist { display: flex; flex-direction: column; gap: 0.85rem; }
.checklist li {
  display: flex; align-items: flex-start;
  gap: 0.75rem; font-size: 0.95rem;
  font-weight: 500; color: rgba(255,255,255,0.95);
}
.checklist li::before {
  content: '';
  width: 20px; height: 20px; min-width: 20px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
  margin-top: 2px;
}

/* Teal-on-light checklist variant */
.checklist-light li { color: var(--body-text); }
.checklist-light li::before {
  background-color: rgba(74, 140, 140, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%234A8C8C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.resource-form { display: flex; flex-direction: column; gap: 1rem; }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(74, 140, 140, 0.25);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background-color: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(74, 140, 140, 0.18);
}

textarea { resize: vertical; min-height: 100px; }

.fine-print {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.60);
  text-align: center; margin: 0;
}

/* ============================================================
   15. TESTIMONIALS SECTION
   ============================================================ */
#testimonials { background-color: var(--white); }
#testimonials h2, #testimonials .section-subheadline { text-align: center; }
#testimonials h2 { margin-bottom: 0.75rem; }

.testimonials-wrapper { overflow: hidden; position: relative; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(6, 100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonial-card {
  background-color: var(--off-white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--mid-teal);
  display: flex; flex-direction: column; gap: 1rem;
  box-shadow: var(--shadow);
}

.testimonial-stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 0.05em; }

.testimonial-card blockquote {
  font-size: 0.93rem; line-height: 1.75;
  color: var(--body-text); font-style: italic; flex: 1;
  margin: 0; padding: 0;
}

.testimonial-author {
  display: flex; align-items: center;
  gap: 0.85rem; margin: 0; padding: 0;
}
.testimonial-photo {
  width: 52px; height: 52px; min-width: 52px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--teal);
}
.testimonial-author div { display: flex; flex-direction: column; gap: 0.15rem; }
.testimonial-author strong { font-size: 0.92rem; font-weight: 600; color: var(--charcoal); }
.testimonial-author span  { font-size: 0.78rem; color: var(--muted); }

.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 1.75rem;
}

.carousel-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--teal);
  font-size: 1.1rem; display: flex;
  align-items: center; justify-content: center;
  transition: background-color var(--transition), color var(--transition);
  color: var(--teal);
}
.carousel-btn:hover { background-color: var(--teal); color: var(--white); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-btn:disabled:hover { background-color: transparent; color: var(--teal); }

.carousel-dots { display: flex; gap: 6px; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background-color: var(--mid-teal);
  border: none; cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  padding: 0;
}
.carousel-dot.active { background-color: var(--teal); transform: scale(1.35); }

/* ============================================================
   16. SOCIAL IMPACT SECTION
   ============================================================ */
#social-impact { background-color: var(--light-teal); }

.impact-banner { position: relative; max-height: 480px; overflow: hidden; }
.impact-banner img { width: 100%; height: 480px; object-fit: cover; object-position: center; }
.impact-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,40,40,0.15) 0%, rgba(20,40,40,0.75) 100%);
  display: flex; align-items: flex-end;
  padding: 2.5rem 1.5rem;
}
.impact-banner-overlay h2 { color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,0.3); }

#social-impact .section-container { padding-top: 3rem; }
.impact-quote {
  font-style: italic; text-align: center;
  max-width: 680px; margin: 0 auto 3rem;
  font-size: 1rem; color: var(--body-text);
}

.impact-grid { display: grid; gap: 1.5rem; }

.impact-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.impact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.impact-card-image { height: 180px; overflow: hidden; }
.impact-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.impact-card:hover .impact-card-image img { transform: scale(1.04); }

.impact-card-body { padding: 1.25rem; }
.impact-card-body h3 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--charcoal); }
.impact-card-body p  { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin: 0; }

.impact-cta { text-align: center; margin-top: 3rem; }

/* ============================================================
   17. BOOKING SECTION
   ============================================================ */
#booking { background-color: var(--off-white); }
#booking h2, #booking .section-subheadline { text-align: center; }
#booking h2 { margin-bottom: 0.75rem; }

.booking-inner .checklist { max-width: 560px; margin: 0 auto 2.5rem; }

.calendly-inline-widget {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}

.booking-fallback {
  max-width: 580px; margin: 0 auto;
  padding: 2.5rem;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.booking-fallback h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem; margin-bottom: 1.5rem;
  text-align: center; color: var(--charcoal);
}
.booking-fallback .btn-primary { width: 100%; margin-top: 0.5rem; }

.form-row { display: grid; gap: 1rem; }

/* ============================================================
   18. NEWSLETTER SECTION
   ============================================================ */
#newsletter { background-color: var(--dark-bg); }
#newsletter .section-container { text-align: center; }
#newsletter h2 { color: var(--white); margin-bottom: 0.75rem; }
#newsletter .section-subheadline { color: rgba(255,255,255,0.70); }
#newsletter .fine-print { color: rgba(255,255,255,0.45); margin-top: 0.75rem; }

.newsletter-form {
  display: flex; flex-direction: column;
  gap: 1rem; max-width: 480px; margin: 0 auto;
}
.newsletter-form input[type="email"] {
  background-color: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input[type="email"]:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(74, 140, 140, 0.30);
}

/* ============================================================
   19. FOOTER
   ============================================================ */
#footer {
  background-color: #0D2020;
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 1.25rem;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid; gap: 2.5rem;
}

.footer-logo { height: 44px; width: auto; object-fit: contain; margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-bottom: 1.25rem; }

.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  background-color: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: background-color var(--transition), color var(--transition);
}
.social-links a:hover { background-color: var(--teal); color: var(--white); }

.footer-col h4 { color: rgba(255,255,255,0.85); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a {
  font-size: 0.88rem; color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col > p > a {
  font-size: 0.88rem; color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col > p > a:hover { color: var(--white); }

.footer-legal {
  margin-top: 1rem;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 0.5rem 1rem !important;
}

.copyright { font-size: 0.78rem; color: rgba(255,255,255,0.30); margin-top: 1.25rem; }

/* ============================================================
   20. FLOATING BUTTON
   ============================================================ */
.floating-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 900;
  background-color: var(--teal);
  color: var(--white);
  font-family: var(--font-body); font-weight: 600; font-size: 0.88rem;
  padding: 0.75rem 1.25rem; border-radius: 100px;
  box-shadow: 0 4px 20px rgba(74, 140, 140, 0.45);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  white-space: nowrap;
}
.floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(74, 140, 140, 0.55);
}
.floating-btn.hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }

/* ============================================================
   21. SUB-PAGE CONTENT HELPERS
   ============================================================ */
.content-section { background-color: var(--white); }
.content-section-alt { background-color: var(--light-teal); }

.two-col {
  display: flex; flex-direction: column; gap: 3rem;
  align-items: flex-start;
}
.two-col > * { width: 100%; }

.feature-list { display: flex; flex-direction: column; gap: 1.25rem; margin: 2rem 0; }
.feature-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; border-radius: var(--radius);
  background-color: var(--off-white);
  border: 1px solid var(--mid-teal);
}
.feature-icon {
  width: 44px; height: 44px; min-width: 44px;
  background-color: rgba(74, 140, 140, 0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-size: 1.25rem;
}
.feature-item h4 {
  font-family: var(--font-body); font-size: 0.95rem;
  font-weight: 600; color: var(--charcoal);
  margin-bottom: 0.25rem; letter-spacing: 0;
  text-transform: none;
}
.feature-item p { font-size: 0.88rem; color: var(--muted); margin: 0; }

.cta-band {
  background-color: var(--teal-deep);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.80); margin-bottom: 2rem; }

.detail-grid { display: grid; gap: 1.5rem; }

.detail-card {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--mid-teal);
}
.detail-card-img { height: 200px; overflow: hidden; }
.detail-card-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-card-body { padding: 1.5rem; }
.detail-card-body h3 { margin-bottom: 0.5rem; }
.detail-card-body p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ============================================================
   22. RESPONSIVE — TABLET (min-width: 640px)
   ============================================================ */
@media (min-width: 640px) {
  .problem-cards  { grid-template-columns: repeat(3, 1fr); }
  .stats-container { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .impact-grid    { grid-template-columns: repeat(2, 1fr); }
  .form-row       { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: row; }
  .newsletter-form input[type="email"] { flex: 1; }
  .science-cards  { grid-template-columns: repeat(3, 1fr); }
  .detail-grid    { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   23. RESPONSIVE — DESKTOP (min-width: 900px)
   ============================================================ */
@media (min-width: 900px) {

  /* Nav */
  .nav-links { display: flex; }
  .nav-cta   { display: inline-block; }
  .hamburger { display: none; }

  /* Hero — text takes left half, image fills right via gradient reveal */
  .hero-content {
    padding: calc(var(--nav-height) + 4rem) 4rem 5rem;
    max-width: 700px;           /* text block only needs ~half */
  }
  .hero-subheadline { max-width: 480px; }

  /* About */
  .about-container { flex-direction: row; align-items: flex-start; gap: 5rem; }
  .about-image-wrapper { flex: 0 0 380px; margin: 0; }
  .about-text { flex: 1; }

  /* Programs */
  .programs-grid { grid-template-columns: repeat(2, 1fr); }

  /* Free Resource */
  .free-resource-layout { flex-direction: row; align-items: flex-start; gap: 4rem; }
  .checklist    { flex: 1; }
  .resource-form { flex: 1; }

  /* Testimonials — desktop grid */
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    transform: none !important;
    gap: 1.5rem;
  }
  .carousel-controls { display: none; }

  /* Impact */
  .impact-grid { grid-template-columns: repeat(3, 1fr); }
  .impact-banner-overlay { padding: 3rem 4rem; }
  .impact-banner-overlay h2 { font-size: 2.5rem; }

  /* Footer */
  .footer-container { grid-template-columns: 1.5fr 1fr 1fr; }

  /* Sub-page */
  .two-col { flex-direction: row; gap: 5rem; }
  .page-hero { min-height: 440px; align-items: flex-end; }
  .detail-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   24. FOCUS STYLES (accessibility)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

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