/* =============================================================================
   Homepage hero slider (replaces Slider Revolution "home-2021", 16th November, 2026)
   -----------------------------------------------------------------------------
   Photos crossfade under a 30% dark tint, with the HWFS logo on a 65% white
   band across the middle. Height scales with the width between a floor and a
   ceiling, and the photos are cropped to fill (object-fit), so nothing depends
   on fixed breakpoints. Markup: template-parts/hero-slider.php.
   ============================================================================= */

.hwfs-hero {
	--hwfs-hero-h: clamp(260px, 33vw, 640px);
	--hwfs-hero-overlap: 0px; /* space the "24 hours" bar covers at the bottom */
	position: relative;
	height: var(--hwfs-hero-h);
	overflow: hidden;
	background: #042e58; /* HWFS blue while the first photo loads */
	display: flex;
	align-items: center;
	padding-bottom: var(--hwfs-hero-overlap);
	box-sizing: border-box;
}

/* Desktop: the "24 hours / 7 days / 365 days" bar is pulled up over the hero
   (.home #x-section-1 in style.css), so centre the band in what is left. */
@media screen and (min-width: 980px) {
	.hwfs-hero {
		--hwfs-hero-overlap: 60px;
	}
}

.hwfs-hero__slides,
.hwfs-hero__slide,
.hwfs-hero__tint {
	position: absolute;
	inset: 0;
}

.hwfs-hero__slide {
	opacity: 0;
	transition: opacity 1.5s ease;
	will-change: opacity;
}

.hwfs-hero__slide.is-active {
	opacity: 1;
}

.hwfs-hero__slide img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.hwfs-hero__tint {
	background: rgba(0, 0, 0, 0.3);
}

.hwfs-hero__band {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: clamp(10px, 1.4vw, 22px) 16px;
	background: rgba(255, 255, 255, 0.65);
	text-align: center;
	line-height: 0;
}

.hwfs-hero__logo {
	display: inline-block;
	width: clamp(170px, 24vw, 460px);
	height: auto;
	max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
	.hwfs-hero__slide {
		transition: none;
	}
}
