/* Flagstaff Sports Medicine Institute Inc — Brand Styles */
:root {
  --navy: #1a365d;
  --navy-dark: #0f2440;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --teal-pale: #e6f7f5;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --shadow: 0 4px 24px rgba(26, 54, 93, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 54, 93, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max-width: 1200px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  line-height: 1.65;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-light); }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ── Top bar ── */
.top-bar {
  background: var(--navy-dark);
  color: var(--gray-200);
  font-size: 0.8rem;
  padding: 0.45rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar .badge {
  background: rgba(13, 148, 136, 0.25);
  color: var(--teal-light);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.logo-link:hover { color: var(--navy); }

.logo-link img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.logo-text span { display: block; font-size: 0.7rem; font-weight: 500; color: var(--gray-600); }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }

.main-nav a {
  color: var(--gray-800);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--teal-pale);
  color: var(--teal);
}

.nav-donate {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 999px !important;
  margin-left: 0.5rem;
}

.nav-donate:hover {
  background: var(--teal-light) !important;
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1a4a6e 100%);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,36,64,0.92) 0%, rgba(15,36,64,0.6) 60%, rgba(15,36,64,0.3) 100%);
}

.hero .container { position: relative; z-index: 1; padding-block: 4rem; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 700px;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-dark);
  color: var(--white);
}

/* ── Sections ── */
section { padding-block: 4.5rem; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-header .eyebrow {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-header p { color: var(--gray-600); }

.bg-light { background: var(--gray-50); }
.bg-teal-pale { background: var(--teal-pale); }

/* ── Trust strip ── */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding-block: 1.5rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.trust-item strong {
  display: block;
  color: var(--navy);
  font-size: 1.1rem;
}

.trust-item span { font-size: 0.85rem; color: var(--gray-600); }

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body { padding: 1.5rem; }

.card-body h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card-body p { color: var(--gray-600); font-size: 0.95rem; }

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 0.35rem;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a4a6e 100%);
  color: var(--white);
  padding-block: 3.5rem;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
.page-hero p { opacity: 0.9; max-width: 600px; margin: 0 auto; }

.breadcrumb {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--teal-light); }

/* ── Two column layout ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split img, .split .img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ── Leadership ── */
.leader-card {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  align-items: flex-start;
}

.leader-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.leader-info h3 { color: var(--navy); margin-bottom: 0.25rem; }
.leader-info .title { color: var(--teal); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.75rem; }

/* ── Membership tiers ── */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.tier-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tier-card.featured {
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.tier-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 999px;
}

.tier-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
}

.tier-price span { font-size: 1rem; font-weight: 500; color: var(--gray-600); }

.tier-card h3 { color: var(--navy); margin: 1rem 0 0.5rem; }

.tier-features {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
}

.tier-features li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  padding-left: 1.5rem;
  position: relative;
}

.tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ── Blog ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card .blog-img { height: 200px; object-fit: cover; width: 100%; }

.blog-card .blog-body { padding: 1.5rem; }

.blog-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.blog-card h3 { color: var(--navy); margin-bottom: 0.5rem; font-size: 1.1rem; }

.blog-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }

.tag {
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ── Donate ── */
.donate-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.donate-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.amount-btn {
  padding: 0.75rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--navy);
}

