/* ==========================================================================
   RIALDE - Rural Initiative Agro And Livestock Development
   Premium NGO Design System
   ========================================================================== */

:root {
  --color-gold: #c9a227;
  --color-gold-light: #e8c547;
  --color-gold-dark: #9a7b1a;
  --color-green: #1a5c3a;
  --color-green-light: #2d8a5e;
  --color-green-dark: #0f3d26;
  --color-earth: #5c4a32;
  --color-cream: #faf8f3;
  --color-white: #ffffff;
  --color-text: #2c2c2c;
  --color-text-muted: #5a5a5a;
  --color-border: rgba(26, 92, 58, 0.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  --shadow-sm: 0 2px 8px rgba(15, 61, 38, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 61, 38, 0.1);
  --shadow-lg: 0 20px 60px rgba(15, 61, 38, 0.15);
  --shadow-gold: 0 8px 32px rgba(201, 162, 39, 0.35);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
  --top-bar-height: 40px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition), opacity var(--transition); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--color-gold);
  color: var(--color-green-dark);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-green-dark);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 640px;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-subtitle { margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-green), var(--color-green-light));
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--gold {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold), var(--color-gold-light));
  color: var(--color-green-dark);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

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

.btn--white {
  background: var(--color-white);
  color: var(--color-green-dark);
}
.btn--white:hover { background: var(--color-cream); transform: translateY(-2px); }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

/* Top Bar */
.top-bar {
  background: var(--color-green-dark);
  color: rgba(255,255,255,0.9);
  font-size: 0.8125rem;
  height: var(--top-bar-height);
  display: flex;
  align-items: center;
}
.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.top-bar__left, .top-bar__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.top-bar a:hover { color: var(--color-gold-light); }
.top-bar i { color: var(--color-gold); margin-right: 0.35rem; }

.social-links { display: flex; gap: 0.5rem; }
.social-links a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  font-size: 0.75rem;
  transition: all var(--transition);
}
.social-links a:hover {
  background: var(--color-gold);
  color: var(--color-green-dark);
}

/* Header */
.site-header-group {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.site-header-group.is-scrolled { box-shadow: var(--shadow-md); }

.site-header {
  position: relative;
  background: var(--color-cream);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
  position: relative;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.main-nav__panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

/* Desktop: nav links in header row */
@media (min-width: 769px) {
  .nav-backdrop {
    display: none !important;
  }
  .main-nav__panel {
    flex-direction: row;
    justify-content: center;
    width: auto;
  }
  .main-nav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem;
  }
  .main-nav__list a {
    pointer-events: auto;
    cursor: pointer;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.logo__img {
  display: block;
  width: auto;
  object-fit: contain;
  border-radius: 50%;
}
.logo--header .logo__img {
  height: 58px;
  filter: drop-shadow(0 2px 6px rgba(15, 61, 38, 0.15));
  transition: transform var(--transition);
}
.logo--header:hover .logo__img {
  transform: scale(1.04);
}
.logo__img--footer {
  height: 110px;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}
.hero__logo {
  width: 150px;
  height: auto;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.4));
  animation: fadeInUp 0.8s ease;
}
.about-logo {
  width: 180px;
  height: auto;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  filter: drop-shadow(0 4px 16px rgba(15, 61, 38, 0.12));
}
.contact-page-logo {
  width: 130px;
  height: auto;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  filter: drop-shadow(0 4px 12px rgba(15, 61, 38, 0.1));
}
.logo__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-green), var(--color-green-light));
  color: var(--color-gold-light);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-green-dark);
  letter-spacing: 0.02em;
}
.logo__text small {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.main-nav__list {
  display: flex;
  gap: 0.25rem;
}
.main-nav__list a {
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.main-nav__list a:hover,
.main-nav__list a.is-active {
  color: var(--color-green);
  background: rgba(26, 92, 58, 0.08);
}
.main-nav__list a.is-active { font-weight: 600; }

.main-nav__mobile-actions {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(15, 61, 38, 0.55);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  cursor: pointer;
}
.nav-backdrop.is-visible {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-green-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--top-bar-height) - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  visibility: visible;
  transition: none !important;
  animation: none !important;
  transform: none !important;
}
.hero__slideshow .hero__bg-img {
  transition: none !important;
  animation: none !important;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(15, 61, 38, 0.72) 0%,
    rgba(26, 92, 58, 0.55) 50%,
    rgba(15, 61, 38, 0.68) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 3;
  padding: 4rem 0;
  max-width: 720px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--radius-full);
  color: var(--color-gold-light);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--color-white);
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__lead {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero__lead--short { display: none; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 0.3s both;
}
.hero__stats {
  position: absolute;
  bottom: 2rem;
  right: 0;
  left: 0;
  z-index: 3;
}
.hero__stats-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-lg);
}
.stat-item {
  text-align: center;
  min-width: 0;
  padding: 0 0.25rem;
}
.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-green);
  line-height: 1.1;
  word-break: break-word;
}
.stat-item__number::after { content: '+'; color: var(--color-gold); font-size: 1.25rem; }
.stat-item p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
  line-height: 1.35;
  hyphens: auto;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page Hero (inner pages) */
