/*
 * Corporate front page: hero video, background blur and carousel.
 * Moved from the theme SCSS. Mobile breakpoint matches Bootstrap 5's
 * media-breakpoint-down(md) and the 768px check in js/carousel.js.
 */

.path-frontpage .introduction {
  font-size: 20px;
}

/* Hero
   ========================================================================== */

.path-frontpage .header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  background: #0a0a0a;
}

/* Blurred copy behind the main video (desktop only; added by the JS). */
.path-frontpage .header .hero-video-bg {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  object-fit: cover;
  filter: blur(30px) brightness(0.4);
  transform: scale(1.1);
}

.path-frontpage .header .hero-video-main {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Carousel
   ==========================================================================
   The wrappers use display: contents so they add no boxes: each video is
   laid out as if it sat directly in .header, like the single video does. */

.cf-carousel,
.cf-carousel__slide {
  display: contents;
}

/* Only the current video is shown. */
.cf-carousel__slide:not(.is-active) {
  display: none;
}

.cf-carousel__prev,
.cf-carousel__next {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.cf-carousel__prev { left: 16px; }
.cf-carousel__next { right: 16px; }

.cf-carousel__dots {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cf-carousel__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.cf-carousel__dot[aria-current="true"] {
  background: #fff;
}

/* Mobile
   ========================================================================== */

@media (max-width: 767.98px) {
  .path-frontpage .header {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .path-frontpage .header .hero-video-main {
    width: 100%;
    height: auto;
    object-fit: unset;
  }
}
