/**
 * OMI home: CTA banner.
 * Figma: OMI Home Page → CTA banner section (38:3).
 *
 * @author Sameer Ali
 */

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

.omi-home .omi-home-cta__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 580px;
	padding: 103px 64px 64px;
	border-radius: 60px;
	overflow: hidden;
	isolation: isolate;
	background: #0b2b4d;
}

/* Photo: same crop as Figma (image 123% of the panel, nudged up-left). */
.omi-home .omi-home-cta__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
	overflow: hidden;
}

.omi-home .omi-home-cta__img {
	position: absolute;
	top: -2.18%;
	left: -1.48%;
	width: 123.39%;
	height: 122.62%;
	max-width: none;
	object-fit: cover;
	transition: transform 1.6s var(--omi-ease);
}

/* Navy fade from the left (Figma gradient). */
.omi-home .omi-home-cta__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(11, 43, 77, .98) 0%, rgba(11, 43, 77, .91) 47%, rgba(11, 43, 77, 0) 78%, rgba(11, 43, 77, 0) 100%);
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	.omi-home .omi-home-cta__panel:hover .omi-home-cta__img {
		transform: scale(1.06);
	}
}

/* ---------- Text ---------- */

.omi-home .omi-home-cta__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 65px;
	max-width: 580px;
}

.omi-home .omi-home-cta__title {
	margin: 0;
	padding: 0;
	font: 700 34px/1.15 var(--omi-font);
	letter-spacing: 0;
	text-transform: none;
	color: var(--omi-color-white);
}

.omi-home .omi-home-cta__text {
	margin: 0;
	padding: 0;
	font: 400 23px/1.45 var(--omi-font);
	color: var(--omi-color-white);
}

/* Dark pill (same as the stats "Apply Now"); defined here too so this
   section also works on its own. */
.omi-home .omi-home-cta__btn {
	background: var(--omi-color-text);
	color: var(--omi-color-white);
}

.omi-home .omi-home-cta__btn .omi-btn__icon {
	background: #c0ddff;
	color: var(--omi-color-text);
}

.omi-home .omi-home-cta__btn:hover,
.omi-home .omi-home-cta__btn:focus-visible {
	color: var(--omi-color-white);
	box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .6);
}

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

@media (max-width: 1279px) {
	.omi-home .omi-home-cta__content {
		gap: 44px;
	}

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

@media (max-width: 1099px) {
	/* Tablet + phone: the photo shows on top, text sits on a navy fade at the bottom. */
	.omi-home .omi-home-cta__panel {
		justify-content: flex-end;
		min-height: 640px;
		padding: 48px;
		border-radius: 44px;
	}

	.omi-home .omi-home-cta__shade {
		background: linear-gradient(0deg, rgba(11, 43, 77, .98) 0%, rgba(11, 43, 77, .92) 45%, rgba(11, 43, 77, .1) 85%, rgba(11, 43, 77, 0) 100%);
	}

	.omi-home .omi-home-cta__img {
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		object-position: 68% 15%;
	}

	.omi-home .omi-home-cta__content {
		max-width: 620px;
		gap: 28px;
	}

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

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

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

	.omi-home .omi-home-cta__shade {
		background: linear-gradient(0deg, rgba(11, 43, 77, .98) 0%, rgba(11, 43, 77, .9) 55%, rgba(11, 43, 77, .15) 100%);
	}

	.omi-home .omi-home-cta__img {
		object-position: 70% top;
	}

	.omi-home .omi-home-cta__content {
		gap: 20px;
	}

	.omi-home .omi-home-cta__title {
		font-size: 26px;
	}

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

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

	.omi-home .omi-home-cta__panel:hover .omi-home-cta__img {
		transform: none;
	}
}
