.home-services {
	padding: clamp(5rem, 7vw, 7rem) 0;
	background: var(--site-color-surface);
}

.home-services__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(2.5rem, 4vw, 4rem);
}

.home-services__heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.home-services__eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5625rem 1.0625rem;
	border: 1px solid rgba(28, 43, 26, 0.1);
	border-radius: 999px;
	background: rgba(28, 43, 26, 0.05);
	font-size: var(--site-font-size-14);
	font-weight: 500;
	line-height: 1.43;
	color: #1c2b1a;
}

.home-services__title {
	max-width: 976px;
	margin: 1rem 0 0;
	font-family: var(--site-font-heading);
	font-size: clamp(2rem, 1.55rem + 1.35vw, 2.375rem);
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -0.02em;
	color: #1c2b1a;
}

.home-services__description {
	max-width: 41.25rem;
	margin: 1rem 0 0;
	font-size: clamp(1rem, 0.93rem + 0.18vw, 1.125rem);
	line-height: 1.56;
	color: #6a7282;
}

.home-services__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

.home-services__item {
	min-width: 0;
}

.home-services__card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	height: 100%;
	padding: 1.5rem;
	border: 1px solid rgba(28, 43, 26, 0.08);
	border-radius: 1rem;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-services__card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 0.25rem;
}

.home-services__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 1rem;
	background: #f8f4ed;
	transition: background-color 0.2s ease;
}

.home-services__icon-image {
	width: 2rem;
	height: 2rem;
	background-color: #000000;
	mask-image: var(--service-icon-image);
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	-webkit-mask-image: var(--service-icon-image);
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	transition: background-color 0.2s ease;
}

.home-services__arrow {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: #f8f4ed;
	transition: background-color 0.2s ease;
}

.home-services__arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.4rem;
	height: 0.4rem;
	border-top: 1.5px solid #b8aea1;
	border-right: 1.5px solid #b8aea1;
	transform: translate(-60%, -50%) rotate(45deg);
	transition: border-color 0.2s ease;
}

.home-services__card:hover .home-services__icon {
	background: #c8851a;
}

.home-services__card:hover {
	transform: translateY(-0.125rem);
	box-shadow: 0 10px 24px rgba(28, 43, 26, 0.12);
}

.home-services__card:hover .home-services__icon-image {
	background-color: #f8f4ed;
}

.home-services__card:hover .home-services__arrow {
	background: #c8851a;
}

.home-services__card:hover .home-services__arrow::before {
	border-top-color: #ffffff;
	border-right-color: #ffffff;
}

.home-services__card-title {
	margin: 0;
	font-family: var(--site-font-heading);
	font-size: clamp(1.0625rem, 1rem + 0.18vw, 1.125rem);
	font-weight: 700;
	line-height: 1.5;
	color: #1c2b1a;
}

.home-services__card-text {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.625;
	color: #4a5565;
}

@media (max-width: 991.98px) {
	.home-services {
		padding: clamp(4rem, 9vw, 5.5rem) 0;
	}

	.home-services__title {
		max-width: 18ch;
	}

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

@media (max-width: 767.98px) {
	.home-services__inner {
		gap: 2rem;
	}

	.home-services__title {
		max-width: 12ch;
	}

	.home-services__description {
		max-width: 100%;
	}

	.home-services__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
