/* ==========================================================================
   OIB Services / Expertise — centered header + responsive icon-card grid
   ========================================================================== */

.oib-services {
	--oib-services-pt: 96px;
	--oib-services-pb: 96px;
	border-top: 1px solid #dddddd6b;

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

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

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

/* ---- Header ---- */
.oib-services__header {
	text-align: center;
	margin: 0 auto 56px;
	max-width: 760px;
}

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

.oib-services__subtitle {
	margin: 0;
	color: #64748b;
	font-size: clamp(15px, 1.1vw, 17px);
	line-height: 1.65;
}

/* ---- Grid ---- */
.oib-services__grid {
	list-style: none;
	margin: 0;
	padding: 0;

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

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

/* ---- Card ---- */
.oib-services__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	width: 100%;
	padding: 32px;
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 16px;
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 8px 24px -16px rgba(15, 23, 42, 0.08);
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease;
	color: inherit;
	text-decoration: none;
}

/* Higher-specificity selector so it beats the Elementor-generated
   `.elementor-element.elementor-element-XXX .oib-services__card { border-color: ... }`
   rule produced by the "Border Color" control (specificity 0,3,0).
   The `box-shadow: 0 0 0 1px` doubles the existing 1px border into a crisp
   2px amber ring on hover without causing a 1px layout shift. */
.oib-services .oib-services__grid .oib-services__card:hover,
.oib-services .oib-services__grid .oib-services__card--linked:focus-visible {
	transform: translateY(-3px);
	border-color: #7E5D74;
	box-shadow:
		0 0 0 1px #7E5D74,
		0 1px 2px rgba(15, 23, 42, 0.05),
		0 20px 40px -16px rgba(126, 93, 116, 0.35);
	outline: none;
}

a.oib-services__card:focus-visible {
	box-shadow:
		0 0 0 3px rgba(126, 93, 116, 0.3),
		0 18px 36px -18px rgba(15, 23, 42, 0.18);
}

/* ---- Icon ---- */
.oib-services__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: #fef3c7;
	color: #7E5D74;
	font-size: 24px;
	line-height: 1;
	flex-shrink: 0;
	margin-bottom: 28px;
	transition:
		transform 0.25s ease,
		background-color 0.25s ease,
		color 0.25s ease;
}

/* Higher-specificity selector so it beats the Elementor-generated
   `.elementor-element.elementor-element-XXX .oib-services__icon { color/background: ... }`
   rules produced by the Icon Color / Icon Background controls (specificity 0,3,0). */
.oib-services .oib-services__grid .oib-services__card:hover .oib-services__icon {
	background-color: #7E5D74;
	color: #ffffff;
}

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

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

/* ---- Card text ---- */
.oib-services__card-title {
	margin: 0 0 12px;
	color: #0f172a;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.oib-services__card-desc {
	margin: 0;
	color: #475569;
	font-size: 15px;
	line-height: 1.65;
}

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

/* Tablet — 2 columns */
@media (max-width: 1024px) {
	.oib-services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 22px;
	}

	.oib-services__header {
		margin-bottom: 44px;
	}

	.oib-services__card {
		padding: 28px;
	}
}

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

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

	.oib-services__header {
		margin-bottom: 32px;
	}

	.oib-services__card {
		padding: 24px;
	}

	.oib-services__icon {
		margin-bottom: 22px;
	}

	.oib-services__card-title {
		font-size: 20px;
		margin-bottom: 10px;
	}

	.oib-services__card-desc {
		font-size: 14.5px;
	}
}

/* ==========================================================================
   A11y / motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.oib-services__card,
	.oib-services__icon { transition: none !important; }

	.oib-services__card:hover { transform: none; }
}
