/**
 * Services Grid — Frontend Styles
 * Premium red & black service business grid, matching the reference design.
 */

.sgw-section {
	--sgw-primary: #D60000;
	--sgw-heading: #000000;
	--sgw-desc: #444444;
	--sgw-card-bg: #FFFFFF;
	--sgw-lift: -8px;
	box-sizing: border-box;
}

.sgw-section *,
.sgw-section *::before,
.sgw-section *::after {
	box-sizing: border-box;
}

.sgw-container {
	max-width: 1400px;
	margin: 0 auto;
	width: 100%;
}

/* Header */
.sgw-header {
	text-align: center;
}

.sgw-heading {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 45px;
	line-height: 1.25;
	color: var(--sgw-heading);
	margin: 0 0 48px;
}

.sgw-subtitle {
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: 17px;
	line-height: 1.6;
	color: var(--sgw-desc);
	margin: -32px 0 48px;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.sgw-header[style*="text-align: left"] .sgw-subtitle,
.sgw-header[style*="text-align: right"] .sgw-subtitle {
	margin-left: 0;
	margin-right: 0;
}

/* Grid */
.sgw-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sgw-grid-item {
	display: flex;
	height: 100%;
}

/* Card */
.sgw-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background-color: var(--sgw-card-bg);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition-property: transform, box-shadow;
	transition-duration: 300ms;
	transition-timing-function: ease;
	text-decoration: none;
	color: inherit;
}

a.sgw-card {
	cursor: pointer;
}

.sgw-card:hover,
.sgw-card:focus-within,
.sgw-card.sgw-card-focused {
	transform: translateY(var(--sgw-lift));
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.sgw-card:focus-visible {
	outline: 2px solid var(--sgw-primary);
	outline-offset: 2px;
}

/* Image */
.sgw-card-image {
	position: relative;
	width: 100%;
	height: 280px;
	overflow: hidden;
	border-radius: 16px 16px 0 0;
	background-color: #eaeaea;
	flex: 0 0 auto;
}

.sgw-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition-property: transform;
	transition-duration: 300ms;
	transition-timing-function: ease;
}

.sgw-card:hover .sgw-card-image img,
.sgw-card:focus-within .sgw-card-image img,
.sgw-card.sgw-card-focused .sgw-card-image img {
	transform: scale(1.05);
}

/* Body */
.sgw-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 28px;
}

.sgw-card-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.4;
	color: var(--sgw-primary);
	margin: 0 0 12px;
}

.sgw-card-description {
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.8;
	color: var(--sgw-desc);
	margin: 0;
	flex: 1 1 auto;
}

/* Responsive columns (fallback if the Elementor responsive control isn't
   inlined for a given breakpoint; the Columns control overrides these). */
@media (max-width: 1024px) {
	.sgw-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.sgw-grid {
		grid-template-columns: repeat(1, 1fr);
	}

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

	.sgw-card-image {
		height: 220px;
	}

	.sgw-card-body {
		padding: 22px;
	}
}

@media (max-width: 1024px) and (min-width: 768px) {
	.sgw-heading {
		font-size: 38px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.sgw-card,
	.sgw-card-image img {
		transition: none !important;
	}
}