.page-hero {
  position: relative;
  padding: 5rem 0;
  text-align: center;
  background-size: cover;
  background-position: center;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,61,38,0.88), rgba(26,92,58,0.82));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: var(--color-white);
  margin-bottom: 0.75rem;
}
.page-hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}
.page-about .page-hero {
  background-position: center 40%;
  min-height: 300px;
  padding: 4.5rem 0;
}
.page-about .page-hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(15, 61, 38, 0.72) 0%,
    rgba(26, 92, 58, 0.65) 100%
  );
}
.page-about .about-story .section-label {
  text-align: left;
}
.page-about .about-story .section-title {
  text-align: left;
}
.page-about .about-legacy-grid__image .about-grid__img--main img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 35%;
}

@media (min-width: 769px) {
  .page-about .about-legacy-grid .about-story {
    max-width: none;
  }
  .page-about .about-legacy-grid__image .about-grid__img--main img {
    min-height: 320px;
    max-height: 460px;
  }
}

@media (max-width: 768px) {
  .page-about .about-legacy-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .page-about .about-legacy-grid__image .about-grid__img--main img {
    min-height: 220px;
    max-height: 300px;
  }
}

.page-programs .page-hero {
  background-position: center 45%;
  min-height: 300px;
  padding: 4.5rem 0;
}
.page-programs .page-hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(15, 61, 38, 0.72) 0%,
    rgba(26, 92, 58, 0.65) 100%
  );
}

.page-impact .page-hero {
  background-position: center 40%;
  min-height: 300px;
  padding: 4.5rem 0;
}
.page-impact .page-hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(15, 61, 38, 0.72) 0%,
    rgba(26, 92, 58, 0.65) 100%
  );
}

/* About & Programs — solid header so main nav stays clearly visible */
.page-about .site-header-group,
.page-programs .site-header-group {
  background: var(--color-white);
  border-bottom: 2px solid rgba(15, 61, 38, 0.12);
  box-shadow: 0 2px 14px rgba(15, 61, 38, 0.1);
}
.page-about .site-header-group.is-scrolled,
.page-programs .site-header-group.is-scrolled {
  box-shadow: 0 4px 20px rgba(15, 61, 38, 0.14);
}
.page-about .site-header,
.page-programs .site-header {
  background: var(--color-white);
}
.page-about .main-nav__list a,
.page-programs .main-nav__list a {
  color: var(--color-green-dark);
  font-weight: 600;
}
.page-about .main-nav__list a:hover,
.page-about .main-nav__list a.is-active,
.page-programs .main-nav__list a:hover,
.page-programs .main-nav__list a.is-active {
  color: var(--color-green);
  background: rgba(26, 92, 58, 0.14);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.breadcrumb a:hover { color: var(--color-gold-light); }
.breadcrumb span { color: var(--color-gold-light); }

/* Sections */
.section { padding: 5rem 0; }
.section--alt { background: var(--color-white); }
.section--dark {
  background: var(--color-green-dark);
  color: rgba(255,255,255,0.9);
}
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--dark .section-label { color: var(--color-gold-light); }

/* About Preview */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-grid__images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-grid__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-grid__img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-grid__img:hover img { transform: scale(1.05); }
.about-grid__img:first-child { grid-row: span 2; }
.about-grid__img:first-child img { height: 100%; min-height: 460px; }
.about-grid__badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: var(--color-green-dark);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-gold);
}
.about-grid__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
}
.about-grid__content .section-label { text-align: left; }
.about-grid__content .section-title { text-align: left; }

