/* =================================================
   ENVIRONMENT & WILDLIFE HUB — HOMEPAGE STYLES
   Modern-Classic Conservation Design
   ================================================= */

/* ─── Hero Section ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg,
      rgba(26, 74, 46, 0.78) 0%,
      rgba(26, 74, 46, 0.42) 45%,
      rgba(10, 20, 12, 0.65) 100%),
    url('../images/background/Urban landscape.jpg') no-repeat center 35% / cover;
  color: #fff;
  text-align: center;
  margin-top: 80px;
  overflow: hidden;
}

/* Decorative leaf pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 85%, rgba(184,134,11,0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 20%, rgba(106,158,111,0.14) 0%, transparent 45%);
  z-index: 1;
  pointer-events: none;
}

/* Bottom fade-to-white transition */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to top, #ffffff, transparent);
  z-index: 3;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  padding-inline: 1.5rem;
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(212, 165, 42, 0.95);
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  flex: 1;
  width: 2.5rem;
  height: 1px;
  background: rgba(212, 165, 42, 0.6);
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5.25rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.hero-title em {
  font-style: italic;
  color: rgba(212, 165, 42, 0.9);
}

.hero-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  line-height: 1.65;
  max-width: 680px;
  margin-inline: auto;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 3rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btns .btn {
  padding: 1rem 2.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

.hero-btns .btn-primary {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}

.hero-btns .btn-primary:hover {
  background: #1a4a2e;
  border-color: #1a4a2e;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(26, 74, 46, 0.5);
}

.hero-btns .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.65);
}

.hero-btns .btn-secondary:hover {
  background: #fff;
  color: #1a4a2e;
  border-color: #fff;
  transform: translateY(-3px);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
}

/* ─── Stats Bar ─── */
.stats-bar {
  background: #1a4a2e;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(184,134,11,0.08) 50%,
    transparent 100%);
  pointer-events: none;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: 2rem;
}

.stat-item {
  padding: 2.25rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
  transition: all 0.35s ease;
}

.stat-item:last-child { border-right: none; }

.stat-item:hover {
  background: rgba(255,255,255,0.04);
}

.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #d4a52a;
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* ─── Mission Section ─── */
.mission-section {
  padding-block: 7rem;
  background: #fff;
  position: relative;
}

.mission-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at right, rgba(247,243,236,0.8) 0%, transparent 70%);
  pointer-events: none;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 0;
}

.mission-card {
  background: #fff;
  border-radius: 16px;
  padding: 3rem 2.25rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(26, 74, 46, 0.08);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 74, 46, 0.06);
}

/* Top accent bar */
.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2e7d32, #d4a52a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-card:hover::before { transform: scaleX(1); }

/* Corner leaf decoration */
.mission-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,125,50,0.06) 0%, transparent 70%);
  transition: all 0.4s ease;
}

.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 64px rgba(26, 74, 46, 0.14);
  border-color: rgba(26, 74, 46, 0.12);
}

