/**
 * Englmeier Hero
 *
 * Replaces the former Slider Revolution header. Rendered inside Betheme's slider slot
 * (#mfn-custom-slider), so the fixed transparent top bar sits on top of it, exactly as
 * before. Font sizes use vw values derived from the old slider grid (1240px) so the hero
 * scales the same way Slider Revolution did, without its JavaScript.
 *
 * The visible section of the photo is controlled by object-position on
 * .englmeier-hero-image — 50% 50% shows the vertical middle, a smaller second value
 * moves the section up, a larger one down.
 */

.englmeier-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 868px;
	padding: 0 20px 0;
	overflow: hidden;
	background-color: #003e65;
}

.englmeier-hero-image {
	position: absolute;
	width: 100%;
	max-width: none;
	height: 100% !important;
	object-fit: cover;
	object-position: 50% 50%;
}

.englmeier-hero-content {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: 1220px;
	text-align: center;
}

.englmeier-hero-title {
	margin: 0;
	color: #fff;
	font-family: "Merriweather", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: clamp(30px, 5.65vw, 70px);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: 0;
}

.englmeier-hero-text {
	margin: 26px 0 0;
	color: #fff;
	font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: clamp(15px, 1.94vw, 24px);
	font-weight: 400;
	line-height: 1.2;
}

.englmeier-hero-actions {
	margin: 55px 0 0;
}

.englmeier-hero-button {
	display: inline-block;
	box-sizing: border-box;
	padding: 15px 40px;
	border: 0;
	background-color: #0098fa;
	color: #fff;
	font-family: "Merriweather", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: clamp(16px, 1.61vw, 20px);
	font-weight: 300;
	line-height: 1.1;
	text-decoration: none;
	transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.englmeier-hero-button:hover,
.englmeier-hero-button:focus {
	background-color: #003e65;
	color: #fff;
	text-decoration: none;
}

.englmeier-hero-button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.englmeier-hero-separator {
	position: absolute;
	bottom: 50px;
	left: 50%;
	width: 2px;
	height: 119px;
	transform: translateX(-50%);
	background-image: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0),
		rgba(255, 255, 255, 0.85) 20%,
		rgba(255, 255, 255, 0.85) 80%,
		rgba(255, 255, 255, 0)
	);
}

/* Intro animation, replaces the four Slider Revolution timelines */

@media (prefers-reduced-motion: no-preference) {

	.englmeier-hero-title,
	.englmeier-hero-text,
	.englmeier-hero-actions {
		animation: englmeier-hero-fade-in 0.8s ease-out both;
	}

	.englmeier-hero-text {
		animation-delay: 0.15s;
	}

	.englmeier-hero-actions {
		animation-delay: 0.3s;
	}

	.englmeier-hero-separator {
		animation: englmeier-hero-fade-in-separator 0.8s ease-out 0.45s both;
	}
}

@keyframes englmeier-hero-fade-in {

	from {
		opacity: 0;
		transform: translateY(15px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes englmeier-hero-fade-in-separator {

	from {
		opacity: 0;
		transform: translate(-50%, 15px);
	}

	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

/* Tablet */

@media only screen and (max-width: 959px) {

	.englmeier-hero {
		min-height: 600px;
		padding: 80px 20px 130px;
	}

	.englmeier-hero-separator {
		bottom: 40px;
		height: 90px;
	}
}

/* Mobile: the top bar is static here, so the hero needs no clearance for it */

@media only screen and (max-width: 767px) {

	.englmeier-hero {
		min-height: 500px;
		padding: 0 20px 0;
	}

	.englmeier-hero-title {
		font-size: clamp(28px, 8vw, 40px);
	}

	.englmeier-hero-text {
		margin-top: 18px;
		font-size: clamp(14px, 4vw, 18px);
	}

	.englmeier-hero-actions {
		margin-top: 32px;
	}

	.englmeier-hero-button {
		padding: 14px 30px;
		font-size: 16px;
	}

	.englmeier-hero-separator {
		bottom: 30px;
		height: 70px;
	}
}