.about-grid__images--featured {
  grid-template-columns: 1fr;
  max-width: 100%;
}
.about-grid__images--featured .about-grid__img--main {
  grid-column: 1;
  grid-row: 1;
}
.about-grid__images--featured .about-grid__img--main img {
  width: 100%;
  height: auto;
  min-height: 380px;
  max-height: 520px;
  object-fit: cover;
  object-position: center 35%;
}
.home-section--about .about-grid__images--featured .about-grid__img--main img {
  object-position: center 30%;
}

/* Programs page — show full photos at native aspect (no crop/upscale blur) */
.page-programs .about-grid__images {
  grid-template-columns: 1fr;
}
.page-programs .about-grid__images--featured .about-grid__img--main {
  grid-row: auto;
}
.page-programs .about-grid__images--featured .about-grid__img--main img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}
.page-programs .about-grid__img:hover img {
  transform: none;
}

/* Home — Our Core Programs (cards only, no programs-page hero background) */
.page-home .home-section--programs .card__image {
  height: 200px;
  background: var(--color-cream);
}
.page-home .home-section--programs .card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-home .home-programs__grid {
  gap: 1.75rem;
}
.page-home .home-programs__footer {
  text-align: center;
  margin-top: 2.5rem;
}

/* Homepage — longer scroll, highlights from each nav area */
.page-home .home-section {
  padding: 4.5rem 0;
}
.objectives-list--home {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  max-width: none;
}
.objectives-list--home li {
  margin-bottom: 0;
}
.page-home .home-card__image {
  height: auto;
  background: var(--color-cream);
}
.page-home .home-card__image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.home-project__status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.home-project__status--active {
  background: #d4edda;
  color: #155724;
}
.home-project__status--done {
  background: #e2e3e5;
  color: #383d41;
}
.page-home .home-section--stories .news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .home-contact-grid {
  align-items: start;
}
.page-home .home-contact__connect .section-label,
.page-home .home-contact__connect .section-title {
  text-align: left;
}
.page-home .home-contact__intro {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}
.page-home .home-contact__action {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.page-home .home-contact__action .map-embed {
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.page-home .home-contact__action .contact-form-card {
  margin-top: 0;
}
.page-home .home-contact__action .contact-form-card__title {
  margin-bottom: 1.5rem;
}
.page-home .home-contact__action .contact-form-card__submit {
  width: 100%;
}

/* Programs page — extra image areas */
.programs-intro {
  padding-top: 4rem;
}
.page-programs .programs-intro__grid {
  align-items: center;
}
.page-programs .programs-intro .about-grid__images--featured .about-grid__img--main img {
  object-fit: cover;
  object-position: center 30%;
  min-height: 360px;
  max-height: 520px;
}
.programs-media-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.programs-media-strip--pair {
  grid-template-columns: repeat(2, 1fr);
}
.programs-media-strip--duo {
  grid-template-columns: 1fr 1.4fr;
}
.programs-media-strip__item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-white);
}
.programs-media-strip__item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.programs-media-strip__item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-green-dark);
  background: var(--color-cream);
  text-align: center;
}
.programs-gallery-section {
  padding-top: 4rem;
}
.programs-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.programs-photo-grid__item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-white);
}
.programs-photo-grid__item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.programs-photo-grid__item:hover img {
  transform: scale(1.04);
}
.programs-photo-grid__item figcaption {
  padding: 0.65rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}
