/* Homepage hero direction: a quiet, cinematic motion loop that keeps the copy easy to read. */
.hero {
  isolation: isolate;
  min-height: clamp(700px, 88svh, 860px);
  background: #18231f;
}

.hero-media {
  background: none;
  overflow: hidden;
  transform: translateZ(0);
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: -3%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform, opacity;
}

.hero-media::before {
  background-image: linear-gradient(90deg, rgba(6, 13, 11, .94) 0%, rgba(6, 13, 11, .65) 39%, rgba(6, 13, 11, .18) 100%), url('/assets/hero-desktop.png');
  animation: hero-drift-primary 30s ease-in-out infinite alternate;
}

.hero-media::after {
  background-image: linear-gradient(90deg, rgba(6, 13, 11, .97) 0%, rgba(6, 13, 11, .52) 48%, rgba(6, 13, 11, .22) 100%), url('/assets/service-commercial-hood-cleaning.png');
  opacity: 0;
  animation: hero-drift-secondary 32s ease-in-out infinite;
}

.hero-inner {
  padding-top: clamp(154px, 20vh, 198px);
  padding-bottom: clamp(72px, 10vh, 108px);
}

.hero h1 {
  max-width: 760px;
  text-wrap: balance;
}

.hero-copy {
  max-width: 560px;
  text-wrap: pretty;
}

.hero-actions .button--light {
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.hero-actions .button--light:hover,
.hero-actions .button--light:focus-visible {
  background: #fffaf0;
  transform: translateY(-3px);
}

.hero-actions .button--outline:hover,
.hero-actions .button--outline:focus-visible {
  color: var(--dark);
  background: rgba(244, 238, 226, .94);
  border-color: rgba(244, 238, 226, .94);
}

.hero-reassurance {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  line-height: 1.4;
}

.hero-reassurance::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #d6a16b;
  box-shadow: 0 0 0 4px rgba(214, 161, 107, .14);
}

.trust-line {
  max-width: 760px;
  gap: 14px 26px;
}

.trust-line span {
  position: relative;
}

.trust-line span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  position: absolute;
  top: 50%;
  left: -15px;
  border-radius: 50%;
  background: rgba(214, 161, 107, .8);
  transform: translateY(-50%);
}

@keyframes hero-drift-primary {
  0% { transform: scale(1.04) translate3d(-1%, 0, 0); }
  100% { transform: scale(1.1) translate3d(1%, -1%, 0); }
}

@keyframes hero-drift-secondary {
  0%, 42% { opacity: 0; transform: scale(1.1) translate3d(1%, 1%, 0); }
  54%, 83% { opacity: .78; transform: scale(1.04) translate3d(-1%, -1%, 0); }
  100% { opacity: 0; transform: scale(1.1) translate3d(1%, 1%, 0); }
}

@media (max-width: 768px) {
  .hero {
    min-height: max(700px, 100svh);
  }

  .hero-media::before {
    background-image: linear-gradient(180deg, rgba(6, 13, 11, .32) 0%, rgba(6, 13, 11, .68) 51%, rgba(6, 13, 11, .96) 100%), url('/assets/hero-mobile.png');
  }

  .hero-media::after {
    background-image: linear-gradient(180deg, rgba(6, 13, 11, .2) 0%, rgba(6, 13, 11, .66) 54%, rgba(6, 13, 11, .98) 100%), url('/assets/service-commercial-hood-cleaning.png');
  }

  .hero-inner {
    padding-top: 178px;
    padding-bottom: 48px;
  }

  .hero h1 {
    max-width: 430px;
  }

  .hero-copy {
    max-width: 430px;
    margin-top: 22px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 26px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-reassurance {
    justify-content: center;
    text-align: center;
  }

  .trust-line {
    gap: 11px 16px;
    margin-top: 40px;
    padding-top: 16px;
    line-height: 1.45;
  }

  .trust-line span + span::before {
    left: -10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media::before,
  .hero-media::after {
    animation: none;
  }

  .hero-media::after {
    display: none;
  }
}
