/**
 * OMI home: career stats panel.
 * Figma: OMI Home Page → Career stats section (24:3).
 *
 * @author Sameer Ali
 */

.omi-home .omi-home-stats {
	padding-top: 69px; /* Figma: 69px between the programs panel and this panel */
}

.omi-home .omi-home-stats__panel {
	display: flex;
	justify-content: center;
	padding: 64px;
	border-radius: 60px;
	background: #c0ddff;
	overflow: hidden;
}

.omi-home .omi-home-stats__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 65px;
	width: 100%;
	max-width: 1162px;
}

.omi-home .omi-home-stats__title {
	max-width: 900px; /* breaks after "operations" as in Figma */
	margin: 0;
	padding: 0;
	font: 700 34px/1.15 var(--omi-font);
	letter-spacing: 0;
	text-transform: none;
	color: var(--omi-color-text);
}

/* ---------- Stat cards (174 × 200, gap 94) ---------- */

.omi-home .omi-home-stats__list {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 94px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.omi-home .omi-home-stats__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 174px;
	min-height: 200px;
	margin: 0;
	padding: 24px;
	border-radius: 24px;
	background: var(--omi-color-white);
	text-align: center;
	list-style: none;
	transition: transform .45s var(--omi-ease), box-shadow .45s var(--omi-ease);
}

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

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

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

.omi-home .omi-home-stats__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 100%;
	color: var(--omi-color-text);
}

.omi-home .omi-home-stats__value {
	font: 700 28px/1.2 var(--omi-font);
	font-variant-numeric: tabular-nums;
}

.omi-home .omi-home-stats__label {
	font: 400 14px/1.5 var(--omi-font);
}

@media (hover: hover) and (pointer: fine) {
	.omi-home .omi-home-stats__card:hover {
		transform: translateY(-6px);
		box-shadow: 0 22px 36px -22px rgba(18, 50, 87, .45);
	}

	.omi-home .omi-home-stats__card:hover .omi-home-stats__icon {
		background: var(--omi-color-primary);
		color: var(--omi-color-white);
		transform: rotate(-6deg);
	}
}

/* ---------- Dark pill button (Figma "Career action") ---------- */

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

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

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

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

@media (max-width: 1279px) {
	.omi-home .omi-home-stats__list {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 24px;
		width: 100%;
		max-width: 900px;
	}

	.omi-home .omi-home-stats__card {
		width: auto;
	}
}

@media (max-width: 1099px) {
	.omi-home .omi-home-stats__panel {
		padding: 48px;
		border-radius: 44px;
	}

	.omi-home .omi-home-stats__inner {
		gap: 44px;
	}

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

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

	.omi-home .omi-home-stats__panel {
		padding: 32px 20px;
		border-radius: 28px;
	}

	.omi-home .omi-home-stats__inner {
		gap: 28px;
	}

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

	.omi-home .omi-home-stats__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.omi-home .omi-home-stats__card {
		min-height: 0;
		padding: 20px 14px;
		border-radius: 20px;
	}
}

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