/* ==========================================================================
   Hero block — full-bleed banner image with breadcrumbs, rating badge, H1,
   subtitle and CTA centered on top of it.

   The box is pinned to the banner image's own aspect ratio (1360:370), so
   from ~1360px viewport width up the image fills the section edge to edge
   with no empty bars on either side. Below that width the ratio-derived
   height would get too short for the overlaid text, so min-height takes
   over as a floor — the image just letterboxes top/bottom there (never
   left/right, and never cropped), which is fine since object-fit: contain
   always shows it whole.

   On mobile (<768px) the banner is just decorative background for the
   overlaid text — object-fit switches to cover so it always fills the box
   completely (no letterboxing), cropping whatever doesn't fit.
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1360 / 370;
  min-height: clamp(22.5rem, 40vw, 23.125rem);
  overflow: hidden;
  background: var(--color-bg-dark);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 20, 22, 0.62) 0%, rgba(6, 20, 22, 0.28) 32%, rgba(6, 20, 22, 0.28) 68%, rgba(6, 20, 22, 0.64) 100%),
    radial-gradient(55% 85% at 50% 50%, rgba(6, 20, 22, 0.42) 0%, rgba(6, 20, 22, 0) 100%);
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.55rem;
  padding-block: 1.5rem;
}

.hero__content .breadcrumbs {
  color: var(--color-text-primary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

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

.hero__rating {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero__title {
  line-height: var(--line-height-hero);
  max-width: 44rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.hero__subtitle {
  color: var(--color-text-primary);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
  max-width: 38rem;
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero__cta {
  margin-top: 0.35rem;
  width: fit-content;
}

@media (max-width: 767px) {
  .hero__img {
    object-fit: cover;
  }
}

@media (min-width: 640px) {
  .hero__content {
    gap: 0.75rem;
    padding-block: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero__content {
    gap: 1rem;
  }
}
