/* ══════════════════════════════════════════
   Hero
   ══════════════════════════════════════════ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 100px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero/hero-main.png');
  /* fallback for no-webp handled by webp-swap.js */
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
  width: 100%;
}

/* ── Eyebrow (white on dark bg) ── */

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

/* ── Headline ── */

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6.5vw, 88px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 3rem;
  max-width: 18ch;
}

/* ── Bottom row ── */

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.hero__lead {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  max-width: 38ch;
  margin: 0;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* ── Scroll indicator ── */

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  will-change: transform;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    top: -100%;
  }

  50% {
    top: 0%;
  }

  100% {
    top: 100%;
  }
}

/* ══════════════════════════════════════════
   Tablet — 768px to 1023px
   ══════════════════════════════════════════ */

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__container {
    padding-bottom: 60px;
  }

  .hero__headline {
    font-size: clamp(42px, 5.5vw, 64px);
    margin-bottom: 2.5rem;
  }

  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .hero__lead {
    font-size: 15px;
  }

  .hero__actions {
    flex-direction: row;
  }
}

/* ══════════════════════════════════════════
   Mobile — below 768px
   ══════════════════════════════════════════ */

@media (max-width: 767px) {
  .hero {
    align-items: flex-end;
    min-height: 100svh;
  }

  .hero__container {
    padding-bottom: 48px;
  }

  .hero__headline {
    font-size: clamp(36px, 9vw, 52px);
    margin-bottom: 2rem;
  }

  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__lead {
    font-size: 15px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .btn--lime,
  .btn--ghost {
    width: 100%;
    justify-content: center;
  }

  .hero__scroll-indicator {
    display: none;
  }
}

/* ══════════════════════════════════════════
   Small phones — below 400px
   ══════════════════════════════════════════ */

@media (max-width: 400px) {
  .hero__container {
    padding-bottom: 36px;
  }

  .hero__headline {
    font-size: 32px;
    margin-bottom: 1.5rem;
  }

  .hero .eyebrow {
    font-size: 10px;
    margin-bottom: 1rem;
  }

  .hero__lead {
    font-size: 14px;
  }
}