/**
 * Homepage hero styles - RENDER-BLOCKING (front page only)
 *
 * @format
 */

/* HERO */
.hero {
	width: 100%;
	height: 100dvh;
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	align-content: flex-end;
	padding-bottom: 35px;
	min-height: 500px;
	border-bottom: 11px solid var(--color-primary);
}

.hero-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.hero-image:after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--color-blue);
	opacity: 0.23;
}

.hero-image:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
	opacity: 0.4;
	z-index: 11;
}

.hero-image img,
.hero-image video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hero-video-poster,
.hero-video {
	position: absolute;
	top: 0;
	left: 0;
}

.hero-video-poster {
	z-index: 1;
	object-position: center;
	transition: opacity 0.45s ease;
}

.hero-video-poster.is-hidden {
	opacity: 0;
}

.hero-video {
	z-index: 0;
	opacity: 0;
	object-position: center;
	transition: opacity 0.45s ease;
}

.hero-video.is-ready {
	opacity: 1;
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	.hero-video-poster,
	.hero-video {
		transition: none;
	}
}

.hero-content {
	width: 100%;
	position: relative;
	z-index: 2;
	text-align: center;
}

.hero-title {
	line-height: 1.2;
	overflow: hidden;
	font-weight: bold;
	font-size: 2.688rem;
	margin-bottom: 20px;
	color: var(--color-white);
	text-transform: capitalize;
}

.hero-title span {
	display: block;
	animation-delay: 500ms;
}

.hero-title strong {
	display: block;
	font-weight: inherit;
	animation-delay: 500ms;
}

.hero-title strong + strong span {
	animation-delay: 1000ms;
}

.hero-content .button {
	animation-delay: 1500ms;
}

.hero .hero-video-toggle {
	position: absolute;
	z-index: 3;
	bottom: 20px;
	right: 20px;
	color: var(--color-white);
	font-size: 1.25rem;
}

.hero .hero-video-toggle:hover,
.hero .hero-video-toggle:focus {
	color: var(--color-white);
	opacity: 0.8;
}

@media screen and (min-width: 1025px) {
	.hero {
		padding-bottom: 65px;
	}

	.hero-content {
		text-align: left;
	}

	.hero-title {
		margin-bottom: 30px;
		font-size: 4.063rem;
	}
}

@media screen and (min-width: 1440px) {
	.hero-title {
		font-size: 4.375rem;
	}
}
