/* ============================================================
   RTB Foundation — Main Stylesheet
   Rashidat Tijani Bayewu Charity Organization
   ============================================================
   1.  CSS Custom Properties (Design Tokens)
   2.  CSS Reset
   3.  Base Styles
   4.  Layout Utilities
   5.  Navigation
   6.  Hero
   7.  Section Patterns
   8.  Stats Strip
   9.  Program Cards
   10. Story / Feature Sections
   11. PMB Feature Section
   12. Anniversary Callout
   13. CTA Band
   14. Newsletter
   15. Footer
   16. Buttons
   17. Forms
   18. Breadcrumbs
   19. Page Hero (inner pages)
   20. About Page
   21. Donate Page
   22. Programs Page
   23. Contact Page
   24. Animations & Scroll Effects
   25. Media Queries
   26. Gallery Section
   ============================================================ */


/* ─────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES
   ───────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --color-primary:        #2E7D32;
  --color-primary-light:  #4CAF50;
  --color-primary-dark:   #1B5E20;
  --color-accent:         #C2185B;
  --color-accent-light:   #E91E63;
  --color-accent-dark:    #880E4F;

  /* Neutrals */
  --color-neutral-900:    #1A1A1A;
  --color-neutral-700:    #424242;
  --color-neutral-600:    #6B7280;
  --color-neutral-500:    #767676; /* Raised from #9E9E9E: now 4.54:1 on white — WCAG AA pass */
  --color-neutral-200:    #E8E8E8;
  --color-neutral-100:    #F7F7F7;
  --color-white:          #FFFFFF;

  /* Semantic */
  --color-success:        #388E3C;
  --color-error:          #D32F2F;

  /* Gradients */
  --gradient-hero:    linear-gradient(to right, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.58) 52%, rgba(0,0,0,0.18) 100%);
  --gradient-accent:  linear-gradient(90deg, #2E7D32 0%, #C2185B 100%);
  --gradient-cta:     linear-gradient(135deg, #C2185B 0%, #880E4F 100%);
  --gradient-card:    linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.15) 100%);

  /* Typography */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-heading:  'Montserrat', Arial, sans-serif;
  --font-body:     'Inter', Helvetica, sans-serif;
  --font-ui:       'Montserrat', Arial, sans-serif;

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;

  /* Section padding */
  --section-py:  var(--space-24);

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:      0 8px 36px rgba(0,0,0,0.14);
  --shadow-colored: 0 8px 24px rgba(46,125,50,0.30);
  --shadow-accent:  0 8px 24px rgba(194,24,91,0.30);

  /* Transitions */
  --ease:            cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 180ms var(--ease);
  --transition-base: 280ms var(--ease);
  --transition-slow: 500ms var(--ease);

  /* Container */
  --container-max:  1200px;
  --container-pad:  1.5rem;

  /* Nav height */
  --nav-h: 76px;
}


/* ─────────────────────────────────────────────
   1b. PHOSPHOR ICON UTILITIES
   ───────────────────────────────────────────── */

/* Base icon sizing */
.ph { display: inline-flex; align-items: center; justify-content: center; }

/* Icon size scale */
.icon-sm  { font-size: 1rem;    width: 1rem;    height: 1rem; }
.icon-md  { font-size: 1.25rem; width: 1.25rem; height: 1.25rem; }
.icon-lg  { font-size: 1.5rem;  width: 1.5rem;  height: 1.5rem; }
.icon-xl  { font-size: 2rem;    width: 2rem;    height: 2rem; }
.icon-2xl { font-size: 2.5rem;  width: 2.5rem;  height: 2.5rem; }
.icon-3xl { font-size: 3rem;    width: 3rem;    height: 3rem; }

/* Icon containers */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.icon-box--sm  { width: 36px;  height: 36px;  border-radius: var(--radius-md); }
.icon-box--md  { width: 48px;  height: 48px; }
.icon-box--lg  { width: 60px;  height: 60px;  border-radius: var(--radius-xl); }
.icon-box--xl  { width: 72px;  height: 72px;  border-radius: var(--radius-xl); }
.icon-box--circle { border-radius: var(--radius-full); }

