/* =============================================================================
   Hero Video — single full-bleed section: heading, subheading, up to two
   CTAs, centered over an autoplaying, looping, muted background video.
   ========================================================================== */

.hero-video {
	position: relative;
	min-height: min(85vh, 880px);
	display: flex;
	align-items: center;
	overflow: hidden;
	color: var(--color-white);
}

.hero-video__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-video__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-video__bg--image {
	z-index: 1;
}

.hero-video__bg--video {
	z-index: 2;
}

/* When a video is present, the poster <img> is only needed for the
   prefers-reduced-motion case below — the <video poster> attribute
   already covers its own loading gap. */
.hero-video__bg--image.hero-video__bg--fallback {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.hero-video__bg--video {
		display: none;
	}

	.hero-video__bg--image.hero-video__bg--fallback {
		display: block;
	}
}

.hero-video__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	background-color: rgba(0, 0, 0, 0.55);
}

.hero-video__inner {
	position: relative;
	z-index: 4;
	width: 100%;
}

.hero-video__content {
	max-width: 720px;
	text-align: center;
	margin-inline: auto;
}

.hero-video__heading {
	color: var(--color-white);
	font-size: clamp(2.75rem, 6vw, 4.5rem);
	margin-bottom: 1rem;
}

.hero-video__subheading {
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.9);
	max-width: 55ch;
	margin-inline: auto;
	margin-bottom: 2rem;
}

.hero-video__subheading p:last-child {
	margin-bottom: 0;
}

.hero-video__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

/* .wby-button--outline defaults to a dark border/text (via currentColor +
   var(--color-dark)), which would be invisible against this dark video
   background — override both explicitly to white, inverting on hover. */
.hero-video__button--outline {
	border-color: var(--color-white);
	color: var(--color-white);
}

.hero-video__button--outline:hover,
.hero-video__button--outline:focus-visible {
	background-color: var(--color-white);
	border-color: var(--color-white);
	color: var(--color-dark);
}

@media (max-width: 600px) {
	.hero-video__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero-video__actions .wby-button {
		width: 100%;
	}
}