.page-programs .programs-focus__card-image {
  height: auto;
  background: var(--color-cream);
}
.page-programs .programs-focus__card-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.page-programs .programs-focus__card:hover .programs-focus__card-image img {
  transform: scale(1.04);
}
.programs-cta {
  padding-top: 0;
  padding-bottom: 5rem;
}
.page-programs .cta-banner--join-us {
  background-size: cover;
  background-position: center 40%;
  min-height: 320px;
}

@media (max-width: 900px) {
  .programs-media-strip {
    grid-template-columns: 1fr 1fr;
  }
  .programs-media-strip--duo {
    grid-template-columns: 1fr;
  }
  .programs-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .programs-media-strip,
  .programs-photo-grid {
    grid-template-columns: 1fr;
  }
}

.feature-list { margin: 1.5rem 0 2rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}
.feature-list i {
  color: var(--color-gold);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--color-border);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card__image img { transform: scale(1.08); }
.card__icon {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  width: 48px;
  height: 48px;
  background: var(--color-gold);
  color: var(--color-green-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.card__body { padding: 1.75rem; }
.card__body h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}
.card__body p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--color-green);
  font-size: 0.9375rem;
}
.card__link:hover { gap: 0.6rem; color: var(--color-gold-dark); }

/* Impact / Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.impact-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all var(--transition);
}
.impact-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}
.impact-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-green-dark);
}
.impact-card__number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-gold-light);
}
.impact-card p { font-size: 0.9375rem; opacity: 0.9; }

/* CTA Banner */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 4rem;
  text-align: center;
  background-size: cover;
  background-position: center;
}
.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,61,38,0.9), rgba(201,162,39,0.3));
}
.cta-banner--join-us {
  background-size: cover;
  background-position: center 40%;
  min-height: 320px;
}
.cta-banner--join-us .cta-banner__overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 61, 38, 0.82) 0%,
    rgba(15, 61, 38, 0.55) 45%,
    rgba(26, 92, 58, 0.75) 100%
  );
}
.cta-banner__content { position: relative; z-index: 2; }
.cta-banner h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-white);
  margin-bottom: 1rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Testimonials */
.testimonial-slider { position: relative; max-width: 800px; margin: 0 auto; }
.testimonial {
  text-align: center;
  padding: 2rem;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-green-dark);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.testimonial__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-gold);
}
.testimonial__name { font-weight: 600; }
.testimonial__role { font-size: 0.875rem; color: var(--color-text-muted); }
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.testimonial-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all var(--transition);
}
.testimonial-dots button.is-active {
  background: var(--color-gold);
  width: 28px;
  border-radius: var(--radius-full);
}