.amount-btn:hover,
.amount-btn.selected {
  border-color: var(--teal);
  background: var(--teal-pale);
  color: var(--teal);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.donate-sidebar {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.donate-sidebar h3 { margin-bottom: 1rem; }
.donate-sidebar p { opacity: 0.9; font-size: 0.95rem; margin-bottom: 1rem; }

.donate-sidebar .ein-box {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-item h4 { color: var(--navy); margin-bottom: 0.2rem; }
.contact-info-item p { color: var(--gray-600); font-size: 0.95rem; }

/* ── CTA banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, #0f766e 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  margin-block: 2rem;
}

.cta-banner h2 { margin-bottom: 0.75rem; }
.cta-banner p { opacity: 0.92; margin-bottom: 1.5rem; max-width: 500px; margin-inline: auto; }

/* ── Footer ── */
.site-footer {
  background: var(--navy-dark);
  color: var(--gray-200);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand img { width: 72px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; opacity: 0.85; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--gray-200); font-size: 0.9rem; opacity: 0.85; }
.footer-col a:hover { color: var(--teal-light); opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ── Utility ── */
.text-navy { color: var(--navy); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-info {
  background: var(--teal-pale);
  color: var(--navy);
  border: 1px solid #99f6e4;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .split, .contact-grid, .donate-layout, .footer-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: 0.3s;
    align-items: stretch;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav a { padding: 0.75rem 1rem; }
  .nav-donate { margin-left: 0 !important; text-align: center; }

  .leader-card { flex-direction: column; align-items: center; text-align: center; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  section { padding-block: 3rem; }
  .hero { min-height: 440px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .charity-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .charity-card--hero { grid-column: span 2; grid-row: span 1; min-height: 220px; }
}

/* ══════════════════════════════════════════
   ADVANCED — Hero Slider, Charity Gallery,
   Lightbox, Animations, Testimonials
   ══════════════════════════════════════════ */

h1, h2, .section-header h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }

.site-header {
  transition: transform 0.35s ease, box-shadow 0.3s ease, background 0.3s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.menu-toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.menu-toggle span { transition: 0.3s; }

/* Hero Slider */
.hero-slider {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active { opacity: 1; z-index: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 18s ease-in-out infinite alternate;
}

.hero-slide.active img { animation-play-state: running; }
.hero-slide:not(.active) img { animation-play-state: paused; }

@keyframes kenBurns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-1%, -1%); }
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15,36,64,0.88) 0%, rgba(15,36,64,0.55) 45%, rgba(15,36,64,0.25) 100%);
}

.hero-slider .container {
  position: relative;
  z-index: 2;
  padding-block: 6rem 5rem;
}

.hero-slider h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  line-height: 1.1;
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.hero-slider .lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.92;
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.hero-dots button {
  width: 40px;
  height: 4px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  padding: 0;
}

.hero-dots button.active,
.hero-dots button:hover {
  background: var(--teal-light);
  width: 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13,148,136,0.25);
  border: 1px solid rgba(20,184,166,0.4);
  color: #99f6e4;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* Image strip */
.charity-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 140px;
  overflow: hidden;
}

.charity-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: filter 0.4s, transform 0.6s;
}

.charity-strip img:hover {
  filter: brightness(1);
  transform: scale(1.05);
  z-index: 1;
}

/* Charity Gallery Grid */
.charity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.charity-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.charity-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.charity-card--hero {
  grid-column: span 2;
  grid-row: span 2;
}

.charity-card__trigger {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  background: var(--navy);
}

.charity-mosaic .charity-card { min-height: 100%; }
.charity-grid .charity-card { aspect-ratio: 4/3; }

.charity-card__trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.charity-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,36,64,0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.35s;
}

.charity-card__trigger:hover img { transform: scale(1.06); }
.charity-card__trigger:hover .charity-card__overlay,
.charity-card__trigger:focus-visible .charity-card__overlay { opacity: 1; }

.charity-card__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.charity-card__trigger:hover .charity-card__icon { opacity: 0.9; }

.charity-card__caption {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none !important; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 36, 64, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 1000px);
  max-height: 90vh;
}

.lightbox__figure { margin: 0; }

.lightbox__img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox__caption {
  color: var(--white);
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
  opacity: 0.9;
}

.lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox__close:hover { opacity: 1; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.lightbox__nav:hover { background: var(--teal); }
.lightbox__prev { left: -60px; }
.lightbox__next { right: -60px; }

.lightbox__counter {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

@media (max-width: 900px) {
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .charity-strip { grid-template-columns: repeat(3, 1fr); height: 100px; }
  .charity-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
}

/* Reveal animations */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal { transform: translateY(32px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.94); }

.reveal.revealed, .reveal-left.revealed, .reveal-right.revealed, .reveal-scale.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; transition: none; }
  .hero-slide img { animation: none; }
}

/* Testimonials */
.testimonial-slider {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial-slide {
  display: none;
  animation: fadeIn 0.6s ease;
}

.testimonial-slide.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--navy);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-slide cite {
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
  display: block;
}

.testimonial-slide span {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonial-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--gray-200);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.testimonial-dots .dot.active {
  background: var(--teal);
  transform: scale(1.2);
}

/* Program cards with photo */
.program-photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform 0.3s, box-shadow 0.3s;
}

.program-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.program-photo-card__img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.program-photo-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.program-photo-card:hover .program-photo-card__img img { transform: scale(1.05); }

.program-photo-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--teal);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.program-photo-card__body { padding: 1.5rem; }
.program-photo-card__body h3 { color: var(--navy); margin-bottom: 0.5rem; }
.program-photo-card__body p { color: var(--gray-600); font-size: 0.95rem; }

/* Story banner with background image */
.story-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
}

.story-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,36,64,0.92) 40%, rgba(15,36,64,0.4) 100%);
}

.story-banner__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 3rem;
  max-width: 560px;
}

.story-banner__content h2 { color: var(--white); margin-bottom: 1rem; }
.story-banner__content p { opacity: 0.9; margin-bottom: 1.5rem; }

/* Footer social */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gray-200);
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--teal);
  color: var(--white);
}

/* Gallery page hero */
.gallery-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.gallery-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,36,64,0.9), rgba(15,36,64,0.4));
  display: flex;
  align-items: flex-end;
  padding-bottom: 2.5rem;
}

.gallery-hero__overlay .container { color: var(--white); }
.gallery-hero__overlay h1 { font-size: 2.5rem; }

/* Impact stats enhanced */
.impact-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  border: 1px solid var(--gray-100);
}

.stat-number {
  font-family: var(--font-display);
}
