/* GrowthStudioz — site styles.

   Tokens live in base.css and nowhere else. This file used to redeclare
   --gs-red, --gs-black, --gs-border, --gs-muted, --gs-surface and --gs-radius
   with the pre-brand-system values; because it loads after base.css, those
   quietly won, and an 8px radius rendered as 12px. Redeclaring a token is how
   a single source of truth stops being one. Consume them here, never define.
*/

/* --- logo ------------------------------------------------------------- */

/* .gs-logo sizing lives in header.css, with the component that uses it. */

/* --- listing grid ----------------------------------------------------- */

.gs-grid {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	margin: 2rem 0;
}

.gs-grid--1 { grid-template-columns: 1fr; }
.gs-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gs-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
	.gs-grid--3,
	.gs-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.gs-grid--2,
	.gs-grid--3,
	.gs-grid--4 { grid-template-columns: 1fr; }
}

.gs-listing__empty {
	padding: 2rem;
	border: 1px dashed var(--gs-border);
	border-radius: var(--gs-radius);
	color: var(--gs-body);
	text-align: center;
}

/* --- card ------------------------------------------------------------- */

.gs-card {
	position: relative;
	overflow: hidden;
	background: var(--gs-surface);
	border: 1px solid var(--gs-border);
	border-radius: var(--gs-radius);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gs-card:hover,
.gs-card:focus-within {
	transform: translateY(-3px);
	border-color: var(--gs-accent, var(--gs-red));
	box-shadow: 0 10px 28px rgba(27, 27, 27, 0.1);
}

.gs-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.gs-card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--wp--preset--color--surface-alt, #F7F8FA);
}

.gs-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gs-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem;
}

.gs-card__logo-wrap {
	/* The client logo is a brand asset — contain it, never crop or stretch it. */
	height: 28px;
	margin-bottom: 0.25rem;
}

.gs-card__logo {
	height: 100%;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	object-position: left center;
}

.gs-card__eyebrow {
	margin: 0;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gs-body);
}

.gs-card__title {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.3;
	color: var(--gs-black);
}

.gs-card__meta {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--gs-accent, var(--gs-red));
}

.gs-card__excerpt {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--gs-body);
}

/* --- pagination ------------------------------------------------------- */

.gs-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin: 2.5rem 0;
}

.gs-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	border: 1px solid var(--gs-border);
	border-radius: 8px;
	color: var(--gs-black);
	text-decoration: none;
	font-size: 0.9375rem;
}

.gs-pagination .page-numbers:hover {
	border-color: var(--gs-red);
	color: var(--gs-red);
}

.gs-pagination .page-numbers.current {
	background: var(--gs-black);
	border-color: var(--gs-black);
	color: #fff;
}

/* --- motion ----------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.gs-card,
	.gs-card:hover,
	.gs-card:focus-within {
		transition: none;
		transform: none;
	}
}
