/* GF Service Features — header: heading + text on the left, button (and optional
   extra text) on the right; below it a grid of cards. */
.gf-sfeat {
	--gf-sfeat-accent: var(--gf-red);
}

.gf-sfeat__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px 60px;
	margin-bottom: 50px;
}

/* Split: the right side also carries a paragraph, so both halves share the width */
.gf-sfeat--split .gf-sfeat__head {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.gf-sfeat__intro {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 900px;
}

.gf-sfeat__side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 25px;
}

.gf-sfeat--centered .gf-sfeat__side {
	align-items: flex-end;
}

.gf-sfeat__side .gf-btn-ghost {
	white-space: nowrap;
}

.gf-sfeat__heading {
	margin: 0;
	font-family: var(--gf-font-alt);
	font-size: var(--gf-h2);
	font-weight: 600;
	line-height: 1.16;
	letter-spacing: -.02em;
	color: var(--gf-navy);
}

.gf-sfeat__text,
.gf-sfeat__item-text {
	margin: 0;
	font-family: var(--gf-font-body);
	font-size: var(--gf-body);
	line-height: var(--gf-body-lh);
	letter-spacing: -.02em;
	color: #4d4d4d;
}

/* Cards */
.gf-sfeat__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	counter-reset: gf-sfeat;
}

.gf-sfeat__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 36px 32px 38px;
	overflow: hidden;
	background-color: var(--gf-white);
	border: 1px solid #e4e4ee;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgb(43 38 104 / 6%);
	counter-increment: gf-sfeat;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

/* Accent line that grows across the top on hover */
.gf-sfeat__item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background-color: var(--gf-sfeat-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s ease;
}

.gf-sfeat__item:hover {
	transform: translateY(-6px);
	border-color: transparent;
	box-shadow: 0 18px 44px rgb(43 38 104 / 14%);
}

.gf-sfeat__item:hover::before {
	transform: scaleX(1);
}

/* Faint card number in the top-right corner */
.gf-sfeat--numbered .gf-sfeat__item::after {
	/*content: counter(gf-sfeat, decimal-leading-zero);*/
	position: absolute;
	top: 26px;
	right: 28px;
	font-family: var(--gf-font-alt);
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.02em;
	color: var(--gf-navy);
	opacity: .08;
	transition: color .3s ease, opacity .3s ease;
	pointer-events: none;
}

.gf-sfeat--numbered .gf-sfeat__item:hover::after {
	color: var(--gf-sfeat-accent);
	opacity: .22;
}

.gf-sfeat__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 26px;
	overflow: hidden;
	background-color: #e02828;
	border-radius: 14px;
	box-shadow: 0 10px 22px rgb(226 43 43 / 26%);
}

.gf-sfeat__icon img {
	display: block;
	max-width: 100%;
	height: auto;
}

.gf-sfeat__item-title {
	margin: 0 0 14px;
	font-family: var(--gf-font-alt);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.03em;
	color: var(--gf-navy);
}

@media (prefers-reduced-motion: reduce) {
	.gf-sfeat__item,
	.gf-sfeat__item::before {
		transition: none;
	}

	.gf-sfeat__item:hover {
		transform: none;
	}
}

@media (max-width: 1199px) {
	.gf-sfeat .gf-sfeat__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gf-sfeat--split .gf-sfeat__head {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.gf-sfeat .gf-sfeat__head {
		grid-template-columns: 1fr;
		margin-bottom: 32px;
	}

	.gf-sfeat--centered .gf-sfeat__side {
		align-items: flex-start;
	}

	.gf-sfeat .gf-sfeat__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.gf-sfeat__item {
		padding: 28px 24px;
	}

	.gf-sfeat__icon {
		width: 56px;
		height: 56px;
		margin-bottom: 20px;
	}

	.gf-sfeat__item-title {
		font-size: 22px;
	}

	.gf-sfeat--numbered .gf-sfeat__item::after {
		font-size: 36px;
	}
}
