/**
 * Block: hero
 * Full-screen slider on the homepage. Mixed with Bootstrap .carousel classes
 * (carousel, carousel-inner, carousel-item, carousel-indicators) for the slide logic.
 * Overlay modifiers: --start (text on the left), --end (text on the right).
 */

.hero {
	position: relative;
	overflow: hidden;
}

/* Slower, softer cross-fade than the Bootstrap default (0.6s). */
.hero__slide {
	position: relative;
	overflow: hidden;
	transition-duration: 1s;
	transition-timing-function: ease;
}

/* The outgoing slide stays under the incoming one until the fade is over (same 1s). */
.hero__slide.active.carousel-item-start,
.hero__slide.active.carousel-item-end {
	transition: opacity 0s 1s;
}

.hero__image {
	display: block;
	width: 100%;
	height: 620px;
	object-fit: cover;
	will-change: transform;
}

/* Slow zoom: starts together with the cross-fade (incoming slide) and runs at a steady
   speed until the next slide has taken over, so the picture never jumps or stops. */
.hero__slide.active .hero__image,
.hero__slide.carousel-item-next .hero__image,
.hero__slide.carousel-item-prev .hero__image {
	animation: aqua-ken-burns calc(var(--aqua-hero-interval, 7000ms) + 2500ms) linear both;
}

@keyframes aqua-ken-burns {
	from {
		transform: scale(1.1);
	}

	to {
		transform: scale(1);
	}
}

/* Text reveal: each line fades up, one after another, while the slide fades in. */
.hero__subtitle,
.hero__title,
.hero__text,
.hero__actions {
	animation: aqua-hero-reveal 0.9s var(--aqua-ease) both;
}

@keyframes aqua-hero-reveal {
	from {
		opacity: 0;
		transform: translate3d(0, 28px, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.hero__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	background: rgba(0, 20, 66, 0.72);
	text-align: center;
}

.hero__content {
	max-width: 820px;
}

.hero__subtitle {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 1.5rem;
	color: var(--aqua-primary);
	font-family: var(--aqua-font-body);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	animation-delay: 0.35s;
}

.hero__subtitle::before {
	content: "";
	width: 36px;
	height: 2px;
	background: currentColor;
}

.hero__title {
	margin-bottom: 1.5rem;
	color: var(--aqua-white);
	font-size: clamp(2.2rem, 4.6vw, 4.6rem);
	font-weight: 700;
	line-height: 1.08;
	text-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	animation-delay: 0.5s;
}

.hero__text {
	max-width: 620px;
	margin: 0 auto 2rem;
	color: rgba(255, 255, 255, 0.88);
	font-size: 1rem;
	line-height: 1.7;
	animation-delay: 0.65s;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 1rem;
	animation-delay: 0.8s;
}

.hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	background: var(--aqua-primary);
	color: var(--aqua-white);
	font-size: 30px;
	transform: translateY(-50%);
	transition: background-color 0.5s;
}

.hero__arrow:hover {
	background: var(--aqua-secondary);
}

.hero__arrow--prev {
	left: 0;
	border-radius: 0 50px 50px 0;
}

.hero__arrow--next {
	right: 0;
	border-radius: 50px 0 0 50px;
}

/* Overrides Bootstrap .carousel-indicators defaults (same specificity, loaded later). */
.hero__dots {
	bottom: 30px;
	gap: 8px;
	margin: 0;
}

.hero__dots .hero__dot {
	width: 32px;
	height: 4px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.5);
	opacity: 1;
	transition: width 0.4s var(--aqua-ease), background-color 0.4s ease;
}

.hero__dots .hero__dot.active {
	width: 56px;
	background: var(--aqua-primary);
}

@media (min-width: 576px) {
	.hero__text {
		font-size: 1.25rem;
		margin-bottom: 3rem;
	}
}

@media (min-width: 992px) {
	.hero__image {
		height: 100vh;
		min-height: 660px;
		max-height: 940px;
	}

	.hero__overlay {
		padding: 100px 0 0;
		text-align: start;
	}

	.hero__overlay--end {
		justify-content: flex-end;
		background: linear-gradient(270deg, rgba(0, 20, 66, 0.88) 0%, rgba(0, 20, 66, 0.6) 45%, rgba(0, 20, 66, 0.15) 100%);
		text-align: end;
	}

	.hero__overlay--start {
		justify-content: flex-start;
		background: linear-gradient(90deg, rgba(0, 20, 66, 0.88) 0%, rgba(0, 20, 66, 0.6) 45%, rgba(0, 20, 66, 0.15) 100%);
	}

	.hero__overlay--end .hero__content {
		padding-right: 100px;
	}

	.hero__overlay--start .hero__content {
		padding-left: 100px;
	}

	.hero__overlay--end .hero__subtitle {
		flex-direction: row-reverse;
	}

	.hero__overlay--end .hero__text {
		margin-right: 0;
	}

	.hero__overlay--start .hero__text {
		margin-left: 0;
	}

	.hero__overlay--end .hero__actions {
		justify-content: flex-end;
	}

	.hero__overlay--start .hero__actions {
		justify-content: flex-start;
	}

	.hero__arrow {
		display: flex;
	}

	.hero__dots {
		bottom: 120px;
	}
}
