.hero-section {
  position: relative;
  overflow: hidden;
  padding-block: 3rem;

  @media (width >= 56.25rem) {
    min-height: 70vh;
  }

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      var(--image-overlay),
      var(--bg-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.1);
    animation: bg-zoom 0.5s ease-out both;
  }
}

main:has(.hero-section) {
  margin-top: 0;
}

.hero-section .container {
  row-gap: 2rem;

  @media (width >= 56.25rem) {
    row-gap: 4rem;
  }
}

.hero-section hgroup {
  max-width: 40rem;
  justify-self: center;
}

.hero-section .hero-title,
.hero-section .hero-subtitle,
.hero-section .button {
  animation: fade-in-up 0.6s ease-out both;
  animation-delay: 0.5s;
}

.hero-section .button {
  justify-self: center;
  animation-delay: 0.7s;
  width: 100%;

  @media (width >= 56.25rem) {
    width: fit-content;
  }
}

.hero-section .button-container {
  justify-self: center;
  height: fit-content;
}

.hero-section .button-container .button {
  height: fit-content;
}