/* =========================================================
   home.css: Page-specific styles for index.html
   Greater Kruger Wildlife Foundation
   ========================================================= */

/* ---------------------------------------------------------
   1. HERO
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background-color: var(--color-bushveld-deep);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/kruger/real-hero-elephants2.webp');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  animation: heroZoom 14s var(--ease) forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 24, 18, 0.62) 0px,
      rgba(10, 24, 18, 0.44) 110px,
      rgba(10, 24, 18, 0.18) 230px,
      rgba(10, 24, 18, 0.00) 380px
    ),
    linear-gradient(
      to bottom,
      rgba(10, 24, 18, 0.10) 0%,
      rgba(10, 24, 18, 0.10) 35%,
      rgba(10, 24, 18, 0.55) 65%,
      rgba(10, 24, 18, 0.88) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-inline: var(--gutter);
  padding-bottom: clamp(5rem, 10vw, 9rem);
  padding-top: clamp(15rem, 22vw, 18rem);
  max-width: var(--container-wide);
  margin: 0 auto;
  width: 100%;
}


.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw + 1rem, 6.25rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--color-bone);
  max-width: 18ch;
  margin-bottom: var(--space-6);
  font-variation-settings: "opsz" 144, "SOFT" 60;
  animation: fadeUp 1s 0.4s var(--ease) both;
}

.hero__headline em {
  font-style: normal;
  color: var(--color-acacia-bright);
  font-weight: 400;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  font-weight: 300;
  color: rgba(255, 252, 246, 0.78);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-7);
  animation: fadeUp 1s 0.6s var(--ease) both;
}

.hero__sub strong {
  color: rgba(255, 252, 246, 0.95);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeUp 1s 0.8s var(--ease) both;
}

.hero__scroll-cue {
  position: absolute;
  bottom: clamp(1.5rem, 3vw, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 252, 246, 0.55);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: fadeIn 1.4s 1.6s var(--ease) both;
}

.hero__scroll-cue::after {
  content: "";
  width: 1px;
  height: 40px;
  background: var(--color-acacia);
  opacity: 0.55;
  animation: scrollPulse 2s 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%       { opacity: 0.7; transform: scaleY(1);   transform-origin: top; }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------------------------------------------------------
   2. SCALE STATS BAND
   --------------------------------------------------------- */
.stats-band {
  background: var(--color-sand);
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.stats-band__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 0;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-block: 0.5rem;
  padding-inline: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid rgba(27, 58, 47, 0.18);
}
.stat-card:first-child { border-left: none; padding-left: 0; }
.stat-card:first-child .stat-card__number { font-size: clamp(3.25rem, 5.5vw, 5.25rem); }

.stat-card__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-bushveld);
  font-variation-settings: "opsz" 144;
}

.stat-card__unit {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.375rem);
  font-weight: 300;
  color: var(--color-acacia);
  margin-left: 0.15em;
}

.stat-card__label {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--color-ash);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-card__rule { display: none; }

/* ---------------------------------------------------------
   3. MISSION / VISION SPLIT
   --------------------------------------------------------- */
.mission-section {
  padding-block: clamp(5rem, 9vw, 10rem);
  background: var(--color-cream);
}

.mission-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

.mission-col__quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-bushveld);
  margin-bottom: var(--space-5);
  font-variation-settings: "opsz" 72, "SOFT" 40;
  position: relative;
}

.mission-col__quote::before {
  content: "\201C";
  font-size: 5em;
  line-height: 0;
  position: absolute;
  top: 0.4em;
  left: -0.3em;
  color: var(--color-acacia);
  opacity: 0.3;
  font-family: var(--font-display);
}

.mission-col__body {
  font-size: var(--fs-lg);
  color: var(--color-ash);
  line-height: 1.7;
  max-width: 48ch;
}

/* ---------------------------------------------------------
   4. SEVEN PILLARS
   --------------------------------------------------------- */
.pillars-section {
  background: var(--color-bushveld-deep);
  padding-block: clamp(5rem, 9vw, 10rem);
}

