/* Hero Slideshow section. */

.rally-hero-slideshow {
	position: relative;
	overflow: hidden;
	color: var(--rally-white);
	isolation: isolate;
	background: var(--rally-black);
}

.rally-hero-slideshow__viewport {
	position: relative;
	min-height: clamp(560px, 88vh, 900px);
}

.rally-hero-slideshow__slide {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	opacity: 0;
	transition: opacity 700ms var(--rally-ease);
	pointer-events: none;
}
.rally-hero-slideshow__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
	.rally-hero-slideshow__slide { transition: none; }
}

.rally-hero-slideshow__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.rally-hero-slideshow__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
	z-index: -1;
}

.rally-hero-slideshow__inner {
	display: flex;
	flex-direction: column;
	gap: var(--rally-space-3);
	align-items: center;
	text-align: center;
	padding-block: var(--rally-section-padding-y);
	max-width: 900px;
}

/* Smaller intro line above the big headline. Roughly half the headline
 * size — keeps the typographic hierarchy "intro / HEADLINE / subhead". */
.rally-hero-slideshow__intro {
	font-family: var(--rally-font-heading);
	font-size: var(--rally-text-2xl);
	color: var(--rally-white);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0;
	line-height: 1.1;
}

.rally-hero-slideshow__headline {
	font-size: var(--rally-text-hero);
	color: var(--rally-white);
	margin: 0;
	line-height: 1.05;
}

.rally-hero-slideshow__subhead {
	font-family: var(--rally-font-heading);
	font-size: var(--rally-text-xl);
	color: var(--rally-white);
	margin: 0;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.rally-hero-slideshow__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rally-space-3);
	justify-content: center;
	margin-top: var(--rally-space-3);
}

/* Arrows */
.rally-hero-slideshow__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
	color: var(--rally-white);
	border: 0;
	cursor: pointer;
	z-index: 3;
	transition: background var(--rally-duration) var(--rally-ease);
}
.rally-hero-slideshow__arrow:hover { background: var(--rally-red); }
.rally-hero-slideshow__arrow:focus-visible {
	outline: 2px solid var(--rally-red);
	outline-offset: 4px;
}
.rally-hero-slideshow__arrow--prev { left: var(--rally-space-3); }
.rally-hero-slideshow__arrow--next { right: var(--rally-space-3); }

/* Dots */
.rally-hero-slideshow__dots {
	position: absolute;
	left: 50%;
	bottom: var(--rally-space-4);
	transform: translateX(-50%);
	display: flex;
	gap: var(--rally-space-2);
	z-index: 3;
}

.rally-hero-slideshow__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	border: 0;
	cursor: pointer;
	padding: 0;
	transition: background var(--rally-duration) var(--rally-ease), transform var(--rally-duration) var(--rally-ease);
}
.rally-hero-slideshow__dot.is-active {
	background: var(--rally-red);
	transform: scale(1.2);
}
.rally-hero-slideshow__dot:focus-visible {
	outline: 2px solid var(--rally-red);
	outline-offset: 3px;
}

/* Hero CTAs use the shared rally-button styles from _components.css.
   The optional third per-slide CTA renders with the --outline variant. */
