/**
 * Service detail — Detail Content Sections layout + typography.
 * Scoped to .service-detail-page only.
 */

.service-detail-page .zamaa-service-content-section {
	margin-bottom: 2rem;
	width: 100%;
}

.service-detail-page .zamaa-service-content-section:last-child {
	margin-bottom: 0;
}

.service-detail-page .zamaa-service-content-inner {
	width: 100%;
	min-width: 0;
}

/* Full width text (no image, or image position with no image) */
.service-detail-page .zamaa-service-content-section--full .zamaa-service-content-inner,
.service-detail-page .zamaa-service-content-section--full-with-image .zamaa-service-content-inner {
	display: block;
}

.service-detail-page .zamaa-service-content-section--full .zamaa-service-content-text,
.service-detail-page .zamaa-service-content-section--full-with-image .zamaa-service-content-text {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

/* Full width with image stacked below text */
.service-detail-page .zamaa-service-content-section--full-with-image .zamaa-service-content-media--stacked {
	width: 100%;
	margin-top: 1.5rem;
}

/* Two-column image + text layouts */
.service-detail-page .zamaa-service-content-section--image-left .zamaa-service-content-inner,
.service-detail-page .zamaa-service-content-section--image-right .zamaa-service-content-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 2rem;
}

.service-detail-page .zamaa-service-content-text {
	display: flex;
	flex-flow: column;
	grid-row-gap: 0.75rem;
	grid-column-gap: 0.75rem;
	min-width: 0;
}

.service-detail-page .zamaa-service-content-eyebrow {
	margin-bottom: 0.125rem;
}

/* Detail Content Section headings — scoped to single service pages only */
.single-zamaa_service .zamaa-service-content-heading {
	margin: 0 0 1rem;
	padding: 0;
	color: var(--color-primary, #003c38);
	font-weight: 500;
	line-height: 1.08;
}

.single-zamaa_service .zamaa-service-content-heading--default {
	font-size: clamp(2rem, 3.5vw, 3.25rem);
	line-height: 1.08;
}

.single-zamaa_service .zamaa-service-content-heading--small {
	font-size: clamp(1.5rem, 2vw, 2rem);
	line-height: 1.15;
}

.single-zamaa_service .zamaa-service-content-heading--medium {
	font-size: clamp(2rem, 3vw, 2.75rem);
	line-height: 1.12;
}

.single-zamaa_service .zamaa-service-content-heading--large {
	font-size: clamp(2.5rem, 4vw, 3.75rem);
	line-height: 1.1;
}

.single-zamaa_service .zamaa-service-content-heading--xl {
	font-size: clamp(3rem, 5vw, 4.75rem);
	line-height: 1.08;
}

.single-zamaa_service .zamaa-service-content-heading--custom {
	line-height: 1.1;
}

.service-detail-page .zamaa-service-content-actions {
	margin-top: 0.5rem;
}

.service-detail-page .zamaa-service-content-media {
	min-width: 0;
	width: 100%;
}

.service-detail-page .zamaa-service-content-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 1.25rem;
	object-fit: cover;
}

/* Body HTML typography */
.service-detail-page .zamaa-service-content-body {
	width: 100%;
	max-width: 100%;
	color: var(--dark-0-6);
	font-size: 0.9375rem;
	line-height: 155%;
}

.service-detail-page .zamaa-service-content-body > :first-child {
	margin-top: 0;
}

.service-detail-page .zamaa-service-content-body > :last-child {
	margin-bottom: 0;
}

.service-detail-page .zamaa-service-content-body p {
	margin: 0 0 1rem;
}

.service-detail-page .zamaa-service-content-body h3,
.service-detail-page .zamaa-service-content-body h4 {
	color: var(--dark);
	font-weight: 500;
	line-height: 130%;
	margin: 1.5rem 0 0.75rem;
}

.service-detail-page .zamaa-service-content-body h3:first-child,
.service-detail-page .zamaa-service-content-body h4:first-child {
	margin-top: 0;
}

.service-detail-page .zamaa-service-content-body ul,
.service-detail-page .zamaa-service-content-body ol {
	list-style: none;
	margin: 0.75rem 0 1rem;
	padding-left: 1.25rem;
}

.service-detail-page .zamaa-service-content-body ul li,
.service-detail-page .zamaa-service-content-body ol li {
	position: relative;
	margin-bottom: 0.5rem;
}

.service-detail-page .zamaa-service-content-body ul li::before {
	content: "•";
	position: absolute;
	left: -1em;
	top: 0;
	font-size: 1.2rem;
	color: currentColor;
}

.service-detail-page .zamaa-service-content-body ol {
	counter-reset: zamaa-service-ol;
}

.service-detail-page .zamaa-service-content-body ol li {
	counter-increment: zamaa-service-ol;
}

.service-detail-page .zamaa-service-content-body ol li::before {
	content: counter(zamaa-service-ol) ".";
	position: absolute;
	left: -1.25em;
	top: 0;
	color: currentColor;
}

.service-detail-page .zamaa-service-content-body a {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.service-detail-page .zamaa-service-content-body a:hover {
	opacity: 0.85;
}

.service-detail-page .zamaa-service-content-body strong {
	color: var(--dark);
	font-weight: 600;
}

@media screen and (max-width: 991px) {
	.service-detail-page .zamaa-service-content-section--image-left .zamaa-service-content-inner,
	.service-detail-page .zamaa-service-content-section--image-right .zamaa-service-content-inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
	}

	.service-detail-page .zamaa-service-content-section--image-right .zamaa-service-content-text {
		order: 1;
	}

	.service-detail-page .zamaa-service-content-section--image-right .zamaa-service-content-media {
		order: 2;
	}

	.service-detail-page .zamaa-service-content-section--image-left .zamaa-service-content-media {
		order: 1;
	}

	.service-detail-page .zamaa-service-content-section--image-left .zamaa-service-content-text {
		order: 2;
	}
}
