/* ==========================================================================
   Hero banner block
   The banner image is a full-width background behind the H1/rating/text
   block — it is sized to fill whatever height the content needs, so the
   heading, rating badge and subtitle are always fully visible on top of it.
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(38, 0, 47, 0.55) 0%,
    rgba(38, 0, 47, 0.68) 55%,
    rgba(38, 0, 47, 0.92) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  padding-block: clamp(2.5rem, 12vw, 4rem);
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.hero__breadcrumbs {
  margin-block-end: 0.25rem;
}

.hero__breadcrumbs .breadcrumbs__list {
  justify-content: center;
}

.hero__breadcrumbs .breadcrumbs__link,
.hero__breadcrumbs .breadcrumbs__current {
  color: var(--color-white);
}

.hero__rating {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--color-accent-light);
  color: var(--color-btn-text-dark);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-card);
}

.hero__title {
  color: var(--color-white);
  max-width: 40ch;
  margin-inline: auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  max-width: 55ch;
  color: var(--color-white);
  font-size: var(--fs-body);
  margin-inline: auto;
  margin-block-end: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero__cta {
  align-self: center;
  margin-block-start: 0.5rem;
}

@media (min-width: 48em) {
  .hero__content {
    padding-block: clamp(3rem, 8vw, 5rem);
  }
}
