/**
 * SL Nusbaum — homepage hero (video + caption overlay)
 */

body.sln-home-hero-active #masthead,
body.sln-home-hero-active #wrapper-navbar {
	width: 100%;
	max-width: 100%;
}

body.sln-home-hero-active #page,
body.sln-home-hero-active #masthead {
	overflow-x: clip;
	max-width: 100%;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced {
	position: relative;
	display: block;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-height: none !important;
	min-height: 100vh;
	min-height: 100svh;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced::before {
	background: linear-gradient(
		180deg,
		rgba(18, 35, 68, 0.55) 0%,
		rgba(18, 35, 68, 0.08) 50%,
		rgba(18, 35, 68, 0.35) 100%
	) !important;
	height: 100% !important;
	opacity: 1 !important;
	z-index: 2;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-embed,
body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .hero-embed-container.sln-home-hero-embed {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	min-height: 100% !important;
	max-height: none;
	padding-bottom: 0 !important;
	overflow: hidden;
	background: #0a1628;
	z-index: 1;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .hero-embed-container iframe,
body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced iframe.sln-home-header-iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-width: 177.78vh;
	min-height: 100%;
	border: 0;
	transform: translate(-50%, -50%);
	transform-origin: center center;
	pointer-events: none;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	z-index: 4;
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	padding: 0 clamp(1.5rem, 6vw, 5rem) !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	pointer-events: none;
	text-align: left;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block > div {
	max-width: none;
	margin: 0;
	padding: 0;
	float: none;
	width: 100%;
	display: flex;
	justify-content: flex-start;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block > div > div,
body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block .sln-home-hero-message {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	width: 100%;
	max-width: 680px;
	margin: 0;
	color: #fff;
	float: none !important;
	line-height: 1.35;
	text-align: left;
	box-shadow: none;
	pointer-events: auto;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block .sln-home-hero-message {
	background: rgb(18 35 70 / 70%) !important;
	padding: 1rem 1rem !important;
	width: 100% !important;
	max-width: 680px !important;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block .sln-home-hero-actions {
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block h2,
body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block h3 {
	margin: 0 0 1.125rem;
	font-family: "Montserrat", sans-serif !important;
	font-size: clamp(2rem, 4.8vw, 3rem);
	font-weight: 700 !important;
	line-height: 1.18;
	letter-spacing: -0.01em;
	text-transform: none !important;
	color: #fff !important;
	text-align: left;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.65);
	max-width: none;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block p {
	margin: 0 0 1.25rem;
	padding: 0;
	width: 100% !important;
	max-width: 100% !important;
	font-family: "Montserrat", sans-serif !important;
	font-size: clamp(0.95rem, 2vw, 1rem);
	font-weight: 400 !important;
	color: rgba(255, 255, 255, 0.92) !important;
	text-align: left;
	text-shadow: none;
	background: transparent;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block a.sln-home-hero-btn {
	color: #fff;
	text-decoration: none !important;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-actions {
	display: inline-grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	justify-content: start;
	gap: 1.25rem !important;
	width: fit-content !important;
	max-width: 100% !important;
	margin-top: 0.25rem !important;
	pointer-events: auto;
	overflow: visible;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	white-space: nowrap;
	padding: 0.875rem 1.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-btn-primary {
	background: rgb(134, 168, 187) !important;
	color: #fff !important;
	border: 1.5px solid rgb(134, 168, 187) !important;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-btn-primary:hover,
body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-btn-primary:focus,
body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-btn-primary:focus-visible {
	background: rgb(110, 148, 170) !important;
	border-color: rgb(110, 148, 170) !important;
	color: #fff !important;
	text-decoration: none !important;
	transform: translateY(-1px);
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-btn-outline {
	background: transparent !important;
	color: #fff !important;
	border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-actions .sln-home-hero-btn + .sln-home-hero-btn {
	margin-left: 0 !important;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-btn-outline:hover,
body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-btn-outline:focus,
body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-btn-outline:focus-visible {
	background: #fff !important;
	border-color: #fff !important;
	color: #1a2534 !important;
	text-decoration: none !important;
	transform: translateY(-1px);
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .menu-scroll-down-wrapper {
	z-index: 6;
	left: 50%;
	transform: translateX(-50%);
	bottom: 4.25rem;
	pointer-events: auto;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .menu-scroll-down-wrapper a.menu-scroll-down {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff !important;
	border-color: #fff !important;
	background: rgba(10, 22, 40, 0.35);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .menu-scroll-down-wrapper a.menu-scroll-down:hover,
body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .menu-scroll-down-wrapper a.menu-scroll-down:focus {
	background: rgba(10, 22, 40, 0.55);
	border-color: #fff !important;
	outline: none;
}

body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .menu-scroll-down-wrapper .menu-scroll-down .icon {
	display: inline-block;
	transform: rotate(90deg);
}

/* Bounce the button downward (translate before rotate on icon = wrong axis). */
body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .menu-scroll-down-wrapper.sln-home-scroll-animate .menu-scroll-down {
	animation: sln-home-scroll-bounce-down 1.5s ease-in-out infinite;
}

@keyframes sln-home-scroll-bounce-down {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(10px);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .menu-scroll-down-wrapper.sln-home-scroll-animate .menu-scroll-down {
		animation: none;
		transform: none;
	}
}

@media (max-width: 768px) {
	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block {
		padding: 0 1rem !important;
	}

	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block > div > div,
	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .home-header-text-block .sln-home-hero-message {
		max-width: none;
	}

	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-actions {
		gap: 1rem !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-actions .sln-home-hero-btn + .sln-home-hero-btn {
		margin-left: 0 !important;
	}

	body.sln-home-hero-active .custom-header-media.sln-home-hero-enhanced .sln-home-hero-btn {
		width: 100% !important;
		padding: 0.75rem 1rem;
		font-size: 0.6875rem;
		letter-spacing: 0.08em;
	}
}

/* Homepage rotator slider — full viewport height (before split-path transform). */
body.sln-home-hero-active .entry-content.blocks > .layout-row.rotator-block-row:not(.sln-split-path-ready) {
	position: relative;
	overflow: hidden;
	min-height: 100vh;
	min-height: 100svh;
	height: 100vh;
	height: 100svh;
}

body.sln-home-hero-active .rotator-block-row > .owl-carousel {
	height: 100% !important;
}

body.sln-home-hero-active .rotator-block-row .owl-carousel .owl-stage-outer,
body.sln-home-hero-active .rotator-block-row .owl-carousel .owl-stage,
body.sln-home-hero-active .rotator-block-row .owl-carousel .owl-item {
	height: 100% !important;
}

body.sln-home-hero-active .rotator-block-row .carousel--item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	height: 100%;
	min-height: 100vh;
	min-height: 100svh;
}

body.sln-home-hero-active .rotator-block-row .carousel--item > img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

body.sln-home-hero-active .rotator-block-row .carousel-caption {
	position: relative;
	z-index: 2;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	transform: none !important;
	width: min(500px, 44vw);
	max-width: calc(100% - 3rem);
	margin: 0 0 0 clamp(1.5rem, 6vw, 5rem);
	padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 5rem);
	flex-shrink: 0;
}

body.sln-home-hero-active .rotator-block-row .owl-carousel.owl-theme .owl-next,
body.sln-home-hero-active .rotator-block-row .owl-carousel.owl-theme .owl-prev {
	top: 50% !important;
	transform: translateY(-50%);
}

body.sln-home-hero-active .rotator-block-row .carousel-indicators.owl-dots {
	position: absolute;
	right: 0;
	bottom: 1.75rem;
	left: 0;
	z-index: 5;
	margin: 0;
}

@media (max-width: 768px) {
	body.sln-home-hero-active .rotator-block-row .carousel--item {
		justify-content: center;
		padding: 0 1rem;
	}

	body.sln-home-hero-active .rotator-block-row .carousel-caption {
		width: min(92%, 500px);
		max-width: none;
		margin: 0 auto;
		padding: 1.5rem 1.25rem;
		text-align: center;
	}

	body.sln-home-hero-active .rotator-block-row .owl-carousel.owl-theme .owl-next,
	body.sln-home-hero-active .rotator-block-row .owl-carousel.owl-theme .owl-prev {
		top: 50% !important;
	}
}
