/* All About Material v1.4.5 homepage reliability and featured brands */

.aam-featured-brands-section {
	padding-top: 76px;
	padding-bottom: 76px;
	background: #fff;
}

.aam-featured-brands-heading {
	margin-bottom: 45px;
	text-align: center;
}

.aam-featured-brands-heading .aam-eyebrow {
	margin-bottom: 9px;
}

.aam-featured-brands-heading h2 {
	font-size: clamp(34px, 3.2vw, 46px);
	line-height: 1.12;
	letter-spacing: -.035em;
}

.aam-featured-brands-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 38px 30px;
}

.aam-featured-brand-card {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 17px;
	padding: 8px;
	border-radius: 22px;
	transition: background-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.aam-featured-brand-card:hover {
	background: #fff;
	box-shadow: 0 16px 38px rgba(15, 31, 49, .1);
	transform: translateY(-3px);
}

.aam-featured-brand-image {
	width: 92px;
	height: 92px;
	display: grid;
	flex: 0 0 92px;
	place-items: center;
	overflow: hidden;
	border: 1px solid var(--aam-line);
	border-radius: 20px;
	background: var(--aam-primary-soft);
	color: var(--aam-primary);
}

.aam-featured-brand-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aam-featured-brand-image b {
	font: 700 25px "Poppins", sans-serif;
}

.aam-featured-brand-copy {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.aam-featured-brand-copy strong {
	overflow: hidden;
	color: var(--aam-ink);
	font: 600 18px/1.3 "Poppins", sans-serif;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aam-featured-brand-copy small {
	color: var(--aam-muted);
	font-size: 13px;
}

.aam-featured-brands-link {
	width: max-content;
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 38px auto 0;
	color: var(--aam-primary) !important;
	font-size: 13px;
	font-weight: 700;
}

.aam-featured-brands-link:hover span {
	transform: translateX(3px);
}

.aam-featured-brands-link span {
	transition: transform .2s ease;
}

@media (max-width: 1050px) {
	.aam-featured-brands-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.aam-featured-brands-section {
		padding-top: 58px;
		padding-bottom: 58px;
	}

	.aam-featured-brands-heading {
		margin-bottom: 30px;
	}

	.aam-featured-brands-heading h2 {
		font-size: 32px;
	}

	.aam-featured-brands-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.aam-featured-brand-image {
		width: 78px;
		height: 78px;
		flex-basis: 78px;
		border-radius: 17px;
	}
}
