/*
 * Bath Here — scroll-driven hero (structure and motion only).
 * Typography, colours and buttons come from the Elementor kit and WoodMart
 * widget settings; this file positions the layers and the message slides.
 */
/* Doubled class names outrank Elementor's single-class .e-con rules (display, --height). */
.bh-hero.bh-hero {
	position: relative;
	display: block;
	width: 100%;
	background: #0f1e2e;
	color: #faf5ec;
	--bh-hero-length: 350;
}

.bh-hero.bh-hero--scrub {
	--height: calc(var(--bh-hero-length) * 1vh);
	--height: calc(var(--bh-hero-length) * 1svh);
	height: calc(var(--bh-hero-length) * 1vh);
	height: calc(var(--bh-hero-length) * 1svh);
}

.bh-hero .bh-hero__stage {
	position: relative;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
}

.bh-hero--scrub .bh-hero__stage {
	position: sticky;
	top: 0;
}

/* The HTML widget wrappers must not form a containing block (they are 0 px tall):
   the media layer and the hint position against the stage instead. */
.bh-hero .bh-hero__stage .elementor-widget-html,
.bh-hero .bh-hero__stage .elementor-widget-html > .elementor-widget-container {
	position: static;
	height: 0;
	margin: 0;
	padding: 0;
}

/* Media layers (HTML widget) */
.bh-hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: #0f1e2e;
}

.bh-hero-media__poster,
.bh-hero-media__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bh-hero-media__canvas {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.bh-hero--ready .bh-hero-media__canvas {
	opacity: 1;
}

.bh-hero-media__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(15, 30, 46, 0.5) 0%, rgba(15, 30, 46, 0.42) 45%, rgba(15, 30, 46, 0.9) 100%);
}

/* Readability over bright slabs: soft navy shadow behind the message text */
.bh-hero .bh-hero__slide .wd-title-wrapper .title,
.bh-hero .bh-hero__slide .wd-title-wrapper .subtitle,
.bh-hero .bh-hero__slide .wd-text-block {
	text-shadow: 0 2px 18px rgba(15, 30, 46, 0.6);
}

.bh-hero-media__tint {
	position: absolute;
	inset: 0;
	background: #0f1e2e;
	opacity: 0;
}

/* Message slides */
.bh-hero .bh-hero__slide {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 140px 64px 84px;
	opacity: 0;
	pointer-events: none;
	will-change: opacity, transform;
}

.bh-hero__slide.is-active {
	pointer-events: auto;
}

.bh-hero__slide--open {
	align-items: flex-end;
	justify-content: space-between;
	gap: 48px;
}

.bh-hero__slide--center {
	align-items: center;
	justify-content: center;
	text-align: center;
}

.bh-hero__slide--left {
	align-items: center;
	justify-content: flex-start;
}

.bh-hero__col {
	max-width: 620px;
}

.bh-hero__col--aside {
	max-width: 460px;
	padding-bottom: 8px;
}

/* Static fallback: no JS or reduced motion — poster plus the first slide only */
.bh-hero:not(.bh-hero--scrub) .bh-hero__slide:first-of-type {
	opacity: 1;
	pointer-events: auto;
}

.bh-hero:not(.bh-hero--scrub) .bh-hero__slide:not(:first-of-type),
.bh-hero:not(.bh-hero--scrub) .bh-hero__hint {
	display: none;
}

/* Scroll hint */
.bh-hero__hint {
	position: absolute;
	left: 50%;
	bottom: 22px;
	z-index: 2;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #d4b475;
	opacity: 1;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.bh-hero__hint i {
	display: block;
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 8px solid #d4b475;
	animation: bh-hero-hint 1.6s ease-in-out infinite;
}

.bh-hero--scrolled .bh-hero__hint {
	opacity: 0;
}

@keyframes bh-hero-hint {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(6px); }
}

@media (max-width: 1024px) {
	.bh-hero .bh-hero__slide {
		padding: 120px 40px 72px;
	}
}

@media (max-width: 767px) {
	.bh-hero .bh-hero__slide {
		padding: 110px 20px 64px;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-end;
		gap: 20px;
	}

	.bh-hero .bh-hero__slide--center {
		align-items: center;
		justify-content: center;
		text-align: center;
	}

	.bh-hero .bh-hero__slide--left {
		justify-content: center;
	}

	.bh-hero__col,
	.bh-hero__col--aside {
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bh-hero__hint i {
		animation: none;
	}
}
