/* ============================================================
   SERVICES
   Split out of style.css — see functions.php for the enqueue.
   ============================================================ */

/* ============================================================
   4. SERVICES
   ============================================================ */

.services {
	background: var(--chocolate);
	padding: 64px 20px;
}

.services__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 1140px;
	margin-inline: auto;
}

.services__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	gap: 72px;
	margin-bottom: 24px;
}

.services__heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.services__icon {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
}

.services__icon img {
	width: 100%;
	height: 100%;
}

.services__title {
	font-family: var(--font-display);
	font-size: 25px;
	line-height: 0.9;
	letter-spacing: -1px;
	font-feature-settings: "dlig" 1;
	text-transform: uppercase;
	text-align: center;
	color: var(--cream);
	margin: 0;
}

/* ---------- tab switcher ---------- */

.services__tabs {
	display: flex;
	align-items: center;
	width: 100%;
}

.services__tab {
	flex: 1 1 0;
	padding: 8px 22px;
	border: 0;
	border-radius: 3px;
	background: none;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 21px; /* 150% */
	color: var(--cream);
	text-align: center;
	opacity: 0.3;
	cursor: pointer;
	transition: opacity 0.3s var(--ease), background-color 0.3s var(--ease);
}

.services__tab.is-active {
	background: rgba(239, 230, 221, 0.1);
	opacity: 1;
}

/* reset parent theme's global button:hover (orange border/text) for this selector */
.services__tab:hover {
	background-color: transparent;
	color: var(--cream);
	border-width: 0;
	border-style: none;
	border-color: transparent;
}

.services__tab.is-active:hover {
	background-color: rgba(239, 230, 221, 0.1);
}

/* ---------- panels / grid ---------- */

.services__panel {
	display: none;
	width: 100%;
}

.services__panel.is-active {
	display: block;
}

.services__grid {
	display: grid;
	gap: 30px;
}

.services__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	height: 100%;
	background: rgba(255, 255, 255, 0.06);
	border-left: 1px dashed rgba(255, 255, 255, 0.1);
	border-right: 1px dashed rgba(255, 255, 255, 0.1);
	padding: 20px;
}

.services__avatar {
	flex: none;
	width: 137px;
	height: 137px;
	border-radius: 70px;
	background-size: cover;
	background-position: center;
}

.services__content {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.services__item-title {
	font-family: var(--font-display);
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #fbf5f5;
	margin: 0;
}

.services__text {
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: -0.1px;
	color: var(--cream);
	opacity: 0.72;
}

.services__text p {
	margin: 0;
}

.services__text p + p {
	margin-top: 8px;
}

/* ---------- tablet / desktop: horizontal cards, centered header ---------- */

@media (max-width: 767px) {
	.services__item:first-child:before,
	.services__item:first-child:after {
		display: none;
	}
}

@media (min-width: 768px) {
	.services {
		padding: 128px 30px;
	}

	.services__inner {
		gap: 40px;
	}

	.services__head {
		gap: 40px;
	}

	.services__heading {
		gap: 24px;
	}

	.services__icon {
		width: 56px;
		height: 56px;
	}

	.services__title {
		font-size: 40px;
	}

	.services__tabs {
		justify-content: center;
		gap: 3.6px;
		width: auto;
	}

	.services__tab {
		flex: none;
		font-size: 18px;
	}

	.services__grid {
		grid-template-columns: repeat(2, 1fr);
		margin: 0 -15px;
	}

	.services__item {
		flex-direction: row;
		align-items: center;
		gap: 24px;
		min-height: 195px;
		padding: 20px;
	}

	.services__avatar {
		width: 104px;
		height: 104px;
	}
}

@media (min-width: 1200px) {
	.services {
		padding: 160px 30px;
	}

	.services__item {
		gap: 40px;
		min-height: 222px;
		padding: 30px;
	}

	.services__avatar {
		width: 140px;
		height: 140px;
	}
}