/* Partners */
.partners-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.partners-logo-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.875rem;
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .partners-logo-grid--compact {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1200px) {
  .partners-logo-grid--compact {
    grid-template-columns: repeat(8, 1fr);
  }
}
.partner-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  min-height: 120px;
}
.partner-logo-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.partner-logo-card__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
  margin-bottom: 0.5rem;
}
.partners-logo-grid--compact .partner-logo-card {
  min-height: 100px;
  padding: 1rem 0.75rem;
}
.partners-logo-grid--compact .partner-logo-card__img-wrap {
  height: 56px;
  margin-bottom: 0;
}
.partner-logo-card__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.partner-logo-card__name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-green-dark);
}
.partner-logo-card__type {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

.partners-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.partner-detail-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}
.partner-detail-card:hover {
  box-shadow: var(--shadow-md);
}
.partner-detail-card__logo {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: var(--color-cream);
  border-radius: var(--radius-md);
}
.partner-detail-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.partner-detail-card__body h3 {
  font-size: 1.0625rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.partner-detail-card__type {
  color: var(--color-gold-dark);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.partner-detail-card__body p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-green);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-card {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-form-card__submit {
  width: 100%;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(15,61,38,0.85));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay span { color: white; font-weight: 600; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: var(--radius-md);
}
.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--color-white);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--color-green-dark);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.team-card {
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-card__photo {
  height: 280px;
  overflow: hidden;
}
.team-card__photo--placeholder {
  background: linear-gradient(145deg, rgba(26, 92, 58, 0.08) 0%, rgba(201, 162, 39, 0.12) 100%);
  border-bottom: 1px solid rgba(26, 92, 58, 0.1);
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card__info--pending {
  min-height: 4.5rem;
}
.team-card__info { padding: 1.5rem; }
.team-card__info h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.team-card__role {
  color: var(--color-gold-dark);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.team-card__social { display: flex; justify-content: center; gap: 0.5rem; }
.team-card__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(26,92,58,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--color-green);
}
.team-card__social a:hover { background: var(--color-gold); color: var(--color-green-dark); }

/* Objectives list */
.objectives-list {
  max-width: 900px;
  margin: 0 auto;
  list-style: none;
  counter-reset: objectives;
  padding: 0;
}
.objectives-list li {
  counter-increment: objectives;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  margin-bottom: 1rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.objectives-list li:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}
.objectives-list li::before {
  content: counter(objectives);
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-green-dark);
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold-light));
  border-radius: 50%;
}
.section#objectives { background: var(--color-cream); }

/* Timeline */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-gold), var(--color-green));
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  background: var(--color-gold);
  border: 3px solid var(--color-white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--color-gold);
  transform: translateX(-5.5px);
}
.timeline-item__year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  margin-bottom: 0.5rem;
}
.timeline-item h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.timeline-item p { color: var(--color-text-muted); font-size: 0.9375rem; }

/* Donate tiers */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.donate-tier {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}
.donate-tier:hover,
.donate-tier.is-selected {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}
.donate-tier.is-featured {
  background: linear-gradient(180deg, var(--color-green-dark), var(--color-green));
  border-color: var(--color-gold);
  color: white;
}
.donate-tier.is-featured h3,
.donate-tier.is-featured .donate-tier__amount { color: white; }
.donate-tier__amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-green);
  margin: 0.5rem 0;
}
.donate-tier ul {
  text-align: left;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}
.donate-tier ul li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.donate-tier ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 700;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}
.news-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card__image { height: 200px; overflow: hidden; }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 1.5rem; }
.news-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.news-card__meta i { color: var(--color-gold); }
.news-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.news-card h3 a:hover { color: var(--color-green); }

/* Contact */
.page-contact .section--contact-start {
  padding-top: calc(var(--header-height) + 2.5rem);
}
.page-partners .section--partners-start {
  padding-top: calc(var(--header-height) + 2.5rem);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.contact-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
}
.contact-info-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-green), var(--color-green-light));
  color: var(--color-gold-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 300px;
  background: var(--color-border);
  margin-top: 1.5rem;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.value-card {
  padding: 2rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.value-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}
.value-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: rgba(201,162,39,0.15);
  color: var(--color-gold-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Footer */
.footer-cta {
  position: relative;
  padding: 5rem 0;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.footer-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,61,38,0.92), rgba(26,92,58,0.85));
}
.footer-cta__content { position: relative; z-index: 2; }
.footer-cta h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  color: var(--color-white);
  margin-bottom: 1rem;
}
.footer-cta p {
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}
.footer-cta__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__main {
  background: var(--color-green-dark);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
}
.footer-col h4 {
  color: var(--color-gold-light);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col p { font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.9375rem; opacity: 0.85; }
.footer-links a:hover { color: var(--color-gold-light); opacity: 1; }
.footer-contact li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}
.footer-contact i { color: var(--color-gold); margin-top: 0.2rem; }
.social-links--footer { margin-top: 0.5rem; }

.newsletter-form label {
  display: block;
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}
.newsletter-form__row {
  display: flex;
  gap: 0.5rem;
}
.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  color: white;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }

