/* ==========================================================================
   SERVICES PAGE, "SKY" THEME (matches the homepage)
   Loaded after services.css from servicesView.php.
   ========================================================================== */

body {
	background: #f3f7fe !important;
	color: #4a5672 !important;
}

/* ---------- Type ---------- */
.hero-modern-title,
.section-title,
.svc-grid-title,
.svc-engage-card h3,
.process-step-card h4 {
	font-family: "Sora", "Inter", system-ui, sans-serif;
}

.section-title {
	color: #0a1633 !important;
	font-weight: 600;
	letter-spacing: -0.03em;
	font-size: clamp(1.7rem, 3vw, 2.35rem);
	padding-bottom: 16px;
}

.section-title::after {
	width: 56px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, #2563eb, #38bdf8);
}

#servicesCatalog .text-muted,
#engagement .text-muted,
.how-it-works .text-muted {
	color: #5a6785 !important;
	font-size: 1.04rem;
	line-height: 1.75;
}

/* ---------- Hero ---------- */
.services-hero-modern {
	padding: 140px 0 150px;
	border-bottom: 0;
}

.hero-modern-title {
	font-weight: 600;
	letter-spacing: -0.035em;
	font-size: clamp(2rem, 3.6vw, 3rem);
	line-height: 1.18;
}

.services-hero-modern .text-gradient {
	background: linear-gradient(90deg, #bae6fd 0%, #7dd3fc 50%, #38bdf8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero-modern-subtitle {
	color: rgba(255, 255, 255, 0.86);
	line-height: 1.75;
}

.hero-quick-search {
	border-radius: 999px;
	box-shadow: 0 24px 50px -24px rgba(2, 0, 36, 0.7);
}

.hero-quick-search button {
	border-radius: 999px;
	background: linear-gradient(135deg, #2563eb, #38bdf8);
	border: 0;
}

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

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

/* ---------- Section backgrounds ---------- */
#servicesCatalog {
	background: #f3f7fe !important;
	padding-top: 40px !important;
}

#engagement {
	position: relative;
	background: #ffffff !important;
	padding-top: 120px !important;
}

.how-it-works {
	position: relative;
	background: #f3f7fe !important;
	padding-top: 120px !important;
}

#engagement > .container,
.how-it-works > .container {
	position: relative;
	z-index: 2;
}