.pillars-section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-9);
}

.pillars-section__heading {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  color: var(--color-bone);
  margin-bottom: var(--space-4);
  font-variation-settings: "opsz" 144;
}

.pillars-section__sub {
  color: rgba(255, 252, 246, 0.65);
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1.6;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  margin-bottom: var(--space-4);
}

/* Bottom row: 3 cards centered beneath the 4-column top row */
.pillars-grid--bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  max-width: calc(75% - clamp(0.75rem, 1.5vw, 1.25rem) * 0.25);
  margin: 0 auto var(--space-9);
}

.pillar-card {
  background: rgba(255, 252, 246, 0.04);
  border: 1px solid rgba(255, 252, 246, 0.08);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.pillar-card:focus-visible {
  outline: 2px solid var(--color-acacia);
  outline-offset: 3px;
}

.pillar-card:hover,
.pillar-card:focus-visible {
  background: rgba(255, 252, 246, 0.07);
  border-color: var(--color-acacia);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--color-acacia);
}

.pillar-card__number {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--color-acacia);
  letter-spacing: -0.02em;
  line-height: 1;
}

.pillar-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--color-bone);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.pillar-card__desc {
  font-size: var(--fs-sm);
  color: rgba(255, 252, 246, 0.58);
  line-height: 1.6;
  flex: 1;
}

