/**
 * Bloky „Vitoul services“ a „Vitoul služba“.
 * Styly sdílené editorem i frontendem.
 *
 * Rozměry podle Figmy (frame `services-section`, 1440 × 533):
 * odsazení 80/100, mezera mezi částmi 56, kolečko 92 × 91, ikona 58.
 */

.vm-services {
	background-color: var( --vm-color-white );
	padding: var( --vm-space-3xl ) var( --vm-gutter ) 100px;
	position: relative;
	width: 100%;
}

.vm-services--light {
	background-color: var( --vm-color-teal-bg );
}

.vm-services__inner {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 56px;
	margin: 0 auto;
	max-width: var( --vm-container );
	width: 100%;
}

/* ----------------------------------------------------------------------
 * Nadpis sekce
 * -------------------------------------------------------------------- */

.vm-services__header {
	display: flex;
	flex-direction: column;
	gap: var( --vm-space-md );
	text-align: center;
	width: 100%;
}

/* Heading/H2 – 28 Montserrat Bold, barva text/heading */
.vm-services__title {
	color: var( --vm-color-text-heading );
	font-family: var( --vm-font-heading );
	font-size: var( --vm-size-h2 );
	font-weight: var( --vm-weight-bold );
	line-height: var( --vm-leading-none );
	margin: 0;
	text-transform: uppercase;
}

/* Heading/Overline – 16 Montserrat Bold, tracking 4, barva primary/teal */
.vm-services__subtitle {
	color: var( --vm-color-teal );
	font-family: var( --vm-font-heading );
	font-size: var( --vm-size-overline );
	font-weight: var( --vm-weight-bold );
	letter-spacing: var( --vm-tracking-widest );
	line-height: var( --vm-leading-none );
	margin: 0;
	text-transform: uppercase;
}

/* ----------------------------------------------------------------------
 * Mřížka služeb
 * -------------------------------------------------------------------- */

.vm-services__grid {
	display: flex;
	flex-wrap: wrap;
	gap: var( --vm-space-xl );
	justify-content: center;
	width: 100%;
}

.vm-service {
	align-items: center;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: var( --vm-space-md );
	text-decoration: none;
	width: 140px;
}

.vm-service__circle {
	align-items: center;
	background-color: var( --vm-color-teal-bg );
	border-radius: var( --vm-radius-pill );
	display: flex;
	flex-shrink: 0;
	height: 91px;
	justify-content: center;
	transition: background-color var( --vm-transition ), transform var( --vm-transition );
	width: 92px;
}

.vm-service__circle .vm-icon {
	height: 58px;
	width: 58px;
}

.vm-service__icon-image {
	display: block;
	height: 58px;
	object-fit: contain;
	width: 58px;
}

/* Body/Medium – 15/1.6, barva text/heading */
.vm-service__label {
	color: var( --vm-color-text-heading );
	font-family: var( --vm-font-body );
	font-size: var( --vm-size-body-md );
	font-weight: var( --vm-weight-regular );
	line-height: var( --vm-leading-normal );
	text-align: center;
}

/* Služba s odkazem reaguje na najetí myší. */
.vm-service--link:hover .vm-service__circle,
.vm-service--link:focus-visible .vm-service__circle {
	background-color: var( --vm-color-border-light );
	transform: translateY( -2px );
}

.vm-service--link:hover .vm-service__label,
.vm-service--link:focus-visible .vm-service__label {
	color: var( --vm-color-teal );
}

/* Na světlém pozadí sekce by kolečko splynulo. */
.vm-services--light .vm-service__circle {
	background-color: var( --vm-color-white );
}

.vm-services--light .vm-service--link:hover .vm-service__circle,
.vm-services--light .vm-service--link:focus-visible .vm-service__circle {
	background-color: var( --vm-color-border-light );
}

/* ----------------------------------------------------------------------
 * Tlačítko pod mřížkou
 * -------------------------------------------------------------------- */

.vm-services__cta {
	margin: 0;
	text-align: center;
}

/* ----------------------------------------------------------------------
 * Responzivita
 * -------------------------------------------------------------------- */

@media ( max-width: 782px ) {

	.vm-services {
		padding: var( --vm-space-2xl ) var( --vm-gutter ) 64px;
	}

	.vm-services__inner {
		gap: var( --vm-space-xl );
	}

	.vm-services__grid {
		gap: var( --vm-space-lg );
	}

	.vm-service {
		width: 116px;
	}

	.vm-service__circle {
		height: 76px;
		width: 76px;
	}

	.vm-service__circle .vm-icon,
	.vm-service__icon-image {
		height: 48px;
		width: 48px;
	}
}