/* Color variants */
.icon-box--green  { background: rgba(46,125,50,0.10); color: var(--color-primary); }
.icon-box--pink   { background: rgba(194,24,91,0.10); color: var(--color-accent); }
.icon-box--blue   { background: rgba(57,73,171,0.10); color: #3949AB; }
.icon-box--orange { background: rgba(245,124,0,0.10); color: #F57C00; }
.icon-box--white  { background: rgba(255,255,255,0.15); color: white; }
.icon-box--ghost  { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }

/* ─────────────────────────────────────────────
   2. CSS RESET
   ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* scroll-behavior: smooth removed — Lenis handles smooth scroll to avoid double-scroll conflict */
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-neutral-900);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}


/* ─────────────────────────────────────────────
   3. BASE STYLES
   ───────────────────────────────────────────── */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 10000;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 1rem;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Typography base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-neutral-900);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p { line-height: 1.75; color: var(--color-neutral-700); }

strong { font-weight: 700; color: var(--color-neutral-900); }


/* ─────────────────────────────────────────────
   4. LAYOUT UTILITIES
   ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--section-py) 0;
}

.section--grey   { background: var(--color-neutral-100); }
.section--dark   { background: var(--color-primary-dark); color: var(--color-white); }
.section--darkest{ background: var(--color-neutral-900); color: var(--color-white); }
.section--accent { background: var(--gradient-accent); color: var(--color-white); }

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-12);
}

.section__header--left {
  text-align: left;
  max-width: 560px;
  margin-left: 0;
  margin-right: 0;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section__header--left .section__eyebrow::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

.section--dark .section__eyebrow,
.section--darkest .section__eyebrow {
  color: rgba(255,255,255,0.78);
}

.section__title {
  margin-bottom: var(--space-4);
}

.section--dark .section__title,
.section--darkest .section__title {
  color: var(--color-white);
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--color-neutral-500);
  max-width: 560px;
  margin: 0 auto;
}

.section--dark .section__subtitle {
  color: rgba(255,255,255,0.7);
}

.accent-line {
  width: 52px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  margin: var(--space-4) auto 0;
}

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }


/* ─────────────────────────────────────────────
   5. NAVIGATION
   ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav--transparent {
  background: transparent;
}

.nav--solid {
  background: var(--color-white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav--glass {
  background: rgba(15, 42, 18, 0.75);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 2px 24px rgba(0,0,0,0.22);
}

.nav--glass .nav__logo-name { color: var(--color-white); }
.nav--glass .nav__logo-sub  { color: rgba(255,255,255,0.65); }
.nav--glass .nav__link { color: rgba(255,255,255,0.9); }
.nav--glass .nav__link:hover { color: var(--color-white); }
.nav--glass .nav__link::after { background: var(--color-white); }
.nav--glass .nav__hamburger span { background: var(--color-white); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-md);
  background: transparent;
  /* If the image fails to load, collapse gracefully */
  display: block;
  flex-shrink: 0;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
}

.nav__logo-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  line-height: 1;
}

.nav__logo-sub {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-neutral-500);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-top: 2px;
}

.nav--transparent .nav__logo-name { color: var(--color-white); }
.nav--transparent .nav__logo-sub  { color: rgba(255,255,255,0.65); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-neutral-900);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav__link:hover { color: var(--color-primary); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

.nav--transparent .nav__link { color: rgba(255,255,255,0.9); }
.nav--transparent .nav__link:hover { color: var(--color-white); }
.nav--transparent .nav__link::after { background: var(--color-white); }

/* Dropdown */
.nav__item { position: relative; }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3) 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}

.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  background: var(--color-white);
  border-radius: 2px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: var(--space-3) var(--space-6);
  font-size: 0.9rem;
  color: var(--color-neutral-700);
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav__dropdown-link:hover {
  background: var(--color-neutral-100);
  color: var(--color-primary);
  padding-left: calc(var(--space-6) + 4px);
}

