/* ==========================================================================
   OIB Case Studies / Results — dark section with header + card grid
   ========================================================================== */

.oib-cs {
	--oib-cs-pt: 96px;
	--oib-cs-pb: 96px;

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

/* ---- Container widths ---- */
.oib-cs__inner {
	margin: 0 auto;
}

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

/* ==========================================================================
   Header (heading + subtitle on left, View All on right)
   ========================================================================== */

.oib-cs__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 56px;
}

.oib-cs__header-copy {
	flex: 1 1 480px;
	min-width: 0;
	max-width: 720px;
}

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

.oib-cs__subtitle {
	margin: 0;
	color: #94a3b8;
	font-size: clamp(14px, 1vw, 16px);
	line-height: 1.6;
}

.oib-cs__view-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #7E5D74;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.005em;
	transition: color 0.2s ease, gap 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
}

.oib-cs__view-all:hover,
.oib-cs__view-all:focus-visible {
	color: #917388;
	gap: 10px;
	outline: none;
}

.oib-cs__view-all-arrow {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* ==========================================================================
   Card grid
   ========================================================================== */

.oib-cs__grid {
	list-style: none;
	margin: 0;
	padding: 0;

	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}

.oib-cs__cell {
	margin: 0;
	padding: 0;
	display: flex;
}

/* ---- Card ---- */
.oib-cs__card {
	display: flex;
	flex-direction: column;
	width: 100%;
	color: inherit;
	text-decoration: none;
	transition: transform 0.25s ease;
	cursor: pointer;
}

.oib-cs__card:hover,
.oib-cs__card:focus-visible {
	transform: translateY(-3px);
	outline: none;
}

a.oib-cs__card:focus-visible .oib-cs__media {
	box-shadow: 0 0 0 3px rgba(126, 93, 116, 0.45);
}

/* ---- Media ---- */
.oib-cs__media {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	aspect-ratio: 18 / 10 !important;
	background: #1e293b;
	transition: box-shadow 0.25s ease, transform 0.4s ease;
}

.oib-cs__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

.oib-cs__card:hover .oib-cs__media img,
.oib-cs__card:focus-visible .oib-cs__media img {
	transform: scale(1.06);
}

/* Placeholder when image is missing — shows the alt label centered */
.oib-cs__media--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #475569;
	font-size: 14px;
	font-weight: 500;
	background: #111c33;
}

/* ---- Stats row ---- */
.oib-cs__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 28px 40px;
	margin-top: 24px;
}

.oib-cs__stat {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.oib-cs__stat-value {
	color: #7E5D74;
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
}

.oib-cs__stat-label {
	color: #64748b;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.4;
}

/* ---- Title ---- */
.oib-cs__title {
	margin: 18px 0 0;
	color: #ffffff;
	font-size: clamp(20px, 1.7vw, 24px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
	transition: color 0.25s ease;
}

/* Higher-specificity selector so it beats Elementor's per-instance
   `.elementor-element-XXX .oib-cs__title { color: ... }` (specificity 0,3,0). */
.oib-cs .oib-cs__grid .oib-cs__card:hover .oib-cs__title,
.oib-cs .oib-cs__grid .oib-cs__card:focus-visible .oib-cs__title {
	color: #7E5D74;
}

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

/* Tablet — keep 2 columns but tighter */
@media (max-width: 1024px) {
	.oib-cs__grid {
		gap: 24px;
	}

	.oib-cs__stats {
		gap: 20px 28px;
		margin-top: 20px;
	}

	.oib-cs__title {
		font-size: 20px;
		margin-top: 14px;
	}
}

/* Phone — single column, header stacks */
@media (max-width: 720px) {
	.oib-cs {
		padding: clamp(56px, 12vw, 80px) 18px clamp(56px, 12vw, 80px);
	}

	.oib-cs__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		margin-bottom: 36px;
	}

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

	.oib-cs__media {
		border-radius: 14px;
	}

	.oib-cs__stats {
		gap: 16px 24px;
	}

	.oib-cs__stat-value {
		font-size: 26px;
	}

	.oib-cs__stat-label {
		font-size: 10.5px;
	}

	.oib-cs__title {
		font-size: 19px;
	}
}

/* ==========================================================================
   A11y / motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.oib-cs__card,
	.oib-cs__media,
	.oib-cs__media img,
	.oib-cs__title,
	.oib-cs__view-all       { transition: none !important; }
	.oib-cs__card:hover     { transform: none; }
	.oib-cs__card:hover .oib-cs__media img { transform: none; }
}