.pillar-card__arrow {
  font-size: var(--fs-sm);
  color: var(--color-acacia);
  opacity: 0.35;
  transform: translateX(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  align-self: flex-start;
}

.pillar-card:hover .pillar-card__arrow,
.pillar-card:focus-visible .pillar-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

.pillars-section__cta {
  text-align: center;
}

/* ---------------------------------------------------------
   5. GLOBAL FOOTPRINT BAND
   --------------------------------------------------------- */
.footprint-section {
  background: var(--color-cream);
  padding-block: clamp(4rem, 7vw, 7rem);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.footprint-section__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.footprint-section__label {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-bushveld);
  letter-spacing: -0.015em;
}

.footprint-hubs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.footprint-hub {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: clamp(0.75rem, 1.5vw, 1.25rem) clamp(1rem, 2vw, 1.75rem);
  border-right: 1px solid var(--color-line);
}

.footprint-hub:last-child {
  border-right: none;
}

.footprint-hub__country {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 400;
  color: var(--color-bushveld);
  white-space: nowrap;
}

.footprint-hub__role {
  font-size: var(--fs-xs);
  color: var(--color-ash);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.footprint-budget {
  grid-column: 1 / -1;
  margin-top: var(--space-6);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--color-bushveld);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footprint-budget__figure {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--color-acacia-bright);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.footprint-budget__text {
  color: rgba(255, 252, 246, 0.78);
  font-size: var(--fs-lg);
  font-weight: 300;
  max-width: 52ch;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   6. CTA STRIP
   --------------------------------------------------------- */
.cta-strip {
  background: var(--color-bushveld-deep);
  padding-block: clamp(4.5rem, 8vw, 8rem);
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 120% at 50% 100%, rgba(201, 161, 74, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-strip__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-strip__heading {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 3.25rem);
  font-weight: 300;
  color: var(--color-bone);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  font-variation-settings: "opsz" 72;
}

.cta-strip__sub {
  font-size: var(--fs-lg);
  color: rgba(255, 252, 246, 0.65);
  font-weight: 300;
  margin-bottom: var(--space-7);
  line-height: 1.6;
}

.cta-strip__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Gold rule decorative element */
.gold-rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-acacia);
  border-radius: 2px;
  margin: var(--space-5) 0;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .stats-band__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--space-6);
  }
  .stat-card { border-left: none; padding-left: 0; }
  .stat-card:nth-child(even) { border-left: 1px solid rgba(27, 58, 47, 0.18); padding-left: clamp(1.5rem, 3vw, 3rem); }

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

  .pillars-grid--bottom {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
  }

  .footprint-section__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  .hero__headline {
    max-width: 100%;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__ctas .btn {
    align-self: flex-start;
  }

  .mission-section__inner {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .pillars-grid,
  .pillars-grid--bottom {
    grid-template-columns: 1fr 1fr;
  }

  .footprint-hubs {
    flex-direction: column;
  }

  .footprint-hub {
    border-right: none;
    border-bottom: 1px solid var(--color-line);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  .footprint-hub:last-child {
    border-bottom: none;
  }
}

@media (max-width: 540px) {
  .pillars-grid,
  .pillars-grid--bottom {
    grid-template-columns: 1fr;
  }

  .stats-band__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footprint-budget {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
}

/* ---------------------------------------------------------
   EXTRACTED INLINE STYLES
   --------------------------------------------------------- */
.mission-col__body--secondary {
  font-size: var(--fs-base);
  margin-top: 0;
}

.footprint-section__desc {
  font-size: var(--fs-sm);
  color: var(--color-ash);
  line-height: 1.7;
  max-width: 36ch;
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; transform: scale(1); }
  .hero__scroll-cue::after { animation: none; }
}

/* ---------------------------------------------------------
   GLOBAL NETWORK ATLAS (replaces hub grid)
   --------------------------------------------------------- */
.atlas-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footprint-section__desc {
  font-size: var(--fs-sm);
  color: var(--color-ash);
  line-height: 1.7;
  max-width: 40ch;
  margin-bottom: var(--space-6);
}
.atlas-svg { width: 100%; height: auto; overflow: visible; }
.atlas-dots circle { fill: rgba(255, 252, 246, 0.26); }
.arc {
  fill: none;
  stroke: rgba(201, 161, 74, 0.32);
  stroke-width: 0.9;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.arc--primary { stroke: rgba(224, 184, 96, 0.65); stroke-width: 1.3; }
.hub-dot { fill: rgba(255, 252, 246, 0.9); }
.hub-anchor .hub-core, .hub-dest .hub-core { fill: var(--color-acacia-bright); }
.hub-dest .hub-core { stroke: var(--color-bone); stroke-width: 1.2; }
.hub-anchor .hub-ring, .hub-dest .hub-ring {
  fill: none;
  stroke: rgba(224, 184, 96, 0.45);
  stroke-width: 1;
}
.atlas-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  fill: rgba(255, 252, 246, 0.6);
}
.atlas-label--primary { fill: var(--color-bone); font-weight: 600; }

.hub-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 2.5rem;
  counter-reset: none;
}
.hub-index li {
  display: grid;
  grid-template-columns: 2.6ch 1fr;
  gap: 0.9rem;
  border-top: 1px solid rgba(255, 252, 246, 0.14);
  padding-top: 0.7rem;
}
.hub-index__num {
  color: rgba(201, 161, 74, 0.8);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-sm);
}
.hub-index__country { color: var(--color-bone); font-size: var(--fs-sm); font-weight: 500; }
.hub-index__role {
  display: block;
  color: rgba(255, 252, 246, 0.5);
  font-size: 0.78em;
  font-weight: 400;
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .atlas-layout { grid-template-columns: 1fr; }
  .hub-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hub-index { grid-template-columns: 1fr; }
  .atlas-label { font-size: 14px; }
}

/* Atlas section goes dark (GPT-5.5 spec: editorial atlas on deep green) */
.footprint-section {
  background:
    radial-gradient(ellipse 60% 50% at 78% 38%, rgba(201, 161, 74, 0.10), transparent 70%),
    linear-gradient(180deg, #10261F 0%, #0C1D18 100%);
}
.footprint-section .footprint-section__label { color: var(--color-bone); }
.footprint-section .footprint-section__desc { color: rgba(255, 252, 246, 0.65); }
.footprint-section .footprint-budget {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}
.footprint-section .footprint-budget__figure {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--color-acacia-bright);
}
.footprint-section .footprint-budget__text {
  color: rgba(255, 252, 246, 0.6);
  font-size: var(--fs-sm);
  line-height: 1.65;
  max-width: 38ch;
  margin-top: var(--space-4);
}
