/**
 * Hero Carousel Module
 *
 * Replaces Owl Carousel with native CSS transitions.
 * Legacy class hooks (slideWrap, slideContent, owlImage) preserved for compatibility.
 */

.hero-carousel {
	position: relative;
	overflow: hidden;
	width: 100%;
	margin: 0 auto;
	background-color: var(--color-blue-dark);
	background-size: cover;
	background-position: center bottom;
	background-repeat: no-repeat;
	z-index: 2;
}

/* ==========================================================================
   Track & slides
   ========================================================================== */

.hero-carousel__track {
	position: relative;
	max-width: 1600px;
	margin: 0 auto;
	cursor: grab;
	user-select: none;
	overflow: hidden;

	&:active {
		cursor: grabbing;
	}
}

.hero-carousel__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	padding: 0 20px 10px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease;
	z-index: 1;

	&.is-active {
		position: relative;
		opacity: 1;
		visibility: visible;
		z-index: 2;
	}
}

/* ==========================================================================
   Inner layout — text + image side-by-side
   ========================================================================== */

.hero-carousel__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-evenly;
	text-align: left;

	@media (min-width: 768px) {
		flex-direction: row;
	}
}

/* ==========================================================================
   Content column
   ========================================================================== */

#content .hero-carousel__content {
	width: 100%;
	padding: 55px 2% 0;

	@media (min-width: 768px) {
		width: 42%;
		padding-top: 25px;
	}

	h2 {
		color: var(--color-white);
		font-family: var(--font-condensed);
		font-weight: 500;
		line-height: 1em;
		clear: none;
		padding: 0;
		letter-spacing: 0.02em;
		text-transform: uppercase;
		font-size: clamp(1.5rem, 4vw, 1.75rem) !important;
		text-wrap: balance;
	}

	h1 {
		color: var(--color-gold);
		font-family: var(--font-body);
		font-weight: 300;
		font-size: clamp(2.5rem, 4vw, 4rem);
		line-height: 0.93em;
		margin: 0 0 0 -3px;
		letter-spacing: -0.04em;
		text-transform: uppercase;
		text-wrap: balance;

		span {
			font-size: clamp(2.5rem, 4vw, 3rem);
		}
	}

	h4 {
		color: var(--color-white);
		font-family: var(--font-body);
		font-size: 18px;
		font-weight: 300;
		line-height: 1.45em;
		margin: 10px 0 30px;
		text-wrap: balance;
	}
}

/* ==========================================================================
   CTA buttons
   ========================================================================== */

.hero-carousel__content .button-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.hero-carousel__content a.button {
	display: inline-block;
	margin-right: 15px;
	margin-bottom: 20px;
	padding: 10px 22px;
	border-radius: 3px;
	border: none !important;
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 300;
	letter-spacing: -0.01em;
	text-decoration: none;
	text-align: center;
	text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
	cursor: pointer;
	background-color: var(--color-red);
	transition: all 0.3s ease-in;

	&:hover {
		background-color: #a10000;
	}

	&.d2c {
		background-color: var(--color-blue);

		&:hover {
			background-color: var(--color-blue-dark);
		}
	}
}

/* ==========================================================================
   Image column
   ========================================================================== */

.hero-carousel__image {
	width: 100%;

	@media (min-width: 768px) {
		width: 44%;
		margin-top: 20px;
	}

	img {
		height: auto;
		width: 100%;
		display: block;
	}
}

/* ==========================================================================
   Prev / Next arrows
   ========================================================================== */

.hero-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	opacity: 0.6;
	transition: opacity 0.2s ease;

	&:hover {
		opacity: 1;
	}

	svg {
		display: block;
	}
}

.hero-carousel__nav--prev {
	left: 15px;
	margin-top: 0;

	&:hover {
		background: none;
	}
}

.hero-carousel__nav--next {
	right: 15px;
	margin-top: 0;

	&:hover {
		background: none;
	}
}

/* ==========================================================================
   Dots navigation
   ========================================================================== */

.hero-carousel__dots {
	position: absolute;
	bottom: 15px;
	width: 100%;
	display: flex;
	justify-content: center;
	gap: 6px;
	z-index: 10;
}

.hero-carousel__dot {
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: none;
	background: var(--color-white);
	opacity: 0.5;
	cursor: pointer;
	padding: 0;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
	transition: opacity 0.2s ease;

	&:hover {
		opacity: 0.8;
	}

	&.is-active {
		opacity: 1;
	}
}
