/*
 * Brands catalog + single brand page.
 * Templates: archive-brand.html, taxonomy-part_category.html, single-brand.html.
 * Patterns: brands-hero, brands-filter, brands-grid, brands-single-hero, brands-single-about.
 * Design sources: design-concept/Brands.dc.html + partners.utr.ua/{stalhart,sato,delphi}.
 */

/* ==========================================================================
   Catalog hero (patterns/brands-hero.php) — dc "Brands hero"
   ========================================================================== */

.utr-brandhero {
	padding: 96px 56px 64px;
}

.utr-brandhero-title {
	font-size: clamp(44px, 5.4vw, 84px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	margin: 0;
}

.utr-brandhero-lede {
	font-size: 18px;
	line-height: 1.55;
	font-weight: 500;
	color: var(--wp--preset--color--grey-400);
	max-width: 560px;
	margin: 28px 0 0;
	text-wrap: pretty;
}

/* ==========================================================================
   Category filter row (patterns/brands-filter.php) — dc "Brands filter"
   ========================================================================== */

.utr-brandcat-row {
	padding: 48px 56px 0;
}

.utr-brandcat {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.utr-brandcat-link {
	padding: 10px 18px;
	border: 1px solid var(--wp--preset--color--dark);
	background: #fff;
	color: var(--wp--preset--color--dark);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.03em;
}

.utr-brandcat-link:hover {
	border-color: var(--wp--preset--color--accent);
}

.utr-brandcat-link.is-active,
.utr-brandcat-link.is-active:hover {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: #fff;
}

.utr-brandcount {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--wp--preset--color--grey-500);
	margin: 0;
}

/* ==========================================================================
   Catalog grid (patterns/brands-grid.php)
   ========================================================================== */

.utr-brandsec {
	padding: 24px 56px 96px;
}

.utr-brandgrid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}

.utr-brandgrid > li {
	display: flex;
	margin: 0;
}

.utr-brand-card {
	flex: 1;
	background: var(--wp--preset--color--light);
	padding: 26px 20px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-height: 150px;
	box-sizing: border-box;
	text-align: center;
}

.utr-brand-card-logo {
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 10px;
}

.utr-brand-card-logo a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.utr-brand-card .utr-brand-card-logo img {
	width: auto;
	height: auto;
	max-height: 44px;
	max-width: 130px;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.utr-brand-card-name {
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.3;
	text-transform: none;
	margin: 0;
}

.utr-brand-card-name a {
	color: var(--wp--preset--color--dark);
}

.utr-brand-card-name a:hover {
	color: var(--wp--preset--color--accent);
}

.utr-brand-card-cats {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--wp--preset--color--grey-500);
	line-height: 1.4;
	margin: 0;
}

.utr-brand-card-cats a {
	color: inherit;
}

.utr-brand-card-cats a:hover {
	color: var(--wp--preset--color--accent);
}

.utr-brands-empty {
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--preset--color--grey-500);
	margin: 0;
}

/* Pagination only shows when the main query has more than one page. */
.utr-brands-pagination {
	margin-top: 48px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.utr-brands-pagination a {
	color: var(--wp--preset--color--dark);
}

.utr-brands-pagination a:hover {
	color: var(--wp--preset--color--accent);
}

.utr-brands-pagination .page-numbers.current {
	color: var(--wp--preset--color--accent);
}

.utr-brands-note {
	margin: 40px 0 0;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--wp--preset--color--grey-500);
}

.utr-brands-note a {
	color: var(--wp--preset--color--accent);
	font-weight: 800;
}

/* ==========================================================================
   Single brand hero (patterns/brands-single-hero.php)
   ========================================================================== */

.utr-brandsingle-hero {
	padding: 72px 56px 88px;
}

.utr-brandsingle-back {
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 0 0 40px;
}

.utr-brandsingle-back a {
	color: var(--wp--preset--color--grey-400);
}

.utr-brandsingle-back a:hover {
	color: var(--wp--preset--color--accent);
}

.utr-brandsingle-grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 64px;
	align-items: start;
}

.utr-brandsingle-title {
	font-size: clamp(40px, 4.6vw, 72px);
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	margin: 0 0 24px;
}

.utr-brandsingle-lede {
	font-size: 17px;
	line-height: 1.55;
	font-weight: 500;
	color: var(--wp--preset--color--grey-400);
	max-width: 560px;
	margin: 0 0 28px;
	text-wrap: pretty;
}

.utr-brandsingle-lede p {
	margin: 0;
}

/* part_category chips on the dark hero. */
.utr-brand-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 40px;
}

.utr-brand-chips a {
	padding: 9px 16px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.utr-brand-chips a:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

/* White logo card (featured image). */
.utr-brandsingle-logo {
	padding: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
}

.utr-brandsingle-logo figure {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.utr-brandsingle-logo img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 140px;
	object-fit: contain;
}

/* ==========================================================================
   Single brand — description (patterns/brands-single-about.php)
   ========================================================================== */

.utr-brandsingle-about > .utr-section-title {
	margin-bottom: 32px;
}

.utr-brandsingle-content {
	max-width: 760px;
	font-size: 17px;
	line-height: 1.65;
	font-weight: 500;
	color: var(--wp--preset--color--grey-600);
}

.utr-brandsingle-content p {
	margin: 0 0 18px;
}

.utr-brandsingle-content h2,
.utr-brandsingle-content h3 {
	color: var(--wp--preset--color--dark);
	letter-spacing: -0.02em;
	text-transform: uppercase;
	margin: 40px 0 16px;
}

.utr-brandsingle-content h2 {
	font-size: clamp(20px, 1.8vw, 28px);
}

.utr-brandsingle-content h3 {
	font-size: clamp(17px, 1.4vw, 21px);
}

.utr-brandsingle-content ul,
.utr-brandsingle-content ol {
	padding-left: 22px;
	margin: 0 0 18px;
}

.utr-brandsingle-content img {
	max-width: 100%;
	height: auto;
}

.utr-brandsingle-cta {
	margin-top: 48px;
}

/* ==========================================================================
   Responsive — breakpoints match style.css (1100 / 900 / 600)
   ========================================================================== */

@media (max-width: 1100px) {
	.utr-brandgrid {
		grid-template-columns: repeat(4, 1fr);
	}

	.utr-brandsingle-grid {
		grid-template-columns: 1fr 320px;
		gap: 40px;
	}
}

@media (max-width: 900px) {
	.utr-brandhero {
		padding: 72px 24px 48px;
	}

	.utr-brandcat-row {
		padding: 40px 24px 0;
	}

	.utr-brandsec {
		padding: 20px 24px 64px;
	}

	.utr-brandgrid {
		grid-template-columns: repeat(3, 1fr);
	}

	.utr-brandsingle-hero {
		padding: 48px 24px 64px;
	}

	.utr-brandsingle-grid {
		grid-template-columns: 1fr;
	}

	.utr-brandsingle-logo {
		order: -1;
		min-height: 180px;
		padding: 28px;
	}

	.utr-brandsingle-back {
		margin-bottom: 28px;
	}
}

@media (max-width: 600px) {
	.utr-brandgrid {
		grid-template-columns: repeat(2, 1fr);
	}
}
