/* =====================================================
   Brands logo marquee (product-used brands only)
===================================================== */

.cb-brand-slider {
	--cb-brand-ink: #0b1f3a;
	--cb-brand-muted: #6b7785;
	--cb-brand-line: rgba(11, 31, 58, 0.08);
	width: 100%;
	padding: 40px 20px 30px;
	background:
		radial-gradient(120% 80% at 50% 0%, rgba(11, 31, 58, 0.04), transparent 55%),
		linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
	font-family: 'Poppins', sans-serif;
	box-sizing: border-box;
}

.cb-brand-slider *,
.cb-brand-slider *::before,
.cb-brand-slider *::after {
	box-sizing: border-box;
}

.cb-brand-slider__inner {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
}

.cb-brand-slider__head {
	text-align: center;
	margin: 0 0 18px;
}

.cb-brand-slider__eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cb-brand-muted);
}

.cb-brand-slider__title {
	margin: 0;
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--cb-brand-ink);
}

.cb-brand-slider__viewport {
	position: relative;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.cb-brand-slider__track {
	display: flex;
	align-items: center;
	width: max-content;
	gap: 12px;
	padding: 6px 0;
	animation: cb-brand-marquee 38s linear infinite;
	will-change: transform;
}

.cb-brand-slider__viewport:hover .cb-brand-slider__track {
	animation-play-state: paused;
}

.cb-brand-slider__item {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 168px;
	height: 88px;
	padding: 8px 10px;
	border: 1px solid var(--cb-brand-line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 8px 24px rgba(11, 31, 58, 0.04);
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.cb-brand-slider__item:hover {
	border-color: rgba(11, 31, 58, 0.18);
	box-shadow: 0 12px 28px rgba(11, 31, 58, 0.1);
	transform: translateY(-2px);
}

.cb-brand-slider__item img {
	max-width: 148px;
	max-height: 72px;
	width: auto;
	height: auto;
	object-fit: contain;
}

@keyframes cb-brand-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.cb-brand-slider__track {
		animation: none;
		width: 100%;
		flex-wrap: wrap;
		justify-content: center;
	}

	.cb-brand-slider__viewport {
		mask-image: none;
		-webkit-mask-image: none;
	}
}

@media (max-width: 768px) {
	.cb-brand-slider {
		padding: 30px 14px 25px;
	}

	.cb-brand-slider__item {
		width: 140px;
		height: 76px;
		padding: 6px 8px;
		border-radius: 12px;
	}

	.cb-brand-slider__item img {
		max-width: 124px;
		max-height: 62px;
	}

	.cb-brand-slider__track {
		animation-duration: 28s;
	}
}

/* =====================================================
   Brand banners — Carlisle Brass / Alexander Wilks
===================================================== */

.cb-brands {
	width: 100%;
	padding: 10px 20px 36px;
	background: #fff;
	font-family: 'Poppins', sans-serif;
	box-sizing: border-box;
}

.cb-brands *,
.cb-brands *::before,
.cb-brands *::after {
	box-sizing: border-box;
}

.cb-brands__container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}

.cb-brands__card {
	position: relative;
	display: block;
	min-height: 320px;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	isolation: isolate;
	box-shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cb-brands__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(17, 17, 17, 0.14);
	color: #fff;
	text-decoration: none;
}

.cb-brands__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: #dfe6f5;
	background-position: center right;
	background-repeat: no-repeat;
	background-size: contain;
	transform: scale(1.02);
	transition: transform 0.5s ease;
}

.cb-brands__card:hover .cb-brands__media {
	transform: scale(1.06);
}

.cb-brands__card--carlisle .cb-brands__media {
	background-color: #e6f0fc;
}

.cb-brands__card--wilks .cb-brands__media {
	background-color: #fbf3e7;
}

.cb-brands__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		105deg,
		rgba(17, 24, 48, 0.88) 0%,
		rgba(17, 24, 48, 0.62) 42%,
		rgba(17, 24, 48, 0.18) 72%,
		rgba(17, 24, 48, 0.05) 100%
	);
	pointer-events: none;
}

.cb-brands__card--carlisle .cb-brands__shade {
	background: linear-gradient(
		105deg,
		rgba(35, 40, 120, 0.92) 0%,
		rgba(59, 64, 200, 0.72) 46%,
		rgba(59, 64, 200, 0.16) 78%,
		rgba(59, 64, 200, 0.04) 100%
	);
}

.cb-brands__card--wilks .cb-brands__shade {
	background: linear-gradient(
		105deg,
		rgba(48, 34, 20, 0.9) 0%,
		rgba(92, 62, 34, 0.68) 46%,
		rgba(92, 62, 34, 0.14) 78%,
		rgba(92, 62, 34, 0.04) 100%
	);
}

.cb-brands__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-height: 320px;
	padding: 40px 36px;
	max-width: 360px;
}

.cb-brands__eyebrow {
	display: block;
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.88);
}

.cb-brands__title {
	display: block;
	margin: 0 0 12px;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
}

.cb-brands__text {
	display: block;
	margin: 0 0 22px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
}

.cb-brands__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cb-brands__card:hover .cb-brands__btn {
	background: #f4f5ff;
	color: #3b40c8;
	transform: translateY(-1px);
}

.cb-brands__card--wilks:hover .cb-brands__btn {
	color: #6b4226;
	background: #fff8f0;
}

@media (max-width: 980px) {
	.cb-brands__container {
		gap: 16px;
	}

	.cb-brands__card,
	.cb-brands__content {
		min-height: 280px;
	}

	.cb-brands__title {
		font-size: 28px;
	}

	.cb-brands__content {
		padding: 32px 28px;
		max-width: 320px;
	}
}

@media (max-width: 767px) {
	.cb-brands {
		padding: 8px 15px 28px;
	}

	.cb-brands__container {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.cb-brands__card,
	.cb-brands__content {
		min-height: 240px;
	}

	.cb-brands__content {
		padding: 28px 22px;
		max-width: 100%;
	}

	.cb-brands__title {
		font-size: 26px;
	}

	.cb-brands__text {
		font-size: 14px;
		margin-bottom: 18px;
	}

	.cb-brands__media {
		background-size: 55% auto;
		background-position: right center;
	}
}
