

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
  overflow: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__bg,
.hero__bg img,
.hero__bg picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__bg img {
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-lg);
}

.hero :is(h1, h2) {
  color: var(--color-white);
  font-size: 6.875rem;
  line-height: 1.1;
  text-shadow: none;

  margin-bottom: 0;
}

.hero p {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-white);
  margin-top: -0.125rem;
  margin-bottom: 0;
  letter-spacing: 0.02em;
}

.hero .btn {
  margin-top: var(--space-2xl);
}

@media (min-width: 1400px) {
  .hero {
    align-items: flex-start;
    padding-top: 14rem;
  }
}

@media (max-width: 1399px) {

  .hero {
    min-height: 80vh;
    align-items: flex-start;
    padding-top: 7.5rem;
  }
  .hero :is(h1, h2) {
    font-size: 4rem;
  }
  .hero p {
    font-size: 1.15rem;
  }
  .hero .btn {
    margin-top: var(--space-xl);
  }
}

@media (max-height: 500px) {
  .hero {
    min-height: 100vh;
    padding-top: var(--space-3xl);
  }
  .hero :is(h1, h2) {
    font-size: 2.6rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero .btn {
    margin-top: var(--space-md);
  }
}

@media (max-width: 767px) {

  .hero {
    align-items: flex-start;
    padding-top: 5.5rem;
  }
  .hero :is(h1, h2) {
    font-size: 1.35rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero .btn {
    margin-top: var(--space-lg);
  }
}

.hero--left {
  text-align: left;
  align-items: center;
  justify-content: flex-start;
}
.hero--left .hero__content {
  max-width: 68%;
  padding-inline: clamp(2rem, 6vw, 6rem);
}
.hero--left :is(h1, h2) {
  font-size: 5.5rem;
  white-space: nowrap;
}
@media (min-width: 1400px) {
  .hero--left {
    align-items: center;
    padding-top: 0;
  }
}
@media (max-width: 1399px) {
  .hero--left {
    align-items: center;
    padding-top: 0;
  }
  .hero--left :is(h1, h2) {
    font-size: 3.4rem;
  }
}
@media (max-width: 767px) {
  .hero--left {
    align-items: center;
    padding-top: 0;
  }
  .hero--left .hero__content {
    padding-inline: 1.5rem;
  }
  .hero--left :is(h1, h2) {
    font-size: 1.6rem;
  }
}

.hero--centered { align-items: center; }
@media (min-width: 1400px) { .hero--centered { align-items: center; padding-top: 0; } }
@media (max-width: 1399px) { .hero--centered { align-items: center; padding-top: 0; } }
@media (max-width: 767px)  { .hero--centered { align-items: center; padding-top: 0; } }
