/* =========================================================================
   Elevation FCD — service page styling            (rev 2026-09-16)
   Paste at the end of gilded-child/style.css.

   Requires content imported from elevation-services/*.txt dated 2026-09-16
   or later — those files carry the dm-svc-* hooks these rules target.
   import.php flags any stale content file for you.

   Every rule keys off its own hook class, so a page that only has some of
   the hooks still picks up whatever applies. Colors come from the theme's
   variables, with fallbacks.
   ====================================================================== */

:root {
	--svc-p: var(--pColor, #4e94cf);
	--svc-s: var(--sColor, #27255f);
	--svc-a: var(--aColor, #f49f1d);
	--svc-ink: #545d60;
	--svc-line: rgba(39, 37, 95, .12);
	--svc-tint: #eef4fa;
	--svc-shadow: 0 10px 30px rgba(39, 37, 95, .07);
}

/* Sections ------------------------------------------------------------- */
/* The parent theme paints every even section #eee via :nth-child. These
   class-based rules load later, so they win without !important. */
.dm-service-section.dm-svc-intro,
.dm-service-section.dm-svc-body,
.dm-service-section.dm-svc-faq {
	padding: 72px 0;
	background: #fff;
}
.dm-service-section.dm-svc-intro {
	padding-top: 60px;
	background: linear-gradient(170deg, var(--svc-tint) 0%, #fff 78%);
}
.dm-service-section.dm-svc-faq {
	background: #f7f9fb;
	border-top: 1px solid var(--svc-line);
}

/* Column order: beats .dm-service-section:nth-child(even) .dm-half:nth-child(1) */
.dm-service-section[class*="dm-svc"]:nth-child(n) .dm-half:nth-child(n) {
	order: 0;
}

.dm-svc-narrow {
	margin: 0 auto;
}

/* Typography ----------------------------------------------------------- */
.dm-svc-intro h2,
.dm-svc-body h2,
.dm-svc-faq h2 {
	position: relative;
	margin: 0 0 24px;
	padding-bottom: 18px;
	line-height: 1.25;
}
.dm-svc-intro h2:after,
.dm-svc-body h2:after,
.dm-svc-faq h2:after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 62px;
	height: 3px;
	border-radius: 3px;
	background: var(--svc-a);
}
.dm-svc-body h3,
.dm-svc-faq h3 {
	margin: 0 0 22px;
	line-height: 1.3;
}
.dm-svc-intro p,
.dm-svc-body p,
.dm-svc-faq p {
	line-height: 1.65;
}
.dm-svc-body p:last-child,
.dm-svc-intro p:last-child {
	margin-bottom: 0;
}

/* Intro ---------------------------------------------------------------- */
.dm-svc-intro .dm-flex {
	align-items: center;
}
.dm-svc-intro .dm-svc-copy {
	padding: 0 15px 0 45px;
}
.dm-svc-intro .dm-svc-copy > p:first-of-type {
	font-size: 1.1em;
	line-height: 1.6;
	color: var(--svc-ink);
	border-left: 3px solid var(--svc-p);
	padding-left: 22px;
	margin-bottom: 26px;
}
.dm-svc-intro .btn {
	margin-top: 6px;
}
.dm-svc-media img,
.dm-svc-body img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 16px;
	outline: 0 !important;    /* parent theme outlines section images */
	border: 0 !important;
	box-shadow: var(--svc-shadow);
}
/* No image for this service: drop the empty column, let the copy run full width */
.dm-svc-media:not(:has(img)) {
	display: none;
}
.dm-svc-intro .dm-flex:not(:has(.dm-svc-media img)) .dm-svc-copy {
	flex: 0 1 100%;
	width: 100%;
	padding: 0 15px;
}
/* Before/after pair sits side by side */
.dm-svc-media:has(img + img) {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

/* Lists ---------------------------------------------------------------- */
.dm-svc-list {
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 14px;
}
.dm-svc-list li {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 20px 24px 20px 62px;
	background: #fff;
	border: 1px solid var(--svc-line);
	border-radius: 12px;
	box-shadow: var(--svc-shadow);
	line-height: 1.6;
}
.dm-svc-list li strong {
	color: var(--svc-s);
}
.dm-svc-list li strong a {
	color: inherit;
	text-decoration: underline;
}

/* Process lists get numbered badges */
.dm-svc-steps {
	counter-reset: svcstep;
}
.dm-svc-steps li {
	counter-increment: svcstep;
}
.dm-svc-steps li:before {
	content: counter(svcstep, decimal-leading-zero);
	position: absolute;
	left: 20px;
	top: 18px;
	width: 30px;
	height: 30px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--svc-s);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	font-family: inherit;
}

/* Benefit lists get a drawn checkmark — no icon font needed */
.dm-svc-list:not(.dm-svc-steps) li:before {
	content: '';
	position: absolute;
	left: 26px;
	top: 26px;
	width: 15px;
	height: 8px;
	margin: 0;
	border-left: 3px solid var(--svc-a);
	border-bottom: 3px solid var(--svc-a);
	transform: rotate(-45deg);
	font-family: inherit;
}
.dm-svc-benefits li {
	background: linear-gradient(180deg, #fff 0%, #fcfdfe 100%);
}

/* Two columns once there is room */
@media (min-width: 992px) {
	.dm-svc-list {
		grid-template-columns: 1fr 1fr;
	}
	/* an odd last item spans the full row instead of leaving a gap */
	.dm-svc-list > li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

/* FAQ ------------------------------------------------------------------ */
.dm-svc-faq .dm-svc-narrow > h3 {
	text-align: center;
	margin-bottom: 30px;
}
.dm-svc-q {
	margin: 0;
	padding: 20px 26px 0;
	background: #fff;
	border: 1px solid var(--svc-line);
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
}
.dm-svc-q strong {
	color: var(--svc-s);
	font-size: 1.05em;
}
.dm-svc-q + p {
	margin: 0 0 16px;
	padding: 12px 26px 22px;
	background: #fff;
	border: 1px solid var(--svc-line);
	border-top: 0;
	border-radius: 0 0 12px 12px;
	box-shadow: var(--svc-shadow);
}

/* Credential badge (AAFE logo on the XEOMIN page) ----------------------- */
.dm-svc-badge {
	margin: 30px 0 0;
}
.dm-svc-badge img {
	width: 170px;
	border-radius: 0;
	box-shadow: none;
}

/* Responsive ----------------------------------------------------------- */
@media (max-width: 991px) {
	.dm-service-section.dm-svc-intro,
	.dm-service-section.dm-svc-body,
	.dm-service-section.dm-svc-faq {
		padding: 56px 0;
	}
	.dm-service-section[class*="dm-svc"] .dm-half {
		flex: 1 1 100%;
		width: 100%;
	}
	.dm-svc-intro .dm-svc-copy {
		padding: 32px 15px 0;
	}
}
@media (max-width: 600px) {
	.dm-service-section.dm-svc-intro,
	.dm-service-section.dm-svc-body,
	.dm-service-section.dm-svc-faq {
		padding: 44px 0;
	}
	.dm-svc-list li {
		padding: 18px 18px 18px 56px;
	}
	.dm-svc-steps li:before {
		left: 16px;
	}
	.dm-svc-list:not(.dm-svc-steps) li:before {
		left: 22px;
	}
	.dm-svc-q {
		padding: 18px 18px 0;
	}
	.dm-svc-q + p {
		padding: 10px 18px 18px;
	}
	.dm-svc-media:has(img + img) {
		gap: 10px;
	}
}
