/**
 * Past projects listing — matches Delco Figma secondary pages (blog / gallery).
 */
.dpp-page {
	--dpp-bg: #f9f7f5;
	--dpp-surface: #ffffff;
	--dpp-text: #323c48;
	--dpp-muted: rgba(50, 60, 72, 0.72);
	--dpp-accent: #4779b9;
	--dpp-max: 172.8rem;
	--dpp-pad: clamp(2rem, 4vw, 5rem);
	background: var(--dpp-bg);
}

.dpp-page.secondary {
	background: var(--dpp-bg);
}

.dpp-section {
	padding: clamp(2.4rem, 3vw, 4rem) 0 clamp(5rem, 6vw, 8rem);
}

.dpp-inner {
	width: 100%;
	max-width: var(--dpp-max);
	margin: 0 auto;
	padding: 0 var(--dpp-pad);
	box-sizing: border-box;
}

.dpp-header {
	margin-bottom: clamp(2.4rem, 3vw, 3.6rem);
	max-width: 72rem;
}

.dpp-eyebrow {
	margin: 0 0 1rem;
	font-family: var(--delco-font-title);
	font-size: clamp(1.2rem, 1.05vw, 1.6rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.18rem;
	text-transform: uppercase;
	color: var(--dpp-text);
}

.dpp-title {
	margin: 0 0 1.2rem;
	font-family: var(--delco-font-display);
	font-size: clamp(3rem, 3.6vw, 4.8rem);
	font-weight: 500;
	line-height: 1.08;
	color: var(--dpp-text);
}

.dpp-lede {
	margin: 0;
	max-width: 62rem;
	font-family: var(--delco-font-body);
	font-size: clamp(1.5rem, 1.2vw, 1.8rem);
	line-height: 1.55;
	color: var(--dpp-muted);
}

/* ── Filters ───────────────────────────────────────────────────────────────── */
.dpp-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-bottom: clamp(2.4rem, 3vw, 3.6rem);
}

.dpp-filter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 4.4rem;
	padding: 0.8rem 1.8rem;
	border: 0.1rem solid rgba(50, 60, 72, 0.18);
	border-radius: 10rem;
	background: var(--dpp-surface);
	font-family: var(--delco-font-title);
	font-size: clamp(1.1rem, 0.95vw, 1.3rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.12rem;
	text-transform: uppercase;
	color: var(--dpp-text);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dpp-filter:hover {
	border-color: rgba(50, 60, 72, 0.35);
}

.dpp-filter.is-active {
	background: var(--dpp-text);
	border-color: var(--dpp-text);
	color: #fff;
}

.dpp-filter:focus-visible {
	outline: 0.2rem solid rgba(71, 121, 185, 0.45);
	outline-offset: 0.15rem;
}

/* ── Grid ──────────────────────────────────────────────────────────────────── */
.dpp-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.6rem, 2vw, 3rem);
}

.dpp-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border-radius: 1.6rem;
	overflow: hidden;
	background: var(--dpp-surface);
	text-decoration: none;
	color: inherit;
	box-shadow: 0 0.2rem 1.2rem rgba(50, 60, 72, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dpp-card:hover {
	transform: translateY(-0.3rem);
	box-shadow: 0 1.2rem 2.8rem rgba(50, 60, 72, 0.12);
	text-decoration: none;
	color: inherit;
}

.dpp-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #ece9e4;
}

.dpp-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dpp-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: clamp(1.6rem, 1.8vw, 2.4rem);
}

.dpp-card__title {
	margin: 0;
	font-family: var(--delco-font-display);
	font-size: clamp(1.8rem, 1.5vw, 2.2rem);
	font-weight: 500;
	line-height: 1.2;
	color: var(--dpp-text);
}

.dpp-card__location {
	margin: 0;
	font-family: var(--delco-font-body);
	font-size: clamp(1.35rem, 1.1vw, 1.6rem);
	line-height: 1.4;
	color: var(--dpp-muted);
}

.dpp-card.is-hidden {
	display: none;
}

.dpp-empty {
	display: none;
	margin: 0;
	padding: clamp(4rem, 6vw, 8rem) 0;
	font-family: var(--delco-font-title);
	font-size: clamp(1.6rem, 1.4vw, 2rem);
	color: var(--dpp-muted);
	text-align: center;
}

.dpp-empty.is-visible {
	display: block;
}

/* ── Bottom CTA band ─────────────────────────────────────────────────────── */
.dpp-cta {
	margin-top: clamp(4rem, 5vw, 6rem);
	padding: clamp(3rem, 4vw, 4.8rem);
	border-radius: 1.6rem;
	background: var(--dpp-text);
	color: #fff;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(1.6rem, 2vw, 3rem);
	align-items: center;
}

.dpp-cta__title {
	margin: 0 0 0.8rem;
	font-family: var(--delco-font-display);
	font-size: clamp(2rem, 2.2vw, 2.8rem);
	font-weight: 500;
	line-height: 1.15;
	color: #fff;
}

.dpp-cta__text {
	margin: 0;
	font-family: var(--delco-font-body);
	font-size: clamp(1.4rem, 1.1vw, 1.7rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.88);
	max-width: 52rem;
}

.dpp-cta__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.8rem;
	min-width: min(100%, 22rem);
}

.dpp-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 4.8rem;
	padding: 0 2.4rem;
	border-radius: 10rem;
	border: 0.15rem solid #fff;
	background: #fff;
	font-family: var(--delco-font-title);
	font-size: clamp(1.1rem, 0.95vw, 1.25rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.14rem;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--dpp-text);
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.dpp-cta__btn:hover {
	background: transparent;
	color: #fff;
	text-decoration: none;
}

.dpp-cta__btn--ghost {
	background: transparent;
	color: #fff;
}

.dpp-cta__btn--ghost:hover {
	background: #fff;
	color: var(--dpp-text);
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.dpp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.dpp-filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 0.4rem;
	}

	.dpp-filters::-webkit-scrollbar {
		display: none;
	}

	.dpp-filter {
		flex: 0 0 auto;
	}

	.dpp-grid {
		grid-template-columns: 1fr;
	}

	.dpp-cta {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.dpp-cta__actions {
		width: 100%;
		max-width: 28rem;
		margin: 0 auto;
	}
}