.site-footer__bottom {
  background: rgba(0,0,0,0.2);
  padding: 1.25rem 0;
}
.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  opacity: 0.8;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a:hover { color: var(--color-gold-light); }

.site-footer__credit {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-credit {
  margin: 0;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.footer-credit a {
  color: var(--color-gold-light);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-credit a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.logo--footer { flex-direction: column; align-items: flex-start; }
.logo--footer .logo__text strong { color: white; }
.logo--footer .logo__text small { color: rgba(255,255,255,0.7); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: var(--color-green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 900;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-4px); }

/* Animations on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Alert messages */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}
.alert--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert--error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid:not(.about-legacy-grid) { grid-template-columns: 1fr; }
  .hero__stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .page-about .about-legacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

@media (max-width: 768px) {
  :root { --header-height: 70px; }
  .top-bar { display: none; }

  .btn--hide-mobile { display: none; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1200;
    padding: 0;
    margin: 0;
    flex: none;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    visibility: hidden;
  }
  .main-nav.is-open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
  }
  .main-nav__panel {
    height: 100%;
    background: var(--color-cream);
    padding: 1.5rem 1.25rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -8px 0 32px rgba(15, 61, 38, 0.15);
    max-width: min(360px, 92vw);
    margin-left: auto;
    pointer-events: auto;
  }
  .main-nav__list a,
  .main-nav__mobile-actions a {
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(26, 92, 58, 0.15);
  }

  .logo,
  .header-actions,
  .nav-toggle {
    position: relative;
    z-index: 1201;
  }
  .main-nav__list {
    flex-direction: column;
    gap: 0.25rem;
  }
  .main-nav__list a {
    display: block;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    color: var(--color-green-dark);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
  }
  .main-nav__list a:hover,
  .main-nav__list a.is-active {
    background: rgba(26, 92, 58, 0.1);
    color: var(--color-green);
  }
  .main-nav__mobile-actions {
    display: flex;
  }
  .main-nav__mobile-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-bottom: 0;
    overflow: visible;
  }
  .hero__stats {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 2rem;
    padding-bottom: 1.5rem;
    overflow: visible;
  }
  .hero__stats .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero__stats-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 0.5rem;
    padding: 1rem 0.75rem;
  }
  .stat-item p {
    font-size: 0.6875rem;
  }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }
  .footer-col--brand {
    grid-column: 1 / -1;
  }
  .site-footer__bottom-inner { flex-direction: column; text-align: center; }

  .section { padding: 3.5rem 0; }
  .cta-banner { padding: 2.5rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero__logo { width: 120px; }
  .logo--header .logo__img { height: 48px; }
  .hero__actions .btn { width: 100%; }
  .hero__stats-inner {
    padding: 0.875rem 0.5rem;
    gap: 0.625rem 0.375rem;
  }
  .stat-item__number { font-size: 1.35rem; }
  .stat-item__number::after { font-size: 0.875rem; }
}