/* Hamburger (mobile) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px; height: 44px;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.nav__hamburger:hover { background: rgba(0,0,0,0.06); }

.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-neutral-900);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-fast), width var(--transition-base);
  transform-origin: center;
}

.nav--transparent .nav__hamburger span { background: var(--color-white); }

.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(340px, 90vw);
  height: 100dvh;
  background: var(--color-white);
  box-shadow: -4px 0 40px rgba(0,0,0,0.15);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}

.nav__drawer.is-open {
  transform: translateX(0);
}

.nav__drawer-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-neutral-100);
  font-size: 1.2rem;
  margin-bottom: var(--space-8);
  transition: background var(--transition-fast);
}

.nav__drawer-close:hover { background: var(--color-neutral-200); }

.nav__drawer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.nav__drawer-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-neutral-900);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav__drawer-link:hover { background: var(--color-neutral-100); color: var(--color-primary); }

.nav__drawer-divider {
  height: 1px;
  background: var(--color-neutral-200);
  margin: var(--space-4) 0;
}

.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1050;
  backdrop-filter: blur(2px);
}

.nav__overlay.is-active { display: block; }


/* ─────────────────────────────────────────────
   6. HERO
   ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: transform;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero__bg--placeholder {
  background: linear-gradient(135deg, #1B3A1D 0%, #2E7D32 50%, #4a1942 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 760px;
  padding: var(--space-12) 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-6);
}

.hero__eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--color-accent-light);
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  color: var(--color-white);
}

.hero__title em {
  font-style: normal;
  color: #F8C1D4;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  max-width: 580px;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-10);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.hero__trust-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent-light);
  flex-shrink: 0;
  opacity: 0.7;
}



/* ─────────────────────────────────────────────
   7. SECTION PATTERNS
   ───────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.split--60-40 { grid-template-columns: 3fr 2fr; }
.split--40-60 { grid-template-columns: 2fr 3fr; }
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.split__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}

.split__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.split__image:hover img { transform: scale(1.04); }

.split__image--placeholder {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 4rem;
}

.split__badge {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-md);
}

.split__badge-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}

.split__badge-label {
  font-size: 0.75rem;
  color: var(--color-neutral-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.split__content { max-width: 560px; }

.split__content .section__eyebrow { text-align: left; }

.split__content h2 { margin-bottom: var(--space-6); }

.split__content p { margin-bottom: var(--space-6); }

.split__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

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

.split__list-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: rgba(46,125,50,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
}

.split__list-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.split__list-text p {
  font-size: 0.875rem;
  margin: 0;
}


/* ─────────────────────────────────────────────
   8. STATS STRIP
   ───────────────────────────────────────────── */
.stats {
  background: var(--color-primary-dark);
  padding: var(--space-16) 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  text-align: center;
}

.stats__item {
  padding: var(--space-6);
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stats__item:last-child { border-right: none; }

.stats__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.06em;
}

.stats__suffix {
  color: var(--color-accent-light);
  font-size: 0.45em;
  padding-bottom: 0.12em;
}

.stats__icon {
  color: rgba(255,255,255,0.25);
  margin-bottom: var(--space-3);
  display: flex;
  justify-content: center;
}

.stats__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}


/* ─────────────────────────────────────────────
   9. PROGRAM CARDS
   ───────────────────────────────────────────── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.program-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.program-card__photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.program-card:hover .program-card__photo { transform: scale(1.06); }

.program-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
}

.program-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-8) var(--space-6) var(--space-6);
  color: var(--color-white);
}

.program-card__category {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-2);
}

.program-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-white);
}

.program-card__excerpt {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.program-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--color-white);
  color: var(--color-neutral-900);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full, 9999px);
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base), gap var(--transition-fast);
  white-space: nowrap;
}

.program-card__link:hover {
  background: var(--color-primary);
  color: var(--color-white);
  gap: 12px;
}


/* ─────────────────────────────────────────────
   10. STORY / FEATURE SECTION
   ───────────────────────────────────────────── */
.feature-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.feature-story__media {
  position: relative;
  overflow: hidden;
  background: var(--color-neutral-200);
}

.feature-story__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.feature-story__media--placeholder {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  color: rgba(255,255,255,0.3);
}

