/**
 * Partners block — see block.php's top comment for the exact Figma
 * measurements/breakpoints this reproduces. Shared/global block (its
 * content comes from Theme Settings, not this block's own fields) —
 * except `background`, a per-instance field, see init.php.
 *
 * @package intobi
 */

.partners--bg-white {
	background: var(--io-bg);
	margin-bottom: 32px;
}

section:not(.page-hero):not(.hero) + .partners--bg-white {
	margin-top: 32px;
}

.partners--bg-transparent {
	background: transparent;
}

.partners__container {
	padding-top: 32px;
	padding-bottom: 32px;
}

.partners__row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 64px;
}

@media (min-width: 1024px) {
	.partners--bg-white {
		margin-bottom: 64px;
	}
	section:not(.page-hero):not(.hero) + .partners--bg-white {
		margin-top: 64px;
	}
	.partners__container {
		padding-top: 64px;
		padding-bottom: 64px;
	}
}

/* Figma: Awards+Partners stay stacked through the 1024-wide frame
   (Partners still full-width, below the stats) — the side-by-side row
   starts at 1240 with a 64px gap (Partners narrows to 504-568px beside
   the 480px stats column), widening to 128px only at 1440. Confirmed
   against the Services AND Home page frames (node 2001:6916 /
   2001:5425) — the Home frame is what caught the 1240 gap value,
   which had been copied from Services' own slightly-off measurement. */
@media (min-width: 1240px) {
	.partners__row {
		flex-direction: row;
		align-items: flex-end;
		gap: 64px;
	}
}

@media (min-width: 1440px) {
	.partners__row {
		gap: 128px;
	}
}

/* ---------------------------------------------------------------
   Stats — "Years in business" / "Completed projects".
------------------------------------------------------------------ */

.partners__stats {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
	width: 100%;
}

@media (min-width: 768px) {
	.partners__stats {
		flex-direction: row;
		align-items: center;
		gap: 64px;
		width: 480px;
		flex-shrink: 0;
	}
}

.partners__stat {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.partners__stat-label {
	font-family: var(--io-font-body);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.25;
	color: var(--io-body);
	margin: 0;
	white-space: nowrap;
}

.partners__stat-value {
	font-family: var(--io-font-heading);
	font-size: 96px;
	line-height: 0.9;
	letter-spacing: -9.6px;
	color: var(--io-highlight);
	margin: 0;
}

/* At 96px our heading font sets "2017" and "100+" about 570px wide, more
   than the 480px stats column. Below 1440 the gap to the badges is only
   64px, so "100+" ran 26px over the first badge (2026-11-18). Smaller
   numbers keep both stats inside the column there; 1440+ has a 128px gap
   and keeps 96px. */
@media (min-width: 1240px) and (max-width: 1439px) {
	.partners__stat-value {
		font-size: 72px;
		letter-spacing: -7.2px;
	}
}

/* ---------------------------------------------------------------
   Badges — "Trusted by numerous partners:" + logo row/grid.
------------------------------------------------------------------ */

.partners__badges {
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: 100%;
	min-width: 0;
}

@media (min-width: 1024px) {
	.partners__badges {
		flex: 1 1 0%;
	}
}

.partners__intro {
	font-family: var(--io-font-heading);
	font-size: 24px;
	line-height: 1.25;
	color: var(--io-body);
	margin: 0;
}

.partners__logo-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px 32px;
	align-items: center;
	width: 100%;
}

@media (min-width: 768px) {
	.partners__logo-list {
		display: flex;
		flex-wrap: nowrap;
		gap: 32px;
		justify-content: center;
	}
}

.partners__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

@media (min-width: 1024px) {
	.partners__logo {
		flex: 1 1 0%;
	}
}

.partners__logo img {
	display: block;
	max-width: 100%;
	max-height: 64px;
	width: auto;
	height: auto;
	object-fit: contain;
	/* Figma applies a luminosity blend to every badge so mismatched
	   partner-logo colors read as one consistent grayscale row. */
	mix-blend-mode: luminosity;
	transform: scale(1);
	transition: all 0.3s ease;
}
.partners__logo:hover img {
	mix-blend-mode: normal;
	transform: scale(1.5);
}