/* Shared "image card" component -- used by the Services hub grid
   (page-our-services.php) and the homepage Rentals grid
   (template-parts/home-rentals-arches.php). Deliberately ONE real
   shared file rather than two independently-styled copies: the arch
   version of this (border-radius: 50% 50% 0 0 on a 1:1 image, title
   as an overlapping pill badge) was rebuilt separately in each place
   and drifted -- same visual intent, but each grid's container width
   differed enough (native page vs. still-Elementor homepage) that the
   two ended up rendering at genuinely different sizes at the same
   zoom level. A single shared class fixes that by construction: both
   grids are now driven by the exact same CSS, so there's nothing left
   to drift. Plain rounded-rect cards are also just less sensitive to
   container-width differences than a 50%-circle arch is. */

.cwm-card-grid {
	max-width: 1400px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

.cwm-card {
	display: block;
	text-decoration: none;
	background: #1f1f1f;
	/* The site's cyan/teal accent -- the same color the original arch
	   cards were outlined in (#2F7574), reused here as a thin border. */
	border: 1px solid #2F7574;
	border-radius: 14px;
	overflow: hidden;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.cwm-card:hover {
	/* Cyan, matching the header nav's own active-item color (#75CABA) --
	   not the site's brand green -- replaced 2026-08-21 per direct
	   request. */
	border-color: #75CABA;
	transform: translateY(-4px);
}

.cwm-card__image {
	aspect-ratio: 1 / 1;
	background: linear-gradient(160deg, #2a2a2a, #101010);
}

.cwm-card__image img,
.cwm-card__image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cwm-card__title {
	display: block;
	padding: 16px 18px;
	color: #ffffff;
	/* The theme's real heading font (--theme-font-h1_font-family through
	   -h6_font-family are all "Bebas Neue") -- naturally all-caps in its
	   own letterforms, same font the original category/nav labels use.
	   This is a plain <span>, not an h-tag, so it doesn't inherit that
	   font automatically the way a real heading would -- same gotcha
	   footer.css hit with the phone number, fixed the same way: name
	   the font explicitly rather than restructure the markup. */
	font-family: "Bebas Neue", cursive;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 20px;
	font-weight: 400;
	text-align: center;
}

.cwm-card:hover .cwm-card__title {
	color: #75CABA;
}
