/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --color-bg: #faf9f7;
  --color-bg-alt: #f3f1ed;
  --color-text: #1a1a1a;
  --color-text-secondary: #4a4a4a;
  --color-text-muted: #7a7a7a;
  --color-border: #d4d0c8;
  --color-border-light: #e8e5df;

  /* Accent Colors (mission pillars) */
  --color-accent-gold: #b8860b;
  --color-accent-teal: #2e8b8b;
  --color-accent-maroon: #8b2252;
  --color-accent-navy: #2c3e6b;

  /* Typography */
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul,
ol {
  list-style: none;
}

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

.section {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 680px;
}

/* ===== NAVIGATION ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

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

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
  padding-bottom: 2px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-text);
  transition: width 0.3s ease;
}

.nav__link:hover {
  opacity: 1;
  color: var(--color-text);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--active {
  color: var(--color-text);
}

.nav__link--active::after {
  width: 100%;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--color-text);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-text);
  color: var(--color-bg);
  opacity: 1;
}

.btn--filled {
  background: var(--color-text);
  border: 1.5px solid var(--color-text);
  color: var(--color-bg);
}

.btn--filled:hover {
  background: transparent;
  color: var(--color-text);
  opacity: 1;
}

.btn--accent {
  background: var(--color-accent-gold);
  border: 1.5px solid var(--color-accent-gold);
  color: #fff;
}

.btn--accent:hover {
  background: #9a7209;
  border-color: #9a7209;
  opacity: 1;
}

.btn--large {
  padding: 1.1rem 2.8rem;
  font-size: 1.05rem;
}

/* ===== HERO SECTION ===== */
.hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.hero__heading {
  margin-bottom: var(--space-md);
  max-width: 750px;
}

.hero__text {
  margin-bottom: var(--space-xl);
  line-height: 1.8;
  max-width: 620px;
}

/* ===== MISSION SECTION ===== */
.mission {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.mission__title {
  margin-bottom: var(--space-xl);
}

.mission__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.mission__item {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  border-left: 3px solid var(--color-accent-gold);
}

.mission__item h3 {
  margin-bottom: var(--space-xs);
}

.mission__item:nth-child(2) {
  border-left-color: var(--color-accent-teal);
}

.mission__item:nth-child(3) {
  border-left-color: var(--color-accent-navy);
}

.mission__item:nth-child(4) {
  border-left-color: var(--color-accent-maroon);
}

.mission__item p {
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--color-border-light);
  padding: var(--space-xl) 0;
}

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

.footer__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  gap: var(--space-md);
}

.footer__link {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer__link:hover {
  color: var(--color-text);
  opacity: 1;
}

/* ===== GALLERY PAGE ===== */
.page-header {
  padding: var(--space-3xl) 0 var(--space-lg);
  text-align: center;
}

.page-header__title {
  margin-bottom: var(--space-sm);
}

.page-header__subtitle {
  max-width: 600px;
  margin: 0 auto;
}

.gallery {
  padding: var(--space-lg) 0 var(--space-3xl);
}

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

.gallery__item {
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}

.gallery__item:hover {
  transform: scale(1.02);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  animation: fadeIn 0.3s ease;
}

.lightbox--active {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  animation: scaleIn 0.3s ease;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 300;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  z-index: 1001;
}

.lightbox__close:hover {
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== DONATION PAGE ===== */
.donate-intro {
  padding: var(--space-3xl) 0 var(--space-lg);
}

.donate-intro__text {
  max-width: 650px;
  margin-top: var(--space-sm);
  line-height: 1.8;
}

.donation-tiers {
  padding: var(--space-lg) 0 var(--space-2xl);
}

.donation-tiers__heading {
  margin-bottom: var(--space-lg);
}

.tiers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.tier-card {
  border: 1.5px solid var(--color-border);
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  background: var(--color-bg);
}

.tier-card:hover,
.tier-card--selected {
  border-color: var(--color-accent-gold);
  box-shadow: 0 4px 24px rgba(184, 134, 11, 0.10);
}

.tier-card__amount {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.tier-card__label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.tier-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: none;
}

/* Custom amount input inside tier card */
.tier-card__input {
  width: 100%;
  border: 1px solid var(--color-border);
  padding: 0.65rem;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  text-align: center;
  margin-top: var(--space-xs);
  background: transparent;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.3s ease;
}

.tier-card__input:focus {
  border-color: var(--color-accent-gold);
}

/* Donation Form */
.donate-form-section {
  padding: var(--space-lg) 0 var(--space-3xl);
}

.donate-form {
  max-width: 600px;
}

.donate-form__heading {
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid var(--color-border);
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: transparent;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent-gold);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Impact Section */
.impact {
  padding: var(--space-2xl) 0 var(--space-3xl);
  background-color: var(--color-bg-alt);
}

.impact__title {
  margin-bottom: var(--space-xl);
}

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

.impact__card {
  padding: var(--space-lg);
  border-left: 3px solid var(--color-accent-gold);
}

.impact__card:nth-child(2) {
  border-left-color: var(--color-accent-teal);
}

.impact__card:nth-child(3) {
  border-left-color: var(--color-accent-maroon);
}

.impact__number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.impact__label {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===== STRIPE PAYMENT SECTION ===== */
.payment-section {
  display: none;
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-alt);
  animation: paymentReveal 0.4s ease;
}

.payment-section--visible {
  display: block;
}

.payment-section__title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
  display: flex;
  align-items: center;
}

.payment-section__secure {
  font-size: 0.82rem;
  color: var(--color-accent-teal);
  margin-bottom: var(--space-md);
  font-weight: 500;
  max-width: none;
}

.stripe-card-element {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  background: #fff;
  min-height: 44px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.stripe-card-element:focus-within,
.stripe-card-element.StripeElement--focus {
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.08);
}

.stripe-card-errors {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: var(--space-xs);
  min-height: 1.2em;
}

@keyframes paymentReveal {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button spinner */
.btn-spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spinner-icon {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ===== FORM SUCCESS ===== */
.form-success {
  display: none;
  padding: var(--space-xl);
  text-align: center;
  border: 1.5px solid var(--color-accent-teal);
  border-radius: 4px;
  animation: fadeIn 0.4s ease;
}

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

.form-success h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-accent-teal);
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  padding: var(--space-3xl) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.success-page__card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-xl);
}