/* ---------- Category filters ---------- */
.filter-tag-btn {
	border-radius: 999px;
	border: 1px solid #d5e3fb;
	background: #ffffff;
	color: #33405f;
	font-weight: 600;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.filter-tag-btn:hover {
	border-color: #b9d2fb;
	color: #1d4ed8;
	transform: translateY(-2px);
}

.filter-tag-btn.active {
	background: linear-gradient(135deg, #2563eb, #38bdf8);
	border-color: transparent;
	color: #ffffff;
	box-shadow: 0 12px 22px -12px rgba(37, 99, 235, 0.7);
}

/* ---------- Service cards ---------- */
.svc-grid-card {
	border: 1px solid #e1eafa;
	border-radius: 22px;
	overflow: hidden;
	background: #ffffff;
	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;
}

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

.svc-grid-media img {
	transition: transform 0.5s ease;
}

.svc-grid-card:hover .svc-grid-media img {
	transform: scale(1.06);
}

.svc-grid-icon {
	background: linear-gradient(135deg, #2563eb, #38bdf8);
	color: #ffffff;
	border: 3px solid #ffffff;
	border-radius: 14px;
	box-shadow: 0 12px 22px -10px rgba(37, 99, 235, 0.7);
}

.svc-grid-cat {
	color: #2563eb;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.svc-grid-title {
	font-weight: 600;
	letter-spacing: -0.01em;
}

.svc-grid-title a {
	color: #0a1633;
}

.svc-grid-title a:hover {
	color: #1d4ed8;
}

.svc-grid-summary,
.svc-grid-list li {
	color: #5a6785;
}

.svc-grid-list i {
	color: #38bdf8;
}

.svc-grid-link {
	color: #1d4ed8;
}

.svc-grid-link i {
	transition: transform 0.2s ease;
}

.svc-grid-card:hover .svc-grid-link i {
	transform: translateX(4px);
}

/* ---------- Engagement cards ---------- */
.svc-engage-card {
	position: relative;
	overflow: hidden;
	height: 100%;
	background: #ffffff;
	border: 1px solid #e1eafa;
	border-radius: 22px;
	padding: 30px 26px 26px;
	box-shadow: 0 22px 44px -30px rgba(37, 99, 235, 0.4);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.svc-engage-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 22%;
	right: 22%;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.svc-engage-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 32px 58px -28px rgba(37, 99, 235, 0.55);
}

.svc-engage-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 18px;
	border-radius: 16px;
	background: linear-gradient(135deg, #2563eb, #38bdf8);
	color: #ffffff;
	font-size: 1.3rem;
	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);
}

.svc-engage-card:hover .svc-engage-icon {
	transform: translateY(-4px) rotate(-6deg);
}

.svc-engage-card h3 {
	font-size: 1.14rem;
	font-weight: 600;
	color: #0a1633;
	margin-bottom: 8px;
}

.svc-engage-card p {
	color: #5a6785;
	line-height: 1.65;
	margin: 0;
}

#engagement .btn-premium-outline {
	display: inline-flex;
	align-items: center;
	padding: 13px 28px;
	border-radius: 999px;
	background: linear-gradient(135deg, #2563eb, #38bdf8);
	border: 0;
	color: #ffffff !important;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 16px 30px -14px rgba(37, 99, 235, 0.7);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#engagement .btn-premium-outline:hover {
	transform: translateY(-3px);
	box-shadow: 0 22px 36px -14px rgba(37, 99, 235, 0.8);
}

/* ---------- How we work ---------- */
.how-it-works img {
	border-radius: 22px !important;
	box-shadow: 0 34px 60px -30px rgba(37, 99, 235, 0.55) !important;
}

.process-step-card {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: #ffffff;
	border: 1px solid #e1eafa;
	border-radius: 18px;
	padding: 20px 22px;
	box-shadow: 0 18px 38px -30px rgba(37, 99, 235, 0.45);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.process-step-card:hover {
	transform: translateX(6px);
	box-shadow: 0 26px 46px -28px rgba(37, 99, 235, 0.55);
}

.process-step-card .step-icon {
	flex: none;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: #eaf2ff;
	border: 0;
	box-shadow: none;
}

.process-step-card .step-icon i {
	color: #2563eb !important;
}

.process-step-card h4 {
	font-size: 1.08rem;
	font-weight: 600;
	color: #0a1633;
	margin-bottom: 6px;
}

.process-step-card p {
	color: #5a6785;
	line-height: 1.65;
	margin: 0;
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 991.98px) {
	.services-hero-modern { padding: 116px 0 120px; }
	#engagement, .how-it-works { padding-top: 96px !important; }
}

@media (max-width: 575.98px) {
	.services-hero-modern { padding: 96px 0 84px; }
	#engagement, .how-it-works { padding-top: 76px !important; }
	.hero-modern-title { font-size: 1.75rem; }
	.svc-engage-card { padding: 24px 20px 22px; }
	.process-step-card { padding: 16px; gap: 12px; }
	.process-step-card .step-icon { width: 44px; height: 44px; }
}

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

/* ==========================================================================
   MATCHING THE HOMEPAGE: signature hero, decorations, closing banner
   ========================================================================== */
#servicesCatalog {
	position: relative;
	overflow: hidden;
}

#servicesCatalog > .container {
	position: relative;
	z-index: 2;
}

.how-it-works {
	padding-bottom: 70px !important;
}

.sky-cta-wrap {
	background: #f3f7fe;
	padding: 10px 0 80px;
}

@media (max-width: 575.98px) {
	.sky-cta-wrap { padding-bottom: 52px; }
}

/* ==========================================================================
   SERVICE GRID AND CARDS
   ========================================================================== */

/* ---------- Filter bar ---------- */
.filter-tags-bar {
	gap: 10px;
	margin-bottom: 40px;
}

.filter-tag-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 10px 9px 18px;
}

.filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border-radius: 999px;
	background: #eaf2ff;
	color: #1d4ed8;
	font-size: 0.76rem;
	font-weight: 700;
	transition: background 0.2s ease, color 0.2s ease;
}

.filter-tag-btn.active .filter-count {
	background: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

/* ---------- Grid ---------- */
#serviceGrid {
	transition: opacity 0.16s ease;
}

#serviceGrid.is-filtering {
	opacity: 0;
}

