/* =========================================
   Linda Mwananchi Diaspora USA — Home Hero
   ========================================= */

:root {
  --nav-h: 96px;
  --hero-blue: #2eb3f8;
  --hero-blue-dark: #287cf3;
  --hero-red: #9e0d0b;
  --hero-red-dark: #7c0908;
}

/* Hide the shared floating actions on the homepage */

body.is-home .floating-action,
body.is-home .floating-contribute,
body.is-home .floating-volunteer {
  display: none;
}

/* =========================================
   Hero layout
   ========================================= */

.hero-landing,
.hero-landing * {
  box-sizing: border-box;
}

.hero-landing {
  position: relative;
  isolation: isolate;

  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;

  padding:
    calc(var(--nav-h, 96px) + clamp(1.5rem, 4vh, 4rem))
    clamp(1rem, 4vw, 4rem)
    clamp(2.5rem, 6vh, 5rem);

  overflow: hidden;

  color: #ffffff;
  background: #000000;

  text-align: center;
}

/* =========================================
   Background and overlay
   ========================================= */

.hero-image {
  position: absolute;
  z-index: -2;
  inset: 0;

  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.24) 0%,
      rgba(0, 0, 0, 0.38) 45%,
      rgba(0, 0, 0, 0.76) 100%
    );
}

/* =========================================
   Hero content
   ========================================= */

.hero-content {
  width: min(100%, 1000px);
  margin: 0 auto;
}

.hero-title {
  margin: 0 0 clamp(0.85rem, 2vw, 1.25rem);

  color: #ffffff;

  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;

  text-wrap: balance;
}

.hero-copy {
  display: grid;
  width: min(100%, 850px);
  gap: clamp(0.75rem, 1.5vw, 1.1rem);

  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
}

.hero-subtitle {
  margin: 0;

  color: rgba(255, 255, 255, 0.9);

  font-family: Geneva, Tahoma, Verdana, sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;

  text-wrap: pretty;
}

/* =========================================
   Hero actions
   ========================================= */

.hero-actions {
  display: flex;
  width: 100%;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.hero-btn {
  display: inline-flex;
  min-width: 185px;
  min-height: 50px;
  align-items: center;
  justify-content: center;

  padding: 0.8rem 1.5rem;

  border: 2px solid transparent;
  border-radius: 999px;

  font-family: Geneva, Tahoma, Verdana, sans-serif;
  font-size: clamp(0.82rem, 1vw, 0.98rem);
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

/* Primary action */

.hero-btn-primary {
  color: #07111b;
  background: var(--hero-blue);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.34);
}

.hero-btn-primary:hover,
.hero-btn-primary:focus-visible {
  color: #ffffff;
  background: var(--hero-blue-dark);
}

/* Contribution action */

.hero-btn-contribute {
  color: #ffffff;
  background: var(--hero-red);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.34);
}

.hero-btn-contribute:hover,
.hero-btn-contribute:focus-visible {
  color: #ffffff;
  background: var(--hero-red-dark);
}

/* Volunteer action */

.hero-btn-ghost {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.12);
  border-color: var(--hero-blue);
  backdrop-filter: blur(2px);
}

.hero-btn-ghost:hover,
.hero-btn-ghost:focus-visible {
  color: #07111b;
  background: var(--hero-blue);
  border-color: var(--hero-blue);
}

/* =========================================
   Who We Are strategy list
   ========================================= */

.wwa__strategy-list {
  width: min(100%, 920px);

  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
  padding-left: 1.5rem;

  text-align: left;
}

.wwa__strategy-list li {
  margin-bottom: 0.55rem;
  line-height: 1.6;
}

/* =========================================
   Medium screens
   ========================================= */

@media (max-width: 900px) {
  .hero-landing {
    padding:
      calc(var(--nav-h, 72px) + 1.5rem)
      1.25rem
      3rem;
  }

  .hero-content {
    width: min(100%, 760px);
  }

  .hero-actions {
    gap: 0.8rem;
  }

  .hero-btn {
    min-width: 0;
    flex: 1 1 210px;
    max-width: 300px;
  }
}

/* =========================================
   Mobile screens
   ========================================= */

@media (max-width: 600px) {
  .hero-landing {
    min-height: 100svh;

    padding:
      calc(var(--nav-h, 72px) + 1rem)
      1rem
      2.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-copy {
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: clamp(0.92rem, 4vw, 1rem);
    line-height: 1.5;
  }

  .hero-actions {
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .hero-btn {
    width: min(100%, 320px);
    min-height: 48px;
    flex: 0 0 auto;

    padding-right: 1rem;
    padding-left: 1rem;
  }
}

/* =========================================
   Very small phones
   ========================================= */

@media (max-width: 380px) {
  .hero-landing {
    padding-right: 0.75rem;
    padding-bottom: 2rem;
    padding-left: 0.75rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .hero-btn {
    min-height: 46px;

    font-size: 0.78rem;
  }
}

/* =========================================
   Reduced motion
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  .hero-btn {
    transition-duration: 0.01ms;
  }

  .hero-btn:hover {
    transform: none;
  }
}
