/* =====================================================================
   components/project-card.css — the shared Project card
   (template-parts/global/project-card.php), used by the homepage's Featured
   Projects grid and the Projects listing page.
   ===================================================================== */

.project-card {
	position: relative;
	display: block;
	height: 100%;
	min-height: 20.625rem;
	/* 330px — the design's card height */
	overflow: hidden;
	border-radius: var(--radius-lg);
}

.project-card__media {
	position: absolute;
	inset: 0;
}

.project-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.project-card:hover .project-card__media img {
	transform: scale(1.05);
}

.project-card__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 36, 45, 0) 40%, rgba(20, 36, 45, .82) 100%);
}

/* -- Spec badge (top-left) -- */
.project-card__badge {
	position: absolute;
	top: 1.25rem;
	left: 1.25rem;
	z-index: 3;
	padding: .5rem 1.125rem;
	font-family: var(--font-secondary);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	background: rgba(20, 32, 40, .78);
	border-radius: var(--radius-pill);
	backdrop-filter: blur(6px);
}

/* -- Caption -- */
.project-card__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	min-height: inherit;
	padding: 2rem 1.875rem 1.875rem;
}

.project-card__location {
	display: inline-flex;
	align-items: center;
	gap: .4375rem;
	margin-bottom: .375rem;
	font-family: var(--font-secondary);
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--accent-gold);
}

.project-card__location svg {
	width: 1rem;
	height: 1rem;
}

.project-card__title {
	margin: 0;
	font-size: clamp(1.25rem, 1.16rem + 0.39vw, 1.5rem);
	color: #fff;
}
