/*
 * Homepage hero — full-width editorial layout
 * ----------------------------------------------------------------------
 *
 * Loaded after site.css so these rules only reshape the homepage hero.
 * The existing carousel JavaScript can stay unchanged.
 */

.hero-home {
  padding-top: 3rem;
  padding-bottom: 4.5rem;
}

.hero-home-layout {
  display: block;
}

.hero-home-heading {
  max-width: 1120px;
  margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
}

.hero-home .hero-copy h1 {
  max-width: 1100px;
  margin-bottom: 0;
  font-size: clamp(3.2rem, 6vw, 6rem);
  line-height: 0.98;
  text-wrap: balance;
}

.hero-home-media {
  width: 100%;
}

.hero-home .hero-carousel {
  position: relative;
  width: 100%;
  max-width: none;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: clamp(1.25rem, 2vw, 2rem);
}

.hero-home .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-home .hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-home-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* .hero-home-footer .lead {
  max-width: 760px;
  margin: 0;
} */

.hero-home-footer .hero-actions {
  margin: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/*
 * Tablet
 */

@media (max-width: 900px) {
  .hero-home {
    padding-block: 3.5rem 4.5rem;
  }

  .hero-home .hero-copy h1 {
    max-width: 800px;
    font-size: clamp(3rem, 8vw, 5rem);
  }

  .hero-home .hero-carousel {
    aspect-ratio: 16 / 9;
  }

  .hero-home-footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-home-footer .hero-actions {
    justify-content: flex-start;
  }
}

/*
 * Mobile
 */

@media (max-width: 600px) {
  .hero-home {
    padding-block: 2rem 3.5rem;
  }

  .hero-home-heading {
    margin-bottom: 1.5rem;
  }

  .hero-home .hero-copy h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
    line-height: 1;
  }

  .hero-home .hero-carousel {
    aspect-ratio: 4 / 3;
    border-radius: 1.25rem;
  }

  .hero-home-footer {
    margin-top: 1.25rem;
  }

  .hero-home-footer .hero-actions {
    width: 100%;
  }
}