/* ---------- Card ---------- */
.svc-grid-card {
	position: relative;
	border-radius: 24px;
	isolation: isolate;
}

/* Gradient outline that appears on hover */
.svc-grid-card::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1.5px;
	background: linear-gradient(135deg, #2563eb, #38bdf8);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
	z-index: 3;
}

.svc-grid-card:hover::after,
.svc-grid-card:focus-within::after {
	opacity: 1;
}

/* Image */
.svc-grid-media {
	aspect-ratio: 16 / 10;
	margin: 10px 10px 0;
	border-radius: 16px;
	overflow: visible;
	background: #e9f1ff;
}

.svc-grid-media img {
	border-radius: 16px;
}

/* Brand tint so mismatched photos sit in one family */
.svc-grid-media::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(6, 5, 82, 0) 35%, rgba(6, 5, 82, 0.62) 100%);
	pointer-events: none;
}

.svc-grid-card:hover .svc-grid-media img {
	transform: scale(1.04);
}

.svc-grid-media {
	overflow: hidden;
}

.svc-grid-cat {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: #1d4ed8;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	box-shadow: 0 8px 18px -10px rgba(2, 0, 36, 0.6);
}

.svc-grid-num {
	position: absolute;
	right: 14px;
	bottom: 10px;
	z-index: 2;
	font-family: "Sora", "Inter", sans-serif;
	font-size: 1.7rem;
	font-weight: 600;
	line-height: 1;
	color: rgba(255, 255, 255, 0.85);
}

.svc-grid-icon {
	left: 14px;
	bottom: 12px;
	z-index: 2;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #2563eb, #38bdf8);
	box-shadow: 0 12px 22px -10px rgba(2, 0, 36, 0.8);
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.svc-grid-card:hover .svc-grid-icon {
	transform: translateY(-4px) rotate(-6deg);
}

/* Text */
.svc-grid-body {
	padding: 20px 22px 20px;
}

.svc-grid-title {
	font-size: 1.16rem;
	margin: 0 0 8px;
}

/* The whole card is the link */
.svc-grid-title a::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 4;
	border-radius: 24px;
}

.svc-grid-title a:focus-visible {
	outline: none;
}

.svc-grid-summary {
	font-size: 0.94rem;
	line-height: 1.65;
	margin-bottom: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Technology / deliverable tags */
.svc-grid-tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 18px;
	padding: 0;
}

.svc-grid-tags li {
	padding: 5px 11px;
	border-radius: 999px;
	background: #f3f7fe;
	border: 1px solid #e1eafa;
	color: #33405f;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.2;
}

/* Footer row */
.svc-card-foot {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #edf3fd;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.svc-grid-link {
	margin: 0;
	padding: 0;
	font-size: 0.92rem;
	font-weight: 700;
	color: #1d4ed8;
}

.svc-card-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #eaf2ff;
	color: #1d4ed8;
	font-size: 0.9rem;
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.svc-grid-card:hover .svc-card-arrow {
	background: linear-gradient(135deg, #2563eb, #38bdf8);
	color: #ffffff;
	transform: translateX(4px);
}

/* ---------- Phones: compact list rows ---------- */
@media (max-width: 575.98px) {
	.filter-tags-bar {
		margin-bottom: 22px;
	}

	.filter-tag-btn {
		padding: 8px 8px 8px 14px;
	}

	.svc-grid-card {
		border-radius: 18px;
	}

	.svc-grid-media {
		margin: 8px 0 8px 8px;
		aspect-ratio: auto;
		border-radius: 12px;
	}

	.svc-grid-media img,
	.svc-grid-media::after {
		border-radius: 12px;
	}

	.svc-grid-cat,
	.svc-grid-num,
	.svc-grid-tags {
		display: none;
	}

	.svc-grid-body {
		padding: 12px 14px;
	}

	.svc-card-foot {
		padding-top: 8px;
		border-top: 0;
	}

	.svc-card-arrow {
		width: 30px;
		height: 30px;
		font-size: 0.78rem;
	}

	.svc-grid-title a::after {
		border-radius: 18px;
	}
}

/* ==========================================================================
   TABLET AND PHONE
   ========================================================================== */
@media (max-width: 991.98px) {
	.services-hero-modern {
		text-align: center;
	}

	.hero-modern-title {
		text-wrap: balance;
	}

	.hero-modern-subtitle {
		margin-left: auto;
		margin-right: auto;
	}

	.hero-quick-search {
		margin-left: auto;
		margin-right: auto;
	}

	/* "How we work": the picture is decoration, the steps are the content */
	.how-it-works .col-lg-5 {
		order: 2;
		margin-top: 18px;
	}
}

@media (min-width: 576px) and (max-width: 991.98px) {
	/* Category filters: one swipeable row instead of three wrapped rows */
	.filter-tags-bar {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: 4px 4px 10px;
	}

	.filter-tags-bar::-webkit-scrollbar { display: none; }
	.filter-tag-btn { flex: none; white-space: nowrap; }

	#engagement .col-md-4 {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.svc-engage-card {
		display: grid;
		grid-template-columns: 56px 1fr;
		column-gap: 18px;
		align-items: start;
	}

	.svc-engage-icon {
		grid-row: 1 / span 2;
		margin-bottom: 0;
	}
}

