/* =========================
   SERVICES
========================= */

.services {
	padding: 150px 0;

	background: var(--color-surface);
}

/* =========================
   HEADING
========================= */

.services .section-heading {
	width: 100%;
	max-width: 760px;

	margin: 0 auto 42px;

	text-align: center;
}

.services .section-heading__eyebrow {
	margin: 0 0 8px;

	color: var(--color-primary);

	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;

	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.services .section-heading__title {
	margin: 0;

	color: var(--color-text);

	font-family: var(--font-display);
	font-size: 52px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.035em;
}

.services .section-heading__description {
	max-width: 560px;

	margin: 14px auto 0;

	color: var(--color-text-light);

	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
}

/* =========================
   SERVICES LIST
========================= */

.services__grid {
	display: flex;
	align-items: stretch;
	gap: 24px;

	width: 100%;
	margin: 0;
}

/* =========================
   CARD
========================= */

.service-card {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;

	min-width: 0;

	overflow: hidden;

	background: var(--color-white);

	border-radius: var(--radius-medium);

	box-shadow: var(--shadow-card);
}

/* =========================
   IMAGE
========================= */

.service-card__image {
	width: 100%;

	aspect-ratio: 16 / 10;

	overflow: hidden;

	background: var(--color-accent);
}

.service-card__image img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	transition: transform 500ms ease;
}

.service-card:hover .service-card__image img {
	transform: scale(1.035);
}

/* =========================
   CONTENT
========================= */

.service-card__content {
	display: block;

	padding: 20px 18px 22px;

	text-align: center;
}

/* =========================
   NUMBER
========================= */

.service-card__number {
	display: none;
}

/* =========================
   TITLE
========================= */

.service-card__text h3 {
	margin: 0;

	color: var(--color-text);

	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.025em;
}

/* =========================
   DESCRIPTION
========================= */

.service-card__text p {
	max-width: 220px;

	margin: 8px auto 0;

	color: var(--color-text-light);

	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
	.services {
		padding: 64px 0 72px;
	}

	.services .section-heading {
		margin-bottom: 34px;
	}

	.services .section-heading__eyebrow {
		font-size: 11px;
	}

	.services .section-heading__title {
		font-size: 40px;
	}

	.services .section-heading__description {
		margin-top: 12px;

		font-size: 15px;
	}

	.services__grid {
		flex-direction: column;
		gap: 20px;
	}

	.service-card {
		flex: 0 0 auto;
		width: 100%;
	}

	.service-card__image {
		aspect-ratio: 16 / 10;
	}

	.service-card__content {
		padding: 18px 18px 20px;
	}

	.service-card__text h3 {
		font-size: 21px;
	}

	.service-card__text p {
		max-width: 280px;

		margin-top: 7px;

		font-size: 14px;
	}
}
