/*
 * "As Featured In" brand logo grid — shared across Home and (eventually)
 * Product Development. Colors/type/spacing pulled from theme.json's
 * generated custom properties, never hardcoded — see CLAUDE.md rule 6.
 */

.as-featured-in {
	background-color: var(--wp--preset--color--brand-cream);
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--40);
}

.as-featured-in__inner {
	max-width: var(--wp--style--global--wide-size, 1440px);
	margin: 0 auto;
}

.as-featured-in__heading {
	margin: 0 0 var(--wp--preset--spacing--50);
	font-family: var(--wp--preset--font-family--heading);
	text-align: center;
	color: var(--wp--preset--color--brand-purple);
	font-size: var(--wp--preset--font-size--x-large);
}

.as-featured-in__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--wp--preset--spacing--40);
}

.as-featured-in__card {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 260px;
	height: 140px;
	padding: var(--wp--preset--spacing--30);
	background-color: var(--wp--preset--color--brand-cream);
	border: 1px solid var(--wp--preset--color--brand-purple-light);
	border-radius: 12px;
}

.as-featured-in__card img {
	display: block;
	/* auto, not the width/height attributes, so max-* scales it in proportion. */
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.as-featured-in__placeholder {
	text-align: center;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 600px) {
	.as-featured-in {
		padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
	}

	.as-featured-in__card {
		width: 100%;
		max-width: 280px;
		height: 120px;
	}
}
