/* ==========================================================================
   Elessi Hero Slider — frontend styles
   All selectors are prefixed with .ehs- to avoid any collision with the
   Elessi Nasa theme's own slider/header/typography classes.
   ========================================================================== */

.ehs-slider {
	--ehs-height: 650px;
	position: relative;
	width: 100%;
	height: var( --ehs-height );
	overflow: hidden;
	background: #111;
}

.ehs-slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.ehs-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	z-index: 1;
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.ehs-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

/* Slide (horizontal) transition mode — applied via [data-fade="0"] */
.ehs-slider[data-fade="0"] .ehs-slide {
	transform: translateX( 100% );
	transition: transform 0.7s ease, opacity 0s;
	opacity: 1;
	visibility: visible;
}
.ehs-slider[data-fade="0"] .ehs-slide.is-active {
	transform: translateX( 0 );
	z-index: 2;
}
.ehs-slider[data-fade="0"] .ehs-slide.is-prev {
	transform: translateX( -100% );
}

.ehs-overlay {
	position: absolute;
	inset: 0;
	background: #000;
	pointer-events: none;
	z-index: 1;
}

.ehs-content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 20px 72px;
	text-align: center;
	color: #fff;
}

.ehs-title {
	margin: 0 0 18px;
	font-size: 44px;
	line-height: 1.15;
	font-weight: 500;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.25 );
}

.ehs-cta {
	position: relative;
	display: inline-block;
	color: #ffffff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	padding-bottom: 10px;
	cursor: pointer;
}

/* Static underline beneath the CTA, matching the reference screenshot */
.ehs-cta::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 34px;
	height: 1px;
	background-color: rgba( 255, 255, 255, 0.6 );
	transform: translateX( -50% );
	transition: width 0.3s ease, background-color 0.3s ease;
}

/* Animated hover underline directly under the text itself */
.ehs-cta-text {
	position: relative;
}
.ehs-cta-text::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 100%;
	height: 1px;
	background-color: #ffffff;
	transform: scaleX( 0 );
	transform-origin: center;
	transition: transform 0.3s ease;
}

.ehs-cta:hover .ehs-cta-text::after,
.ehs-cta:focus-visible .ehs-cta-text::after {
	transform: scaleX( 1 );
}

.ehs-cta:hover::before,
.ehs-cta:focus-visible::before {
	width: 60px;
}

.ehs-cta--static {
	cursor: default;
}

/* Pagination / counter -------------------------------------------------- */

.ehs-nav {
	position: absolute;
	left: 50%;
	bottom: 22px;
	transform: translateX( -50% );
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	color: #ffffff;
}

.ehs-arrow {
	background: transparent;
	border: none;
	padding: 4px;
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ehs-arrow:hover,
.ehs-arrow:focus-visible {
	opacity: 1;
	transform: scale( 1.1 );
}

.ehs-arrow svg {
	display: block;
}

.ehs-counter {
	font-size: 13px;
	letter-spacing: 1px;
	min-width: 34px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.ehs-counter-sep {
	margin: 0 2px;
	opacity: 0.7;
}

.ehs-empty-notice {
	padding: 24px;
	background: #fff8e5;
	border: 1px solid #f0c36d;
	color: #6b4e00;
	text-align: center;
}

/* Responsive -------------------------------------------------------------- */

@media ( max-width: 992px ) {
	.ehs-slider {
		height: min( var( --ehs-height ), 520px );
	}
	.ehs-title {
		font-size: 34px;
		letter-spacing: 2px;
	}
	.ehs-content {
		padding-bottom: 56px;
	}
}

@media ( max-width: 600px ) {
	.ehs-slider {
		height: min( var( --ehs-height ), 400px );
	}
	.ehs-title {
		font-size: 24px;
		letter-spacing: 1.5px;
	}
	.ehs-cta {
		font-size: 11px;
	}
	.ehs-content {
		padding-bottom: 40px;
	}
	.ehs-nav {
		bottom: 14px;
	}
}

/* Reduced motion accessibility ------------------------------------------- */
@media ( prefers-reduced-motion: reduce ) {
	.ehs-slide,
	.ehs-cta::before,
	.ehs-cta-text::after,
	.ehs-arrow {
		transition: none !important;
	}
}
