:root {
  --green-950: #06271f;
  --green-900: #0b3a29;
  --green-700: #12643d;
  --green-500: #2d8a55;
  --river: #1c7f93;
  --gold: #f2a51a;
  --orange: #e9821a;
  --cream: #fbf6ea;
  --paper: #fffdf7;
  --ink: #17231f;
  --muted: #63736d;
  --line: rgba(23, 35, 31, 0.13);
  --shadow: 0 20px 62px rgba(6, 39, 31, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: white;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 8px max(18px, calc((100vw - 1180px) / 2));
  background: var(--green-950);
  font-size: 0.78rem;
  font-weight: 700;
}

.top-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.top-bar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  opacity: 0.9;
}

.top-bar i {
  color: var(--gold);
}

.top-login {
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.main-nav {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 9px max(18px, calc((100vw - 1180px) / 2));
  color: var(--green-950);
  background: rgba(255, 253, 247, 0.97);
  box-shadow: 0 12px 36px rgba(6, 39, 31, 0.12);
  backdrop-filter: blur(14px);
}

.rainbow-line {
  height: 8px;
  width: 100%;
  background: linear-gradient(90deg, #dc2626, #f59e0b, #84cc16, #10b981, #06b6d4, #2563eb, #7c3aed, #dc2626);
  background-size: 260% 100%;
  animation: rainbowMove 4.5s linear infinite;
}

@keyframes rainbowMove {
  to {
    background-position: 260% 0;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 72px;
  height: 54px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 0.98rem;
  font-weight: 900;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  font-weight: 800;
}

.nav-links a {
  padding: 10px 0;
}

.nav-links a.active {
  color: var(--green-700);
}

.nav-links .mobile-only {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.primary,
.btn-join {
  color: white;
  background: var(--green-700);
}

.secondary,
.btn-donate {
  color: white;
  background: var(--orange);
}

.whatsapp {
  color: white;
  background: #1fa855;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green-900);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: white;
}

.hero-slider {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  background: var(--green-950);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 23, 19, 0.9), rgba(4, 23, 19, 0.56) 42%, rgba(4, 23, 19, 0.18)),
    linear-gradient(0deg, rgba(4, 23, 19, 0.72), rgba(4, 23, 19, 0.06) 56%);
}

.slide-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 178px 0 98px;
  color: white;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  letter-spacing: 0;
}

.slide h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 5.6vw, 5.9rem);
  line-height: 0.95;
}

.slide p:not(.eyebrow) {
  max-width: 660px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.98rem, 1.35vw, 1.1rem);
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.slider-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
}

.slider-dots button.active {
  background: var(--gold);
}

.stats-band {
  width: min(1180px, calc(100% - 36px));
  margin: -58px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  min-height: 132px;
  display: grid;
  align-content: center;
  padding: 24px;
  border-radius: var(--radius);
  color: white;
  background: var(--green-900);
  box-shadow: var(--shadow);
}

.stat-number {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1;
}

.stat-number::after {
  content: "+";
}

.stat-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 82px 0;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.section h2,
.section-heading h2,
.partners h2,
.cta-panel h2,
.page-hero h1 {
  color: var(--green-950);
  font-size: clamp(1.9rem, 3.7vw, 3.55rem);
  line-height: 1.05;
}

.split p,
.conservation-grid p,
.page-copy p,
.footer p,
.project-card p,
.team-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.68;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--green-700);
  font-weight: 900;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.conservation-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.conservation-grid article,
.project-card,
.team-card,
.contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 34px rgba(6, 39, 31, 0.06);
}

.conservation-grid img,
.project-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.conservation-grid article {
  padding-bottom: 22px;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: -24px 22px 18px;
  position: relative;
  z-index: 2;
  border: 3px solid var(--paper);
  border-radius: 50%;
  color: white;
  background: var(--green-700);
  font-size: 0.8rem;
  font-weight: 900;
}

.conservation-grid h3,
.project-card h3 {
  margin: 0 22px 8px;
  color: var(--green-950);
  font-size: 1.08rem;
}

.conservation-grid p,
.project-card p {
  margin: 0 22px;
  font-size: 0.92rem;
}

