/**
 * 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-style edge-to-edge campaign */
.achol-hero--fullscreen {
	width: 100vw;
	max-width: 100%;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	height: calc(100vh - var(--achol-header-height-mobile, 64px));
	height: calc(100dvh - var(--achol-header-height-mobile, 64px));
	min-height: 70dvh;
	max-height: none;
}

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

/* Announce bar visible — subtract approx bar height */
body:has(.achol-announce-bar:not([hidden]):not(.is-dismissed):not(.is-scroll-hidden)) .achol-hero--fullscreen {
	height: calc(100dvh - var(--achol-header-height-mobile, 64px) - 2.25rem);
}
@media (min-width: 1024px) {
	body:has(.achol-announce-bar:not([hidden]):not(.is-dismissed):not(.is-scroll-hidden)) .achol-hero--fullscreen {
		height: calc(100dvh - var(--achol-header-height, 76px) - 2.25rem);
	}
}

.achol-hero {
	overflow: hidden;
}

.achol-hero__track {
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
	height: 100%;
	transform: translate3d(0, 0, 0);
	transition: transform 0.75s cubic-bezier(0.25, 0.1, 0.25, 1);
	will-change: transform;
}

.achol-hero__slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	min-width: 100%;
	opacity: 1;
	visibility: visible;
	pointer-events: none;
	/* horizontal slide — no fade */
}

.achol-hero__slide.is-active {
	pointer-events: auto;
}

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

/* 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: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	backdrop-filter: none !important;
	color: #fff;
	cursor: pointer;
	opacity: 0.95;
	/* Arrows are text glyphs (‹ ›), not SVG — size via font-size */
	font-size: 2.75rem; /* ~44px glyph */
	font-weight: 300;
	line-height: 1;
	padding: 0;
	transition: opacity 0.15s ease, color 0.15s ease;
}

.achol-hero__arrow span {
	display: block;
	font-size: inherit;
	line-height: 1;
	font-weight: inherit;
	transform: scaleY(1.15); /* slightly taller chevron feel */
}

.achol-hero__arrow:hover {
	background: transparent !important;
	opacity: 1;
}

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

.achol-hero__arrow svg {
	display: block;
	width: 2.25rem;
	height: 2.25rem;
	stroke-width: 1.35;
}

.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: 52px;
		height: 52px;
		font-size: 2.25rem; /* ~36px on mobile */
	}

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

/* React parity – controls & dots */
.achol-hero__nav {
	display: none;
	position: absolute;
	top: 50%;
	z-index: 10;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: var(--achol-radius-full);
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	backdrop-filter: blur(4px);
	cursor: pointer;
	transition: background var(--achol-transition-fast);
}

@media (min-width: 768px) {
	.achol-hero__nav {
		display: inline-flex;
	}
}

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

.achol-hero__nav--prev { left: 1rem; }
.achol-hero__nav--next { right: 1rem; }

.achol-hero__dots {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 0.5rem;
}

.achol-hero__dot {
	width: 16px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: var(--achol-radius-full);
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: width var(--achol-transition-fast), background var(--achol-transition-fast);
}

.achol-hero__dot.is-active,
.achol-hero__dot[aria-current="true"] {
	width: 32px;
	background: var(--achol-color-primary);
}

/* 1.13.62 — Hero chevron glyphs must be large (text, not SVG) */
.achol-hero__arrow {
	font-size: 2.75rem !important;
	width: 64px !important;
	height: 64px !important;
	line-height: 1 !important;
}
.achol-hero__arrow span[aria-hidden] {
	font-size: 1em !important;
	line-height: 1 !important;
}
@media (max-width: 767px) {
	.achol-hero__arrow {
		font-size: 2.25rem !important;
		width: 52px !important;
		height: 52px !important;
	}
}

/* 1.13.63 — Slim Aarong-style hero arrows (SVG line, not bold glyphs) */
.achol-hero__arrow {
	width: 56px !important;
	height: 56px !important;
	font-size: 0 !important; /* hide any residual text */
	font-weight: 400 !important;
	line-height: 1 !important;
	opacity: 0.9 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
.achol-hero__arrow span {
	display: none !important;
}
.achol-hero__arrow-icon,
.achol-hero__arrow svg {
	display: block !important;
	width: 40px !important;
	height: 40px !important;
	stroke-width: 1.25 !important;
}
.achol-hero__arrow:hover {
	opacity: 1 !important;
}
@media (max-width: 767px) {
	.achol-hero__arrow {
		width: 48px !important;
		height: 48px !important;
	}
	.achol-hero__arrow-icon,
	.achol-hero__arrow svg {
		width: 32px !important;
		height: 32px !important;
	}
}
