/* ==========================================================================
   services.css - Services page only (linked from services.php's <head> region,
   always AFTER about.css).
   - The page wrapper carries both .about and .services, so it inherits the
     About page foundation from about.css: color tokens (--ab-*), the grid
     rhythm, h2 underline bar, h3 style, icon badges (.ab-ico), buttons
     (.ab-btn), text links (.ab-link), figure frame (.ab-fig) and the CTA
     shell (.ab-cta). Only what is new for this page lives here (sv- prefix).
   - Layout follows the width of .about (container queries), so the same
     rules serve the desktop template and the phone/tablet template.
   - Spacing scale (mobile -> desktop): between services 56 -> 88px,
     parent to its children 18px, between children 32px, so the nested
     children clearly belong to their parent.
   ========================================================================== */

.sv-intro p + p { margin-top: 14px; }

/* trust cards ------------------------------------------------------------ */
.about .sv-proof { display: grid; gap: 16px; }
.sv-proof li {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 6px 16px;
	align-items: center;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid var(--ab-line);
	border-top: 4px solid var(--ab-green);
	border-radius: var(--ab-r);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.sv-proof strong {
	color: var(--ab-forest);
	font: 1.375rem/1.15 'Londrina Solid', cursive;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.sv-proof p { grid-column: 1 / -1; margin: 6px 0 0; color: var(--ab-ink); font-size: .9375rem; line-height: 1.55; }

/* service blocks ----------------------------------------------------------- */
.sv-list { display: grid; }
.sv-item { display: grid; gap: 16px; }
.sv-item + .sv-item { margin-top: 28px; padding-top: 28px; border-top: 2px dotted rgba(0, 0, 0, .2); }
.sv-item > * { min-width: 0; }

.sv-fig { order: -1; max-width: 420px; }
.sv-fig a { display: block; }

.sv-body h2 { margin: 0; }
.sv-body h2 a, .sv-kid h3 a { color: inherit; text-decoration: none; }
.sv-body h2 a:hover, .sv-kid h3 a:hover { color: #826e54; text-decoration: underline; text-underline-offset: 4px; }
.sv-body p { margin-bottom: 10px; }

/* "Read more about ..." link: always underlined, warms up on hover */
.sv-more {
	display: inline-block;
	padding: 6px 0;
	color: var(--ab-forest);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--ab-green);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.sv-more:after { content: "\2192"; display: inline-block; margin-left: 6px; }
.sv-more:hover, .sv-more:focus-visible { color: #826e54; text-decoration-color: #826e54; }

/* nested children: one per line inside a tinted panel with a green spine */
.sv-kids {
	margin-top: 2px;
	padding: 0 18px;
	background: var(--ab-sand);
	border: 1px solid var(--ab-line);
	border-left: 4px solid var(--ab-green);
	border-radius: var(--ab-r);
}
.sv-kid { padding: 16px 0; }
.sv-kid + .sv-kid { border-top: 1px dotted #cfc8b4; }
.about .sv-kid h3 { margin: 0 0 .4em; font-size: 1.25rem; }
.sv-kid p { margin-bottom: 6px; font-size: .9375rem; line-height: 1.65; }
.sv-kid .sv-more { font-size: .9375rem; }

/* closing call to action: reuses .ab-cta (title, text, two buttons) with a different photo */
.sv-cta:before { background-image: url(images/slider/slide6.webp); }

@media (prefers-reduced-motion: no-preference) {
	.sv-more:after { transition: transform .2s; }
	.sv-more:hover:after, .sv-more:focus-visible:after { transform: translateX(4px); }
	.sv-more, .sv-body h2 a, .sv-kid h3 a { transition: color .2s, text-decoration-color .2s; }
}

@container (max-width: 599px) {
	.sv-cta:before { background-image: url(images/slider-mob/slide6.webp); }
}

/* tablet and up: text beside photo, children underneath across the full width */
@container (min-width: 600px) {
	.sv-proof { grid-template-columns: repeat(2, 1fr); }
	.sv-proof li { display: block; padding: 24px; }
	.sv-proof .ab-ico { margin-bottom: 14px; }
	.sv-proof p { margin-top: 8px; }

	.sv-item { grid-template-columns: minmax(0, 1fr) 240px; column-gap: 32px; row-gap: 18px; align-items: center; }
	.sv-body { grid-column: 1; grid-row: 1; }
	.sv-fig { grid-column: 2; grid-row: 1; order: 0; max-width: none; }
	.sv-item:nth-child(even) { grid-template-columns: 240px minmax(0, 1fr); }
	.sv-item:nth-child(even) .sv-body { grid-column: 2; }
	.sv-item:nth-child(even) .sv-fig { grid-column: 1; }
	.sv-kids { grid-column: 1 / -1; grid-row: 2; padding: 0 24px; }
	.sv-kid { padding: 18px 0; }
}

@container (min-width: 900px) {
	.sv-proof { grid-template-columns: repeat(4, 1fr); gap: 20px; }
	.sv-item { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 44px; }
	.sv-item:nth-child(even) { grid-template-columns: 300px minmax(0, 1fr); }
	.sv-item + .sv-item { margin-top: 44px; padding-top: 44px; }
	.sv-kids { padding: 0 32px; }
	.sv-kid { padding: 20px 0; }
}
