/* ==========================================================================
   KiteLine Lawn Care — Homepage Hero
   Full-bleed photo behind the hero AND the transparent nav above it.
   ========================================================================== */

.kl-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--kl-evergreen);
  margin-top: -92px;
  transition: margin-top 0.25s var(--kl-ease);
}

.kl-header.is-scrolled ~ .kl-hero {
  margin-top: -68px;
}

.kl-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: -3;
}

.kl-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(6, 63, 50, 0.48);
}

.kl-hero__scrim--top {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(6, 63, 50, 0.4) 0%, rgba(6, 63, 50, 0) 190px);
}

.kl-hero__inner {
  max-width: var(--kl-max-width);
  margin: 0 auto;
  padding: 0 var(--kl-gutter);
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kl-hero__content {
  max-width: 640px;
  padding: 140px 0 96px;
  text-align: center;
}

.kl-hero__eyebrow {
  font-family: var(--kl-font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kl-gold);
  margin: 0 0 20px;
  text-shadow: 0 1px 12px rgba(6, 63, 50, 0.6);
}

.kl-hero__headline {
  margin: 0 0 32px;
  font-family: var(--kl-font-display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--kl-warm-white);
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(6, 63, 50, 0.45);
}

.kl-hero__copy {
  max-width: 420px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(245, 243, 236, 0.88);
  text-shadow: 0 2px 16px rgba(6, 63, 50, 0.5);
}

.kl-hero__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.kl-hero__microcopy {
  margin: 0;
  font-family: var(--kl-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 243, 236, 0.72);
  text-shadow: 0 1px 12px rgba(6, 63, 50, 0.6);
}

/* ---- Entrance motion: content rises in on load, eyebrow leads --------------- */

@keyframes kl-hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kl-hero__eyebrow,
.kl-hero__headline,
.kl-hero__copy,
.kl-hero__action {
  animation: kl-hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.kl-hero__headline {
  animation-delay: 0.08s;
}

.kl-hero__copy {
  animation-delay: 0.16s;
}

.kl-hero__action {
  animation-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .kl-hero__eyebrow,
  .kl-hero__headline,
  .kl-hero__copy,
  .kl-hero__action {
    animation: none;
  }
}

/* ---- Location-page variant: adds a breadcrumb and an inline address teaser -- */

.kl-hero--location .kl-hero__content {
  max-width: 580px;
}

.kl-hero__start-here {
  margin: 0 0 18px;
  font-family: var(--kl-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kl-gold);
  text-shadow: 0 1px 12px rgba(6, 63, 50, 0.6);
}

.kl-hero__start-here-arrow {
  display: inline-block;
  margin-left: 6px;
}

.kl-hero__funnel {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.kl-hero__funnel .kl-final__field-label {
  text-align: center;
}

.kl-hero__funnel .kl-final__checker-row {
  background: rgba(245, 243, 236, 0.1);
}

.kl-hero__funnel .kl-final__microcopy {
  margin-top: 20px;
}

/* ---- Shared button — large modifier for hero scale ------------------------ */

.kl-btn--large {
  padding: 8px 8px 8px 28px;
  font-size: 14px;
}

.kl-btn--large .kl-btn__arrow {
  width: 44px;
  height: 44px;
  font-size: 16px;
}

/* ---- Responsive ------------------------------------------------------------ */

@media (max-width: 640px) {
  .kl-hero__content {
    padding: 128px 0 72px;
  }

  .kl-hero__headline {
    font-size: clamp(34px, 11vw, 52px);
  }

  .kl-hero__copy {
    font-size: 16px;
  }

  .kl-hero__action {
    width: 100%;
  }

  .kl-hero__action .kl-btn--large {
    width: 100%;
    justify-content: center;
  }
}
