/* Services Section widget: structural layout. Colors/typography come from Elementor's own controls. */

.hf-services {
	width: 100%;
	padding: 100px 32px;
	box-sizing: border-box;
	background-color: var(--color-bg-alt, #F9F2F6);
}

.hf-services__header {
	max-width: 720px;
	margin: 0 auto 96px;
	text-align: center;
}

.hf-services__eyebrow {
	margin: 0 0 12px;
	font-family: 'DM Sans', sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hf-services__title {
	margin: 0;
	line-height: 1.25;
}

.hf-services__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 48px;
	max-width: 1250px;
	margin: 0 auto;
}

.hf-services__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
}

.hf-services__card::after {
	content: '';
	position: absolute;
	top: 0;
	right: calc(-24px - 1px);
	bottom: 0;
	width: 1px;
	background: linear-gradient(
		to bottom,
		transparent 0%,
		var(--color-border, #E8DEE3) 20%,
		var(--color-border, #E8DEE3) 80%,
		transparent 100%
	);
}

.hf-services__card:last-child::after {
	display: none;
}

.hf-services__icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.hf-services__icon img {
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.hf-services__card-title {
	margin: 0;
	font-family: 'Oswald', sans-serif;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.hf-services__card-description {
	margin: 0;
	font-family: 'DM Sans', sans-serif;
	font-size: 0.95rem;
	line-height: 1.6;
}

@media (max-width: 992px) {
	.hf-services__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 40px;
	}

	.hf-services__card {
		padding-bottom: 40px;
	}

	.hf-services__card::after {
		top: auto;
		right: 0;
		left: 0;
		bottom: 0;
		width: auto;
		height: 1px;
		background: linear-gradient(
			to right,
			transparent 0%,
			var(--color-border, #E8DEE3) 20%,
			var(--color-border, #E8DEE3) 80%,
			transparent 100%
		);
	}

	.hf-services__card:last-child::after {
		display: block;
	}

	/* Bottom row (last 2 cards of an even set) has no row below it, so no separator. */
	.hf-services__card:nth-last-child(-n+2) {
		padding-bottom: 0;
	}

	.hf-services__card:nth-last-child(-n+2)::after {
		display: none;
	}
}

@media (max-width: 560px) {
	.hf-services {
		padding: 64px 24px;
	}

	.hf-services__header {
		margin-bottom: 56px;
	}

	.hf-services__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.hf-services__card {
		padding-bottom: 32px;
		margin-bottom: 32px;
	}

	.hf-services__card:last-child {
		padding-bottom: 32px;
		margin-bottom: 0;
	}

	.hf-services__card::after {
		display: block;
		top: auto;
		right: 0;
		left: 0;
		bottom: 0;
		width: auto;
		height: 1px;
		background: linear-gradient(
			to right,
			transparent 0%,
			var(--color-border, #E8DEE3) 20%,
			var(--color-border, #E8DEE3) 80%,
			transparent 100%
		);
	}

	.hf-services__card:last-child::after {
		display: block;
	}
}
