/* NexaLance Service Cards: scoped to this Elementor widget only. */

.nlsc-four-cards {
	--nlsc-card-bg: #050505;
	--nlsc-card-hover-bg: #180b02;
	--nlsc-border: #361b08;
	--nlsc-accent: #f97316;
	--nlsc-number: #1f1f1f;
	--nlsc-icon: #a9a9a9;
	--nlsc-title: #f8f8f8;
	--nlsc-description: #667793;
	--nlsc-feature: #53627b;
	--nlsc-check: #f97316;
	--nlsc-lift: 5px;
	color: var(--nlsc-title);
}

.nlsc-four-cards *,
.nlsc-four-cards *::before,
.nlsc-four-cards *::after {
	box-sizing: border-box;
}

.nlsc-four-cards .nlsc-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nlsc-four-cards .nlsc-card {
	background: var(--nlsc-card-bg);
	border: 1px solid var(--nlsc-border);
	color: inherit;
	display: flex;
	flex-direction: column;
	min-height: 432px;
	overflow: visible;
	padding: 28px;
	position: relative;
	text-decoration: none;
	/* Keep the reference design free of any theme-provided card shadow. */
	box-shadow: none !important;
	transition: background 300ms ease, border-color 300ms ease, transform 300ms ease;
	will-change: transform;
}

.nlsc-four-cards .nlsc-card::before {
	background: linear-gradient(142deg, var(--nlsc-accent), transparent 65%);
	content: '';
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity 300ms ease;
	z-index: 0;
}

.nlsc-four-cards .nlsc-card > * {
	position: relative;
	z-index: 1;
}

.nlsc-four-cards .nlsc-card:hover,
.nlsc-four-cards .nlsc-card:focus-visible,
.nlsc-four-cards .nlsc-card:active {
	background: var(--nlsc-card-hover-bg);
	border-color: var(--nlsc-accent);
	box-shadow: none !important;
	color: inherit;
	transform: translateY(calc(var(--nlsc-lift) * -1));
}

.nlsc-four-cards .nlsc-card:hover::before,
.nlsc-four-cards .nlsc-card:focus-visible::before,
.nlsc-four-cards .nlsc-card:active::before {
	opacity: 0.12;
}

.nlsc-four-cards .nlsc-card:focus-visible {
	outline: 2px solid var(--nlsc-accent);
	outline-offset: 5px;
}

.nlsc-four-cards .nlsc-corner {
	pointer-events: none;
	position: absolute;
	z-index: 2;
}

.nlsc-four-cards .nlsc-corner-top {
	border-left: 2px solid var(--nlsc-accent);
	border-top: 2px solid var(--nlsc-accent);
	height: 16px;
	left: -1px;
	top: -1px;
	width: 16px;
}

.nlsc-four-cards .nlsc-corner-bottom {
	border-bottom: 2px solid var(--nlsc-accent);
	border-right: 2px solid var(--nlsc-accent);
	bottom: -1px;
	height: 16px;
	right: -1px;
	width: 16px;
}

.nlsc-four-cards .nlsc-card-number {
	color: var(--nlsc-number);
	font-family: 'Arial Narrow', 'Roboto Condensed', sans-serif;
	font-size: 56px;
	font-weight: 400;
	letter-spacing: 0.015em;
	line-height: 0.9;
	transition: color 300ms ease;
}

.nlsc-four-cards .nlsc-card-icon {
	align-items: center;
	color: var(--nlsc-icon);
	display: inline-flex;
	font-size: 30px;
	height: 32px;
	justify-content: flex-start;
	margin-top: 28px;
	transition: color 300ms ease;
	width: 34px;
}

.nlsc-four-cards .nlsc-card-icon svg {
	display: block;
	fill: currentColor;
	height: 1em;
	max-height: 100%;
	max-width: 100%;
	width: 1em;
}

.nlsc-four-cards .nlsc-card:hover .nlsc-card-number,
.nlsc-four-cards .nlsc-card:hover .nlsc-card-icon,
.nlsc-four-cards .nlsc-card:focus-visible .nlsc-card-number,
.nlsc-four-cards .nlsc-card:focus-visible .nlsc-card-icon,
.nlsc-four-cards .nlsc-card:active .nlsc-card-number,
.nlsc-four-cards .nlsc-card:active .nlsc-card-icon {
	color: var(--nlsc-accent);
}

.nlsc-four-cards .nlsc-card-title {
	color: var(--nlsc-title);
	font-family: 'Arial Narrow', 'Roboto Condensed', sans-serif;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.045em;
	line-height: 1.2;
	margin: 25px 0 0;
	text-transform: uppercase;
}

.nlsc-four-cards .nlsc-card-description {
	color: var(--nlsc-description);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.65;
	margin: 14px 0 0;
	min-height: 92px;
	overflow-wrap: anywhere;
}

.nlsc-four-cards .nlsc-features {
	color: var(--nlsc-feature);
	font-family: inherit;
	font-size: 12px;
	line-height: 1.45;
	list-style: none;
	margin: auto 0 0;
	padding: 19px 0 0;
}

.nlsc-four-cards .nlsc-features li {
	align-items: flex-start;
	display: flex;
	gap: 8px;
	margin: 0 0 7px;
	overflow-wrap: anywhere;
}

.nlsc-four-cards .nlsc-check {
	color: var(--nlsc-check);
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.55;
}

@media (max-width: 1024px) {
	.nlsc-four-cards .nlsc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nlsc-four-cards .nlsc-card {
		min-height: 400px;
	}
}

@media (max-width: 767px) {
	.nlsc-four-cards .nlsc-grid {
		gap: 16px;
		grid-template-columns: minmax(0, 1fr);
	}

	.nlsc-four-cards .nlsc-card {
		min-height: 0;
		padding: 26px 24px;
	}

	.nlsc-four-cards .nlsc-card-description {
		min-height: 0;
	}

	.nlsc-four-cards .nlsc-features {
		margin-top: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nlsc-four-cards .nlsc-card,
	.nlsc-four-cards .nlsc-card::before,
	.nlsc-four-cards .nlsc-card-number,
	.nlsc-four-cards .nlsc-card-icon {
		transition: none !important;
	}
}