@media (max-width: 575.98px) {
	.hero-modern-title {
		font-size: 1.65rem;
		line-height: 1.22;
	}

	.hero-modern-subtitle {
		font-size: 0.96rem;
		line-height: 1.65;
	}

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

	#servicesCatalog .text-muted,
	#engagement .text-muted,
	.how-it-works .text-muted {
		font-size: 0.95rem;
	}

	/* The cover's label would be cut off in a narrow thumbnail: show its illustration side */
	.svc-grid-media img {
		object-position: 86% center;
	}

	.svc-grid-media::after {
		display: none;
	}

	.svc-grid-media {
		min-height: 118px;
	}

	.svc-grid-summary {
		-webkit-line-clamp: 2;
	}

	/* Engagement cards: icon beside the text */
	#engagement .row.g-4,
	.how-it-works .row {
		--bs-gutter-y: 12px;
	}

	.svc-engage-card {
		display: grid;
		grid-template-columns: 48px 1fr;
		column-gap: 14px;
		align-items: start;
		padding: 18px 16px;
	}

	.svc-engage-icon {
		grid-row: 1 / span 2;
		width: 48px;
		height: 48px;
		margin-bottom: 0;
		font-size: 1.1rem;
	}

	.svc-engage-card h3 {
		font-size: 1.04rem;
		margin: 2px 0 6px;
	}

	.svc-engage-card p {
		font-size: 0.92rem;
	}

	#engagement .btn-premium-outline {
		width: 100%;
		justify-content: center;
	}

	.process-step-card {
		margin-bottom: 12px !important;
	}

	.process-step-card h4 {
		font-size: 1rem;
	}

	.process-step-card p {
		font-size: 0.92rem;
	}

	.how-it-works {
		padding-bottom: 40px !important;
	}
}

/* ==========================================================================
   HERO TERMINAL (decorative, loops every 12s)
   ========================================================================== */
.svc-term-wrap {
	position: relative;
	max-width: 470px;
	margin-left: auto;
	padding: 26px 22px 30px 0;
}

.svc-term {
	border-radius: 16px;
	overflow: hidden;
	background: #0b1430;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 40px 80px -30px rgba(2, 0, 36, 0.8);
	font-family: "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
	animation: svcTermFloat 8s ease-in-out infinite;
}

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

.svc-term-bar {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 11px 14px;
	background: #131f45;
}

.svc-term-bar span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #f87171;
}

