/* ============================================================
   Hero block
   ============================================================ */
/* Mobile-first: the hero image is a pure cropped background (object-fit:
   cover, absolutely filling the section) behind the centred content —
   the CONTENT stays in normal flow and dictates the section's height
   (min-height is only a floor), so the image crops to fit it and the
   badge/title/subtitle/button can never be clipped by the section's
   overflow:hidden, however long the copy is on a given page.
   From tablet width up we switch back to the original layout: the image
   goes back in-flow at its natural (whole, uncropped) height and the
   content overlays it, absolutely centred on top. */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Uniform darkening (rather than the old bottom-heavy gradient) so the
   horizontally- and vertically-centred title stays readable no matter
   where it lands over the image. */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 29, 0.55) 0%, rgba(7, 11, 29, 0.68) 50%, rgba(7, 11, 29, 0.8) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(2rem, 1.5rem + 3vw, 3rem);
}
.hero__content .container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    display: block;
    min-height: 0;
  }
  .hero__media {
    position: relative;
    inset: auto;
  }
  .hero__media img {
    height: auto;
    object-fit: fill;
  }
  .hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-block: 0;
  }
}

.hero__content .breadcrumb { justify-content: center; color: rgba(255, 255, 255, 0.75); }
.hero__content .breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.hero__content .breadcrumb a:hover { color: var(--color-accent-light); }

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(7, 11, 29, 0.55);
  border: var(--border-width) solid var(--color-border-muted);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 0.85rem;
  font-size: var(--font-size-small);
}
.hero__stars { color: var(--color-accent-light); letter-spacing: 1px; }
.hero__rating-text { color: var(--color-white); font-weight: var(--font-weight-medium); }

.hero__title {
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: 0.75rem;
}
.hero__subtitle {
  max-width: 38rem;
  margin-inline: auto;
  color: var(--color-white);
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.15rem);
  margin-bottom: 1.5rem;
}

.hero__cta { margin-top: 0.25rem; }

@media (min-width: 1024px) {
  .hero__title { max-width: 52rem; }
}
