/**
 * Service Areas Block Styles
 * Loaded automatically when the service-areas block is present on the page.
 *
 * The diagonal cut is applied to the ENTIRE section via clip-path.
 * A negative margin-top pulls the section upward so it overlaps the block above,
 * creating a natural blending effect between sections.
 */

/* ==========================================================================
   SECTION — diagonal clip across the full width
   ========================================================================== */

.service-areas {
	position: relative;
	z-index: 2;
	margin-top: calc(-1 * var(--section-diagonal-cut));
	clip-path: polygon(0 var(--section-diagonal-cut), 100% 0, 100% 100%, 0 100%);
}

/* ==========================================================================
   INNER — two-column flex layout
   ========================================================================== */

.service-areas__inner {
	display: flex;
	max-height: 900px;
}

/* ==========================================================================
   LEFT COLUMN — red panel
   ========================================================================== */

.service-areas__panel {
	flex: 0 0 47%;
	background: linear-gradient(180deg, #D30000 13.33%, #6D0000 119.9%);
	display: flex;
	align-items: flex-end;
	padding: 80px 0;
}

.service-areas__panel-content {
	padding: 0 60px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 520px;
}

/* ==========================================================================
   TITLE
   ========================================================================== */

.service-areas__title {
	font-family: var(--font-base);
	font-size: 42px;
	font-weight: 900;
	line-height: 1.045;
	color: var(--color-white, #fff);
	margin: 0;
}

/* ==========================================================================
   CONTENT
   ========================================================================== */

.service-areas__content {
	font-family: var(--font-base);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
	color: var(--color-white, #fff);
}

.service-areas__content p {
	margin: 0 0 10px;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.service-areas__content p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   LOCATIONS GRID
   ========================================================================== */

.service-areas__locations {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 24px;
}

.service-areas__location:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.service-areas__location {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-base);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #dadada;
}

.service-areas__pin {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--color-white, #fff);
}

/* ==========================================================================
   CTA BUTTON — white bg, red text
   ========================================================================== */

.service-areas__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	height: 39px;
	padding: 0 40px;
	border-radius: 4px;
	background: var(--color-white, #fff);
	color: var(--color-red, #d30000) !important;
	font-family: var(--font-base);
	font-size: 16px;
	font-weight: 900;
	text-decoration: none !important;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.service-areas__cta:hover {
	opacity: 0.88;
}

/* ==========================================================================
   RIGHT COLUMN — image
   ========================================================================== */

.service-areas__image-wrap {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.service-areas__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1199px) {
	.service-areas__title {
		font-size: 36px;
	}

	.service-areas__panel {
		flex: 0 0 50%;
	}

	.service-areas__panel-content {
		padding: 0 40px;
	}
}

@media (max-width: 991px) {
	.service-areas__inner {
		flex-direction: column;
		min-height: auto;
	}

	.service-areas__panel {
		flex: none;
		width: 100%;
		padding: calc(var(--section-diagonal-cut) + 40px) 0 56px; /* extra top padding to compensate for the clip */
		align-items: flex-start;
	}

	.service-areas__panel-content {
		max-width: 100%;
	}

	.service-areas__image-wrap {
		width: 100%;
		height: 360px;
	}
}

@media (max-width: 767px) {
	.service-areas__panel {
		padding: calc(var(--section-diagonal-cut) + 32px) 0 48px;
	}

	.service-areas__panel-content {
		padding: 0 24px;
	}

	.service-areas__title {
		font-size: 30px;
	}

	.service-areas__locations {
		grid-template-columns: 1fr;
	}

	.service-areas__location:last-child:nth-child(odd) {
		grid-column: auto;
	}

	.service-areas__image-wrap {
		height: 280px;
	}
}