.feature-story__content {
  background: var(--color-neutral-900);
  color: var(--color-white);
  padding: var(--space-16) var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-story__quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--color-white);
  margin-bottom: var(--space-8);
  position: relative;
  padding-left: var(--space-8);
}

.feature-story__quote::before {
  content: '"';
  position: absolute;
  top: -0.5rem; left: 0;
  font-size: 5rem;
  color: var(--color-accent);
  line-height: 1;
  font-style: normal;
}

.feature-story__attribution {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
}

.feature-story__attribution strong {
  color: var(--color-accent-light);
  font-weight: 700;
}


/* ─────────────────────────────────────────────
   11. PMB FEATURE SECTION
   ───────────────────────────────────────────── */
.pmb-section {
  background: var(--color-neutral-100);
}

.pmb-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(194,24,91,0.1);
  color: var(--color-accent);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.pmb-badge span { font-size: 0.9rem; }

.pmb-pills {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

.pmb-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(46,125,50,0.08);
  color: var(--color-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.pmb-visual {
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pmb-visual::before {
  content: '';
  position: absolute;
  font-size: 8rem;
  opacity: 0.08;
  bottom: -1rem;
  right: -1rem;
  transform: rotate(-15deg);
}

.pmb-visual__icon { font-size: 3.5rem; margin-bottom: var(--space-4); }

.pmb-visual__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-3);
}

.pmb-visual__text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.pmb-visual__tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-6);
}

.pmb-visual__tag {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}


/* ─────────────────────────────────────────────
   12. ANNIVERSARY CALLOUT
   ───────────────────────────────────────────── */
.anniversary {
  background: var(--gradient-accent);
  text-align: center;
  padding: var(--space-12) 0;
}

.anniversary__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-2);
}

.anniversary__number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  color: rgba(255,255,255,0.15);
  line-height: 1;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.anniversary__content {
  position: relative;
}

.anniversary__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.anniversary__text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto var(--space-8);
}


/* ─────────────────────────────────────────────
   13. GET INVOLVED CTA BAND
   ───────────────────────────────────────────── */
.cta-band {
  background: var(--color-primary-dark);
  padding: var(--space-20) 0;
}

.cta-band__title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-band__subtitle {
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto var(--space-12);
}

.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.cta-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
  /* Flex column so the CTA button always snaps to the bottom */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-4px);
}

.cta-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.cta-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.cta-card__text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  flex: 1; /* grow to push button to bottom */
}

/* Bottom-align the CTA button inside every card */
.cta-card > .btn,
.cta-card > a.btn {
  margin-top: auto;
}


/* ─────────────────────────────────────────────
   14. NEWSLETTER
   ───────────────────────────────────────────── */
.newsletter {
  background: var(--color-neutral-100);
  padding: var(--space-12) 0;
}

.newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.newsletter__text h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-2);
}

.newsletter__text p {
  font-size: 0.95rem;
  color: var(--color-neutral-500);
  margin: 0;
}

.newsletter__form {
  display: flex;
  gap: var(--space-3);
  flex: 1;
  max-width: 520px;
}

.newsletter__input {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--color-neutral-200);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.newsletter__input:focus { border-color: var(--color-primary); }


/* ─────────────────────────────────────────────
   15. FOOTER
   ───────────────────────────────────────────── */
