/* JeSouth Hero Slider */
.jhs-slider {
	--jhs-height: 100vh;
	--jhs-fade: 1200ms;
	--jhs-overlay: 0.25;
	--jhs-text: #fff;
	--jhs-gutter: clamp(20px, 13vw, 256px);

	position: relative;
	width: 100%;
	height: var(--jhs-height);
	min-height: 480px;
	overflow: hidden;
	background: #1b2a3a;
	color: var(--jhs-text);
	isolation: isolate;
}

/* Use dynamic viewport units on mobile so browser bars don't crop the hero */
@supports (height: 100dvh) {
	.jhs-slider[style*="--jhs-height:100vh"] { height: 100dvh; }
}

.jhs-track {
	position: absolute;
	inset: 0;
}

/* ---- Slides: stacked, cross-fade via opacity ---- */
.jhs-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	z-index: 0;
	transition: opacity var(--jhs-fade) ease-in-out, visibility 0s linear var(--jhs-fade);
}

.jhs-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: opacity var(--jhs-fade) ease-in-out, visibility 0s;
}

.jhs-image {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	transform: scale(1.06);
	transition: transform calc(var(--jhs-fade) * 6) ease-out;
}

.jhs-slide.is-active .jhs-image {
	transform: scale(1);
}

.jhs-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, calc(var(--jhs-overlay) + 0.3)) 0%, rgba(0, 0, 0, var(--jhs-overlay)) 45%, rgba(0, 0, 0, calc(var(--jhs-overlay) * 0.4)) 100%);
}

/* ---- Text block: bottom-left with vertical rule ---- */
.jhs-content {
	position: absolute;
	left: var(--jhs-gutter);
	right: 16px;
	bottom: clamp(48px, 7vh, 80px);
	z-index: 2;
}

.jhs-content-inner {
	max-width: 760px;
	padding: 4px 0 4px clamp(18px, 2vw, 30px);
	border-left: 1px solid rgba(255, 255, 255, 0.85);
}

.jhs-subtitle {
	margin: 0 0 clamp(16px, 3vh, 36px);
	font-size: clamp(14px, 1.6vw, 28px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.55em;
	text-transform: uppercase;
	color: var(--jhs-text);
}

.jhs-heading {
	margin: 0;
	font-size: clamp(26px, 2.4vw, 46px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--jhs-text);
}

.jhs-button {
	display: inline-block;
	margin-top: 28px;
	padding: 14px 36px;
	border: 1px solid #fff;
	color: #fff;
	font-size: 15px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.3s, color 0.3s;
}

.jhs-button:hover,
.jhs-button:focus-visible {
	background: #fff;
	color: #1b2a3a;
}

/* Text reveal on the active slide */
.jhs-subtitle,
.jhs-heading,
.jhs-button {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.jhs-slide.is-active .jhs-subtitle,
.jhs-slide.is-active .jhs-heading,
.jhs-slide.is-active .jhs-button {
	opacity: 1;
	transform: none;
}

.jhs-slide.is-active .jhs-subtitle { transition-delay: calc(var(--jhs-fade) * 0.35); }
.jhs-slide.is-active .jhs-heading  { transition-delay: calc(var(--jhs-fade) * 0.5); }
.jhs-slide.is-active .jhs-button   { transition-delay: calc(var(--jhs-fade) * 0.65); }

/* ---- Arrows: bottom-right ---- */
.jhs-nav {
	position: absolute;
	right: clamp(16px, 2.5vw, 48px);
	bottom: clamp(20px, 4vh, 40px);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 14px;
}

.jhs-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	box-shadow: none;
	transition: opacity 0.3s, transform 0.3s;
	opacity: 0.8;
}

.jhs-arrow svg {
	width: 60px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.jhs-arrow:hover,
.jhs-arrow:focus-visible { opacity: 1; background: transparent; color: #fff; }
.jhs-prev:hover { transform: translateX(-4px); }
.jhs-next:hover { transform: translateX(4px); }

.jhs-arrow:focus-visible,
.jhs-dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.jhs-counter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	letter-spacing: 0.12em;
	font-variant-numeric: tabular-nums;
}

.jhs-sep {
	display: inline-block;
	width: 18px;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}

.jhs-total { opacity: 0.6; }

/* ---- Optional dots: bottom-centre ---- */
.jhs-dots {
	position: absolute;
	left: 50%;
	bottom: clamp(24px, 4vh, 44px);
	z-index: 3;
	display: flex;
	gap: 10px;
	transform: translateX(-50%);
}

.jhs-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.jhs-dot.is-active { background: #fff; }

/* ---- Mobile ---- */
@media (max-width: 767px) {
	.jhs-slider { min-height: 420px; }
	.jhs-content { left: 16px; bottom: 96px; }
	.jhs-subtitle { letter-spacing: 0.3em; }
	.jhs-nav { right: 8px; bottom: 16px; gap: 6px; }
	.jhs-arrow { width: 52px; }
	.jhs-arrow svg { width: 42px; }
	.jhs-dots { left: 16px; transform: none; bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	.jhs-slide,
	.jhs-slide.is-active,
	.jhs-image,
	.jhs-subtitle,
	.jhs-heading,
	.jhs-button {
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}
	.jhs-image { transform: none; }
}
