/**
 * AAA Hero Animation styles.
 *
 * Static landscape background + transparent airplane PNG that animates in
 * from the left. Heading + paragraph + two CTA buttons anchored at the
 * bottom over a dark gradient. Sizing and positions mirror the Figma
 * reference (1440 × 769) and scale fluidly down.
 *
 * @package AAA_Templates
 */

/* ──────────────────────────────────────────
   Section container
   ────────────────────────────────────────── */
.aaa-hero {
	position: relative;
	width: 100%;
	aspect-ratio: 1408 / 769;
	max-height: 90vh;
	min-height: 480px;
	overflow: hidden;
	border-radius: 16px;
	background: #1a2733;
	font-family: 'Mona Sans', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #fff;
	isolation: isolate;
}

/* ──────────────────────────────────────────
   Background landscape
   ────────────────────────────────────────── */
.aaa-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	z-index: 1;
}

/* Dark gradient — transparent at top, opaque at bottom for text legibility */
.aaa-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0) 5%,
		rgba(0, 0, 0, 0.64) 100%
	);
	z-index: 2;
	pointer-events: none;
}

/* ──────────────────────────────────────────
   Airplane PNG — Figma final position
     left=466/1408 = 33.10%
     top=70/769  = 9.10%
     width=737/1408 = 52.34%
   ────────────────────────────────────────── */
.aaa-hero__plane {
	position: absolute;
	left: 33.1%;
	top: 9.1%;
	width: 52.34%;
	height: auto;
	z-index: 3;
	pointer-events: none;
	/* Initial JS-anchored state — translateX is set by GSAP. Setting it here
	   prevents a flash of the final position before JS runs. */
	transform: translateX(-120%);
	will-change: transform;
}

/* ──────────────────────────────────────────
   Bottom content row
     left=48, bottom anchored, gap=77
   ────────────────────────────────────────── */
.aaa-hero__content {
	position: absolute;
	left: clamp(24px, 3.4vw, 48px);
	right: clamp(24px, 3.4vw, 48px);
	bottom: clamp(24px, 3.4vw, 48px);
	z-index: 4;
	display: flex;
	gap: clamp(24px, 5vw, 77px);
	align-items: flex-end;
}

.aaa-hero__heading {
	margin: 0;
	flex: 0 1 821px;
	min-width: 0;
	font-family: inherit;
	font-size: clamp(28px, 4.5vw, 62px);
	font-weight: 500;
	line-height: 1.24;
	color: #fff;
	text-transform: capitalize;
}

.aaa-hero__heading br {
	/* Honour line breaks from the admin textarea. */
	display: block;
}

.aaa-hero__right {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 2.2vw, 32px);
}

.aaa-hero__subtitle {
	margin: 0;
	font-size: clamp(14px, 1.4vw, 20px);
	font-weight: 400;
	line-height: 1.24;
	color: rgba(255, 255, 255, 0.8);
}

.aaa-hero__actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.aaa-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 6px 24px;
	border-radius: 10px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.48;
	letter-spacing: -0.36px;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.aaa-hero__btn--primary {
	background: #bf1d2d;
	color: #fff;
	border: 1px solid #bf1d2d;
}

.aaa-hero__btn--primary:hover {
	background: #a0171f;
	border-color: #a0171f;
	color: #fff;
}

.aaa-hero__btn--secondary {
	background: transparent;
	color: #fff;
	border: 1px solid #fff;
}

.aaa-hero__btn--secondary:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* ──────────────────────────────────────────
   Reduced-motion / JS-not-loaded fallback
   ────────────────────────────────────────── */
.aaa-hero.is-static .aaa-hero__plane,
.no-js .aaa-hero__plane {
	transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
	.aaa-hero__plane {
		transform: translateX(0);
	}
}

/* ──────────────────────────────────────────
   Responsive
   ────────────────────────────────────────── */
@media (max-width: 1024px) {
	.aaa-hero {
		aspect-ratio: 16 / 11;
	}
}

@media (max-width: 768px) {
	.aaa-hero {
		aspect-ratio: 4 / 5;
		border-radius: 12px;
	}

	.aaa-hero__content {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
	}

	.aaa-hero__heading {
		flex: 0 0 auto;
	}

	.aaa-hero__plane {
		/* Drop the plane lower on portrait phones so it doesn't sit too high. */
		top: 18%;
		width: 80%;
		left: 15%;
	}
}

@media (max-width: 520px) {
	.aaa-hero__actions {
		flex-direction: column;
	}

	.aaa-hero__btn {
		width: 100%;
	}
}
