/*
 * =========================================================
 * BFB Hero Slider
 * =========================================================
 */

.bfb-hero-slider {
	position: relative;
	overflow: hidden;
}

.bfb-hero-slider .hero-slide {
	position: relative;
	min-height: 560px;
	overflow: hidden;
}


/*
 * =========================================================
 * Background media
 * =========================================================
 */

.bfb-hero-slider .hero-video-bg,
.bfb-hero-slider .hero-image-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
}

.bfb-hero-slider .hero-video-bg {
	object-fit: cover;
}

.bfb-hero-slider .hero-image-bg {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;

	/*
	 * Starting Ken Burns position.
	 */

	transform: scale(1.075);
	transform-origin: center center;
	transition: transform 6s ease-out;
	will-change: transform;
}

/*
 * Slowly zoom outward while the slide is active.
 */
.bfb-hero-slider .carousel.hero-kenburns-ready
.carousel-item.active
.hero-image-bg {
	transform: scale(1);
}

/*
 * =========================================================
 * Overlay
 * =========================================================
 */

.bfb-hero-slider .hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}


/*
 * =========================================================
 * Main content animation
 * =========================================================
 */

.bfb-hero-slider .hero-slide-content {
	position: relative;
	z-index: 2;
	opacity: 0;

	padding-left: 92px;
	padding-right: 92px;

	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);

	transition:
		opacity 0.7s ease,
		transform 0.7s ease;

	will-change: opacity, transform;
}

.bfb-hero-slider .hero-title {
	color: #fff;
}

/*
 * Starting position selected through ACF.
 */
.bfb-hero-slider .hero-animate-up {
	transform: translateY(28px);
}

.bfb-hero-slider .hero-animate-left {
	transform: translateX(-34px);
}

.bfb-hero-slider .hero-animate-right {
	transform: translateX(34px);
}

.bfb-hero-slider .hero-animate-fade {
	transform: none;
}

/*
 * Final active position.
 */
.bfb-hero-slider .carousel.hero-carousel-ready
.carousel-item.active
.hero-slide-content {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}


/*
 * =========================================================
 * Staggered content
 * =========================================================
 */

.bfb-hero-slider .hero-stagger-item {
	opacity: 0;
	transform: translateY(18px);

	transition:
		opacity 0.55s ease,
		transform 0.55s ease;

	will-change: opacity, transform;
}

.bfb-hero-slider .carousel.hero-carousel-ready
.carousel-item.active
.hero-stagger-item {
	opacity: 1;
	transform: translateY(0);
}

.bfb-hero-slider .carousel.hero-carousel-ready
.carousel-item.active
.hero-stagger-heading {
	transition-delay: 0.16s;
}

.bfb-hero-slider .carousel.hero-carousel-ready
.carousel-item.active
.hero-stagger-copy {
	transition-delay: 0.30s;
}

.bfb-hero-slider .carousel.hero-carousel-ready
.carousel-item.active
.hero-stagger-button {
	transition-delay: 0.44s;
}


/*
 * =========================================================
 * Previous and next controls
 * =========================================================
 */

.bfb-hero-slider .carousel-control-prev,
.bfb-hero-slider .carousel-control-next {
	top: 50%;
	bottom: auto;

	width: 48px;
	height: 48px;
	margin: 0 20px;

	border: 1px solid rgba(255, 255, 255, 0.58);
	border-radius: 50%;

	background: rgba(0, 0, 0, 0.28);
	opacity: 0.82;

	transform: translateY(-50%);

	transition:
		opacity 0.25s ease,
		background-color 0.25s ease,
		transform 0.25s ease;

	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.bfb-hero-slider .carousel-control-prev:hover,
.bfb-hero-slider .carousel-control-next:hover,
.bfb-hero-slider .carousel-control-prev:focus-visible,
.bfb-hero-slider .carousel-control-next:focus-visible {
	background: rgba(0, 0, 0, 0.52);
	opacity: 1;
	transform: translateY(-50%) scale(1.06);
}

.bfb-hero-slider .carousel-control-prev:focus-visible,
.bfb-hero-slider .carousel-control-next:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.bfb-hero-slider .carousel-control-prev-icon,
.bfb-hero-slider .carousel-control-next-icon {
	width: 1.15rem;
	height: 1.15rem;
}


/*
 * =========================================================
 * Dot indicators
 * =========================================================
 */

.bfb-hero-slider .bfb-hero-slider__indicators {
	bottom: 17px;
	z-index: 4;

	gap: 8px;
	margin-bottom: 0;
}

.bfb-hero-slider .bfb-hero-slider__indicators [data-bs-target] {
	box-sizing: border-box;

	width: 9px;
	height: 9px;
	margin: 0;
	padding: 0;

	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;

	background-color: transparent;
	background-clip: border-box;

	opacity: 0.75;

	transition:
		background-color 0.25s ease,
		opacity 0.25s ease,
		transform 0.25s ease;
}

.bfb-hero-slider
.bfb-hero-slider__indicators
[data-bs-target]:hover,
.bfb-hero-slider
.bfb-hero-slider__indicators
[data-bs-target]:focus-visible {
	opacity: 1;
	transform: scale(1.2);
}

.bfb-hero-slider .bfb-hero-slider__indicators .active {
	background-color: #fff;
	opacity: 1;
	transform: scale(1.15);
}

.bfb-hero-slider
.bfb-hero-slider__indicators
[data-bs-target]:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}


/*
 * =========================================================
 * Tablet and mobile
 * =========================================================
 */
@media (max-width: 991.98px) {
	.bfb-hero-slider .hero-slide-content {
		padding-left: 60px;
		padding-right: 60px;
	}
}


@media (max-width: 767.98px) {
	.bfb-hero-slider .hero-slide {
		min-height: 460px;
	}

	.bfb-hero-slider .carousel-control-prev,
	.bfb-hero-slider .carousel-control-next {
		width: 40px;
		height: 40px;
		margin: 0 10px;
	}

	.bfb-hero-slider .carousel-control-prev-icon,
	.bfb-hero-slider .carousel-control-next-icon {
		width: 0.95rem;
		height: 0.95rem;
	}

	.bfb-hero-slider .bfb-hero-slider__indicators {
		bottom: 12px;
	}

	.bfb-hero-slider .hero-slide-content {
		padding-left: 44px;
		padding-right: 44px;
	}

	.bfb-hero-slider .hero-title {
		font-size: clamp(2.2rem, 9vw, 3rem);
		line-height: .95;
	}

	.bfb-hero-slider .hero-content {
		font-size: 1.1rem;
		max-width: 20rem;
	}

	.bfb-hero-slider .hero-button {
		font-size: 1.1rem;
		padding: .75rem 1.5rem;
	}


}


/*
 * =========================================================
 * Reduced motion
 * =========================================================
 */

@media (prefers-reduced-motion: reduce) {
	.bfb-hero-slider .hero-slide-content,
	.bfb-hero-slider .hero-stagger-item,
	.bfb-hero-slider .hero-image-bg {
		opacity: 1;
		transform: none;
		transition: none;
	}
}