/* Homepage — mobile layout (shorter page, clearer hero photos) */
@media (max-width: 768px) {
  .page-home .hero--home {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .page-home .hero__slideshow {
    position: relative;
    flex: 0 0 auto;
    height: 44vh;
    min-height: 268px;
    max-height: 400px;
    width: 100%;
  }

  .page-home .hero--home .hero__overlay {
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: 44vh;
    min-height: 268px;
    max-height: 400px;
    background: linear-gradient(
      to bottom,
      rgba(15, 61, 38, 0.05) 0%,
      rgba(15, 61, 38, 0.18) 45%,
      rgba(15, 61, 38, 0.5) 100%
    );
  }

  .page-home .hero__bg-img {
    object-fit: cover;
    object-position: center 40%;
    transform: translateZ(0);
  }

  .page-home .hero__panel {
    position: relative;
    z-index: 3;
    background: var(--color-cream);
    border-radius: 1.25rem 1.25rem 0 0;
    margin-top: -1.5rem;
    padding: 1rem 0 0;
    box-shadow: 0 -10px 28px rgba(15, 61, 38, 0.1);
  }

  .page-home .hero__content {
    padding: 0.25rem 0 0.75rem;
    max-width: 100%;
  }

  .page-home .hero__logo {
    width: 88px;
    margin-bottom: 0.65rem;
  }

  .page-home .hero__badge {
    display: none;
  }

  .page-home .hero h1 {
    font-size: 1.625rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--color-green-dark);
    animation: none;
  }

  .page-home .hero h1 span {
    background: none;
    -webkit-text-fill-color: var(--color-green);
    color: var(--color-green);
  }

  .page-home .hero__lead--full {
    display: none;
  }

  .page-home .hero__lead--short {
    display: block;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 0.875rem;
    line-height: 1.45;
    animation: none;
  }

  .page-home .hero__actions {
    flex-direction: column;
    gap: 0.5rem;
    animation: none;
  }

  .page-home .hero__btn-secondary {
    display: none;
  }

  .page-home .hero__stats--bar {
    position: relative;
    margin-top: 0;
    padding: 0 0 0.875rem;
    background: var(--color-cream);
  }

  .page-home .hero__stats--bar .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-home .hero__stats-inner {
    background: var(--color-white);
    padding: 0.65rem 0.5rem;
    gap: 0.4rem 0.35rem;
    box-shadow: var(--shadow-sm);
  }

  .page-home .home-section {
    padding: 2rem 0;
  }

  .page-home .home-section--cta-mid {
    padding: 1.5rem 0;
  }

  .page-home .cta-banner--join-us {
    padding: 2rem 1.25rem;
    min-height: 280px;
    background-position: center center;
  }

  .page-home .cta-banner--join-us h2 {
    font-size: 1.45rem;
  }

  .page-home .cta-banner--join-us p {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }

  .page-home .cta-banner--join-us .cta-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-home .cta-banner--join-us .cta-banner__actions .btn {
    width: 100%;
  }

  .page-home .home-section--about .about-grid__images--featured {
    display: block;
    margin-bottom: 1.25rem;
  }

  .page-home .home-section--about .about-grid__images--featured .about-grid__img--main img {
    min-height: 200px;
    max-height: 260px;
    object-position: center center;
  }

  .page-home .home-section--about .about-grid__badge {
    bottom: 0.5rem;
    right: 0.5rem;
    padding: 1rem 1.25rem;
  }

  .page-home .home-section--about .about-grid__badge strong {
    font-size: 1.75rem;
  }

  .page-home .home-section--about .about-grid__content .section-title {
    font-size: 1.4rem;
  }

  .page-home .home-section--about .about-grid__content > p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
  }

  .page-home .home-section--about .feature-list li:nth-child(n + 3) {
    display: none;
  }

  .page-home .home-section--programs .section-subtitle {
    display: none;
  }

  .page-home .home-section--programs .card__body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-home .home-section--programs .card-grid,
  .page-home .home-programs__grid {
    gap: 1rem;
  }

  .page-home .home-section--testimonials {
    padding: 1.5rem 0;
  }

  .page-home .home-section--testimonials .testimonial {
    padding: 0.75rem 0;
  }

  .page-home .home-section--testimonials .testimonial__quote {
    font-size: 1.0625rem;
    margin-bottom: 0.875rem;
  }

  .page-home .home-section--partners .section-subtitle {
    display: none;
  }

  .page-home .home-section--partners .partners-logo-grid--compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .page-home .home-section--partners .partner-logo-card {
    min-height: 68px;
    padding: 0.45rem;
  }

  .page-home .home-section--partners .partner-logo-card__img-wrap {
    height: 36px;
  }

  .page-home .section-header {
    margin-bottom: 1rem;
  }

  .page-home .section-title {
    font-size: 1.45rem;
  }

  .objectives-list--home {
    grid-template-columns: 1fr;
  }

  .page-home .home-contact__action .map-embed {
    min-height: 220px;
  }
}
