/*
 * Hero slider — visual language matched to the a2-s.vercel.app reference:
 * deep navy backdrop, dual gradient overlay (directional + radial glow),
 * gold accent, Clash Display/Inter type pairing, "premium" easing.
 * Designed to sit inside an Elementor "Full Width" section so it can
 * render edge-to-edge; test against Blocksy's default container padding
 * if placed elsewhere.
 */

.a2s-hero-slider {
	--a2s-navy: #0a1628;
	--a2s-gold-400: #ff8a40;
	--a2s-gold-500: #ff670a;
	--a2s-shadow-card: 0 4px 24px rgba(0, 0, 0, 0.18);
	--a2s-shadow-gold: 0 8px 30px rgba(255, 103, 10, 0.25);
	--a2s-ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
	--a2s-container-max: 1440px;
	--a2s-container-pad: clamp(1rem, 5vw, 4rem);

	position: relative;
	width: 100%;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	background-color: var(--a2s-navy);
	font-family: "Clash Display", var(--a2s-body-font, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.a2s-hero-slider .swiper-slide {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
}

/* Background image/video ----------------------------------------------- */

.a2s-hero-slider__bg {
	position: absolute;
	inset: -8% 0 0;
	height: 116%;
	z-index: 0;
	overflow: hidden;
}

.a2s-hero-slider__image,
.a2s-hero-slider__video,
.a2s-hero-slider__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.a2s-hero-slider__video {
	z-index: 1;
}

.a2s-hero-slider__poster {
	z-index: 0;
}

/* Directional + radial gradient overlay for legibility and brand glow. */
.a2s-hero-slider__bg::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(
		105deg,
		rgba(10, 22, 40, 0.94) 0%,
		rgba(10, 22, 40, 0.78) 32%,
		rgba(10, 22, 40, 0.45) 62%,
		rgba(10, 22, 40, 0.6) 100%
	);
}

.a2s-hero-slider__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		radial-gradient(55% 60% at 15% 25%, rgba(21, 101, 192, 0.28), transparent 60%),
		radial-gradient(45% 50% at 88% 18%, rgba(249, 168, 37, 0.16), transparent 60%),
		linear-gradient(to top, rgba(10, 22, 40, 0.85), transparent 28%);
}

/* Content ---------------------------------------------------------------- */

.a2s-hero-slider__container {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: var(--a2s-container-max);
	margin-inline: auto;
	padding-inline: var(--a2s-container-pad);
	padding-block: 8rem 9rem;
}

.a2s-hero-slider__content {
	max-width: 48rem;
	color: #fff;
}

.swiper-slide-active .a2s-hero-slider__content {
	animation: a2s-fade-up 0.7s var(--a2s-ease-premium) both;
}

