/**
 * OMI home page sections.
 * Figma: OMI Home Page (3:65) — Banner inset (3:78), Benefit strip (15:3).
 * Selectors use two classes so Upstudy / Elementor kit typography
 * (e.g. ".elementor-kit-7 h1") cannot override them.
 *
 * @author Sameer Ali
 */

.omi-home {
	display: block;
	font-family: var(--omi-font);
	color: var(--omi-color-text);
	overflow-x: clip;
}

.omi-home *,
.omi-home *::before,
.omi-home *::after {
	box-sizing: border-box;
}

/* ---------- Shared pill button (Figma "Learning action") ---------- */

.omi-home .omi-btn {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	height: 56px;
	padding: 0 10px 0 25px;
	border-radius: 100px;
	font: 500 15px/1 var(--omi-font);
	text-decoration: none;
	white-space: nowrap;
	transition:
		transform .35s var(--omi-ease),
		box-shadow .35s var(--omi-ease),
		background-color .3s var(--omi-ease),
		color .3s var(--omi-ease);
}

.omi-home .omi-btn--light {
	background: var(--omi-color-white);
	color: var(--omi-color-text);
}

.omi-home .omi-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 100px;
	background: #cfcfcf;
	color: var(--omi-color-text);
	transition: background-color .3s var(--omi-ease), color .3s var(--omi-ease), transform .45s var(--omi-ease);
}

.omi-home .omi-btn__icon .omi-icon {
	display: block;
	width: 17px;
	height: 17px;
	transition: transform .45s var(--omi-ease);
}

.omi-home .omi-btn:hover,
.omi-home .omi-btn:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px -14px rgba(10, 25, 45, .55);
	color: var(--omi-color-text);
}

.omi-home .omi-btn:hover .omi-btn__icon,
.omi-home .omi-btn:focus-visible .omi-btn__icon {
	background: var(--omi-color-primary);
	color: var(--omi-color-white);
}

.omi-home .omi-btn:hover .omi-btn__icon .omi-icon,
.omi-home .omi-btn:focus-visible .omi-btn__icon .omi-icon {
	transform: rotate(45deg);
}

.omi-home .omi-btn:focus-visible {
	outline: 2px solid var(--omi-color-primary);
	outline-offset: 3px;
}

/* ---------- Hero banner ---------- */

.omi-home .omi-home-hero {
	padding-top: 21px;
}

.omi-home .omi-home-hero__banner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 664px;
	padding: 64px 64px 87px;
	border-radius: 60px;
	overflow: hidden;
	isolation: isolate;
	background: #123257;
}

.omi-home .omi-home-hero__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	animation: omi-hero-zoom 1.8s var(--omi-ease) both;
}

.omi-home .omi-home-hero__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

/* "Photographic contrast": top → bottom. */
.omi-home .omi-home-hero__shade--top {
	background: linear-gradient(180deg, rgba(18, 50, 87, .5) 0%, rgba(18, 50, 87, .27) 48%, rgba(18, 50, 87, .03) 100%);
}

/* "Top-left blue fade": left → right. */
.omi-home .omi-home-hero__shade--left {
	background: linear-gradient(90deg, rgba(18, 50, 87, .8) 0%, rgba(18, 50, 87, 0) 100%);
}

.omi-home .omi-home-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
	max-width: 1150px;
}

.omi-home .omi-home-hero__title {
	margin: 0;
	/* Figma: Aeonik Bold. Uses Aeonik once its web licence/files are added; Inter Bold until then. */
	font-family: "Aeonik", var(--omi-font);
	font-weight: 700;
	font-size: 52px;
	line-height: 1.15;
	letter-spacing: 0;
	text-transform: none;
	color: var(--omi-color-white);
}

.omi-home .omi-home-hero__lead {
	max-width: 650px;
	margin: 0;
	padding: 0;
	font: 400 23px/1.45 var(--omi-font);
	letter-spacing: 0;
	color: var(--omi-color-white);
}

