.hero {
  position: relative;
  width: 100%;
  background: var(--color-bg-primary);
}

.hero__image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(7, 11, 29, 0.1) 0%, rgba(7, 11, 29, 0.55) 55%, rgba(7, 11, 29, 0.94) 100%);
}

.hero__content {
  padding-block: 1.5rem clamp(1.5rem, 4vw, 3rem);
  max-width: 46rem;
}

.hero__breadcrumb {
  margin-block-end: 0.75rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  margin-block-end: 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent-yellow);
  color: var(--color-text-on-light-btn);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-semibold);
}

.hero__badge-star {
  color: var(--color-btn-accent-end);
}

.hero__title {
  margin-block-end: 0.75rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  color: var(--color-white);
  font-size: 1rem;
  max-width: 42rem;
  margin-block-end: 1.25rem;
}

.hero__cta {
  padding: 1rem 2rem;
}

@media (min-width: 768px) {
  .hero__content {
    padding-block: 2rem clamp(2rem, 5vw, 4rem);
  }
}

/*
 * Mobile: the banner image is just a background behind the H1/rating/
 * subtitle/button — it no longer needs to stay whole, so it's absolutely
 * positioned behind the text and cropped with object-fit: cover.
 *
 * The height comes from min-height, not a fixed aspect-ratio: a fixed
 * ratio combined with the (also absolutely-positioned, from the base
 * rule) .hero__overlay clipped any H1 longer than ~2 lines, since the
 * overlay's box could never grow past that fixed height. min-height
 * gives short content the same compact background, while .hero__overlay
 * goes back to normal flow here so long titles simply make the section
 * (and the image behind it) taller instead of being cut off.
 */
@media (max-width: 767px) {
  .hero {
    min-height: 20rem;
    overflow: hidden;
  }

  .hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero__overlay {
    position: relative;
    inset: auto;
    min-height: 20rem;
  }
}
