/* ==========================================================================
   LADV Hero Section
   All selectors are prefixed with .ladv-hero so this can never collide
   with Elessi / Nasa theme classes or other plugins.
   ========================================================================== */

.ladv-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	display: flex;
	isolation: isolate; /* keeps its own stacking context, avoids theme z-index fights */
	height: var(--ladv-hero-h-desktop, 90vh);
	min-height: 320px;
}

.ladv-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.ladv-hero__video,
.ladv-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

/* Mobile fallback image sits under the video by default; JS toggles video off on small screens */
.ladv-hero__img--mobile-fallback {
	display: none;
}

.ladv-hero__overlay {
	position: absolute;
	inset: 0;
	background-color: var(--ladv-hero-overlay-color, #000);
	opacity: var(--ladv-hero-overlay-opacity, 0.25);
	pointer-events: none;
}

.ladv-hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: var(--ladv-hero-content-valign, flex-end);
	padding: 48px 6vw;
	box-sizing: border-box;
}

.ladv-hero--halign-left .ladv-hero__content   { align-items: flex-start; text-align: left; }
.ladv-hero--halign-center .ladv-hero__content { align-items: center;     text-align: center; }
.ladv-hero--halign-right .ladv-hero__content  { align-items: flex-end;   text-align: right; }

.ladv-hero__heading {
	margin: 0 0 16px;
	font-size: clamp(28px, 4.5vw, 64px);
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: 0.02em;
	max-width: 900px;
}

.ladv-hero__subheading {
	margin: 0 0 24px;
	font-size: clamp(14px, 1.4vw, 20px);
	line-height: 1.5;
	max-width: 640px;
}

.ladv-hero__inner-content {
	margin-bottom: 24px;
	max-width: 720px;
}

.ladv-hero__button {
	display: inline-block;
	padding: 14px 36px;
	font-size: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid currentColor;
	background: transparent;
	transition: background-color 0.25s ease, color 0.25s ease;
	white-space: nowrap;
}

/* Text color themes */
.ladv-hero--light .ladv-hero__heading,
.ladv-hero--light .ladv-hero__subheading,
.ladv-hero--light .ladv-hero__button {
	color: #ffffff;
}
.ladv-hero--light .ladv-hero__button:hover {
	background-color: #ffffff;
	color: #111111;
}

.ladv-hero--dark .ladv-hero__heading,
.ladv-hero--dark .ladv-hero__subheading,
.ladv-hero--dark .ladv-hero__button {
	color: #111111;
}
.ladv-hero--dark .ladv-hero__button:hover {
	background-color: #111111;
	color: #ffffff;
}

/* ==========================================================================
   Responsive breakpoints
   Matches common Elessi/Nasa (Porto-family) tablet/mobile breakpoints.
   ========================================================================== */

@media (max-width: 1024px) {
	.ladv-hero {
		height: var(--ladv-hero-h-tablet, 70vh);
	}
}

@media (max-width: 767px) {
	.ladv-hero {
		height: var(--ladv-hero-h-mobile, 60vh);
	}

	.ladv-hero__content {
		padding: 28px 24px;
	}

	.ladv-hero__button {
		padding: 12px 28px;
		font-size: 13px;
	}

	/* When JS disables the video on mobile, it adds this class to <section> */
	.ladv-hero.ladv-hero--video-disabled .ladv-hero__video {
		display: none;
	}
	.ladv-hero.ladv-hero--video-disabled .ladv-hero__img--mobile-fallback {
		display: block;
	}
}

/* Respect users who prefer reduced motion: never autoplay video for them */
@media (prefers-reduced-motion: reduce) {
	.ladv-hero__video {
		display: none;
	}
	.ladv-hero__img--mobile-fallback {
		display: block;
	}
}