.footer {
  background: var(--color-neutral-900);
  color: rgba(255,255,255,0.7);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer__brand-logo {
  height: 56px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.footer__brand-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.footer__social-btn:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.footer__link {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-primary-light);
  padding-left: 4px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copyright {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  transition: color var(--transition-fast);
}

.footer__legal a:hover { color: rgba(255,255,255,0.6); }


/* ─────────────────────────────────────────────
   16. BUTTONS
   ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-colored);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(46,125,50,0.40);
}

.btn--accent {
  background: var(--gradient-cta);
  color: var(--color-white);
  box-shadow: var(--shadow-accent);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(194,24,91,0.45), 0 0 52px rgba(194,24,91,0.22);
}

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

.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-primary-dark);
  border-color: var(--color-white);
}

.btn--outline-green {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline-green:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  padding: 14px 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.3);
}

.btn--ghost:hover {
  border-bottom-color: var(--color-white);
  gap: 14px;
}

.btn--sm { padding: 10px 22px; font-size: 0.78rem; }
.btn--lg { padding: 18px 44px; font-size: 0.9rem; }

.btn--full { width: 100%; }

/* Arrow icon inside button */
.btn svg, .btn i { font-size: 1em; }


/* ─────────────────────────────────────────────
   17. FORMS
   ───────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
}

.form-label .required { color: var(--color-error); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--color-neutral-900);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}

.form-control.is-error {
  border-color: var(--color-error);
}

.form-control.is-error:focus {
  box-shadow: 0 0 0 3px rgba(211,47,47,0.12);
}

.form-error {
  font-size: 0.82rem;
  color: var(--color-error);
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-control::placeholder { color: var(--color-neutral-500); }

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

.form-success {
  background: rgba(56,142,60,0.08);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  display: none;
}

.form-success.is-visible { display: block; }

.form-success__icon { font-size: 3rem; margin-bottom: var(--space-4); }
.form-success__title { color: var(--color-success); font-size: 1.3rem; margin-bottom: var(--space-3); }


/* ─────────────────────────────────────────────
   18. BREADCRUMBS
   ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-4);
}

.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--color-white); }
.breadcrumb__sep { opacity: 0.4; }
.breadcrumb__current { color: var(--color-white); font-weight: 600; }


/* ─────────────────────────────────────────────
   19. PAGE HERO (inner pages)
   ───────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + var(--space-16)) 0 var(--space-16);
  background: var(--color-primary-dark);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero__content { position: relative; }

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.page-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin-bottom: var(--space-6);
}


/* ─────────────────────────────────────────────
   20. FLOATING DONATE (mobile)
   ───────────────────────────────────────────── */
.floating-donate {
  display: none;
  position: fixed;
  bottom: 24px; right: 20px;
  z-index: 999;
  background: var(--gradient-cta);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--shadow-accent), 0 4px 20px rgba(0,0,0,0.3);
  animation: floatPulse 2.5s ease-in-out infinite;
}

@keyframes floatPulse {
  0%, 100% { box-shadow: var(--shadow-accent), 0 0 0 0 rgba(194,24,91,0.4); }
  50%       { box-shadow: var(--shadow-accent), 0 0 0 10px rgba(194,24,91,0); }
}


/* ─────────────────────────────────────────────
   24. ANIMATIONS
   ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

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

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ─────────────────────────────────────────────
   25. MEDIA QUERIES
   ───────────────────────────────────────────── */

/* Large laptop — tighten nav so it doesn't cramp */
@media (max-width: 1200px) {
  .nav__links { gap: var(--space-6); }
  .nav__logo-sub { display: none; } /* hide subtitle at tight widths */
}

/* Tablet */
@media (max-width: 1024px) {
  :root { --section-py: var(--space-16); }

  .nav__links { gap: var(--space-4); }
  .nav__link  { font-size: 0.75rem; }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stats__item:nth-child(2n) { border-bottom: none; }
  .cta-cards { grid-template-columns: repeat(3, 1fr); }
  .split { gap: var(--space-10); }
  .feature-story { grid-template-columns: 1fr; }
  .feature-story__media { height: 380px; }
  .newsletter__inner { flex-direction: column; text-align: center; }
  .newsletter__form { max-width: 100%; width: 100%; }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --section-py: var(--space-12);
    --container-pad: 1.25rem;
  }

  .nav__links  { display: none; }
  .nav__hamburger { display: flex; }

  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .split, .split--60-40, .split--40-60 { grid-template-columns: 1fr; }
  .split--reverse { direction: ltr; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-cards { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .hero__title { font-size: 2.2rem; line-height: 1.1; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: var(--space-3); }
  .hero__actions .btn { text-align: center; justify-content: center; }
  .hero__overlay { background: rgba(0,0,0,0.72); }
  .hero__trust { gap: var(--space-3); margin-top: var(--space-8); }

  .newsletter__form { flex-direction: column; }
  .newsletter__input { width: 100%; }

  .floating-donate { display: flex; }
}

/* Small mobile */
@media (max-width: 480px) {
  .programs-grid { grid-template-columns: 1fr; }
  .stats__grid   { grid-template-columns: repeat(2, 1fr); }
  .hero__title   { font-size: 2rem; }
}


/* ============================================================
   26. GALLERY SECTION
   ============================================================ */

.gallery-section { background: var(--color-white); }

/* ── Grid layout ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 210px 240px;
  gap: 10px;
  margin: var(--space-12) 0 var(--space-10);
}

/* Explicit placement — editorial magazine feel */
.gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }   /* wide */
.gallery-item:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 3; } /* tall */
.gallery-item:nth-child(3) { grid-column: 1 / 2; grid-row: 2; }
.gallery-item:nth-child(4) { grid-column: 2 / 3; grid-row: 2; }
.gallery-item:nth-child(5) { grid-column: 1 / 3; grid-row: 3; }   /* wide */
.gallery-item:nth-child(6) { grid-column: 3 / 4; grid-row: 3; }

