/**
 * Full-bleed rotating banner hero with title overlay.
 * Rendered by templates/bo-hero-banner.html.twig; driven by js/hero-banner.js.
 * Full-bleed via the 100vw break-out so it fills edge to edge even though it
 * renders inside Olivero's constrained content region.
 */

.bo-hero {
  position: relative;
  z-index: 0; /* keep the image behind Olivero's left bar / sticky toggle */
  width: 100vw;
  margin-inline-start: calc(50% - 50vw);
  margin-block: 0 1.5rem;
  height: clamp(190px, 32vw, 400px);
  overflow: hidden;
  background: var(--bo-ink, #1a1613);
}

/* Wide screens: the layout reserves --content-left on the left (Olivero's
   sticky-header / social bar). Break the image out over it to the true left
   edge — edge-to-edge, behind that bar — using Olivero's own gutter idiom. */
@media (min-width: 75rem) {
  .bo-hero {
    width: calc(100% + var(--content-left, 5.625rem));
    margin-inline-start: calc(-1 * var(--content-left, 5.625rem));
  }
}

.bo-hero__slides,
.bo-hero__slides .bo-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bo-hero__img {
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}

.bo-hero__img.is-active {
  opacity: 1;
}

/* Single-image hero: always shown. */
.bo-hero:not(.bo-hero--rotating) .bo-hero__img {
  opacity: 1;
}

/* Readability scrim + overlaid title. */
.bo-hero__scrim {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 3.5rem clamp(1.25rem, 5vw, 4rem) clamp(1.1rem, 3vw, 2.25rem);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  pointer-events: none;
}

/* Wide screens: inset the wording past the left bar so it clears it. */
@media (min-width: 75rem) {
  .bo-hero__scrim {
    padding-inline-start: calc(var(--content-left, 5.625rem) + clamp(1rem, 3vw, 2.5rem));
  }
}

.bo-hero__title {
  margin: 0;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 600;
  line-height: 1.05;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.bo-hero__subtitle {
  margin: 0.4rem 0 0;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Dots. */
.bo-hero__dots {
  position: absolute;
  inset-block-end: 0.9rem;
  inset-inline-end: clamp(1rem, 5vw, 4rem);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.bo-hero__dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 200ms ease;
}

.bo-hero__dot.is-active,
.bo-hero__dot:hover {
  background: var(--bo-orange, #cb6015);
  border-color: var(--bo-orange, #cb6015);
}

@media (prefers-reduced-motion: reduce) {
  .bo-hero__img {
    transition: none;
  }
}

/* When the hero is present, collapse Olivero's large top padding above the
   breadcrumb — the hero already provides the top separation. */
body.has-bo-hero .main-content__container {
  padding-block-start: 1.25rem;
}

/* The highlighted region (page title / status messages) is all hidden on a
   public hero page, but still takes a grid row above the breadcrumb — remove it
   so the breadcrumb + content sit right under the banner. */
body.has-bo-hero .main-content__container > .region--highlighted {
  display: none;
}

