/**
 * Service Section CSS — Premium service cards
 * Targets Cornerstone section: .e144-e144
 */

/* ── Section wrapper ─────────────────────────────────────────────── */
.e144-e144 {
	--ssc-accent: #0066cc;
	--ssc-accent-light: #3388dd;
	--ssc-accent-glow: rgba(0, 102, 204, 0.22);
	--ssc-navy: #0f2744;
	--ssc-text: #334155;
	--ssc-muted: #64748b;
	--ssc-bg: #eef2f7;
	--ssc-card-bg: #ffffff;
	--ssc-radius: 16px;
	--ssc-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--ssc-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

	background-color: var(--ssc-bg) !important;
	padding: clamp(48px, 6vw, 96px) clamp(16px, 4vw, 32px) !important;
	position: relative;
	overflow: hidden;
}

/* Subtle ambient glow */
.e144-e144::before {
	content: "";
	position: absolute;
	top: -120px;
	right: -80px;
	width: 420px;
	height: 420px;
	background: radial-gradient(circle, rgba(0, 102, 204, 0.07) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.e144-e144::after {
	content: "";
	position: absolute;
	bottom: -100px;
	left: -60px;
	width: 360px;
	height: 360px;
	background: radial-gradient(circle, rgba(15, 39, 68, 0.05) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

/* ── Grid layout ─────────────────────────────────────────────────── */
.e144-e144 > .x-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: clamp(20px, 3vw, 36px) !important;
	max-width: 1240px !important;
	margin: 0 auto clamp(20px, 3vw, 36px) !important;
	padding: 0 !important;
	position: relative;
	z-index: 1;
}

.e144-e144 > .x-grid:last-child {
	margin-bottom: 0 !important;
}

/* ── Card shell ──────────────────────────────────────────────────── */
.e144-e144 .x-cell {
	position: relative;
	display: flex !important;
	flex-direction: column;
	background: var(--ssc-card-bg) !important;
	border-radius: var(--ssc-radius) !important;
	overflow: hidden;
	box-shadow:
		0 1px 2px rgba(15, 39, 68, 0.04),
		0 8px 28px rgba(15, 39, 68, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.8);
	transition:
		transform 0.55s var(--ssc-ease),
		box-shadow 0.55s var(--ssc-ease),
		border-color 0.4s ease;
	will-change: transform;
	opacity: 0;
	transform: translateY(40px);
}

.e144-e144 .x-cell.ssc-visible {
	opacity: 1;
	transform: translateY(0);
}

.e144-e144 .x-cell:hover {
	transform: translateY(-14px) !important;
	box-shadow:
		0 4px 8px rgba(15, 39, 68, 0.06),
		0 24px 56px var(--ssc-accent-glow);
	border-color: rgba(0, 102, 204, 0.12);
}

/* Top accent line */
.e144-e144 .x-cell::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--ssc-accent), var(--ssc-accent-light));
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.5s var(--ssc-ease);
	z-index: 4;
}

.e144-e144 .x-cell:hover::before {
	transform: scaleX(1);
}

/* Floating icon badge */
.e144-e144 .x-cell::after {
	content: "";
	position: absolute;
	top: calc(clamp(140px, 22vw, 200px) - 30px);
	left: 24px;
	width: 58px;
	height: 58px;
	background-color: #ffffff;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 26px 26px;
	border-radius: 14px;
	box-shadow:
		0 4px 12px rgba(15, 39, 68, 0.1),
		0 12px 32px rgba(0, 102, 204, 0.12);
	z-index: 3;
	transition:
		transform 0.45s var(--ssc-spring),
		background-color 0.35s ease,
		box-shadow 0.35s ease;
}

.e144-e144 .x-cell:hover::after {
	transform: scale(1.08) translateY(-4px);
	background-color: var(--ssc-accent);
	box-shadow: 0 16px 36px rgba(0, 102, 204, 0.28);
}

/* Per-card icons (SVG data URIs) */
.e144-e144 .x-grid .x-cell:nth-child(3n + 1)::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230066cc' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E");
}

.e144-e144 .x-grid .x-cell:nth-child(3n + 2)::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230066cc' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z'/%3E%3C/svg%3E");
}

.e144-e144 .x-grid .x-cell:nth-child(3n + 3)::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230066cc' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z'/%3E%3C/svg%3E");
}

.e144-e144 .x-cell:hover:nth-child(3n + 1)::after,
.e144-e144 .x-cell:hover:nth-child(3n + 2)::after,
.e144-e144 .x-cell:hover:nth-child(3n + 3)::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E");
}

.e144-e144 .x-cell:hover:nth-child(3n + 2)::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z'/%3E%3C/svg%3E");
}

.e144-e144 .x-cell:hover:nth-child(3n + 3)::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z'/%3E%3C/svg%3E");
}

/* ── Image area ──────────────────────────────────────────────────── */
.e144-e144 .x-image {
	position: relative;
	display: block !important;
	width: 100% !important;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	margin: 0 !important;
	padding: 0 !important;
}

