/* ==========================================================================
   Hero banner slider — [tech_ae_hero_banner]
   Slides stack in one grid cell and cross-fade; mobile first.
   ========================================================================== */
.tech-ae-hero {
	position: relative;
	overflow: hidden;
	background: var(--tech-ae-dark);
	color: var(--tech-ae-white);
	touch-action: pan-y;
}
.tech-ae-hero__track { display: grid; }
.tech-ae-hero__slide {
	position: relative;
	grid-area: 1 / 1;
	display: flex;
	align-items: center;
	/* Slide images: 1920 × 600. Keeps that 1920:600 shape (600px tall at 1920px wide),
	   but never shorter than 420px so the heading and button fit on phones. */
	min-height: clamp(420px, 31.25vw, 600px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .7s ease, visibility .7s;
}
.tech-ae-hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

/* The <img> equivalent of background-size: cover; background-position: center center; (no repeat).
   An <img> keeps srcset, lazy loading and fetchpriority for the first slide. */
.tech-ae-hero img.tech-ae-hero__img { /* beats Elementor's ".elementor img { height: auto }" */
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none;
	object-fit: cover; object-position: center center;
}

.tech-ae-hero__inner { position: relative; z-index: 2; padding-block: 48px 64px; }
.tech-ae-hero__content { max-width: 640px; }

/* Content position (Hero Slides → Content position) */
.tech-ae-hero__slide--center .tech-ae-hero__content { margin-inline: auto; text-align: center; }
.tech-ae-hero__slide--right .tech-ae-hero__content { margin-left: auto; text-align: right; }
.tech-ae-hero__title {
	margin: 0 0 14px;
	color: var(--tech-ae-white);
	font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.7rem);
	font-weight: 600; line-height: 1.15; letter-spacing: -.01em;
}
.tech-ae-hero__desc { margin: 0 0 24px; color: rgba(255, 255, 255, .88); font-size: clamp(15px, .85rem + .4vw, 19px); line-height: 1.6; }
.tech-ae-hero__btn { position: relative; overflow: hidden; isolation: isolate; min-width: 180px; min-height: 48px; font-size: 16px; }

/* Content animation on the active slide */
.tech-ae-hero__content > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.tech-ae-hero__slide.is-active .tech-ae-hero__content > * { opacity: 1; transform: none; }
.tech-ae-hero__slide.is-active .tech-ae-hero__desc { transition-delay: .12s; }
/* Entrance keeps its .24s delay; the hover effects (translate, shadow, colours) react at once. */
.tech-ae-hero__slide.is-active .tech-ae-hero__btn {
	transition: opacity .6s ease .24s, transform .6s ease .24s, translate .25s ease, box-shadow .25s ease,
		background-color .25s ease, border-color .25s ease;
}

/* Button hover: lifts, glows and a light streak sweeps across */
.tech-ae-hero__btn::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
	transform: translateX(-120%);
	pointer-events: none;
}
.tech-ae-hero__btn:hover,
.tech-ae-hero__btn:focus-visible { translate: 0 -3px; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .55); }
.tech-ae-hero__btn:hover::after,
.tech-ae-hero__btn:focus-visible::after { transform: translateX(120%); transition: transform .7s ease; }
.tech-ae-hero__btn:active { translate: 0 -1px; }

/* Navigation (dots) — inside the banner, bottom centre */
.tech-ae-hero__nav { position: absolute; left: 50%; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 12px; transform: translateX(-50%); }
.tech-ae-hero__dots { display: flex; gap: 8px; }
.tech-ae-hero__dot {
	width: 12px; height: 12px; padding: 0;
	border: 0; border-radius: 3px;
	background: rgba(255, 255, 255, .35);
	cursor: pointer;
	transition: background var(--tech-ae-ease), width var(--tech-ae-ease);
}
.tech-ae-hero__dot:hover { background: rgba(255, 255, 255, .7); }
.tech-ae-hero__dot.is-active { width: 28px; background: var(--tech-ae-primary); }

@media (min-width: 768px) {
	.tech-ae-hero__inner { padding-block: 40px 56px; }
	.tech-ae-hero__content { max-width: 600px; }
}

@media (prefers-reduced-motion: reduce) {
	.tech-ae-hero__slide, .tech-ae-hero__content > *,
	.tech-ae-hero__slide.is-active .tech-ae-hero__btn { transition: none; }
	.tech-ae-hero__btn:hover, .tech-ae-hero__btn:focus-visible { translate: none; }
	.tech-ae-hero__btn::after { display: none; }
}
