/* Programme pages built from the Service Catalogue (views/service_catalogue_partial.php).
   Site colours: navy #002642, slate #3d5568, pink #ff7088. --svc-accent is each service's
   colour in the printed catalogue; it is used only on the "How it works" band. */

.svc { --svc-accent: #002642; padding: 50px 0 10px; color: #3d5568; }
.svc h2 { font-size: 26px; margin-bottom: 14px; color: #002642; }
.svc h3 { font-size: 18px; margin-bottom: 6px; color: #002642; }
.svc a:not(.svc-wa):not(.svc-group):not(.svc-jump) { color: #002642; text-decoration: underline !important; text-underline-offset: 2px; }
.svc a:focus-visible { outline: 3px solid #ff7088; outline-offset: 2px; border-radius: 4px; }

.svc .svc-tagline {
	font-family: 'CabinetGrotesk-Bold', sans-serif;
	font-size: 24px;
	line-height: 1.3;
	color: #002642;
	max-width: 30em;
	margin-bottom: 18px;
}

/* Intro: text beside the programme photo */
.svc-intro { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; margin-bottom: 50px; }
.svc-intro-text { flex: 1 1 420px; }
.svc-intro-text p { font-size: 16px; max-width: 40em; }
.svc-intro-photo { flex: 1 1 360px; max-width: 520px; }
.svc-intro-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px 28px 28px 4px; }
.svc-jump {
	display: inline-block;
	background: #ff7088;
	color: #fff !important;
	border-radius: 999px;
	padding: 11px 24px;
	font-weight: 600;
}
.svc-jump:hover { background: #e85f77; }

/* Blocks: one column on phones, two on wide screens for "half" blocks */
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 40px; margin-bottom: 36px; }
@media (min-width: 992px) { .svc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.svc-block { grid-column: 1 / -1; min-width: 0; }
.svc-block.svc-block--half { grid-column: auto; }
.svc-lead { margin-bottom: 10px; }
.svc-block-foot { margin: 14px 0 0; font-size: 14px; }

.svc-list { list-style: none; padding: 0; margin: 0; }
.svc-list li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.svc-list li::before {
	content: '';
	position: absolute; left: 0; top: 0.6em;
	width: 9px; height: 9px; border-radius: 50%;
	background: #ff7088;
}

.svc-facts { background: #eef4f8; border-radius: 20px; padding: 26px 28px; }
.svc-facts .svc-list li::before {
	top: 0.35em; width: 12px; height: 7px; border-radius: 0;
	background: none;
	border-left: 2.5px solid #002642; border-bottom: 2.5px solid #002642;
	transform: rotate(-45deg);
}

/* How it works: the one coloured band */
.svc-steps { background: var(--svc-accent); border-radius: 26px; padding: 32px; color: #fff; }
.svc-steps h2 { color: #fff; }
.svc-step-list {
	list-style: none; padding: 0; margin: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px;
	counter-reset: svcstep;
}
.svc-step-list li { counter-increment: svcstep; background: rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 18px; }
.svc-step-list li::before {
	content: counter(svcstep);
	display: flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; margin-bottom: 10px;
	border-radius: 50%; background: #fff; color: var(--svc-accent);
	font-weight: 700;
}
.svc-step-list strong { display: block; font-size: 17px; color: #fff; }
.svc-step-list span { display: block; margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, 0.88); }
.svc-steps .svc-block-foot { color: rgba(255, 255, 255, 0.88); }

.svc-tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.svc-tag-list li { border: 1.5px solid #c9d6e0; border-radius: 999px; padding: 7px 16px; color: #002642; font-weight: 500; background: #fff; }

.svc-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.svc-block--half .svc-card-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.svc-card { border: 1px solid #dfe7ed; border-radius: 16px; padding: 18px 20px; background: #fff; }
.svc-card p, .svc-card ul { margin: 0; font-size: 15px; }
.svc-card ul { padding-left: 18px; }
.svc-card li { margin-bottom: 6px; }
.svc-closing { margin: 16px 0 0; font-style: italic; color: #002642; max-width: 48em; }

.svc-table-wrap { overflow-x: auto; }
.svc-table table { width: 100%; border-collapse: collapse; margin: 0; }
.svc-table th, .svc-table td { padding: 11px 14px; border-bottom: 1px solid #dfe7ed; text-align: left; vertical-align: top; }
.svc-table th { color: #002642; font-weight: 600; background: #eef4f8; }
.svc-table td:first-child { white-space: nowrap; font-weight: 600; color: #002642; }
@media (max-width: 600px) { .svc-table td:first-child { white-space: normal; width: 38%; } }

/* A new part of the page (3I, psychotherapy, each social group) */
.svc-part { margin: 10px 0 30px; padding-top: 40px; border-top: 2px dashed #d5e0e8; scroll-margin-top: 120px; }
.svc-part h2 { font-size: 30px; }
.svc-part-intro { max-width: 48em; }
#levels, #adhd-assessment { scroll-margin-top: 120px; }

.svc-note { display: flex; gap: 12px; align-items: flex-start; margin: 0; background: #f6f9fb; border-radius: 12px; padding: 14px 18px; font-size: 14px; }
.svc-note-mark {
	flex: 0 0 18px; height: 20px; margin-top: 1px;
	background: var(--svc-accent);
	clip-path: polygon(50% 0, 100% 18%, 100% 55%, 50% 100%, 0 55%, 0 18%);
}

/* Social group chooser */
.svc-group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.svc-group { display: block; border: 1px solid #dfe7ed; border-radius: 18px; padding: 20px; background: #fff; color: #3d5568; }
.svc-group:hover { border-color: #ff7088; color: #3d5568; }
.svc-group-age { display: inline-block; font-size: 13px; font-weight: 600; color: #002642; background: #fde7eb; border-radius: 999px; padding: 3px 12px; margin-bottom: 10px; }
.svc-group-name { display: block; font-family: 'CabinetGrotesk-Bold', sans-serif; font-size: 20px; color: #002642; margin-bottom: 6px; }
.svc-group-text { display: block; font-size: 15px; }

/* FAQ uses the site's accordion (#parentguide); only spacing here */
.svc-faq { margin-top: 10px; }

/* Booking */
.svc-cta-section { padding: 10px 0 50px; }
.svc-cta { background: #fff1f4; border-radius: 28px; padding: 34px 32px; }
.svc-cta h2 { margin-bottom: 8px; }
.svc-cta > p { max-width: 44em; }
.svc-cta-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0 16px; }
.svc-branch { background: #fff; border-radius: 18px; padding: 18px 20px; }
.svc-branch-name { font-weight: 600; margin-bottom: 10px; }
.svc-branch-name a { color: #002642; }
.svc-wa {
	display: inline-block;
	background: #002642; color: #fff !important;
	border-radius: 999px; padding: 9px 18px;
	font-weight: 600; margin: 0 10px 6px 0;
}
.svc-wa:hover { background: #0d3a5e; }
.svc-tel { color: #002642; white-space: nowrap; }
.svc-cta-foot { margin: 0; font-size: 14px; }

@media (max-width: 767px) {
	.svc { padding-top: 30px; }
	.svc .svc-tagline { font-size: 20px; }
	.svc h2, .svc-part h2 { font-size: 23px; }
	.svc-steps, .svc-cta { padding: 24px 20px; border-radius: 20px; }
	.svc-facts { padding: 22px 20px; }
	.svc-intro { gap: 24px; margin-bottom: 36px; }
}
