:root {
  --teal-900: #004d57;
  --teal-700: #006874;
  --teal-600: #00838f;
  --teal-500: #00a0b0;
  --teal-100: #e0f4f7;
  --orange-600: #e65100;
  --orange-500: #f57c00;
  --orange-400: #ff9800;
  --orange-100: #fff3e0;
  --gold: #ffb300;
  --gray-900: #1a2332;
  --gray-700: #4a5568;
  --gray-500: #718096;
  --gray-200: #e2e8f0;
  --gray-100: #f7fafc;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0, 77, 87, 0.12);
  --shadow-lg: 0 12px 40px rgba(0, 77, 87, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --max-width: 1200px;
  --header-height: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-700);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--orange-500);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-link:hover {
  color: var(--teal-700);
}

.logo-link img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--gray-700);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--teal-700);
  background: var(--teal-100);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--teal-700);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--white);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid var(--gray-200);
  overflow-y: auto;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  color: var(--gray-700);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  background: var(--teal-100);
  color: var(--teal-700);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.925rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-500), var(--gold));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(245, 124, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 124, 0, 0.45);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--teal-600);
  color: var(--teal-700);
}

.btn-outline:hover {
  background: var(--teal-700);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--teal-700);
}

.btn-white:hover {
  background: var(--teal-100);
  color: var(--teal-900);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 77, 87, 0.88) 0%, rgba(0, 104, 116, 0.75) 50%, rgba(0, 131, 143, 0.65) 100%),
    url("../assets/images/hero-bg.jpg") center/cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 720px;
  padding: 4rem 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat span {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  color: var(--orange-500);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--teal-900);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-desc {
  color: var(--gray-700);
  font-size: 1.05rem;
  max-width: 600px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-desc {
  margin-inline: auto;
}

.bg-light {
  background: var(--gray-100);
}

.bg-teal {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-600));
  color: var(--white);
}

.bg-teal .section-title {
  color: var(--white);
}

.bg-teal .section-desc {
  color: rgba(255, 255, 255, 0.85);
}

.bg-teal .section-label {
  color: var(--gold);
}

/* Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-size: 1.15rem;
  color: var(--teal-900);
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--gray-700);
  font-size: 0.925rem;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--teal-100);
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.feature-card .card-icon {
  margin-inline: auto;
}

/* Mission split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(4) {
  grid-column: span 2;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 77, 87, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* CTA Banner */
.cta-banner {
  padding: 4rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(0, 77, 87, 0.92), rgba(0, 131, 143, 0.88)),
    url("../assets/images/cta-banner.jpg") center/cover;
  color: var(--white);
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-inline: auto;
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-600));
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  opacity: 0.9;
  max-width: 560px;
  margin-inline: auto;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.breadcrumb a {
  color: var(--white);
}

/* Blog */
.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.blog-tag {
  display: inline-block;
  background: var(--teal-100);
  color: var(--teal-700);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-card .card-body h3 a {
  color: var(--teal-900);
}

.blog-card .card-body h3 a:hover {
  color: var(--orange-500);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Article */
.article-content {
  max-width: 760px;
  margin-inline: auto;
}

.article-content h2 {
  font-family: var(--font-display);
  color: var(--teal-900);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  color: var(--gray-700);
  font-size: 1.05rem;
}

.article-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--gray-700);
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-featured-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

/* Leadership */
.leader-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.leader-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--teal-100);
  box-shadow: var(--shadow);
}

.leader-card h3 {
  color: var(--teal-900);
  margin-bottom: 0.25rem;
}

.leader-role {
  color: var(--orange-500);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.leader-card p {
  color: var(--gray-700);
  font-size: 0.9rem;
}

/* Membership tiers */
.tier-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  text-align: center;
  position: relative;
}

.tier-card.featured {
  border-color: var(--orange-500);
  transform: scale(1.03);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange-500), var(--gold));
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.tier-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal-900);
  margin: 1rem 0 0.25rem;
}

.tier-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-500);
}

.tier-card ul {
  list-style: none;
  margin: 1.5rem 0 2rem;
  text-align: left;
}

.tier-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
  color: var(--gray-700);
}

.tier-card li::before {
  content: "✓";
  color: var(--teal-600);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* Donate */
.donate-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.amount-btn {
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal-900);
  cursor: pointer;
  transition: all 0.2s;
}

.amount-btn:hover,
.amount-btn.selected {
  border-color: var(--teal-600);
  background: var(--teal-100);
}

.donate-form {
  max-width: 520px;
  margin-inline: auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: var(--gray-900);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-600);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.tax-notice {
  background: var(--orange-100);
  border-left: 4px solid var(--orange-500);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-top: 1.5rem;
}

.info-box {
  background: var(--teal-100);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.info-box h4 {
  color: var(--teal-900);
  margin-bottom: 0.5rem;
}

.info-box p {
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  width: 100%;
  background: var(--white);
  padding: 3rem 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-form-title {
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin-bottom: 2rem;
}

.contact-form .form-group {
  margin-bottom: 1.75rem;
}

.contact-form .form-group label {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
  padding: 1.1rem 1.25rem;
  font-size: 1.0625rem;
  border-radius: 10px;
}

.contact-form .form-group textarea {
  min-height: 220px;
}

.contact-form .btn-lg {
  padding: 1.15rem 2rem;
  font-size: 1.0625rem;
  margin-top: 0.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item h4 {
  color: var(--teal-900);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.contact-item p,
.contact-item a {
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* Footer */
.site-footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  width: 64px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-ein {
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin-inline: auto;
}

.legal-content h2 {
  font-family: var(--font-display);
  color: var(--teal-900);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--teal-900);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  transition: transform 0.3s;
  z-index: 9999;
  font-size: 0.9rem;
}

.toast.show {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item:nth-child(4) {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .donate-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-desktop,
  .header-cta .btn-outline {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .grid-2,
  .grid-3,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .donate-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .tier-card.featured {
    transform: none;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  section {
    padding: 3.5rem 0;
  }
}
