/**
 * Homepage specific styling goes here. Excluded on all subpages
 *
 * @format
 */

/* For most builds, this stylesheet should be wiped and started fresh */

/* PRELOADER */
.preloader-outer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9;
	width: 100%;
	height: 100vh;
	background-color: var(--color-white);
	transition: opacity 600ms ease-out;
}

.preloader-outer.active {
	visibility: visible !important;
}

.preloader-outer.preloader-remove {
	opacity: 0;
	pointer-events: none;
}

.preloader-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.preloader-inner p {
	margin-bottom: 15px;
}

.preloader-inner p:last-of-type {
	margin: 0;
}

.preloader-part {
	margin: 20px;
	display: none;
}

.preloader-part-left.active {
	display: block;
	-webkit-animation: fadeinright 800ms ease-out;
	animation: fadeInRight 800ms ease-out;
}

.preloader-part-right.active {
	display: block;
	-webkit-animation: fadeinleft 500ms ease-out;
	animation: fadeInLeft 500ms ease-out;
}

/* HERO */
.hero {
	min-height: 620px;
	width: 100%;
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 30px;
}

.hero-bg {
	position: absolute;
	width: 100%;
	height: 100%;
}

.hero-bg picture,
.hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.hero-bg:after {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 30%);
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.hero-bg:before {
	background: linear-gradient(45deg, rgba(0, 0, 0, 0.68) 30%, rgba(0, 0, 0, 0) 80%);
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.hero-content {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-top: 120px;
}

.hero-content h1 {
	font-size: 5rem;
	letter-spacing: -0.04em;
	line-height: 1.05;
	font-weight: 600;
	color: var(--color-white);
}

.hero-content h1 strong {
	font-weight: 600;
	font-style: italic;
	color: var(--color-primary);
	display: block;
	margin-bottom: 10px;
	animation-delay: 0.6s;
}

.hero-content h1 span {
	display: block;
	padding-top: 5px;
}

.hero-content .animate.animated {
	animation-duration: 2000ms;
}

.hero-content h1 > span:nth-child(2) .animate {
	animation-delay: 1.6s;
}

.hero-content h1 > span:nth-child(3) .animate {
	animation-delay: 2.4s;
}

.hero-content h1 > span:nth-child(2) {
	margin-left: 65px;
}

.hero-content h1 > span:nth-child(3) {
	margin-left: 10px;
}

.line-container {
	position: relative;
}

.line-italic {
	transition: opacity 2s ease-in-out;
}

.line-italic.is-hidden {
	opacity: 0;
}

.line-normal {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 2s ease-in-out;
}

.line-normal.active {
	opacity: 1;
}

.hero-content h1 .line-normal strong {
	font-style: normal;
	color: var(--color-white);
}

.line-container.line-reverse .line-normal {
	position: relative;
	opacity: 1;
}

.line-container.line-reverse .line-normal strong {
	font-style: normal;
	color: var(--color-white);
}

.line-container.line-reverse .line-normal.is-hidden {
	opacity: 0;
}

.line-container.line-reverse .line-italic {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
}

.line-container.line-reverse .line-italic.active {
	opacity: 1;
}

@media screen and (min-width: 1025px) {
	.hero {
		min-height: 100vh;
		margin-bottom: 45px;
	}

	.hero-content h1 {
		font-size: 6.875rem;
		line-height: 0.74;
	}

	.hero-content h1 strong {
		margin-bottom: 25px;
	}

	.hero-content h1 > span:nth-child(2) {
		margin-left: 100px;
	}

	.hero-content h1 > span:nth-child(3) {
		margin-left: 30px;
	}
}

@media screen and (min-width: 1280px) {
	.hero-content h1 {
		font-size: 9.375rem;
		line-height: 0.91;
	}

	.hero-content h1 > span:nth-child(2) {
		margin-left: 155px;
	}

	.hero-content h1 > span:nth-child(3) {
		margin-left: 50px;
	}
}