.svc-term-bar span:nth-child(2) { background: #fbbf24; }
.svc-term-bar span:nth-child(3) { background: #34d399; }

.svc-term-bar em {
	margin-left: 10px;
	font-family: "Inter", sans-serif;
	font-style: normal;
	font-size: 11.5px;
	font-weight: 600;
	color: #8794b8;
}

.svc-term-body {
	padding: 18px 20px 20px;
	min-height: 262px;
	color: #c9d5f2;
}

.svc-term-body p {
	margin: 0 0 9px;
	white-space: nowrap;
}

.svc-term-body .p { color: #34d399; font-weight: 400; }
.svc-term-body .a { color: #7dd3fc; font-weight: 400; }
.svc-term-body .ok { font-style: normal; color: #34d399; margin-left: 6px; }
.svc-term-body .up { color: #ffffff; font-weight: 600; }

.svc-term-body .dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 6px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}

/* Lines appear one after another, hold, then the loop restarts */
.svc-term-body .l {
	opacity: 0;
	animation: svcTermLine 12s linear infinite;
}

.svc-term-body .l1 { animation-name: svcTermLine1; }
.svc-term-body .l2 { animation-delay: 1.9s; }
.svc-term-body .l3 { animation-delay: 2.8s; }
.svc-term-body .l4 { animation-delay: 3.7s; }
.svc-term-body .l5 { animation-delay: 4.6s; }
.svc-term-body .l6 { animation-delay: 4.6s; }
.svc-term-body .l7 { animation-delay: 6.4s; }
.svc-term-body .l8 { animation-delay: 6.9s; }

@keyframes svcTermLine1 {
	0%, 92% { opacity: 1; }
	96%, 100% { opacity: 0; }
}

@keyframes svcTermLine {
	0% { opacity: 0; transform: translateY(4px); }
	2% { opacity: 1; transform: none; }
	/* each line is delayed, so it must fade out earlier in its own timeline */
	40% { opacity: 1; }
	43%, 100% { opacity: 0; }
}

/* The delays differ, so give every line the same end point (11s into the loop) */
.svc-term-body .l2 { animation-duration: 12s; animation-name: svcTermLineA; }
.svc-term-body .l3 { animation-name: svcTermLineB; }
.svc-term-body .l4 { animation-name: svcTermLineC; }
.svc-term-body .l5,
.svc-term-body .l6 { animation-name: svcTermLineD; }
.svc-term-body .l7 { animation-name: svcTermLineE; }
.svc-term-body .l8 { animation-name: svcTermLineF; }

@keyframes svcTermLineA { 0% { opacity: 0; } 2%, 76% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes svcTermLineB { 0% { opacity: 0; } 2%, 68% { opacity: 1; } 72%, 100% { opacity: 0; } }
@keyframes svcTermLineC { 0% { opacity: 0; } 2%, 61% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes svcTermLineD { 0% { opacity: 0; } 2%, 53% { opacity: 1; } 57%, 100% { opacity: 0; } }
@keyframes svcTermLineE { 0% { opacity: 0; } 2%, 38% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes svcTermLineF { 0% { opacity: 0; } 2%, 34% { opacity: 1; } 38%, 100% { opacity: 0; } }

/* First command is typed */
.svc-term-body .type {
	display: inline-block;
	vertical-align: bottom;
	overflow: hidden;
	white-space: nowrap;
	width: 20ch;
	animation: svcTermType 12s steps(20, end) infinite;
}

@keyframes svcTermType {
	0% { width: 0; }
	12%, 100% { width: 20ch; }
}

/* Each step's result appears a moment after its line */
.svc-term-body .ok {
	opacity: 0;
	animation: svcTermOk 12s linear infinite;
	animation-delay: inherit;
}

@keyframes svcTermOk {
	0%, 5% { opacity: 0; }
	7%, 100% { opacity: 1; }
}

.svc-term-progress {
	height: 6px;
	margin: 4px 0 14px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.svc-term-progress span {
	display: block;
	height: 100%;
	width: 100%;
	border-radius: 6px;
	background: linear-gradient(90deg, #2563eb, #38bdf8);
	transform-origin: left;
	animation: svcTermBar 12s ease-out infinite;
	animation-delay: inherit;
}

@keyframes svcTermBar {
	0% { transform: scaleX(0); }
	14%, 100% { transform: scaleX(1); }
}

.svc-term-cursor {
	display: inline-block;
	width: 8px;
	height: 15px;
	vertical-align: -2px;
	background: #7dd3fc;
	animation: svcTermBlink 1s steps(1) infinite;
}

@keyframes svcTermBlink {
	50% { opacity: 0; }
}

/* Floating service labels */
.svc-term-chip {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 15px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	color: #0a1633;
	font-size: 0.84rem;
	font-weight: 600;
	box-shadow: 0 16px 34px -16px rgba(2, 0, 36, 0.6);
	animation: svcChipFloat 6s ease-in-out infinite;
}

.svc-term-chip i { color: #2563eb; }
.svc-term-chip--a { top: 0; left: 8%; }
.svc-term-chip--b { top: 34%; right: -8px; animation-delay: -1.5s; }
.svc-term-chip--c { bottom: 6px; left: -16px; animation-delay: -3s; }
.svc-term-chip--d { bottom: 0; right: 12%; animation-delay: -4.5s; }

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

/* Without motion: show the finished run */
@media (prefers-reduced-motion: reduce) {
	.svc-term,
	.svc-term-chip,
	.svc-term-cursor {
		animation: none;
	}

	.svc-term-body .l,
	.svc-term-body .ok {
		opacity: 1;
		animation: none;
	}

	.svc-term-body .type {
		width: 20ch;
		animation: none;
	}

	.svc-term-progress span {
		transform: none;
		animation: none;
	}
}

/* ==========================================================================
   PHONE: service rows use an icon tile instead of a cropped cover image
   (the covers are wide and carry a label, so a narrow thumbnail cut them in half)
   ========================================================================== */
@media (max-width: 575.98px) {
	.svc-grid-card {
		grid-template-columns: 72px minmax(0, 1fr);
		align-items: center;
		padding: 14px;
		column-gap: 14px;
	}

	.svc-grid-media {
		width: 72px;
		height: 72px;
		min-height: 0;
		margin: 0;
		aspect-ratio: 1 / 1;
		border-radius: 18px;
		overflow: hidden;
		background: linear-gradient(135deg, #060552 0%, #2563eb 55%, #38bdf8 100%);
		box-shadow: 0 14px 24px -14px rgba(37, 99, 235, 0.7);
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.svc-grid-media img,
	.svc-grid-media::after {
		display: none;
	}

	/* soft highlight in the tile's corner */
	.svc-grid-media::before {
		content: '';
		position: absolute;
		top: -18px;
		right: -18px;
		width: 56px;
		height: 56px;
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.16);
	}

	.svc-grid-icon {
		display: flex;
		position: static;
		width: auto;
		height: auto;
		background: none;
		box-shadow: none;
		border: 0;
		color: #ffffff;
		font-size: 1.6rem;
	}

	.svc-grid-card:hover .svc-grid-icon {
		transform: none;
	}

	.svc-grid-body {
		padding: 0;
	}

	.svc-grid-title {
		font-size: 1.02rem;
		margin-bottom: 4px;
	}

	.svc-grid-summary {
		font-size: 0.88rem;
		line-height: 1.5;
		margin-bottom: 6px;
		-webkit-line-clamp: 2;
	}

	.svc-card-foot {
		padding-top: 2px;
	}

	.svc-grid-link {
		font-size: 0.86rem;
	}

	.svc-card-arrow {
		width: 28px;
		height: 28px;
	}
}

/* ==========================================================================
   HOW WE WORK: terminal that runs through the four steps (decorative, 12s loop).
   The step cards light up in the same rhythm.
   ========================================================================== */
.hiw-term-wrap {
	max-width: 470px;
	margin: 0 auto;
}

.hiw-term-body {
	min-height: 0;
	padding-bottom: 14px;
}

.hiw-term-body .hrow {
	display: grid;
	grid-template-columns: 28px 84px minmax(0, 1fr) auto;
	align-items: baseline;
}

.hiw-term-body .n { color: #7dd3fc; font-weight: 400; }
.hiw-term-body .k { color: #ffffff; }
.hiw-term-body .v { color: #8fa0c8; overflow: hidden; text-overflow: ellipsis; }
.hiw-term-body .hk { font-style: normal; color: #34d399; padding-left: 8px; }

.hiw-term-body .tl {
	opacity: 0;
	animation: hiwLine0 12s linear infinite;
}

.hiw-term-body .t1 { animation-name: hiwLine1; }
.hiw-term-body .t2 { animation-name: hiwLine2; }
.hiw-term-body .t3 { animation-name: hiwLine3; }
.hiw-term-body .t4 { animation-name: hiwLine4; }
.hiw-term-body .t5 { animation-name: hiwLine5; }

@keyframes hiwLine0 { 0%, 1% { opacity: 0; } 3%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes hiwLine1 { 0%, 12% { opacity: 0; } 14%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes hiwLine2 { 0%, 29% { opacity: 0; } 31%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes hiwLine3 { 0%, 46% { opacity: 0; } 48%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes hiwLine4 { 0%, 62% { opacity: 0; } 64%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes hiwLine5 { 0%, 77% { opacity: 0; } 79%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }

/* The matching step card is highlighted while its line is running */
.process-steps .process-step-card { animation: hiwStep1 12s linear infinite; }
.process-steps .process-step-card:nth-child(2) { animation-name: hiwStep2; }
.process-steps .process-step-card:nth-child(3) { animation-name: hiwStep3; }
.process-steps .process-step-card:nth-child(4) { animation-name: hiwStep4; }

@keyframes hiwStep1 { 0%, 12%, 29%, 100% { border-color: #e1eafa; } 14%, 27% { border-color: #38bdf8; } }
@keyframes hiwStep2 { 0%, 29%, 46%, 100% { border-color: #e1eafa; } 31%, 44% { border-color: #38bdf8; } }
@keyframes hiwStep3 { 0%, 46%, 62%, 100% { border-color: #e1eafa; } 48%, 60% { border-color: #38bdf8; } }
@keyframes hiwStep4 { 0%, 62%, 79%, 100% { border-color: #e1eafa; } 64%, 77% { border-color: #38bdf8; } }

/* What the client receives at each step */
.step-gets {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.step-gets li {
	padding: 3px 10px;
	border-radius: 8px;
	background: #eef4ff;
	color: #33405f;
	font-size: 0.8rem;
	font-weight: 600;
}

.step-gets li::before {
	content: '\2713';
	margin-right: 5px;
	color: #2563eb;
}

@media (max-width: 575.98px) {
	.hiw-term { font-size: 12px; }
	.hiw-term-body { padding: 14px 14px 10px; }
	.hiw-term-body .hrow { grid-template-columns: 24px 74px minmax(0, 1fr) auto; }
	.step-gets li { font-size: 0.76rem; }
}

@media (prefers-reduced-motion: reduce) {
	.hiw-term-body .tl { opacity: 1; animation: none; }
	.process-steps .process-step-card { animation: none; }
}

/* Where the step cards stack and centre their text, centre the chips too */
@media (max-width: 575.98px) {
	.step-gets { justify-content: center; }
}

/* ==========================================================================
   SERVICE SEARCH: the hero box filters the cards as you type
   ========================================================================== */
.hero-quick-search input[type="search"] {
	min-width: 0;
	-webkit-appearance: none;
	appearance: none;
}

/* The browser's own clear cross is replaced by ours */
.hero-quick-search input[type="search"]::-webkit-search-cancel-button {
	display: none;
}

.hero-quick-search .hero-search-clear {
	flex: none;
	width: 32px;
	height: 32px;
	margin-right: 6px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #eef4ff;
	color: #4a5672;
	font-size: 0.85rem;
	box-shadow: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.hero-quick-search .hero-search-clear[hidden] {
	display: none;
}

.hero-quick-search .hero-search-clear:hover {
	background: #dbe8ff;
	color: #1d4ed8;
	transform: none;
}

.svc-search-status {
	margin: 0 0 22px;
	text-align: center;
	color: #4a5672;
	font-weight: 600;
}

.svc-search-empty {
	max-width: 520px;
	margin: 8px auto 0;
	padding: 40px 28px;
	text-align: center;
	background: #ffffff;
	border: 1px solid #e1eafa;
	border-radius: 22px;
	box-shadow: 0 22px 44px -30px rgba(37, 99, 235, 0.4);
}

.svc-search-empty[hidden] {
	display: none;
}

.svc-search-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 16px;
	border-radius: 16px;
	background: linear-gradient(135deg, #2563eb, #38bdf8);
	color: #ffffff;
	font-size: 1.25rem;
}

.svc-search-empty h3 {
	font-family: "Sora", "Inter", system-ui, sans-serif;
	font-size: 1.2rem;
	font-weight: 600;
	color: #0a1633;
	margin-bottom: 8px;
}

.svc-search-empty p {
	color: #5a6785;
	line-height: 1.65;
	margin-bottom: 20px;
}

.svc-search-empty-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	justify-content: center;
}

.svc-search-empty-actions a {
	color: #2563eb;
	font-weight: 600;
	text-decoration: none;
}

.svc-search-empty-actions .svc-search-reset {
	padding: 11px 24px;
	border-radius: 999px;
	background: #2563eb;
	color: #ffffff;
	transition: background 0.2s ease;
}

.svc-search-empty-actions .svc-search-reset:hover {
	background: #1d4ed8;
}

@media (max-width: 575.98px) {
	.svc-search-empty { padding: 30px 20px; }
}