/* ── Item base ── */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--color-neutral-200);
  cursor: pointer;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3; /* prevents CLS while image loads */
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.gallery-item:hover img { transform: scale(1.06); }

/* ── Overlay + caption ── */
.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-item:hover figcaption,
.gallery-item:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.25);
}

/* ── Footer row ── */
.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.gallery-footer__note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-neutral-500);
  font-size: 0.875rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 200px 160px 180px 180px;
  }
  .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .gallery-item:nth-child(2) { grid-column: 1 / 2; grid-row: 2; }
  .gallery-item:nth-child(3) { grid-column: 2 / 3; grid-row: 2; }
  .gallery-item:nth-child(4) { grid-column: 1 / 3; grid-row: 3; }
  .gallery-item:nth-child(5) { grid-column: 1 / 2; grid-row: 4; }
  .gallery-item:nth-child(6) { grid-column: 2 / 3; grid-row: 4; }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 140px 140px 140px;
    gap: 6px;
  }
}


/* ─────────────────────────────────────────────
   27. EVENTS SECTION
───────────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

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

.event-card {
  display: flex;
  align-items: stretch;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--color-neutral-200);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.event-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-6) var(--space-5);
  min-width: 80px;
  text-align: center;
  flex-shrink: 0;
}

.event-card__date--accent {
  background: var(--color-accent);
}

.event-card__day {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}

.event-card__month {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  display: block;
  margin-top: var(--space-1);
}

.event-card__year {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.6;
  display: block;
  margin-top: 2px;
}

.event-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.event-card__tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.event-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-neutral-900);
  line-height: 1.3;
  margin: 0;
}

.event-card__desc {
  font-size: 0.875rem;
  color: var(--color-neutral-600, #6B7280);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.event-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: var(--space-2);
  transition: gap var(--transition-fast), color var(--transition-base);
}

.event-card__link:hover {
  gap: 10px;
  color: var(--color-accent);
}

@media (max-width: 767px) {
  .events-grid { grid-template-columns: 1fr; }
}


/* ─────────────────────────────────────────────
   28. TRANSPARENCY / DONUT CHART
───────────────────────────────────────────── */
.donut-chart {
  position: relative;
  width: 280px;
  height: 280px;
  flex-shrink: 0;
}

.donut-chart__ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    #2E7D32 0% 40%,
    #C2185B 40% 70%,
    #F59E0B 70% 90%,
    #9CA3AF 90% 100%
  );
  -webkit-mask: radial-gradient(circle, transparent 52%, black 52%);
  mask: radial-gradient(circle, transparent 52%, black 52%);
}

.donut-chart__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.donut-chart__label {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-neutral-900);
  line-height: 1;
}

.donut-chart__sublabel {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-neutral-500);
  margin-top: var(--space-1);
}

.donut-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.donut-legend__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.donut-legend__swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.donut-legend__label {
  font-size: 0.9rem;
  color: var(--color-neutral-700);
  flex: 1;
}

.donut-legend__pct {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-neutral-900);
}

@media (max-width: 767px) {
  .donut-chart { width: 220px; height: 220px; }
}
