/* Brands We Carry. Colors follow the Kadence palette. */
.sw-brands {
	--sw-red: var(--global-palette1, #c8102e);
	--sw-black: var(--global-palette3, #111);
	--sw-line: var(--global-palette7, #e2e2e2);
	--sw-white: var(--global-palette9, #fff);
	display: grid;
	gap: 1rem;
}
.sw-brands__main {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
.sw-brands__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1rem;
}
.sw-brand {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 96px;
	padding: 1rem;
	border: 1px solid var(--sw-line);
	border-radius: 6px;
	background: var(--sw-white);
	color: var(--sw-black) !important;
	text-align: center;
	text-decoration: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
a.sw-brand:hover,
a.sw-brand:focus-visible {
	border-color: var(--sw-red);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}
.sw-brand--main {
	min-height: 150px;
	border-top: 4px solid var(--sw-red);
}
.sw-brand__name {
	font-family: Oswald, "Arial Narrow", sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.1;
	/* Keep names like "Continental" whole instead of breaking mid-word. */
	overflow-wrap: normal;
	word-break: keep-all;
}
.sw-brand--main .sw-brand__name {
	font-size: 2.4rem;
}
/* Full-width bar under the grid, so the brand rows above stay even. */
.sw-brand--more {
	grid-column: 1 / -1;
	flex-direction: row;
	gap: 0.75rem;
	min-height: 64px;
	border-color: var(--sw-red);
	background: var(--sw-red);
	color: #fff !important;
}
.sw-brand--more .sw-brand__sub {
	margin-top: 0;
}
a.sw-brand--more:hover,
a.sw-brand--more:focus-visible {
	border-color: var(--global-palette2, #9b0d23);
	background: var(--global-palette2, #9b0d23);
}
.sw-brand__sub {
	margin-top: 0.3rem;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.85;
}
.sw-brand img {
	max-width: 100%;
	max-height: 56px;
	object-fit: contain;
}
.sw-brand--main img {
	max-height: 80px;
}
/* Logos that come on a solid color: fill the tile with the same color. */
.sw-brand--mastercraft.sw-brand--logo {
	border-color: #ae2b29;
	background: #ae2b29;
}
.sw-brand--cooper.sw-brand--logo {
	border-color: #384638;
	background: #384638;
}
.sw-brand--mastercraft.sw-brand--logo img {
	max-height: 110px;
}
/* Goodyear: navy logo inverted to white on Goodyear navy. */
.sw-brand--goodyear.sw-brand--logo {
	border-color: #0b1d45;
	background: #0b1d45;
}
.sw-brand--goodyear.sw-brand--logo img {
	width: 75%;
	max-height: none;
}
/* Size Cooper's logo by width so it matches Mastercraft's. */
.sw-brand--cooper.sw-brand--logo img {
	width: 70%;
	max-width: 279px;
	max-height: none;
}

@media (max-width: 767px) {
	.sw-brands__main {
		grid-template-columns: 1fr;
	}
	.sw-brands__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