.a2s-hero-slider__title {
	font-size: clamp(2.4rem, 5.6vw, 4.5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0 0 1.25rem;
}

.a2s-hero-slider__title-highlight {
	background: linear-gradient(90deg, var(--a2s-gold-400), var(--a2s-gold-500));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.a2s-hero-slider__desc {
	font-family: var(--a2s-body-font, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 1.125rem;
	line-height: 1.625;
	color: rgba(255, 255, 255, 0.8);
	max-width: 42rem;
	margin: 0;
}

/* Footer: pagination + CTA ------------------------------------------------ */

.a2s-hero-slider__footer {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 4;
}

.a2s-hero-slider__footer-inner {
	max-width: var(--a2s-container-max);
	margin-inline: auto;
	padding-inline: var(--a2s-container-pad);
	padding-bottom: clamp(2rem, 6vw, 4.5rem);
}

.a2s-hero-slider__pagination-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.a2s-hero-slider__pause-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	flex: none;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	padding: 0;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.a2s-hero-slider__pause-toggle:hover,
.a2s-hero-slider__pause-toggle:focus-visible {
	border-color: var(--a2s-gold-400);
	color: var(--a2s-gold-400);
}

.a2s-hero-slider__icon-pause,
.a2s-hero-slider__icon-play {
	width: 0.8rem;
	height: 0.8rem;
	position: relative;
}

.a2s-hero-slider__icon-pause::before,
.a2s-hero-slider__icon-pause::after {
	content: "";
	position: absolute;
	top: 0;
	width: 30%;
	height: 100%;
	background: currentColor;
	border-radius: 1px;
}
.a2s-hero-slider__icon-pause::before { left: 10%; }
.a2s-hero-slider__icon-pause::after { right: 10%; }

.a2s-hero-slider__icon-play {
	display: none;
	border-left: 0.7rem solid currentColor;
	border-top: 0.45rem solid transparent;
	border-bottom: 0.45rem solid transparent;
	width: 0;
	height: 0;
	margin-left: 2px;
}

.a2s-hero-slider__pause-toggle[aria-pressed="true"] .a2s-hero-slider__icon-pause {
	display: none;
}
.a2s-hero-slider__pause-toggle[aria-pressed="true"] .a2s-hero-slider__icon-play {
	display: block;
}

.a2s-hero-slider__pagination.swiper-pagination {
	position: static;
	display: flex;
	align-items: center;
	gap: 0.625rem;
	width: auto;
}

.a2s-hero-slider .swiper-pagination-bullet {
	position: relative;
	display: block;
	width: 1rem;
	height: 0.375rem;
	margin: 0 !important;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.2);
	opacity: 1;
	overflow: hidden;
	transition: width 0.3s ease, background-color 0.2s ease;
}

.a2s-hero-slider .swiper-pagination-bullet:hover {
	background: rgba(255, 255, 255, 0.4);
}

.a2s-hero-slider .swiper-pagination-bullet-active {
	width: 2.25rem;
	background: rgba(255, 255, 255, 0.2);
}

.a2s-hero-slider .swiper-pagination-bullet-active .a2s-hero-slider__bullet-fill {
	background: var(--a2s-gold-400);
}

.a2s-hero-slider__bullet-fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0%;
	border-radius: 9999px;
	background: transparent;
}

.a2s-hero-slider__trust {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem 1.5rem;
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
}

.a2s-hero-slider__trust li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
}

.a2s-hero-slider__trust-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	flex: none;
	border-radius: 9999px;
	background: rgba(255, 138, 64, 0.15);
	color: var(--a2s-gold-400);
}

.a2s-hero-slider__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.a2s-hero-slider__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 3rem;
	padding-inline: 2rem;
	border-radius: 0.375rem;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	text-decoration: none;
	transition: transform 0.3s var(--a2s-ease-premium), box-shadow 0.3s var(--a2s-ease-premium), border-color 0.2s ease, color 0.2s ease;
}

.a2s-hero-slider__btn-icon {
	flex: none;
}

.a2s-hero-slider__btn--primary {
	background: var(--a2s-gold-500);
	color: #fff;
	box-shadow: var(--a2s-shadow-card);
}

.a2s-hero-slider__btn--primary:hover,
.a2s-hero-slider__btn--primary:focus-visible {
	transform: translateY(-2px);
	box-shadow: var(--a2s-shadow-gold);
}

.a2s-hero-slider__btn--secondary {
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(8px);
}

.a2s-hero-slider__btn--secondary:hover,
.a2s-hero-slider__btn--secondary:focus-visible {
	border-color: var(--a2s-gold-400);
	color: var(--a2s-gold-400);
}

@keyframes a2s-fade-up {
	0% {
		opacity: 0;
		transform: translateY(24px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	.a2s-hero-slider__container {
		padding-block: 7rem 13rem;
	}

	.a2s-hero-slider__footer-inner {
		padding-bottom: 1.75rem;
	}

	.a2s-hero-slider__trust {
		gap: 0.75rem 1.25rem;
		margin-bottom: 1.25rem;
	}

	.a2s-hero-slider__cta {
		flex-direction: column;
		align-items: stretch;
	}

	.a2s-hero-slider__btn {
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.a2s-hero-slider .swiper-wrapper,
	.swiper-slide-active .a2s-hero-slider__content {
		transition-duration: 0ms !important;
		animation: none !important;
	}
}