/* ---------- Benefit strip ---------- */

.omi-home .omi-home-benefits {
	background: var(--omi-color-white);
}

.omi-home .omi-home-benefits__list {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 69px 40px 48px; /* 21px gap under the banner + 48px (Figma) */
	list-style: none;
}

.omi-home .omi-home-benefits__item {
	display: flex;
	align-items: center;
	gap: 20px;
	flex: 0 1 380px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.omi-home .omi-home-benefits__item::before,
.omi-home .omi-home-benefits__item::after,
.omi-home .omi-home-benefits__divider::before {
	content: none;
}

.omi-home .omi-home-benefits__divider {
	flex: 0 0 1px;
	align-self: center;
	width: 1px;
	height: 64px;
	margin: 0 24px;
	padding: 0;
	background: #e2e8f0;
	list-style: none;
}

.omi-home .omi-home-benefits__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	background: var(--omi-color-text);
	color: var(--omi-color-white);
	transition: background-color .35s var(--omi-ease), transform .45s var(--omi-ease);
}

.omi-home .omi-home-benefits__icon .omi-icon {
	display: block;
	width: 28px;
	height: 28px;
}

.omi-home .omi-home-benefits__item:hover .omi-home-benefits__icon {
	background: var(--omi-color-primary);
	transform: translateY(-3px) rotate(-4deg);
}

.omi-home .omi-home-benefits__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.omi-home .omi-home-benefits__title {
	margin: 0;
	padding: 0;
	font: 700 18px/1.2 var(--omi-font);
	letter-spacing: 0;
	color: var(--omi-color-text);
}

.omi-home .omi-home-benefits__desc {
	margin: 0;
	padding: 0;
	font: 400 14px/1.5 var(--omi-font);
	color: #4a5568;
}

/* ---------- Responsive ---------- */

@media (max-width: 1279px) {
	.omi-home .omi-home-hero__title {
		font-size: 46px;
	}

	.omi-home .omi-home-benefits__list {
		padding-left: 0;
		padding-right: 0;
	}
}

@media (max-width: 1099px) {
	.omi-home .omi-home-hero__banner {
		min-height: 560px;
		padding: 48px 48px 56px;
		border-radius: 44px;
	}

	.omi-home .omi-home-hero__title {
		font-size: 40px;
	}

	.omi-home .omi-home-hero__lead {
		font-size: 20px;
	}

	.omi-home .omi-home-benefits__item {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.omi-home .omi-home-benefits__divider {
		margin: 0 16px;
		height: 96px;
	}
}

@media (max-width: 767px) {
	.omi-home .omi-home-hero {
		padding-top: 12px;
	}

	.omi-home .omi-home-hero__banner {
		min-height: 500px;
		padding: 32px 24px 32px;
		border-radius: 28px;
	}

	/* Stronger shade so text stays readable on small screens. */
	.omi-home .omi-home-hero__shade--left {
		background: linear-gradient(0deg, rgba(18, 50, 87, .85) 0%, rgba(18, 50, 87, .2) 75%);
	}

	.omi-home .omi-home-hero__content {
		gap: 16px;
	}

	.omi-home .omi-home-hero__title {
		font-size: 30px;
	}

	.omi-home .omi-home-hero__lead {
		font-size: 17px;
	}

	.omi-home .omi-btn {
		height: 52px;
		padding-left: 22px;
	}

	.omi-home .omi-home-benefits__list {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 40px 0 32px;
	}

	.omi-home .omi-home-benefits__item {
		flex: 0 0 auto;
		flex-direction: row;
		align-items: center;
		gap: 16px;
	}

	.omi-home .omi-home-benefits__divider {
		display: none;
	}
}

@keyframes omi-hero-zoom {
	from { transform: scale(1.08); }
	to   { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.omi-home .omi-home-hero__img {
		animation: none;
	}

	.omi-home .omi-btn,
	.omi-home .omi-btn *,
	.omi-home .omi-home-benefits__icon {
		transition: none;
	}
}
