/* =========================================================
   Service Areas Cards Widget — Front-end Styles
   ========================================================= */

.sacw-wrapper {
	width: 100%;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}

.sacw-wrapper * {
	box-sizing: border-box;
}

.sacw-inner {
	max-width: 1320px;
	margin: 0 auto;
	width: 100%;
}

/* Header */
.sacw-header {
	margin-bottom: 36px;
}

.sacw-label {
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #D98A2E;
	margin: 0 0 10px;
}

.sacw-heading {
	margin: 0 0 14px;
	font-family: 'Poppins', sans-serif;
	font-size: 38px;
	font-weight: 800;
	line-height: 1.25;
	color: #16233F;
}

.sacw-description {
	margin: 0;
	max-width: 720px;
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: #5A6B85;
}

.sacw-region-heading {
	font-family: 'Poppins', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #16233F;
	margin: 0 0 24px;
}

/* Grid */
.sacw-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 24px;
	width: 100%;
}

/* Card */
.sacw-card {
	position: relative;
	height: 300px;
	border-radius: 14px;
	overflow: hidden;
}

.sacw-card-media {
	position: absolute;
	inset: 0;
	background-color: #2A3345;
	transition: transform 400ms ease;
	will-change: transform;
}

.sacw-card-empty-hint {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient( 45deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.05) 75%, transparent 75%, transparent );
	background-size: 22px 22px;
}

.sacw-card-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba( 10, 15, 25, 0.55 );
	transition: background-color 400ms ease;
	pointer-events: none;
}

.sacw-card:hover .sacw-card-overlay,
.sacw-card.is-active .sacw-card-overlay {
	background-color: rgba( 10, 15, 25, 0.72 );
}

.sacw-card:hover .sacw-card-media,
.sacw-card.is-active .sacw-card-media {
	transform: scale( 1.06 );
}

.sacw-card-content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 16px;
	padding: 20px;
}

.sacw-card-location {
	font-family: 'Poppins', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #FFFFFF;
	margin: 0;
}

/* Hover-reveal CTA button */
.sacw-card-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #FFFFFF;
	background-color: #D98A2E;
	padding: 10px 22px;
	border-radius: 50px;
	text-decoration: none;
	white-space: nowrap;
	opacity: 0;
	transform: translateY( 12px );
	transition: opacity 300ms ease, transform 300ms ease, background-color 250ms ease;
	pointer-events: none;
}

.sacw-card:hover .sacw-card-button,
.sacw-card:focus-within .sacw-card-button,
.sacw-card.is-active .sacw-card-button {
	opacity: 1;
	transform: translateY( 0 );
	pointer-events: auto;
}

.sacw-card-button:hover {
	background-color: #C17A22;
}

/* =========================================================
   Responsive — Tablet (1024px)
   ========================================================= */
@media ( max-width: 1024px ) {
	.sacw-grid {
		grid-template-columns: repeat( 2, 1fr );
	}

	.sacw-heading {
		font-size: 30px;
	}
}

/* =========================================================
   Responsive — Mobile (767px)
   ========================================================= */
@media ( max-width: 767px ) {
	.sacw-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.sacw-heading {
		font-size: 24px;
	}

	.sacw-description {
		font-size: 15px;
	}

	.sacw-card {
		height: 220px;
	}

	.sacw-card-location {
		font-size: 20px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.sacw-card-media,
	.sacw-card-overlay,
	.sacw-card-button {
		transition: none !important;
	}
}