.e144-e144 .x-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(15, 39, 68, 0.05) 0%,
		rgba(0, 102, 204, 0.45) 100%
	);
	z-index: 2;
	opacity: 0.55;
	transition: opacity 0.5s var(--ssc-ease);
	pointer-events: none;
}

.e144-e144 .x-cell:hover .x-image::before {
	opacity: 0.35;
}

.e144-e144 .x-image img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	filter: grayscale(40%) saturate(0.85);
	transition:
		transform 0.7s var(--ssc-ease),
		filter 0.6s ease;
	transform-origin: center center;
}

.e144-e144 .x-cell:hover .x-image img {
	transform: scale(1.1);
	filter: grayscale(0%) saturate(1.1);
}

/* ── Headline ────────────────────────────────────────────────────── */
.e144-e144 .x-text-headline {
	margin: 0 !important;
	padding: 28px 28px 0 !important;
	text-align: left !important;
}

.e144-e144 .x-text-headline .x-text-content,
.e144-e144 .x-text-headline .x-text-content-text {
	margin: 0 !important;
	padding: 0 !important;
}

.e144-e144 .x-text-headline h1,
.e144-e144 .x-text-headline .x-text-content-text-primary {
	font-family: inherit !important;
	font-size: clamp(1.1rem, 1.6vw, 1.35rem) !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	color: var(--ssc-navy) !important;
	letter-spacing: -0.02em !important;
	text-transform: none !important;
	margin: 0 !important;
	padding: 0 !important;
	transition: color 0.35s ease;
}

.e144-e144 .x-cell:hover .x-text-headline h1,
.e144-e144 .x-cell:hover .x-text-headline .x-text-content-text-primary {
	color: var(--ssc-accent) !important;
}

/* ── Body copy ───────────────────────────────────────────────────── */
.e144-e144 .x-content {
	flex: 1;
	margin: 0 !important;
	padding: 14px 28px 20px !important;
	font-size: clamp(0.9rem, 1.1vw, 0.975rem) !important;
	line-height: 1.75 !important;
	color: var(--ssc-muted) !important;
	text-align: left !important;
}

/* ── CTA button → premium text link ─────────────────────────────── */
.e144-e144 .x-anchor-button {
	display: inline-flex !important;
	align-items: center !important;
	align-self: flex-start !important;
	margin: 0 28px 28px !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--ssc-accent) !important;
	font-size: 0.95rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em !important;
	text-decoration: none !important;
	position: relative;
	overflow: visible !important;
	transition: color 0.3s ease !important;
}

.e144-e144 .x-anchor-button .x-anchor-content,
.e144-e144 .x-anchor-button .x-anchor-text {
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
}

.e144-e144 .x-anchor-button .x-anchor-text-primary {
	color: inherit !important;
}

.e144-e144 .x-anchor-button::after {
	content: "→";
	display: inline-block;
	margin-left: 8px;
	font-size: 1.1em;
	line-height: 1;
	transition: transform 0.35s var(--ssc-spring);
}

.e144-e144 .x-cell:hover .x-anchor-button {
	color: var(--ssc-navy) !important;
}

.e144-e144 .x-cell:hover .x-anchor-button::after {
	transform: translateX(8px);
}

/* Underline sweep on hover */
.e144-e144 .x-anchor-button::before {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--ssc-accent);
	transition: width 0.4s var(--ssc-ease);
}

.e144-e144 .x-cell:hover .x-anchor-button::before {
	width: calc(100% - 28px);
}

/* ── Staggered entrance delays ───────────────────────────────────── */
.e144-e144 .x-cell.ssc-visible:nth-child(1) { transition-delay: 0ms, 0ms, 0ms; }
.e144-e144 .x-cell.ssc-visible:nth-child(2) { transition-delay: 80ms, 80ms, 0ms; }
.e144-e144 .x-cell.ssc-visible:nth-child(3) { transition-delay: 160ms, 160ms, 0ms; }

.e144-e144 .x-cell {
	transition:
		opacity 0.65s var(--ssc-ease),
		transform 0.65s var(--ssc-ease),
		box-shadow 0.55s var(--ssc-ease),
		border-color 0.4s ease;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.e144-e144 > .x-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.e144-e144 .x-cell::after {
		top: calc(clamp(120px, 28vw, 180px) - 30px);
	}
}

@media (max-width: 640px) {
	.e144-e144 > .x-grid {
		grid-template-columns: 1fr !important;
		max-width: 480px !important;
	}

	.e144-e144 .x-cell:hover {
		transform: translateY(-8px) !important;
	}

	.e144-e144 .x-cell::after {
		left: 20px;
		width: 52px;
		height: 52px;
		background-size: 22px 22px;
	}
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.e144-e144 .x-cell,
	.e144-e144 .x-image img,
	.e144-e144 .x-anchor-button::after,
	.e144-e144 .x-cell::after,
	.e144-e144 .x-cell::before {
		transition: none !important;
	}

	.e144-e144 .x-cell {
		opacity: 1;
		transform: none;
	}

	.e144-e144 .x-cell:hover {
		transform: none !important;
	}

	.e144-e144 .x-cell:hover .x-image img {
		transform: none;
	}
}
