/**
 * Services overview page — loaded only by page-services.php.
 */

/* ── All services-page cards: strip the blue border-top ─────────── */

.site-main--services .service-card {
	border-top: none;
}

/* ── Hero: drop the protrusion — services overview wants clean separation ── */

.site-main--services .service-hero {
	margin-bottom: 0;
}

/* ── "We Provide Quality Services" intro ────────────────────────── */

.services-overview-intro {
	padding: 5rem 0 0;
	text-align: center;
	background: #fff;
}

.services-overview-intro__heading {
	margin: 0;
	font-family: var(--heritage-font-serif);
	font-size: clamp(2rem, 5vw, 3.75rem);
	font-weight: 400;
	line-height: 1.2;
	color: var(--heritage-text, #262626);
}

/* ── Service grids: cards align flush with hero (1200px), 20px gap between ── */

.services-row-1 .wrap,
.services-row-2 .wrap {
	padding-left: 0;
	padding-right: 0;
}

.services-row-1 .service-grid,
.services-row-2 .service-grid {
	padding: 0 !important;
	gap: 20px;
}

/* ── Row 1 — white background (Roofing, Siding, Gutters) ─────────── */

.services-row-1 {
	background: #fff;
	padding-top: 5rem;
	padding-bottom: 0;
}

/* ── Row 2 — blueprint pattern (Custom Building, Windows, Decking) ── */

.services-row-2 {
	position: relative;
	background-image: url('../../images/services-pattern.png');
	background-size: cover;
	background-position: 50% 0%;
	background-repeat: no-repeat;
	padding-top: 5rem;
	padding-bottom: 5rem;
}

/* White overlay at 0.4 opacity to soften pattern */
.services-row-2::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.4);
	pointer-events: none;
	z-index: 0;
}

.services-row-2 .wrap {
	position: relative;
	z-index: 1;
}

/* ── CTA section — photo background, dark overlay, box right-aligned ── */

.services-cta {
	position: relative;
	background-image: url('../../images/bg004.jpg');
	background-size: cover;
	background-position: 50% 50%;
}

/* Dark overlay matching live (black, 50% opacity) */
.services-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	pointer-events: none;
	z-index: 0;
}

.services-cta__wrap {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 18.75rem;
	padding-bottom: 0;
}

.services-cta__box {
	background: #fff;
	padding: 5rem 2.5rem;
	text-align: center;
	max-width: 50rem;
	width: 66.667%;
	outline: 1px solid rgb(204, 204, 204);
	outline-offset: -25px;
	margin-bottom: -5rem;
}

.services-cta__title {
	margin: 0 0 1rem;
	font-family: var(--heritage-font-serif);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 400;
	color: var(--heritage-text, #262626);
}

.services-cta__text {
	margin: 0 0 1.75rem;
	font-family: var(--heritage-font);
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #565656;
}

@media (max-width: 768px) {
	.services-cta__wrap {
		justify-content: center;
		align-items: center;
		padding-top: 3rem;
		padding-bottom: 3rem;
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.services-cta__box {
		width: 100%;
		max-width: 100%;
		margin-bottom: 0;
	}
}

/* ── Text testimonials section ───────────────────────────────────── */

.services-text-testimonials {
	padding: 10rem 0 5rem;
	background: rgb(242, 240, 236);
	text-align: center;
}

.services-text-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin: 2.5rem 0 0;
}

@media (max-width: 768px) {
	.services-text-testimonials__grid {
		grid-template-columns: 1fr;
	}
}

.services-text-testimonials__cta {
	margin-top: 2rem;
}

/* ── Testimonial card ────────────────────────────────────────────── */

.services-text-card {
	background-color: #fff;
	padding: 1.875rem 1.25rem;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.services-text-card::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 500px;
	height: 500px;
	background-image: url('../../images/quote-watermark.png');
	background-repeat: no-repeat;
	background-position: 100% 0;
	opacity: 0.2;
	pointer-events: none;
	z-index: 0;
}

/* Circle icon containing the SVG quote mark */
.services-text-card__quote {
	position: relative;
	z-index: 1;
	width: 3.75rem;
	height: 3.75rem;
	border-radius: 50%;
	background: rgb(242, 240, 236);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.25rem;
}

.services-text-card__quote svg {
	width: 1.5rem;
	height: 1.5rem;
	fill: rgb(6, 65, 81);
}

.services-text-card__name {
	position: relative;
	z-index: 1;
	margin: 0 0 0.75rem;
	font-family: var(--heritage-font-heading, 'Poppins', sans-serif);
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgb(12, 83, 132);
}

.services-text-card__text {
	position: relative;
	z-index: 1;
	margin: 0 0 1rem;
	font-family: var(--heritage-font);
	font-size: 0.875rem;
	line-height: 1.7;
	color: #565656;
}

.services-text-card__stars {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: 1.375rem;
	line-height: 1;
	color: rgb(255, 217, 0);
	letter-spacing: 0.05em;
}
