/* ============================================================
   IDF Kenya — home.css
   Homepage-only styles. index.html is the only consumer.

   HTML structure this file styles:
     <section class="hero">
       <img class="hero-bg-img">
       <div class="hero-overlay">
       <div class="hero-content">
         <div class="hero-inner">
           <span class="hero-eyebrow">
           <h1> ... <em>
           <p class="hero-sub">
           <div class="hero-actions">
           <div class="hero-impact">
             <div class="hero-impact-stat">
               <span class="hero-impact-number">
               <span class="hero-impact-label">

   Shared components (stat cards, project cards, partners,
   quote, CTA, about grid) live in global.css — not here.
   ============================================================ */


/* ============================================================
   1. HERO CONTAINER
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background-color: var(--idf-navy-dark);
}


/* ============================================================
   2. BACKGROUND IMAGE
   ============================================================ */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
  will-change: transform;
}


/* ============================================================
   3. GRADIENT OVERLAY
   ============================================================ */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    108deg,
    rgba(11,  20,  38,  0.92) 0%,
    rgba(27,  46,  75,  0.72) 40%,
    rgba(27,  46,  75,  0.28) 100%
  );
}


/* ============================================================
   4. CONTENT LAYER
   ============================================================ */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.hero-inner {
  max-width: 780px;
  margin-top: 60px;
}


/* ============================================================
   5. ENTRANCE ANIMATIONS
   ============================================================ */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow { animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
  .hero h1      { animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both; }
  .hero-sub     { animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both; }
  .hero-actions { animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.68s both; }
  .hero-impact  { animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both; }
}


/* ============================================================
   6. TYPOGRAPHY
   ============================================================ */
.hero-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--idf-blue-light);
  margin-bottom: 14px;
  background: transparent;
  border: none;
  padding: 0;
}

.hero-eyebrow::before { display: none; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--idf-white);
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero h1 em {
  color: var(--idf-blue-light);
  font-style: italic;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.76);
  max-width: 600px;
  line-height: 1.75;
  margin: 0 0 clamp(25px, 4vh, 40px) 0;
}


/* ============================================================
   7. CTA BUTTONS
   ============================================================ */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .btn-primary {
  padding: 14px 32px;
  font-size: 0.9rem;
}

.hero .btn-outline-white {
  padding: 13px 32px;
  font-size: 0.9rem;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.70);
}


/* ============================================================
   8. HERO IMPACT STRIP
   ============================================================ */
.hero-impact {
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 5vw, 56px);
  margin-top: clamp(36px, 6vh, 56px);
  padding-top: clamp(20px, 3vh, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-impact-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-impact-stat + .hero-impact-stat {
  padding-left: clamp(28px, 5vw, 56px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-impact-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--idf-white);
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero-impact-number sup {
  font-size: 0.55em;
  color: var(--idf-green-light);
  vertical-align: super;
  font-weight: 600;
}

.hero-impact-label {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}


/* ============================================================
   9. DECORATIVE ACCENT LINE
   ============================================================ */
.hero-accent-line {
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 3px;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    transparent                  0%,
    var(--idf-green)            30%,
    var(--idf-green)            70%,
    transparent                100%
  );
  border-radius: 0 2px 2px 0;
}


/* ============================================================
   10. SCROLL INDICATOR
   ============================================================ */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-scroll { animation: heroBounce 2s ease-in-out infinite; }
}

@keyframes heroBounce {
  0%, 100% { transform: translate(-50%, 0);    }
  50%       { transform: translate(-50%, 10px); }
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}


/* ============================================================
   11. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-accent-line { display: none; }

  .hero-inner {
    margin-top: 40px;
    text-align: center;
  }

  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-sub     { max-width: 100%; }
  .hero-scroll  { display: none; }

  .hero-impact {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-impact-stat + .hero-impact-stat {
    padding-left: 20px;
  }

  .hero-impact-number { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .hero-actions {
    gap: 12px;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-impact {
    gap: 0;
    flex-direction: column;
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .hero-impact-stat + .hero-impact-stat {
    padding-left: 0;
    padding-top: 16px;
    margin-top: 16px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-eyebrow { font-size: 0.65rem; }
  .hero-scroll  { display: none; }
}

/* ── Shared components — home-page responsive overrides ──
   (moved from global.css; these components render on index.html only) */

/* Stats */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Projects */
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* About grid */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-deco { display: none; }
  .award-card { left: 1rem; }
}
