/**
 * Leobit-style "What we offer" — 4 service cards (orange accent)
 */

.services-offer {
	padding: clamp(4rem, 8vw, 6rem) 0;
	background: #f4f6f8;
}

.services-offer__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
	flex-wrap: wrap;
}

.services-offer__title {
	margin: 0;
	font-family: var(--font-display, "Montserrat", sans-serif);
	font-size: clamp(1.85rem, 4.2vw, 2.85rem);
	font-weight: 900;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: #1a1d21;
	max-width: 15ch;
}

.services-offer__title-accent {
	color: #f26522;
	font-weight: 900;
}

.services-offer__all {
	flex-shrink: 0;
	font-family: var(--font-display, "Montserrat", sans-serif);
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #1a1d21;
	white-space: nowrap;
	padding-bottom: 0.2rem;
	border-bottom: 1px solid #1a1d21;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.services-offer__all:hover {
	color: #f26522;
	border-color: #f26522;
}

.services-offer__all::after {
	content: " →";
}

.services-offer__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
	align-items: stretch;
}

.services-offer__card {
	--glow-x: 50%;
	--glow-y: 40%;
	--glow-opacity: 0;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 320px;
	padding: 2.25rem 1.75rem 2rem;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	box-shadow: none;
	overflow: hidden;
	isolation: isolate;
	transition: border-color 0.25s ease;
}

.services-offer__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(
		280px circle at var(--glow-x) var(--glow-y),
		rgba(242, 101, 34, 0.22) 0%,
		rgba(242, 101, 34, 0.1) 32%,
		rgba(242, 101, 34, 0.03) 52%,
		transparent 72%
	);
	opacity: var(--glow-opacity);
	transition: opacity 0.3s ease;
}

.services-offer__card > * {
	position: relative;
	z-index: 1;
}

.services-offer__card:hover,
.services-offer__card.is-glow {
	border-color: #f26522;
	box-shadow: none;
	transform: none;
}

.services-offer__card:hover::before,
.services-offer__card.is-glow::before {
	opacity: var(--glow-opacity);
}

.services-offer__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 1.75rem;
	color: #f26522;
	flex-shrink: 0;
}

.services-offer__svg {
	display: block;
	width: 64px;
	height: 64px;
}

.services-offer__card-title {
	margin: 0 0 1.15rem;
	font-family: var(--font-display, "Montserrat", sans-serif);
	font-size: clamp(0.95rem, 1.05vw, 1.08rem);
	font-weight: 900;
	line-height: 1.22;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #1a1d21;
}

.services-offer__card-desc {
	flex: 1;
	margin: 0;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.62;
	color: #2a3038;
}

/* Learn more — always visible */
.services-offer__card-link {
	display: inline-block;
	margin-top: auto;
	padding-top: 1.25rem;
	font-family: var(--font-display, "Montserrat", sans-serif);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1a1d21;
	text-decoration: none;
	border-bottom: 1px solid #1a1d21;
	padding-bottom: 0.15rem;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.services-offer__card-link::after {
	content: " →";
}

.services-offer__card-link:hover {
	color: #f26522;
	border-color: #f26522;
}

@media (max-width: 1100px) {
	.services-offer__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.services-offer__card {
		min-height: 280px;
	}
}

@media (max-width: 600px) {
	.services-offer__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.services-offer__title {
		max-width: none;
	}

	.services-offer__grid {
		grid-template-columns: 1fr;
	}

	.services-offer__card {
		min-height: 0;
	}

	.services-offer__card-link {
		padding-top: 1rem;
	}
}
