/* ==========================================================================
   OIB Story & Stats — split layout: heading + paragraphs / stats card grid
   ========================================================================== */

.oib-story {
	--oib-story-pt: 80px;
	--oib-story-pb: 80px;

	position: relative;
	padding: var(--oib-story-pt) 24px var(--oib-story-pb);
	background: #ffffff;
	font-family: var(--oib-font, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	-webkit-font-smoothing: antialiased;
}

.oib-story__inner {
	margin: 0 auto;
	max-width: 1280px;
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	align-items: center;
	gap: 64px;
}

.oib-story__inner--narrow { max-width: 1080px; }
.oib-story__inner--wide   { max-width: 1280px; }
.oib-story__inner--full   { max-width: calc(100% - 32px); }

/* Stats-on-left swap */
.oib-story--stats-left .oib-story__inner  { grid-template-columns: 1.05fr 1fr; }
.oib-story--stats-left .oib-story__copy   { order: 2; }
.oib-story--stats-left .oib-story__stats  { order: 1; }

/* ==========================================================================
   Copy (left column by default)
   ========================================================================== */

.oib-story__copy {
	min-width: 0;
}

.oib-story__heading {
	margin: 0 0 28px;
	color: #0f172a;
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.oib-story__paragraph {
	margin: 0 0 20px;
	color: #475569;
	font-size: clamp(15px, 1.1vw, 16px);
	line-height: 1.7;
}

.oib-story__paragraph:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Stats container (right column by default)
   ========================================================================== */

.oib-story__stats {
	background: #dbeafe;
	border-radius: 20px;
	padding: 28px;
	min-width: 0;
}

.oib-story__stats-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

/* ---- Single stat card ---- */
.oib-story__stat {
	background: #ffffff;
	border-radius: 14px;
	padding: 24px;
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 8px 20px -14px rgba(15, 23, 42, 0.08);
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.oib-story__stat:hover {
	transform: translateY(-2px);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.05),
		0 14px 28px -16px rgba(15, 23, 42, 0.14);
}

.oib-story__stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: #7E5D74;
	font-size: 18px;
	line-height: 1;
	margin-bottom: 14px;
}

.oib-story__stat-icon svg {
	width: 1em;
	height: 1em;
	display: block;
	fill: currentColor;
}

.oib-story__stat-icon i {
	font-size: inherit;
	line-height: 1;
}

.oib-story__stat-value {
	margin: 0;
	color: #0f172a;
	font-size: clamp(24px, 2.4vw, 30px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.oib-story__stat-label {
	margin: 0;
	color: #64748b;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.4;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.oib-story__inner {
		gap: 40px;
	}

	.oib-story__stats {
		padding: 22px;
	}

	.oib-story__stats-grid {
		gap: 14px;
	}

	.oib-story__stat {
		padding: 20px;
	}
}

@media (max-width: 768px) {
	.oib-story {
		padding: clamp(56px, 12vw, 80px) 18px clamp(56px, 12vw, 80px);
	}

	.oib-story__inner,
	.oib-story--stats-left .oib-story__inner {
		grid-template-columns: 1fr !important;
		gap: 32px;
	}

	.oib-story--stats-left .oib-story__copy  { order: 1; }
	.oib-story--stats-left .oib-story__stats { order: 2; }

	.oib-story__heading {
		margin-bottom: 20px;
	}

	.oib-story__paragraph {
		margin-bottom: 16px;
	}
}

@media (max-width: 480px) {
	.oib-story__stats {
		padding: 18px;
	}

	.oib-story__stats-grid {
		grid-template-columns: 1fr !important;
		gap: 12px;
	}

	.oib-story__stat {
		padding: 18px;
	}

	.oib-story__stat-value {
		font-size: 22px;
	}
}

/* ==========================================================================
   A11y / motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.oib-story__stat { transition: none !important; }
	.oib-story__stat:hover { transform: none; }
}
