/**
 * Achol Core – Full-screen Hero (aarong-style)
 * Version: 1.0.0
 *
 * Full viewport campaign banners, 3–5 slides, no third-party library.
 */

.achol-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--achol-color-soft-neutral);
}

/* Full screen – aarong-like large campaign banner */
.achol-hero--fullscreen {
	height: calc(100vh - var(--achol-header-height-mobile));
	height: calc(100dvh - var(--achol-header-height-mobile));
	min-height: 420px;
	max-height: 900px;
}

@media (min-width: 1024px) {
	.achol-hero--fullscreen {
		height: calc(100vh - var(--achol-header-height));
		height: calc(100dvh - var(--achol-header-height));
		min-height: 560px;
		max-height: 920px;
	}
}

/* When announce bar is present, header stack is taller – optional adjustment via body class later */

.achol-hero__track {
	position: relative;
	width: 100%;
	height: 100%;
}

.achol-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0.6s ease;
	z-index: 1;
}

.achol-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	.achol-hero__slide {
		transition: none;
	}
}

/* Media */
.achol-hero__media {
	position: absolute;
	inset: 0;
}

.achol-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.achol-hero__overlay {
	position: absolute;
	inset: 0;
	background: #000;
	pointer-events: none;
}

/* Content */
.achol-hero__content {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	pointer-events: none;
}

.achol-hero__content-inner {
	pointer-events: auto;
	max-width: 720px;
	color: #fff;
}

.achol-hero--text-center .achol-hero__content {
	justify-content: center;
	text-align: center;
}

.achol-hero--text-center .achol-hero__content-inner {
	margin-left: auto;
	margin-right: auto;
}

.achol-hero--text-left .achol-hero__content {
	justify-content: flex-start;
	text-align: left;
}

.achol-hero--text-right .achol-hero__content {
	justify-content: flex-end;
	text-align: right;
}

.achol-hero__eyebrow {
	margin: 0 0 var(--achol-space-2);
	font-size: var(--achol-font-size-xs);
	font-weight: var(--achol-font-weight-medium);
	letter-spacing: var(--achol-letter-spacing-wider);
	text-transform: uppercase;
	opacity: 0.9;
}

.achol-hero__heading {
	margin: 0 0 var(--achol-space-3);
	font-size: clamp(1.75rem, 4vw, 3.25rem);
	font-weight: var(--achol-font-weight-semibold);
	line-height: var(--achol-line-height-tight);
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.achol-hero__subtitle {
	margin: 0 0 var(--achol-space-6);
	font-size: clamp(0.95rem, 1.5vw, 1.15rem);
	line-height: var(--achol-line-height-relaxed);
	opacity: 0.95;
	max-width: 36em;
}

.achol-hero--text-center .achol-hero__subtitle {
	margin-left: auto;
	margin-right: auto;
}

.achol-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--achol-space-3);
}

.achol-hero--text-center .achol-hero__actions {
	justify-content: center;
}

.achol-hero__cta {
	pointer-events: auto;
}

.achol-hero__cta--secondary {
	border-color: #fff;
	color: #fff;
	background: transparent;
}

.achol-hero__cta--secondary:hover {
	background: #fff;
	color: var(--achol-color-secondary);
}

.achol-hero__full-link {
	position: absolute;
	inset: 0;
	z-index: 3;
}

/* Controls */
.achol-hero__controls {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
}

.achol-hero__arrow {
	pointer-events: auto;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	cursor: pointer;
	border-radius: var(--achol-radius-full);
	backdrop-filter: blur(4px);
	transition: background-color var(--achol-transition-fast);
}

.achol-hero__arrow:hover {
	background: rgba(255, 255, 255, 0.3);
}

.achol-hero__arrow:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.achol-hero__arrow--prev {
	left: var(--achol-space-3);
}

.achol-hero__arrow--next {
	right: var(--achol-space-3);
}

@media (min-width: 768px) {
	.achol-hero__arrow--prev {
		left: var(--achol-space-6);
	}
	.achol-hero__arrow--next {
		right: var(--achol-space-6);
	}
}

.achol-hero__dots {
	pointer-events: auto;
	position: absolute;
	bottom: var(--achol-space-5);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: var(--achol-space-2);
}

.achol-hero__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: var(--achol-radius-full);
	background: transparent;
	cursor: pointer;
	transition: background-color var(--achol-transition-fast), transform var(--achol-transition-fast);
}

.achol-hero__dot.is-active {
	background: #fff;
	transform: scale(1.15);
}

.achol-hero__dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.achol-hero__pause {
	pointer-events: auto;
	position: absolute;
	bottom: var(--achol-space-5);
	right: var(--achol-space-5);
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff;
	border-radius: var(--achol-radius-full);
	cursor: pointer;
	font-size: 11px;
}

.achol-hero__pause:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Mobile: slightly shorter full-screen for usability */
@media (max-width: 767px) {
	.achol-hero--fullscreen {
		min-height: 380px;
		max-height: 640px;
	}

	.achol-hero__arrow {
		width: 38px;
		height: 38px;
	}

	.achol-hero__content-inner {
		padding-top: var(--achol-space-8);
		padding-bottom: var(--achol-space-10);
	}
}
