/**
 * AIBM Home page sections.
 * Loaded only on pages using the "AIBM Home" template.
 * Convention: each section uses its own prefix (.aibm-home-hero__* …)
 * and places its content inside .aibm-container (site-wide 1340px width).
 *
 * @package AIBM
 * @author  Sameer Ali N
 */

.aibm-home {
	display: block;
	overflow-x: clip; /* stops animated elements causing sideways scroll (keeps sticky header working) */
	background: #fff;
	color: var(--aibm-color-text);
	font-family: var(--aibm-font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.aibm-home *,
.aibm-home *::before,
.aibm-home *::after {
	box-sizing: border-box;
}

/* Parent theme sets its own fonts on text elements; keep ours on the homepage. */
#aibm-main h1,
#aibm-main h2,
#aibm-main h3,
#aibm-main h4,
#aibm-main p,
#aibm-main li,
#aibm-main a,
#aibm-main span,
#aibm-main button {
	font-family: var(--aibm-font-body);
}

/* =========================================================
   1. Hero — Figma 1440 × 794 (919 frame − 125 header)
   ========================================================= */
.aibm-home-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: #091424;
	color: #fff;
}

/* Background image + overlays */
.aibm-home-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
}
.aibm-home-hero__bg-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	animation: aibm-hero-bg-in 1.8s cubic-bezier(.22, 1, .36, 1) both;
}
/* #091424 @ 75% over the whole image */
.aibm-home-hero__bg::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(9, 20, 36, .75);
}
/* Figma "Rectangle" gradient over the right side (x 660, 780 wide) */
.aibm-home-hero__bg::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	width: 54.17%;
	background: linear-gradient(90deg, rgba(9, 20, 36, 0) 0%, rgba(9, 20, 36, .55) 100%);
}
@keyframes aibm-hero-bg-in {
	from { transform: scale(1.08); }
	to { transform: scale(1); }
}

/* Layout */
.aibm-home-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 48px;
	min-height: 794px;
}

/* Text */
.aibm-home-hero__content {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 687px;
	margin-top: 84px; /* Figma: text block sits slightly below the vertical centre */
}
#aibm-main h1.aibm-home-hero__title {
	margin: 0;
	color: #fff;
	font-size: 64px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
	text-transform: none;
}
#aibm-main p.aibm-home-hero__text {
	margin: 0;
	color: #fff;
	font-size: 26px;
	font-weight: 400;
	line-height: 37px;
	letter-spacing: 0;
}

/* Photo — 465 × 617, radius 58, shadow 0 18 36 #030817 @ 42% */
.aibm-home-hero__media {
	justify-self: end;
}
.aibm-home-hero__photo {
	position: relative;
	width: 465px;
	aspect-ratio: 465 / 617;
	overflow: hidden;
	border-radius: 58px;
	background: #1E293B;
	box-shadow: 0 18px 36px rgba(3, 8, 23, .42);
	transform: translateZ(0); /* keeps rounded corners during the zoom (Safari) */
}
.aibm-home-hero__photo img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center top;
	transition: transform 1.2s var(--aibm-anim-ease, cubic-bezier(.22, 1, .36, 1));
}
.aibm-home-hero__photo:hover img {
	transform: scale(1.2);
}

/* Hero responsive */
@media (max-width: 1279px) {
	.aibm-home-hero__inner {
		min-height: 720px;
	}
	#aibm-main h1.aibm-home-hero__title {
		font-size: 56px;
	}
	#aibm-main p.aibm-home-hero__text {
		font-size: 22px;
		line-height: 32px;
	}
	.aibm-home-hero__photo {
		width: 400px;
		border-radius: 50px;
	}
}

@media (max-width: 1099px) {
	.aibm-home-hero__inner {
		gap: 36px;
		min-height: 0;
		padding-top: 88px;
		padding-bottom: 88px;
	}
	.aibm-home-hero__content {
		margin-top: 0;
	}
	#aibm-main h1.aibm-home-hero__title {
		font-size: 48px;
	}
	#aibm-main p.aibm-home-hero__text {
		font-size: 20px;
		line-height: 30px;
	}
	.aibm-home-hero__photo {
		width: 340px;
		border-radius: 42px;
	}
	.aibm-home-hero__bg::after {
		width: 60%;
	}
}

@media (max-width: 767px) {
	.aibm-home-hero__inner {
		grid-template-columns: 1fr;
		gap: 36px;
		padding-top: 56px;
		padding-bottom: 64px;
	}
	.aibm-home-hero__content {
		gap: 16px;
		max-width: none;
	}
	#aibm-main h1.aibm-home-hero__title {
		font-size: 40px;
	}
	#aibm-main p.aibm-home-hero__text {
		font-size: 18px;
		line-height: 28px;
	}
	.aibm-home-hero__media {
		justify-self: stretch;
	}
	.aibm-home-hero__photo {
		width: 100%;
		max-width: 440px;
		aspect-ratio: 4 / 5;
		margin: 0 auto;
		border-radius: 32px;
	}
	.aibm-home-hero__bg::after {
		width: 100%;
		background: linear-gradient(180deg, rgba(9, 20, 36, 0) 40%, rgba(9, 20, 36, .55) 100%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.aibm-home-hero__bg-img {
		animation: none;
	}
	.aibm-home-hero__photo:hover img {
		transform: none;
	}
}

/* =========================================================
   Next sections are added below, in page order.
   ========================================================= */