/**
 * Projects archive — sidebar filters + grid.
 * Uses theme.json custom properties (colors, spacing, radius, fonts)
 * rather than hardcoded values, so it stays in sync if the palette
 * changes later.
 *
 * Breakpoints match WordPress' own: 782px (core "mobile" cutoff,
 * used by the block editor / core/columns stacking) and 600px
 * (core "small" cutoff).
 */

/* ---------- Layout: sidebar + content ---------- */

.rcl-projects-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: var(--wp--preset--spacing--lg);
	align-items: start;
}

@media (max-width: 782px) {
	.rcl-projects-layout {
		grid-template-columns: 1fr;
	}
}

/* ---------- Filter sidebar ---------- */

.rcl-filters {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	padding: var(--wp--preset--spacing--sm);
	position: sticky;
	top: var(--wp--preset--spacing--md);
}

@media (max-width: 782px) {
	.rcl-filters {
		position: static;
	}
}

.rcl-filter-group {
	border: 0;
	margin: 0 0 var(--wp--preset--spacing--sm) 0;
	padding: 0 0 var(--wp--preset--spacing--sm) 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.rcl-filter-group:last-of-type {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.rcl-filter-group__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--heading-sm);
	color: var(--wp--preset--color--text-primary);
	padding: 0;
	margin-bottom: var(--wp--preset--spacing--xxs);
}

.rcl-filter-option {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--xxs);
	font-size: var(--wp--preset--font-size--small);
	padding: var(--wp--preset--spacing--xxxs) 0;
	cursor: pointer;
}

.rcl-filter-checkbox {
	accent-color: var(--wp--preset--color--red-600);
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.rcl-filter-count {
	color: var(--wp--preset--color--text-primary);
	opacity: 0.55;
}

.rcl-filter-reset {
	margin-top: var(--wp--preset--spacing--sm);
	background: none;
	border: 1px solid var(--wp--preset--color--red-600);
	color: var(--wp--preset--color--red-600);
	border-radius: 4px;
	padding: var(--wp--preset--spacing--xxs) var(--wp--preset--spacing--xs);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.rcl-filter-reset:hover {
	background: var(--wp--preset--color--red-600);
	color: var(--wp--preset--color--on-dark);
}

.rcl-filters__empty {
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.7;
}

/* ---------- Project grid ---------- */

.rcl-projects-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--md);
}

@media (max-width: 1080px) {
	.rcl-projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.rcl-projects-grid {
		grid-template-columns: 1fr;
	}
}
.rcl-projects-layout__content {
    margin: 0;
}
.rcl-project-card {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.rcl-project-card:hover {
	box-shadow: 0 6px 18px rgba(8, 44, 75, 0.12);
	transform: translateY(-2px);
}

.rcl-project-card.is-hidden {
	display: none;
}

.rcl-project-card__link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.rcl-project-card__image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.rcl-project-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0 0 var(--wp--preset--spacing--xs) 0;
}

.rcl-project-card__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-sm);
	color: var(--wp--preset--color--text-primary);
	margin: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--xs) 0;
}

.rcl-project-card__services {
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
    color: var(--wp--preset--color--red-600);
    margin: 0 var(--wp--preset--spacing--xs) 0 var(--wp--preset--spacing--xs);
}

.rcl-project-card__meta {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-primary);
	opacity: 0.7;
	margin: var(--wp--preset--spacing--xxs) var(--wp--preset--spacing--xs) var(--wp--preset--spacing--xs);
}

.rcl-project-card__meta-sep {
	margin: 0 var(--wp--preset--spacing--xxxs);
}

.rcl-projects__no-results,
.rcl-projects__empty {
	font-size: var(--wp--preset--font-size--body);
	opacity: 0.7;
	padding: var(--wp--preset--spacing--md) 0;
}