.partners {
  padding: 78px max(18px, calc((100vw - 1180px) / 2));
  background: #e8f2e7;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.partner-card {
  min-height: 178px;
  padding: 22px;
  border: 1px solid rgba(18, 100, 61, 0.13);
  border-radius: var(--radius);
  color: var(--green-900);
  background: white;
  box-shadow: 0 12px 34px rgba(6, 39, 31, 0.06);
}

.partner-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--green-700), var(--river));
  font-size: 0.84rem;
  font-weight: 900;
}

.partner-card h3 {
  margin: 0 0 8px;
  color: var(--green-950);
  font-size: 1.03rem;
}

.partner-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.cta-panel {
  width: min(1180px, calc(100% - 36px));
  margin: 82px auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 36px;
  border-radius: var(--radius);
  color: white;
  background: linear-gradient(90deg, rgba(6, 39, 31, 0.96), rgba(28, 127, 147, 0.86)), url("assets/wildlife-silhouette.jpg") center/cover;
  box-shadow: var(--shadow);
}

.cta-panel h2,
.cta-panel .section-kicker {
  color: white;
}

.footer {
  color: white;
  background:
    linear-gradient(90deg, rgba(4, 29, 24, 0.98), rgba(6, 39, 31, 0.94)),
    url("assets/wildlife-silhouette.jpg") center/cover;
}

.footer-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.7fr 0.75fr 1fr;
  gap: 42px;
  padding: 56px 0 34px;
}

.footer-about img {
  width: 156px;
  padding: 12px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 18px 42px rgba(255, 255, 255, 0.13);
}

.footer h3 {
  margin: 0 0 15px;
  color: var(--gold);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.footer a {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.84);
  overflow-wrap: anywhere;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.social-links a:hover {
  color: var(--green-950);
  background: var(--gold);
}

.footer p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  padding: 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.66);
  text-align: center;
  font-size: 0.82rem;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: white;
  background: #1fa855;
  box-shadow: 0 14px 36px rgba(6, 39, 31, 0.28);
  font-size: 0.86rem;
  font-weight: 900;
}

.page-hero {
  padding: 178px max(18px, calc((100vw - 1180px) / 2)) 72px;
  color: white;
  background: linear-gradient(90deg, rgba(6, 39, 31, 0.92), rgba(6, 39, 31, 0.45)), var(--hero-image, url("assets/forest.jpg")) center/cover;
}

.page-hero h1 {
  max-width: 760px;
  color: white;
}

.page-hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.page-copy {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: start;
}

.info-panel {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.info-panel h3 {
  margin: 0 0 10px;
  color: var(--green-950);
}

.team-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.team-card,
.contact-card {
  padding: 24px;
}

.team-card h3,
.contact-card h3 {
  margin: 0 0 8px;
  color: var(--green-950);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: var(--radius);
}

.join-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.join-form label {
  display: grid;
  gap: 7px;
  color: var(--green-950);
  font-weight: 800;
}

.join-form input,
.join-form select,
.join-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  font: inherit;
}

.join-form textarea,
.join-form .full {
  grid-column: 1 / -1;
}

.join-form button.full,
.join-form a.full {
  width: 100%;
}

.form-message {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.55;
}

.form-message.success {
  color: #155724;
  background: #d9f7df;
}

.form-message.error {
  color: #842029;
  background: #f8d7da;
}

@media (max-width: 980px) {
  .top-bar {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .top-contact {
    justify-content: center;
    gap: 8px 14px;
  }

  .main-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .nav-links.is-open {
    position: fixed;
    top: 134px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 0;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open .mobile-only {
    display: block;
    color: white;
    background: var(--green-700);
  }

  .stats-band,
  .conservation-grid,
  .project-grid,
  .partner-grid,
  .team-grid,
  .contact-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .two-col,
  .cta-panel,
  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .brand img {
    width: 62px;
    height: 46px;
  }

  .brand strong {
    font-size: 0.86rem;
  }

  .brand small {
    display: none;
  }

  .hero-slider {
    min-height: 760px;
  }

  .slide-content {
    padding-top: 170px;
  }

  .slide h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .stats-band,
  .conservation-grid,
  .project-grid,
  .partner-grid,
  .team-grid,
  .contact-grid,
  .gallery-grid,
  .join-form {
    grid-template-columns: 1fr;
  }

  .section,
  .page-copy {
    padding: 62px 0;
  }

  .gallery-grid img {
    height: 240px;
  }
}
