/*
 * Homepage solutions section.
 * Intentionally isolated from global Astra styles.
 */

.jlb-home-solutions {
	position: relative;
	width: 100vw;
	margin-inline: calc(50% - 50vw);
	padding-block: clamp(5.5rem, 9vw, 8.5rem);
	color: #f7f8fa;
	background: #08131f;
	overflow: hidden;
}

.jlb-home-solutions::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
}

.jlb-home-solutions__inner {
	position: relative;
	z-index: 1;
	width: min(100% - 3rem, 1280px);
	margin-inline: auto;
}

.jlb-home-solutions__header {
	display: grid;
	grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
	gap: clamp(3rem, 8vw, 8rem);
	align-items: end;
	margin-bottom: clamp(3rem, 6vw, 5rem);
}

.jlb-home-solutions__meta p,
.jlb-home-solutions__header h2,
.jlb-home-solutions__header > div > p {
	margin: 0;
}

.jlb-home-solutions__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.58);
}

.jlb-home-solutions__eyebrow::before {
	content: "";
	width: 34px;
	height: 2px;
	background: #b24a3f;
}

.jlb-home-solutions__index {
	margin-top: 1.35rem !important;
	font-size: 1rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.88);
}

.jlb-home-solutions__header h2 {
	max-width: 14ch;
	font-size: clamp(2.7rem, 5.2vw, 5rem);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.045em;
	color: #ffffff;
	text-wrap: balance;
}

.jlb-home-solutions__intro {
	max-width: 60ch;
	margin-top: 1.4rem !important;
	font-size: clamp(1.02rem, 1.45vw, 1.22rem);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.66);
}

.jlb-home-solutions__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
	grid-template-rows: repeat(2, minmax(280px, 1fr));
	gap: 1rem;
}

.jlb-home-solutions__side {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.jlb-solution-card {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-width: 0;
	min-height: 280px;
	overflow: hidden;
	background: #13202c;
	text-decoration: none !important;
}

.jlb-solution-card--feature {
	grid-row: 1 / span 2;
	min-height: 576px;
}

.jlb-solution-card__media,
.jlb-solution-card__media::after {
	position: absolute;
	inset: 0;
}

.jlb-solution-card__media {
	z-index: -2;
	background: #15222e;
}

.jlb-solution-card__media::after {
	content: "";
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(4, 12, 20, 0.04) 0%, rgba(4, 12, 20, 0.2) 40%, rgba(4, 12, 20, 0.94) 100%),
		linear-gradient(90deg, rgba(4, 12, 20, 0.24), transparent 70%);
}

.jlb-solution-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 420ms ease;
}

.jlb-solution-card:hover img {
	transform: scale(1.035);
}

.jlb-solution-card__content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: clamp(1.35rem, 2.5vw, 2rem);
}

.jlb-solution-card__number {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 0.85rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.64);
}

.jlb-solution-card__number::before {
	content: "";
	width: 24px;
	height: 1px;
	background: #b24a3f;
}

.jlb-solution-card h3,
.jlb-solution-card p {
	margin: 0;
}

.jlb-solution-card h3 {
	max-width: 15ch;
	font-size: clamp(1.5rem, 2.4vw, 2.4rem);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.03em;
	color: #ffffff;
}

.jlb-solution-card--feature h3 {
	font-size: clamp(2rem, 3.4vw, 3.5rem);
}

.jlb-solution-card p {
	max-width: 48ch;
	margin-top: 0.85rem;
	font-size: 0.94rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.7);
}

.jlb-solution-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
	font-size: 0.82rem;
	font-weight: 800;
	color: #ffffff;
}

.jlb-solution-card:hover .jlb-solution-card__link {
	gap: 0.75rem;
}

.jlb-solution-card:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 4px;
}

.jlb-home-solutions__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.jlb-home-solutions__footer p {
	max-width: 60ch;
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.58);
}

.jlb-home-solutions__all {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.34);
	font-size: 0.92rem;
	font-weight: 800;
	color: #ffffff;
	text-decoration: none !important;
}

.jlb-home-solutions__all:hover {
	gap: 0.8rem;
	border-color: #b24a3f;
	color: #ffffff;
}

@media (min-width: 981px) {
	.jlb-home-solutions__side {
		grid-template-columns: 1fr;
	}

	.jlb-home-solutions__side .jlb-solution-card {
		min-height: 180px;
	}

	.jlb-home-solutions__side .jlb-solution-card__content {
		padding: 1.35rem 1.5rem;
	}

	.jlb-home-solutions__side .jlb-solution-card h3 {
		max-width: 24ch;
		font-size: clamp(1.3rem, 1.65vw, 1.8rem);
	}

	.jlb-home-solutions__side .jlb-solution-card p {
		font-size: 0.86rem;
		line-height: 1.45;
	}

	.jlb-home-solutions__side .jlb-solution-card__link {
		margin-top: 0.75rem;
		font-size: 0.78rem;
	}
}

@media (max-width: 980px) {
	.jlb-home-solutions__header {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.jlb-home-solutions__grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.jlb-solution-card--feature {
		grid-row: auto;
		min-height: 520px;
	}

	.jlb-home-solutions__side {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.jlb-home-solutions {
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
		padding-block: 4.5rem 5rem;
	}

	.jlb-home-solutions__inner {
		width: 100%;
		max-width: 100%;
		padding-inline: 1rem;
		box-sizing: border-box;
	}

	.jlb-home-solutions__header h2 {
		max-width: 11ch;
		font-size: clamp(2.45rem, 11vw, 3.4rem);
	}

	.jlb-home-solutions__intro {
		font-size: 1rem;
	}

	.jlb-home-solutions__grid,
	.jlb-home-solutions__side {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0.8rem;
	}

	.jlb-solution-card,
	.jlb-solution-card--feature {
		min-height: 390px;
	}

	.jlb-solution-card__content {
		padding: 1.25rem;
	}

	.jlb-solution-card h3,
	.jlb-solution-card--feature h3 {
		font-size: 1.75rem;
	}

	.jlb-home-solutions__footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jlb-solution-card img {
		transition: none;
	}

	.jlb-solution-card:hover img {
		transform: none;
	}
}
