/* ==========================================================================
   OIB Trusted By — eyebrow heading + responsive row of icon/label brand marks
   ========================================================================== */

.oib-trusted {
	--oib-trusted-pt: 56px;
	--oib-trusted-pb: 56px;

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

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

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

/* ---- Eyebrow ---- */
.oib-trusted__eyebrow {
	margin: 0 0 32px;
	color: #94a3b8;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0px;
	text-transform: uppercase;
	line-height: 1.4;
}

/* ---- Row of items ---- */
.oib-trusted__row {
	list-style: none;
	margin: 0;
	padding: 0;

	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 48px;
	row-gap: 24px;
}

/* ---- Alignment (driven by prefix_class on the Elementor wrapper) ---- */
.oib-trusted--align-left  .oib-trusted        { text-align: left; }
.oib-trusted--align-left  .oib-trusted__row   { justify-content: flex-start; }
.oib-trusted--align-right .oib-trusted        { text-align: right; }
.oib-trusted--align-right .oib-trusted__row   { justify-content: flex-end; }
/* center is the default — no override needed */

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

/* ---- Item (icon + label) ---- */
.oib-trusted__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #94a3b8;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
	line-height: 1;
}

a.oib-trusted__item:hover,
a.oib-trusted__item:focus-visible {
	color: #0f172a;
	transform: translateY(-1px);
	outline: none;
}

a.oib-trusted__item:focus-visible {
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
	border-radius: 6px;
}

/* ---- Icon ---- */
.oib-trusted__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	width: 22px;
	height: 22px;
	line-height: 1;
	flex-shrink: 0;
}

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

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

/* ---- Label ---- */
.oib-trusted__label {
	font-size: 15px;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

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

/* Tablet — slightly tighter */
@media (max-width: 1024px) {
	.oib-trusted__row {
		gap: 36px;
		row-gap: 22px;
	}

	.oib-trusted__label {
		font-size: 14px;
	}
}

/* Small tablet / large phone — wrap into a tidy grid */
@media (max-width: 720px) {
	.oib-trusted {
		padding: clamp(36px, 8vw, 56px) 18px clamp(36px, 8vw, 56px);
	}

	.oib-trusted__eyebrow {
		font-size: 12px;
		margin-bottom: 24px;
	}

	.oib-trusted__row {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 22px 16px;
		justify-items: center;
	}

	.oib-trusted__cell {
		max-width: 100%;
		overflow: hidden;
	}

	.oib-trusted__item {
		gap: 8px;
		max-width: 100%;
		overflow: hidden;
	}

	.oib-trusted__icon {
		font-size: 20px;
		width: 20px;
		height: 20px;
	}

	.oib-trusted__label {
		font-size: 13px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* Phone — 2 columns for legibility */
@media (max-width: 480px) {
	.oib-trusted__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 14px;
	}

	.oib-trusted__label {
		font-size: 12px;
		letter-spacing: 0.06em;
	}
}

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