.success-page__icon {
  margin-bottom: var(--space-lg);
  animation: scaleIn 0.5s ease;
}

.success-page__title {
  margin-bottom: var(--space-md);
}

.success-page__text {
  max-width: none;
  margin: 0 auto var(--space-sm);
  line-height: 1.8;
}

.success-page__subtext {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: none;
  margin: 0 auto var(--space-xl);
}

.success-page__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== TEAM SECTION ===== */
.team {
  padding: var(--space-lg) 0 var(--space-3xl);
}

.team__heading {
  margin-bottom: var(--space-lg);
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-text);
  margin-top: var(--space-2xl);
}

.team__heading:first-child {
  margin-top: 0;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.team-member {
  text-align: center;
}

.team-member__img-wrapper {
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: var(--space-md);
  aspect-ratio: 1;
  background-color: var(--color-border-light);
}

.team-member__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-member:hover .team-member__img {
  transform: scale(1.03);
}

#founder-2-wrapper {
  /* Drop the exact background color of the headshot here */
  background-color: #e8e5df;
}

#founder-2-img {
  /* This eliminates the white corners of the JPG so only the targeted background color above shines through */
  mix-blend-mode: multiply;
  /* If the person in the photo is off-center inside their own picture file, you can nudge the photo here! 
     Change the first 50% to move left/right, and the second 50% to move up/down. */
  object-position: 42% 50%;
}

.img-zoom-circle {
  transform: scale(1.42);
}

.team-member:hover .img-zoom-circle {
  transform: scale(1.45);
}

.team-member__name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--color-text);
}

.team-member__title {
  font-size: 0.95rem;
  color: var(--color-accent-teal);
  font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--space-lg) 0 var(--space-3xl);
  background-color: var(--color-bg);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
}

.contact__badge {
  display: inline-block;
  background-color: var(--color-accent-teal);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  align-self: flex-start;
}

.contact__heading {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.contact__desc {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  text-align: justify;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.contact__item {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
}

.contact__item-label {
  font-weight: 600;
  color: var(--color-text);
}

.contact__item-value {
  color: var(--color-text-secondary);
  text-align: right;
}

.contact__item-value a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.contact__item-value a:hover {
  color: var(--color-accent-teal);
}

.contact__socials h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.contact__social-link {
  display: inline-flex;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact__social-link svg {
  width: 28px;
  height: 28px;
  fill: var(--color-text);
  transition: fill 0.3s ease;
}

.contact__social-link:hover {
  transform: translateY(-3px);
}
.contact__social-link:hover svg {
  fill: var(--color-accent-maroon);
}

/* Contact Form */
.contact-form {
  background-color: rgba(255, 255, 255, 0.25);
  padding: var(--space-2xl);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.contact-form__group {
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
}

.contact-form__label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.contact-form__label span {
  color: #dc3545;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.3s, background-color 0.3s;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--color-text-muted);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--color-text);
  background-color: #fff;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__btn {
  margin-top: var(--space-sm);
  width: 100%;
  justify-content: center;
}

/* ===== ABOUT MAP SECTION ===== */
.about-map {
  padding: var(--space-lg) 0 var(--space-3xl);
}

.about-map__heading {
  margin-bottom: var(--space-sm);
}

.about-map__text {
  margin-bottom: var(--space-xl);
  max-width: 620px;
}

.about-map__wrapper {
  position: relative;
  width: 100%;
  margin-bottom: var(--space-xl);
  border-radius: 8px;
  overflow: hidden;
}

#world-map {
  width: 100%;
  height: 480px;
  background: var(--color-bg);
  z-index: 1;
}

/* Custom pulsing map marker */
.map-pulse-marker {
  position: relative;
}

.map-marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
}

.map-marker-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: mapPulse 2.5s ease-out infinite;
}

@keyframes mapPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.4;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  background: var(--color-text) !important;
  color: var(--color-bg) !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
  font-family: var(--font-sans) !important;
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 10px 14px !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
}

.leaflet-popup-content strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.leaflet-popup-content span {
  opacity: 0.75;
  font-size: 0.8rem;
}

.leaflet-popup-tip {
  background: var(--color-text) !important;
}

/* Hide Leaflet attribution for cleaner look */
.leaflet-control-attribution {
  font-size: 0.7rem !important;
  opacity: 0.5;
}

/* Permanent country name labels above markers */
.map-country-label {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  font-family: var(--font-sans) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--color-text) !important;
  padding: 0 !important;
  white-space: nowrap;
}

.map-country-label::before {
  display: none !important;
}

/* Legend */
.about-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .mission__grid,
  .impact__grid,
  .about-highlights__grid,
  .team__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery__grid {
    columns: 2;
  }
}

@media (max-width: 650px) {
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
    gap: var(--space-sm);
    z-index: 100;
  }

  .nav__links--open {
    display: flex;
  }

  .nav__toggle {
    display: flex;
  }

  .mission__grid,
  .impact__grid,
  .about-highlights__grid,
  .team__grid {
    grid-template-columns: 1fr;
  }

  .tiers__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    columns: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    padding: var(--space-2xl) 0 var(--space-xl);
  }
}