/* ==========================================================================
   MAX SPARE — Hero Slider v2
   Same element IDs/classes as before (#slider #line #move #back #forword
   #dots, li.slide-item, .slide-caption) — only the visual language and
   animation model change: slide-push → smooth crossfade + subtle Ken
   Burns zoom. No HTML changes required in Home.ascx.
   ========================================================================== */

#slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 21 / 7;
	max-height: 640px;
	min-height: 260px;
	background: #1a1a1a;
}

/* ----- progress line: slim, brand-color, understated (replaces the old
   thick black bar) ----- */
#slider #line {
	height: 3px;
	background: #da2927;
	z-index: 3;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0%;
}

@keyframes line {
	0%   { width: 0%; }
	100% { width: 100%; }
}

/* ----- dots: small circles, active one elongates into a pill — a quiet,
   modern indicator rather than a row of bright white circles ----- */
#slider #dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	z-index: 3;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

#slider #dots li {
	transition: width 0.3s ease, background 0.3s ease;
	list-style-type: none;
	width: 8px;
	height: 8px;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.5);
	margin: 0;
	cursor: pointer;
}

#slider #dots li:hover {
	background: rgba(255, 255, 255, 0.8);
}

#slider #dots li.active {
	width: 26px;
	background: #ffffff;
}

/* ----- arrows: small ghost circles instead of the old full-height
   gradient wedges — present but unobtrusive ----- */
#slider #back,
#slider #forword {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease, background 0.2s ease;
	cursor: pointer;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: 20px;
	z-index: 3;
	color: #ffffff;
	font-size: 1.1rem;
	background: rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(2px);
}

#slider #forword {
	left: auto;
	right: 20px;
}

#slider #back:hover,
#slider #forword:hover {
	background: rgba(0, 0, 0, 0.55);
}

#slider:hover #back,
#slider:hover #forword {
	opacity: 1;
}

/* ----- slides: stacked + crossfaded, with a slow, subtle zoom on the
   active slide only (Ken Burns) — kept gentle so it reads as polish,
   not motion-for-motion's-sake ----- */
#slider ul#move {
	margin: 0;
	padding: 0;
	position: relative;
	width: 100%;
	height: 100%;
}

#slider ul#move li {
	list-style-type: none;
	margin: 0;
	padding: 0;
	position: absolute;
	inset: 0;
	opacity: 0;
	z-index: 1;
	transition: opacity 1s ease;
	overflow: hidden;
}

#slider ul#move li.active {
	opacity: 1;
	z-index: 2;
}

#slider ul#move li img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1);
	transition: transform 6.5s ease-out;
}

#slider ul#move li.active img {
	transform: scale(1.06);
}

/* ----- caption overlay (unchanged look, just timed to crossfade with
   its slide instead of sliding in) ----- */
#slider ul#move li.slide-item .slide-caption {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	max-width: 44%;
	padding: 28px 32px;
	background-color: rgba(183, 18, 18, 0.88);
	color: #ffffff;
	opacity: 0;
	transition: opacity 0.6s ease 0.25s;
}

#slider ul#move li.slide-item.active .slide-caption {
	opacity: 1;
}

.slide-caption-left { left: 0; }
.slide-caption-right { right: 0; text-align: right; }

.slide-caption h2 {
	margin: 0 0 8px 0;
	font-weight: bold;
	font-size: 1.9vw;
	line-height: 1.25;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.slide-caption p {
	margin: 0;
	font-size: 0.95vw;
	font-weight: normal;
	line-height: 1.4;
}

@media (min-width: 1600px) {
	.slide-caption h2 { font-size: 28px; }
	.slide-caption p { font-size: 15px; }
}

@media (max-width: 767px) {
	#slider {
		aspect-ratio: 4 / 3;
		min-height: 320px;
	}
	.slide-caption {
		max-width: 100%;
		left: 0 !important;
		right: 0 !important;
		top: auto;
		bottom: 0;
		transform: none;
		padding: 14px 16px;
		text-align: left !important;
	}
	.slide-caption h2 { font-size: 18px; }
	.slide-caption p { font-size: 12px; }
	#slider #back, #slider #forword {
		width: 34px;
		height: 34px;
		font-size: 0.9rem;
		left: 10px;
	}
	#slider #forword { left: auto; right: 10px; }
}

/* Respect users who've asked for reduced motion: drop the zoom and
   shorten the crossfade, keep the slider fully functional. */
@media (prefers-reduced-motion: reduce) {
	#slider ul#move li img { transition: none; transform: none !important; }
	#slider ul#move li { transition: opacity 0.3s ease; }
}
