/* Clients v2 — filterable client grid (pages/template-clients-v2.php)
   Mobile-first; 2-column grid below the parent theme's 560px breakpoint.
   Reuses the theme's .hero-section, .divider and Gotham faces. */

/* Hero — theme's banner with the clients overlays */
.clients-v2-page .hero-section {
	min-height: clamp(220px, 32vw, 380px);
	overflow: hidden;
	padding: 40px 0;
}

.clients-v2-page .hero-section:before,
.clients-v2-page .hero-section:after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.clients-v2-page .hero-section:before {
	background-color: rgba(127, 192, 177, .34);
	mix-blend-mode: multiply;
}

.clients-v2-page .hero-section:after {
	background: linear-gradient(180deg, rgba(40, 39, 39, .18), rgba(40, 39, 39, .34));
}

.clients-v2-page .hero-section .container {
	z-index: 3;
}

.clients-v2-page .hero-section h1 {
	font-size: clamp(52px, 8vw, 96px);
	font-weight: 500;
	letter-spacing: -.04em;
	line-height: 1;
	text-align: center;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

/* Layout */
.clients-v2 {
	color: #282727;
	font-family: "Gotham", "Arial", "Helvetica Neue", "Helvetica", sans-serif;
	font-weight: 500;
}

/* Intro */
.clients-v2-intro {
	padding: clamp(32px, 4.5vw, 56px) clamp(20px, 5vw, 60px) 0;
	text-align: center;
}

.clients-v2-intro-text {
	margin: 0 auto;
	max-width: 680px;
}

.clients-v2-intro-text p {
	color: #343434;
	font-family: "Gotham Book", "Arial", "Helvetica Neue", "Helvetica", sans-serif;
	font-size: clamp(16px, 1.5vw, 18px);
	font-weight: normal;
	line-height: 1.6;
	margin: 0 0 14px;
}

.clients-v2-intro-text p:last-child {
	margin-bottom: 0;
}

/* Theme divider (2px rule + yellow plus), sitting below the intro */
.clients-v2-divider {
	margin-top: clamp(40px, 5vw, 56px);
}

/* Filters + grid */
.clients-v2-body {
	margin: 0 auto;
	max-width: 1240px;
	padding: clamp(36px, 5vw, 56px) clamp(20px, 5vw, 60px) clamp(56px, 7vw, 88px);
	box-sizing: content-box;
}

.clients-v2-filters {
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: clamp(28px, 3.5vw, 40px);
}

.clients-v2-filter-label {
	color: #282727;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 2px;
	line-height: 1.2;
	margin-right: 4px;
	text-transform: uppercase;
}

.clients-v2-pill {
	background-color: #fff;
	border: 2px solid #e3e3e3;
	border-radius: 23.5px;
	color: #282727;
	cursor: pointer;
	font-family: "Gotham", "Arial", "Helvetica Neue", "Helvetica", sans-serif;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 1.2px;
	line-height: 1.2;
	padding: 9px 18px;
	text-transform: uppercase;
	-webkit-transition: background-color .25s ease, color .25s ease, border-color .25s ease;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.clients-v2-pill:hover {
	border-color: #f37160;
}

.clients-v2-pill[aria-pressed="true"] {
	background-color: #f37160;
	border-color: #f37160;
	color: #fff;
}

.clients-v2-count {
	color: #6b6b6b;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	margin: 0 0 22px;
}

.clients-v2 .clients-v2-grid {
	display: -ms-grid;
	display: grid;
	gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px);
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.clients-v2-item[hidden] {
	display: none;
}

/* Tile */
.clients-v2-tile {
	color: #282727;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	gap: 12px;
	text-decoration: none;
}

.clients-v2-photo {
	aspect-ratio: 4 / 5;
	border-radius: 9px;
	display: block;
	overflow: hidden;
	position: relative;
}

.clients-v2-photo:after {
	background-color: rgba(243, 113, 96, 0);
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	-webkit-transition: background-color .3s ease;
	transition: background-color .3s ease;
}

.clients-v2-img {
	display: block;
	height: 100%;
	left: 0;
	-o-object-fit: cover;
	object-fit: cover;
	position: absolute;
	top: 0;
	-webkit-transition: -webkit-transform .5s ease;
	transition: transform .5s ease;
	width: 100%;
}

a.clients-v2-tile:hover .clients-v2-img {
	-webkit-transform: scale(1.04);
	transform: scale(1.04);
}

a.clients-v2-tile:hover .clients-v2-photo:after {
	background-color: rgba(243, 113, 96, .18);
}

.clients-v2-name {
	color: #282727;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -.2px;
	line-height: 1.25;
}

/* Focus — the theme removes outlines globally, so restore a visible ring here */
.clients-v2-pill:focus-visible,
.clients-v2-tile:focus-visible {
	outline: 2px solid #f37160;
	outline-offset: 3px;
}

.clients-v2-tile:focus-visible {
	border-radius: 9px;
}

@media (min-width: 560px) {
	.clients-v2 .clients-v2-grid {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}
}
