/*
 * A single service page (single-service.php). Loaded only on service pages
 * (inc/assets.php). Mobile first; desktop from 900px.
 *
 * Layout: a full-width heading band in a light tint of the clinic's brand colour,
 * then the text in a white card that rises into the band, then the "Ready to book?"
 * box. All three share one centred column (.service__inner: narrower than the
 * page, wider when the service has a photo). The card takes the look's corner
 * radius (--card-r), so look F is rounder than look C.
 */

.service__inner { --cw: 56rem; }
.service__inner--wide { --cw: 72rem; }

/* Heading band. The brand tint is mixed into the surface colour, so the heading
   (--ink) stays readable whatever the clinic's palette. */
.service__head {
	padding: 20px 0 64px;
	background: color-mix(in srgb, var(--brand) 13%, var(--surface));
	color: var(--ink);
}

/* Header over the content (hdr-over): the band runs up behind the header, and the
   heading sits a little closer under it than the usual first-block gap. */
body.hdr-over .site-main > article.service { padding-top: 0; }
body.hdr-over .service__head { padding-top: calc(var(--hdr-h) + 14px); }

.service__crumb { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.service__crumb a { text-decoration: none; }
.service__crumb a:hover { text-decoration: underline; }

.service__title { margin: 0; font-size: 2.1rem; line-height: 1.08; color: inherit; }

/* The white card. */
.service__body {
	display: grid;
	gap: 24px;
	margin-top: -40px;
	padding: 26px 20px;
	border: 1px solid var(--line);
	border-radius: var(--card-r);
	background: var(--surface);
	color: var(--ink);
	box-shadow: 0 18px 40px -28px color-mix(in srgb, var(--ink) 45%, transparent);
}

.service__image { margin: 0; overflow: hidden; border-radius: calc(var(--card-r) * 0.75); background: var(--tint); }
.service__image img { width: 100%; height: auto; }

.service__content { max-width: 68ch; margin-inline: auto; font-size: 1.05rem; line-height: 1.65; }
.service__content > :first-child { margin-top: 0; }
.service__content > :last-child { margin-bottom: 0; }
.service__content > * + * { margin-top: 1em; }
.service__content h2 { margin-top: 1.6em; font-size: 1.5rem; line-height: 1.2; }
.service__content h3 { margin-top: 1.4em; font-size: 1.2rem; line-height: 1.25; }
.service__content ul,
.service__content ol { padding-left: 1.25em; }
.service__content li + li { margin-top: 0.35em; }
.service__content img { max-width: 100%; height: auto; border-radius: calc(var(--card-r) * 0.75); }

.service__cta { padding-block: 28px; }

.service__cta-box { padding: 28px; border-radius: var(--card-r); background: var(--band-bg); color: var(--band-ink); }
.service__cta-box h2 { margin: 0; font-size: 1.6rem; color: inherit; }

.service__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.service__ctas .button { flex: 1 1 150px; background: var(--accent); color: var(--on-accent); }
.service__ctas .button--secondary { background: transparent; border-color: currentcolor; color: inherit; }
.service__ctas .button--alert { background: transparent; border-color: var(--accent-2); color: inherit; }

@media (min-width: 900px) {
	.service__head { padding: 28px 0 88px; }
	body.hdr-over .service__head { padding-top: calc(var(--hdr-h) + 20px); }
	.service__title { font-size: 3rem; }
	.service__body { margin-top: -56px; padding: 48px 56px; }
	.service__body--image { grid-template-columns: 0.85fr 1.15fr; align-items: start; gap: 44px; }
	.service__body--image .service__content { margin-inline: 0; }
	.service__cta { padding-block: 40px 48px; }
	.service__cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 36px 40px; }
	.service__ctas { margin-top: 0; }
	.service__ctas .button { flex: 0 0 auto; min-height: 56px; padding: 0 26px; font-size: 17px; }
}
