/* Hero block — matches the dark, full-bleed look of the former RevSlider. */
.hvg-heroblk {
	position: relative;
	/* Escape the column's 15px gutters like RevSlider's force-full-width
	   wrapper did, and keep its 1450x450 proportions. The bottom gap is
	   half the legacy 35px (owner request: less space below the slider). */
	margin: 0 -15px 18px;
	/* An explicit width prevents the aspect ratio/min-height from giving
	   flex columns a desktop-sized intrinsic width on narrow screens. */
	width: calc(100% + 30px);
	min-width: 0;
	max-width: 100vw;
	aspect-ratio: 1450 / 450;
	min-height: 340px;
	max-height: 70vh;
	overflow: hidden;
	background: #000;
}
/* Bare [rev_slider] had no element margin (only the _vc variant did). */
.hvg-heroblk--flush {
	margin-bottom: 0;
}
/* The 70px gap between the hero and the content is an invisible,
   script-only newsletter row (async form embed that never renders):
   35px column padding + 35px element margin. Collapse that spacing so
   the posts sit directly under the slider — overlapping it with a
   negative margin does not work, because the next row has a black fill
   that would paint over the slider dots. */
/* Full-width rows are followed by a .vc_row-full-width clearfix div,
   so cover both sibling shapes. */
.vc_row:has(.hvg-heroblk--flush) + .vc_row .vc_column-inner,
.vc_row:has(.hvg-heroblk--flush) + .vc_row-full-width + .vc_row .vc_column-inner {
	padding-top: 0;
	padding-bottom: 0;
}
.vc_row:has(.hvg-heroblk--flush) + .vc_row .wpb_raw_code,
.vc_row:has(.hvg-heroblk--flush) + .vc_row-full-width + .vc_row .wpb_raw_code {
	margin-bottom: 0;
}
.hvg-heroblk__slides {
	position: absolute;
	inset: 0;
}
.hvg-heroblk__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	/* visibility keeps inactive slides out of the tab order and away from
	   screen readers; the delay lets the fade-out finish first. */
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0s linear 0.8s;
	display: flex;
	align-items: center;
}
.hvg-heroblk__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.8s ease;
	z-index: 1;
}
.hvg-heroblk__content {
	position: relative;
	max-width: none;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	color: #fff;
}
.hvg-heroblk__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	max-width: 520px;
	padding: 0 8%;
}
/* Match live RevSlider: decorative graphic fills the hero height on the right. */
.hvg-heroblk__visual {
	position: absolute;
	inset: 0 0 0 auto;
	height: 100%;
	width: auto;
	max-width: 62%;
	object-fit: contain;
	object-position: right center;
}
.hvg-heroblk__content h1,
.hvg-heroblk__content h2,
.hvg-heroblk__content h3 {
	color: #fff;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 500;
	margin: 0 0 0.5em;
}
.hvg-heroblk__content p {
	color: #fff;
	font-size: 16px;
	line-height: 1.35;
	max-width: 34em;
	margin: 0 0 1.2em;
}
.hvg-heroblk__content .btn,
.hvg-heroblk__content .btn-l {
	display: inline-block;
	/* Slides are black; without this the buttons inherit the #333 body
	   color and the label is unreadable (original slider used white).
	   a.btn:hover (yellow fill, #333 text) still wins on specificity. */
	color: #fff;
	font-weight: 300;
}
/* Content of the active slide fades in one element after the other,
   like the layer animations of the original slider. */
.hvg-heroblk__slide.is-active .hvg-heroblk__body > *,
.hvg-heroblk__slide.is-active .hvg-heroblk__visual {
	animation: hvg-hero-in 0.7s ease both;
}
.hvg-heroblk__slide.is-active .hvg-heroblk__body > :nth-child(2) {
	animation-delay: 0.2s;
}
.hvg-heroblk__slide.is-active .hvg-heroblk__body > :nth-child(n + 3) {
	animation-delay: 0.4s;
}
.hvg-heroblk__slide.is-active .hvg-heroblk__visual {
	animation-duration: 1s;
}
@keyframes hvg-hero-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Controls — dots styled like the live RevSlider bullets: small solid
   dots, tightly spaced, with a short yellow rule under the group. */
.hvg-heroblk__dots {
	position: absolute;
	bottom: 22px;
	left: 0;
	right: 0;
	text-align: center;
	z-index: 2;
	line-height: 0;
	/* The bar spans the hero width; only the dots themselves may catch
	   clicks, or they block the slide links. */
	pointer-events: none;
}
.hvg-heroblk__dots::after {
	content: "";
	display: block;
	width: 44px;
	margin: 1px auto 0;
	border-top: 2px solid #ffe600;
}
.hvg-heroblk__dot {
	pointer-events: auto;
}
.hvg-heroblk__dot {
	/* 24px hit area (WCAG target size); the visible dot is the inner circle. */
	width: 24px;
	height: 24px;
	border: none;
	background: transparent;
	padding: 0;
	cursor: pointer;
	position: relative;
	margin: 0;
}
.hvg-heroblk__dot::after {
	content: "";
	position: absolute;
	inset: 8.5px;
	border-radius: 50%;
	background: #d8d8d8;
}
.hvg-heroblk__dot.is-active::after {
	background: #ffe600;
}
.hvg-heroblk__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	border: none;
	background: transparent;
	cursor: pointer;
}
.hvg-heroblk__arrow::before {
	/* Chevron, like the old theme slider arrows. */
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	border-left: 3px solid #fff;
	border-bottom: 3px solid #fff;
}
.hvg-heroblk__arrow--prev {
	left: 6px;
}
.hvg-heroblk__arrow--prev::before {
	transform: translate(-30%, -50%) rotate(45deg);
}
.hvg-heroblk__arrow--next {
	right: 6px;
}
.hvg-heroblk__arrow--next::before {
	transform: translate(-70%, -50%) rotate(-135deg);
}
.hvg-heroblk__arrow:focus-visible,
.hvg-heroblk__dot:focus-visible {
	outline: 2px solid #ffe600;
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.hvg-heroblk {
		aspect-ratio: auto;
		max-height: none;
	}
	.hvg-heroblk__body {
		width: 100%;
		max-width: 100%;
		padding: 24px 28px 64px;
	}
	.hvg-heroblk__body > * {
		min-width: 0;
		max-width: 100%;
		overflow-wrap: anywhere;
	}
	.hvg-heroblk__content .btn,
	.hvg-heroblk__content .btn-l {
		white-space: normal;
	}
	.hvg-heroblk__content h1,
	.hvg-heroblk__content h2,
	.hvg-heroblk__content h3 {
		font-size: 1.6rem;
	}
	.hvg-heroblk__arrow {
		display: none;
	}
	.hvg-heroblk__visual {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hvg-heroblk__slide,
	.hvg-heroblk__slide.is-active {
		transition: none;
	}
	.hvg-heroblk__slide.is-active .hvg-heroblk__body > *,
	.hvg-heroblk__slide.is-active .hvg-heroblk__visual {
		animation: none;
	}
}
