/* ==========================================================================
   SERVICE DETAIL PAGE, "SKY" THEME (matches the homepage)
   Loaded after service-detail.css from serviceDescriptionView.php.
   ========================================================================== */

body {
	background: #f3f7fe !important;
}

.sd {
	--sd-ink: #0a1633;
	--sd-text: #5a6785;
	--sd-muted: #6b7896;
	--sd-line: #e1eafa;
	--sd-soft: #f3f7fe;
	--sd-brand: #2563eb;
	--sd-brand-dark: #1d4ed8;
	--sd-brand-soft: #eaf2ff;
	--sd-radius: 22px;
	--sd-shadow: 0 22px 44px -30px rgba(37, 99, 235, 0.4);
}

/* ---------- Type ---------- */
.sd-h1,
.sd-title,
.sd-feature h3,
.sd-step h3,
.sd-engage h3,
.sd-related h3,
.sd-cta h2,
.sd-faq summary {
	font-family: "Sora", "Inter", system-ui, sans-serif;
}

.sd-title {
	font-weight: 600;
	letter-spacing: -0.03em;
	font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.sd-kicker {
	color: #2563eb;
	letter-spacing: 0.16em;
	font-size: 0.76rem;
}

.sd-kicker::before {
	background: linear-gradient(90deg, #2563eb, #38bdf8);
	height: 3px;
	border-radius: 3px;
}

/* ---------- Hero ---------- */
.sd-hero {
	padding-bottom: 150px;
}

.sd-h1 {
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.18;
}

.sd-hero-desc {
	color: rgba(255, 255, 255, 0.86);
}

.sd-crumbs a,
.sd-crumbs span {
	color: rgba(255, 255, 255, 0.72);
}

.sd-crumbs a:hover,
.sd-crumbs [aria-current] {
	color: #7dd3fc;
}

.sd-btn {
	border-radius: 999px;
}

.sd-btn--primary {
	background: #ffffff;
	color: #1d4ed8 !important;
	border-color: #ffffff;
	box-shadow: 0 18px 34px -16px rgba(2, 0, 36, 0.7);
}

.sd-btn--primary:hover {
	background: #ffffff;
	color: #1d4ed8 !important;
	transform: translateY(-3px);
}

.sd-btn--ghost {
	border: 1px solid rgba(255, 255, 255, 0.5);
	background: transparent;
}

.sd-hero-media::before {
	border-radius: 28px;
	background: linear-gradient(135deg, rgba(56, 189, 248, 0.5), rgba(37, 99, 235, 0.25));
}

.sd-hero-media img {
	border-radius: 22px;
	box-shadow: 0 40px 80px -30px rgba(2, 0, 36, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.18);
	animation: sdHeroFloat 8s ease-in-out infinite;
}

@keyframes sdHeroFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

/* ---------- Sections ---------- */
.sd-section--white {
	border-top: 0;
	border-bottom: 0;
}

/* ---------- Cards ---------- */
.sd-card {
	border: 1px solid #e1eafa;
	border-radius: 22px;
	box-shadow: 0 22px 44px -30px rgba(37, 99, 235, 0.4);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sd-card:hover,
.sd-feature:hover,
.sd-related:hover {
	transform: translateY(-6px);
	border-color: #b9d2fb;
	box-shadow: 0 32px 58px -28px rgba(37, 99, 235, 0.55);
}

/* What's included */
.sd-checks li {
	background: #ffffff;
	border: 1px solid #e1eafa;
	border-radius: 16px;
	box-shadow: 0 16px 34px -28px rgba(37, 99, 235, 0.45);
	color: #0a1633;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.sd-checks li:hover {
	transform: translateX(4px);
	border-color: #b9d2fb;
}

.sd-checks i {
	color: #38bdf8;
}

/* Features */
.sd-icon {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: linear-gradient(135deg, #2563eb, #38bdf8);
	color: #ffffff;
	box-shadow: 0 14px 26px -12px rgba(37, 99, 235, 0.6);
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sd-feature:hover .sd-icon {
	transform: translateY(-4px) rotate(-6deg);
}

.sd-feature h3,
.sd-step h3,
.sd-engage h3,
.sd-related h3 {
	font-weight: 600;
	letter-spacing: -0.01em;
}

/* Technology chips */
.sd-tech li {
	background: #ffffff;
	border: 1px solid #d5e3fb;
	border-radius: 999px;
	color: #1d4ed8;
	font-weight: 600;
	box-shadow: 0 12px 24px -20px rgba(37, 99, 235, 0.5);
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sd-tech li:hover {
	transform: translateY(-3px);
	background: linear-gradient(135deg, #2563eb, #38bdf8);
	border-color: transparent;
	color: #ffffff;
}

/* Process steps */
.sd-step::before {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 14px;
	border-radius: 50%;
	font-family: "Sora", "Inter", sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
	background: linear-gradient(135deg, #2563eb, #38bdf8);
	-webkit-text-fill-color: #ffffff;
	color: #ffffff;
	box-shadow: 0 12px 22px -10px rgba(37, 99, 235, 0.65);
}

/* FAQ */
.sd-faq details {
	border: 1px solid #e1eafa;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 16px 34px -28px rgba(37, 99, 235, 0.45);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sd-faq details[open] {
	border-color: #b9d2fb;
	box-shadow: 0 26px 46px -28px rgba(37, 99, 235, 0.5);
}

.sd-faq summary {
	font-weight: 600;
	color: #0a1633;
}

.sd-faq details[open] summary {
	color: #1d4ed8;
}

/* Related services */
.sd-related img {
	transition: transform 0.5s ease;
}

.sd-related:hover img {
	transform: scale(1.06);
}

.sd-related-cat {
	color: #2563eb;
	letter-spacing: 0.1em;
}

.sd-related-link {
	color: #1d4ed8;
}

/* Call to action */
.sd-cta {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	background: linear-gradient(90deg, #020024 0%, #060552 7%, #090979 21%, #0482c9 56%, #0ea5e9 100%);
	box-shadow: 0 36px 70px -36px rgba(37, 99, 235, 0.65);
}

.sd-cta::before {
	content: '';
	position: absolute;
	top: -150px;
	right: -90px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.22);
	pointer-events: none;
}

.sd-cta > * {
	position: relative;
}

.sd-cta h2 {
	font-weight: 600;
	letter-spacing: -0.025em;
	text-shadow: 0 2px 12px rgba(2, 0, 36, 0.55);
}

.sd-cta p {
	text-shadow: 0 2px 12px rgba(2, 0, 36, 0.45);
}

.sd-btn--white {
	border-radius: 999px;
	color: #1d4ed8;
	box-shadow: 0 16px 30px -16px rgba(2, 0, 36, 0.7);
}

@media (max-width: 991.98px) {
	.sd-hero { padding-bottom: 110px; }
}

@media (max-width: 575.98px) {
	.sd-hero { padding-bottom: 80px; }
	.sd-cta { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.sd-hero-media img { animation: none; }
}

/* ==========================================================================
   MATCHING THE HOMEPAGE: centred headings with the gradient underline,
   waves between sections, decorations
   ========================================================================== */
.sd-hero.sky-hero::after {
	z-index: 0;
}

.sd-hero .container {
	z-index: 2;
}

.sd-head {
	margin-bottom: 44px;
}

.sd-title {
	position: relative;
	display: inline-block;
	padding-bottom: 16px;
	margin-bottom: 0;
}

.sd-title::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 56px;
	height: 3px;
	border-radius: 3px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.sd-head .sd-lead {
	margin: 16px auto 0;
}

.sd-checks {
	justify-content: center;
}

/* Waves where a sky section meets a white one (sections are optional, so this is done by neighbour) */
.sd-section {
	position: relative;
}

.sd-section > .container {
	position: relative;
	z-index: 2;
}

.sd-section--white + .sd-section:not(.sd-section--white),
.sd-section:not(.sd-section--white) + .sd-section--white {
	padding-top: 150px;
}

.sd-section--white + .sd-section:not(.sd-section--white)::before,
.sd-section:not(.sd-section--white) + .sd-section--white::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	height: 100px;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	pointer-events: none;
}

.sd-section:not(.sd-section--white) + .sd-section--white::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23f3f7fe' d='M0,0 L1440,0 L1440,38 C1200,96 960,12 720,44 C480,76 240,104 0,48 Z'/%3E%3C/svg%3E");
}

.sd-section--white + .sd-section:not(.sd-section--white)::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,0 L1440,0 L1440,38 C1200,96 960,12 720,44 C480,76 240,104 0,48 Z'/%3E%3C/svg%3E");
	transform: scaleX(-1);
}

/* If the first section after the hero is white, the hero's wave must be white too */
.sd-hero:has(+ .sd-section--white) .sky-wave path {
	fill: #ffffff;
}

/* Dotted pattern, as on the homepage */
#included::after {
	content: '';
	position: absolute;
	top: 30px;
	left: -50px;
	width: 220px;
	height: 220px;
	background-image: radial-gradient(#cbd5e1 1.6px, transparent 1.6px);
	background-size: 18px 18px;
	opacity: 0.5;
	pointer-events: none;
}

.sd-section {
	overflow: hidden;
}

@media (max-width: 991.98px) {
	.sd-section--white + .sd-section:not(.sd-section--white),
	.sd-section:not(.sd-section--white) + .sd-section--white {
		padding-top: 110px;
	}

	.sd-section--white + .sd-section:not(.sd-section--white)::before,
	.sd-section:not(.sd-section--white) + .sd-section--white::before {
		height: 64px;
	}

	#included::after { display: none; }
}

@media (max-width: 575.98px) {
	.sd-section--white + .sd-section:not(.sd-section--white),
	.sd-section:not(.sd-section--white) + .sd-section--white {
		padding-top: 84px;
	}

	.sd-section--white + .sd-section:not(.sd-section--white)::before,
	.sd-section:not(.sd-section--white) + .sd-section--white::before {
		height: 42px;
	}
}

/* ==========================================================================
   TABLET AND PHONE
   ========================================================================== */
@media (max-width: 991.98px) {
	/* Heading first, picture after it */
	.sd-hero .row {
		flex-direction: column !important;
		--bs-gutter-y: 1.5rem;
	}

	.sd-hero {
		padding-top: 112px;
		text-align: center;
	}

	.sd-h1 {
		font-size: clamp(1.9rem, 4.6vw, 2.6rem);
		text-wrap: balance;
	}

	.sd-hero-desc {
		margin-left: auto;
		margin-right: auto;
	}

	.sd-hero-media {
		max-width: 520px;
		margin: 6px auto 0;
	}

	.sd-section {
		padding: 72px 0;
	}

	.sd-steps {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 576px) and (max-width: 991.98px) {
	/* Two columns on tablets for the card rows */
	.sd-checks {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 575.98px) {
	.sd-hero {
		padding-top: 96px;
	}

	.sd-h1 {
		font-size: 1.65rem;
		line-height: 1.22;
		letter-spacing: -0.02em;
		margin-bottom: 12px;
	}

	.sd-hero-desc {
		font-size: 0.96rem;
		line-height: 1.65;
		margin-bottom: 20px;
	}

	.sd-crumbs {
		font-size: 0.78rem;
		margin-bottom: 14px;
	}

	.sd-actions {
		flex-direction: column;
		gap: 10px;
		max-width: 320px;
		margin: 0 auto;
	}

	.sd-actions .sd-btn {
		width: 100%;
		justify-content: center;
		padding: 13px 18px;
	}

	.sd-hero-location {
		font-size: 0.82rem;
		margin-top: 16px;
	}

	.sd-hero-media {
		max-width: 300px;
	}

	.sd-hero-media::before {
		display: none;
	}

	/* Tighter sections and headings */
	.sd-section {
		padding: 52px 0;
	}

	.sd-head {
		margin-bottom: 26px;
	}

	.sd-title {
		font-size: 1.4rem;
		text-wrap: balance;
	}

	/* What's included: compact rows */
	.sd-checks {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.sd-checks li {
		padding: 13px 14px;
		font-size: 0.94rem;
	}

	/* Feature and engagement cards: icon beside the text */
	.sd-section .row.g-4 {
		--bs-gutter-y: 12px;
	}

	.sd-feature,
	.sd-engage {
		display: grid;
		grid-template-columns: 46px 1fr;
		column-gap: 14px;
		align-items: start;
		padding: 18px 16px;
	}

	.sd-feature .sd-icon,
	.sd-engage .sd-icon {
		width: 46px;
		height: 46px;
		border-radius: 14px;
		grid-row: 1 / span 3;
	}

	.sd-feature h3,
	.sd-engage h3 {
		margin: 2px 0 6px;
		font-size: 1.04rem;
	}

	.sd-feature p,
	.sd-engage p {
		font-size: 0.92rem;
		line-height: 1.6;
	}

	.sd-engage ul {
		grid-column: 2;
	}

	.sd-engage ul li {
		font-size: 0.9rem;
	}

	/* Technology chips: one row you can swipe */
	.sd-tech {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin: 0 -12px;
		padding: 4px 12px 10px;
	}

	.sd-tech::-webkit-scrollbar { display: none; }
	.sd-tech li { flex: none; }

	/* Process: vertical timeline */
	.sd-steps {
		grid-template-columns: 1fr;
		gap: 12px;
		position: relative;
	}

	.sd-steps::before {
		content: '';
		position: absolute;
		top: 26px;
		bottom: 26px;
		left: 22px;
		width: 2px;
		background: linear-gradient(180deg, #c7dbfb, #7dd3fc, #c7dbfb);
	}

	.sd-step,
	.sd-step:hover {
		display: grid;
		grid-template-columns: 46px 1fr;
		column-gap: 14px;
		padding: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
		transform: none;
	}

	.sd-step::before {
		grid-row: 1 / span 2;
		margin: 0;
		position: relative;
		z-index: 1;
		box-shadow: 0 0 0 5px #f3f7fe, 0 10px 20px -8px rgba(37, 99, 235, 0.6);
	}

	.sd-section--white .sd-step::before {
		box-shadow: 0 0 0 5px #ffffff, 0 10px 20px -8px rgba(37, 99, 235, 0.6);
	}

	.sd-step h3 {
		margin: 4px 0 4px;
		font-size: 1.02rem;
	}

	.sd-step p {
		grid-column: 2;
		font-size: 0.92rem;
		margin: 0;
	}

	/* FAQ */
	.sd-faq summary {
		padding: 15px 16px;
		font-size: 0.96rem;
	}

	.sd-faq .sd-faq-a {
		padding: 0 16px 16px;
		font-size: 0.93rem;
	}

	/* Related services: swipe sideways */
	.sd-section:has(.sd-related) .row.g-4 {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin-left: -12px;
		margin-right: -12px;
		padding: 4px 12px 18px;
		--bs-gutter-x: 14px;
	}

	.sd-section:has(.sd-related) .row.g-4::-webkit-scrollbar { display: none; }

	.sd-section:has(.sd-related) .row.g-4 > [class*="col-"] {
		flex: 0 0 80%;
		max-width: 80%;
		scroll-snap-align: center;
	}

	/* Cards waiting off to the side must not stay faded out */
	.sd-related.sky-reveal {
		opacity: 1;
		transform: none;
	}

	/* Closing banner */
	.sd-cta {
		padding: 34px 22px;
		text-align: center;
	}

	.sd-cta h2 {
		font-size: 1.35rem;
	}

	.sd-cta .sd-btn {
		margin-top: 16px;
		width: 100%;
		justify-content: center;
	}
}

/* Related cards show the whole cover, label included */
.sd-related img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

/* Same hairline guard for the waves drawn between service sections */
.sd-section:not(.sd-section--white) + .sd-section--white {
	box-shadow: inset 0 3px 0 #f3f7fe;
}

.sd-section--white + .sd-section:not(.sd-section--white) {
	box-shadow: inset 0 3px 0 #ffffff;
}