.mission-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.25rem;
  background: linear-gradient(135deg, rgba(46,125,50,0.1), rgba(46,125,50,0.04));
  color: #2e7d32;
  border: 2px solid rgba(46,125,50,0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.mission-card:hover .mission-icon {
  background: linear-gradient(135deg, #1a4a2e, #2e7d32);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 12px 36px rgba(26, 74, 46, 0.3);
}

.mission-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.mission-card p {
  color: #6a6a6a;
  line-height: 1.75;
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 0;
}

/* ─── Values Section ─── */
.values-section {
  padding-block: 7rem;
  background: #f7f3ec;
  position: relative;
  overflow: hidden;
}

/* Subtle organic pattern background */
.values-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(46,125,50,0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(184,134,11,0.05) 0%, transparent 40%);
  pointer-events: none;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.value-card {
  background: #fff;
  border-radius: 14px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(26, 74, 46, 0.06);
  box-shadow: 0 2px 12px rgba(26, 74, 46, 0.05);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #b8860b, #2e7d32);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.value-card:hover::before { transform: scaleX(1); }

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(26, 74, 46, 0.12);
  border-color: rgba(26, 74, 46, 0.1);
}

.value-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  background: linear-gradient(135deg, rgba(46,125,50,0.08), rgba(46,125,50,0.03));
  color: #2e7d32;
  border: 1.5px solid rgba(46,125,50,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover .value-icon {
  background: linear-gradient(135deg, #b8860b, #d4a52a);
  color: #fff;
  border-color: transparent;
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(184,134,11,0.3);
}

.value-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.value-card p {
  color: #7a7a7a;
  font-size: 0.85rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 0;
}

/* ─── CTA Section (homepage override) ─── */
.cta-section {
  padding-block: 7rem;
  background:
    linear-gradient(135deg, #1a4a2e 0%, #2e7d32 55%, #3d9142 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Circular decorative elements */
.cta-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(184,134,11,0.08);
  border: 1px solid rgba(184,134,11,0.1);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding-inline: 2rem;
}

.cta-content .section-eyebrow {
  color: rgba(212, 165, 42, 0.9);
}

.cta-content .section-eyebrow::before,
.cta-content .section-eyebrow::after {
  background: rgba(212, 165, 42, 0.5);
}

.cta-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.cta-content p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.cta-form {
  max-width: 520px;
  margin: 0 auto;
}

.cta-form .form-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-form input {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.75rem;
  border-radius: 100px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.9375rem;
  font-family: 'Lato', sans-serif;
  transition: all 0.35s ease;
}

.cta-form input::placeholder { color: rgba(255,255,255,0.55); }

.cta-form input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.16);
}

.cta-form button {
  padding: 1rem 2.25rem;
  border-radius: 100px;
  background: #b8860b;
  color: #fff;
  border: 2px solid #b8860b;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 6px 24px rgba(184,134,11,0.4);
}

.cta-form button:hover {
  background: #d4a52a;
  border-color: #d4a52a;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(212,165,42,0.45);
}

/* ─── Animations ─── */
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* AOS override for our design */
[data-aos="fade-up"] {
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ─── Globe Two-Column Hero Layout ─── */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-inner .hero-content {
  flex: 1;
  text-align: left;
  max-width: 580px;
  margin: 0;
  padding-inline: 0;
}

.hero-inner .hero-btns {
  justify-content: flex-start;
}

.hero-globe-wrap {
  flex: 0 0 clamp(300px, 36vw, 440px);
  height: clamp(300px, 36vw, 440px);
  position: relative;
  animation: globeReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

#globe-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  border-radius: 50%;
}

#globe-canvas:active { cursor: grabbing; }

/* Zero-size anchor at Zimbabwe dot — JS updates transform each frame */
.globe-phases {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.28s ease;
}

/* Callout box floats above the anchor point */
.globe-phases-box {
  position: absolute;
  bottom: 14px;             /* sits above the stem */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(4, 18, 8, 0.84);
  border: 1px solid rgba(212, 165, 42, 0.42);
  border-radius: 7px;
  padding: 0;
  width: 224px;
  height: 1.9rem;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.55), 0 0 0 1px rgba(212,165,42,0.06);
  overflow: hidden;
}

/* Diamond arrow pointing down toward the dot */
.globe-phases-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-1px);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(212, 165, 42, 0.42);
}

/* Thin stem from arrow to dot */
.globe-phases-stem {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 14px;
  transform: translateX(-0.5px);
  background: linear-gradient(to top, transparent, rgba(212, 165, 42, 0.55));
}

.globe-phase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', sans-serif;
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(212, 165, 42, 0.88);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  margin: 0;
}

.globe-phase.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes globeReveal {
  from { opacity: 0; transform: scale(0.78) translateX(60px); }
  to   { opacity: 1; transform: none; }
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column-reverse;
    align-items: center;
    gap: 1rem;
  }

  .hero-inner .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-inner .hero-btns {
    justify-content: center;
  }

  .hero-globe-wrap {
    flex: none;
    width: 240px;
    height: 240px;
  }

  /* globe-phases is JS-positioned; nothing to override on tablet */
}

@media (max-width: 768px) {
  .hero { min-height: 640px; margin-top: 72px; }

  .hero-title { font-size: 2.5rem; }
  .hero-text  { font-size: 1.1rem; }

  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 280px; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(2),
  .stat-item:nth-child(4) { border-right: none; }

  .mission-section, .values-section { padding-block: 4.5rem; }

  .mission-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .values-grid  { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .cta-form .form-group { flex-direction: column; }
  .cta-form input,
  .cta-form button { width: 100%; min-width: unset; }
}

@media (max-width: 540px) {
  .values-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }

  .hero-eyebrow { font-size: 0.6rem; }
  .mission-card { padding: 2rem 1.5rem; }
  .value-card   { padding: 2rem 1.25rem; }

  .hero-globe-wrap { display: none; }
}
