/* Hero Vertical Mouse-Driven Carousel */

.c-header {
	display: block;
	width: 100%;
}

.u-a5 {
	font-family: Arial, sans-serif;
	font-size: 37px;
	line-height: 35px;
	letter-spacing: 5px;
	text-transform: uppercase;
	font-weight: 700;
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
	color: #fff;
}

.u-b4 {
	font-family: Arial, sans-serif;
	font-size: 12px;
	line-height: 17px;
	letter-spacing: 0.3px;
	font-weight: normal;
	color: #fff;
}

/* MEDIA WRAPPER */
.u-media-wrapper {
	position: relative;
	width: 100%;
	background-size: cover;
	background-position: center;
	height: 0;
}

.u-media-wrapper--16-9 {
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

/* GRADIENT IMAGE OVERLAY */
.c-gradient-overlay {
	position: absolute;
	display: block;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-image: radial-gradient(
		circle at 49% 50%,
		rgba(2, 21, 25, 0.3),
		rgba(2, 21, 25, 0.6)
	);
	z-index: 1;
}

/* CAROUSEL CONTAINER */
.c-mouse-vertical-carousel {
	position: relative;
	overflow: hidden;
	cursor: pointer;
	touch-action: manipulation; /* Optimize for touch */
}

.c-mouse-vertical-carousel__list {
	width: 100%;
	position: absolute;
	left: 0;
	top: 50%;
	z-index: 2;
	list-style: none;
	margin: 0;
	padding: 0;
}

.c-mouse-vertical-carousel__list-item {
	list-style: none;
	transition: transform 0.3s ease;
}

.c-mouse-vertical-carousel__list-item a {
	display: block;
	padding-bottom: 25px;
	padding-top: 25px;
	padding-left: 54.166667%; /* percentage(13/24) = 54.166667% */
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
}

.c-mouse-vertical-carousel__list-item a:hover {
	opacity: 1 !important;
}

/* Locked/Selected state */
.c-mouse-vertical-carousel__list-item.locked a {
	cursor: pointer; /* Show it's clickable to navigate */
}

/* Add visual indicator for locked state */
.c-mouse-vertical-carousel__list-item.locked::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 60%;
	background: linear-gradient(180deg, #1ABC9C 0%, #16a085 100%);
	border-radius: 0 4px 4px 0;
	box-shadow: 0 0 10px rgba(26, 188, 156, 0.5);
	z-index: 3;
}

/* Pulse animation for locked state */
@keyframes lockPulse {
	0%, 100% {
		box-shadow: 0 0 10px rgba(26, 188, 156, 0.5);
	}
	50% {
		box-shadow: 0 0 20px rgba(26, 188, 156, 0.8);
	}
}

.c-mouse-vertical-carousel__list-item.locked::before {
	animation: lockPulse 2s ease-in-out infinite;
}

.c-mouse-vertical-carousel__eyebrow {
	position: relative;
	padding-bottom: 12px;
}

.c-mouse-vertical-carousel__eyebrow span {
	position: absolute;
	left: -30px;
	top: 2px;
}

.c-mouse-vertical-carousel__title {
	max-width: 450px;
}

.c-mouse-vertical-carousel__bg-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	will-change: transform;
	z-index: 0;
	transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.u-a5 {
		font-size: 28px;
		line-height: 30px;
		letter-spacing: 3px;
	}

	.u-b4 {
		font-size: 11px;
		line-height: 16px;
	}

	.c-mouse-vertical-carousel {
		cursor: default; /* Remove cursor on mobile */
	}

	.c-mouse-vertical-carousel__list {
		transform: translateY(-50%); /* Center the list vertically on mobile */
	}

	.c-mouse-vertical-carousel__list-item a {
		padding-left: 15%;
		padding-right: 10%;
		padding-bottom: 20px;
		padding-top: 20px;
	}

	.c-mouse-vertical-carousel__title {
		max-width: 300px;
	}

	.c-mouse-vertical-carousel__eyebrow span {
		left: -25px;
	}

	/* Adjust gradient for better mobile readability */
	.c-gradient-overlay {
		background-image: radial-gradient(
			circle at 49% 50%,
			rgba(2, 21, 25, 0.4),
			rgba(2, 21, 25, 0.7)
		);
	}
}

@media (max-width: 576px) {
	.u-a5 {
		font-size: 24px;
		line-height: 28px;
		letter-spacing: 2px;
	}

	.u-b4 {
		font-size: 10px;
		line-height: 14px;
	}

	.c-mouse-vertical-carousel__list-item a {
		padding-left: 10%;
		padding-right: 10%;
		padding-bottom: 15px;
		padding-top: 15px;
	}

	.c-mouse-vertical-carousel__eyebrow span {
		left: -22px;
		font-size: 9px;
	}

	.c-mouse-vertical-carousel__title {
		max-width: 250px;
	}

	/* Reduce carousel height on small mobile */
	.u-media-wrapper--16-9 {
		padding-bottom: 75%; /* Slightly taller for mobile */
	}
}

/* Improve touch target size on mobile */
@media (hover: none) and (pointer: coarse) {
	.c-mouse-vertical-carousel__list-item a {
		min-height: 60px; /* Ensure touch target is at least 60px */
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}

/* Loading state animation */
@keyframes fadeInCarousel {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.c-mouse-vertical-carousel__list-item {
	animation: fadeInCarousel 0.5s ease forwards;
}

.c-mouse-vertical-carousel__list-item:nth-child(1) { animation-delay: 0.1s; }
.c-mouse-vertical-carousel__list-item:nth-child(2) { animation-delay: 0.2s; }
.c-mouse-vertical-carousel__list-item:nth-child(3) { animation-delay: 0.3s; }
.c-mouse-vertical-carousel__list-item:nth-child(4) { animation-delay: 0.4s; }
.c-mouse-vertical-carousel__list-item:nth-child(5) { animation-delay: 0.5s; }
