/* ==========================================================================
   O nama — Naše vrijednosti (scoped; CSS + IntersectionObserver motion)
   ========================================================================== */

.wmx-values-section {
	--wmx-values-pad-x: clamp(55px, 4.5vw, 70px);
	--wmx-values-divider: #bdbdbd;
	--wmx-values-ease: cubic-bezier(0.76, 0, 0.24, 1);
	background: #ffffff;
	color: #000000;
	width: 100%;
	box-sizing: border-box;
}

.wmx-values-section__shell {
	width: 100%;
	max-width: 100%;
	margin-inline: auto;
	padding: clamp(100px, 10vw, 140px) var(--wmx-values-pad-x) clamp(40px, 5vw, 72px);
	box-sizing: border-box;
}

.wmx-values-title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 0 0 clamp(96px, 12vw, 160px);
	max-width: max-content;
	font-family: 'Inter Tight', var(--font-display, sans-serif) !important;
	font-size: clamp(64px, 8vw, 112px) !important;
	font-weight: 800 !important;
	line-height: 0.88 !important;
	letter-spacing: -0.045em !important;
	text-transform: uppercase !important;
	color: #000000 !important;
	text-align: left;
}

.wmx-values-section__list {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wmx-value-row {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 10%) minmax(0, 32%) minmax(0, 58%);
	column-gap: clamp(24px, 3vw, 48px);
	align-items: start;
	width: 100%;
	margin: 0;
	padding: clamp(65px, 6vw, 80px) 0;
	border: 0;
	box-sizing: border-box;
}

.wmx-value-divider {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: var(--wmx-values-divider);
	transform-origin: left center;
	will-change: transform, background-color;
}

.wmx-value-number {
	margin: 0;
	padding-top: 0.15em;
	font-family: 'Inter Tight', var(--font-display, sans-serif);
	font-size: clamp(42px, 3.8vw, 54px);
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #000000;
}

.wmx-value-name {
	margin: 0;
	font-family: 'Inter Tight', var(--font-display, sans-serif) !important;
	font-size: clamp(40px, 4.2vw, 58px) !important;
	font-weight: 800 !important;
	line-height: 0.95 !important;
	letter-spacing: -0.04em !important;
	text-transform: uppercase !important;
	color: #000000 !important;
}

.wmx-value-description {
	margin: 0;
	max-width: 34ch;
	font-family: 'Inter Tight', var(--font-body, var(--font-sans, sans-serif));
	font-size: clamp(20px, 1.7vw, 24px);
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: #000000;
	will-change: opacity, transform;
	text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Reveal masks / items
   -------------------------------------------------------------------------- */

.wmx-reveal-mask {
	display: block;
	overflow: hidden;
}

.wmx-values-title .wmx-reveal-mask {
	padding-bottom: 0.04em;
}

.wmx-value-name.wmx-reveal-mask {
	padding-bottom: 0.05em;
}

.wmx-reveal-item {
	display: block;
	will-change: transform;
}

/* --------------------------------------------------------------------------
   Entry / reveal animations OFF — always visible, static content
   -------------------------------------------------------------------------- */

.wmx-values-section,
.wmx-values-section * {
	opacity: 1 !important;
	visibility: visible !important;
}

.wmx-values-section .wmx-reveal-item,
.wmx-values-section .wmx-value-description,
.wmx-values-section .wmx-value-divider,
.wmx-values-section [class*='reveal'],
.wmx-values-section [class*='animate'],
.wmx-values-section [class*='fade'] {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	filter: none !important;
	clip-path: none !important;
	transition: none !important;
	animation: none !important;
}

/* Divider stays full-width without scale reveal */
.wmx-values-section .wmx-value-divider {
	transform: scaleX(1) !important;
}

/* Hover — static section (no reveal gate) */
@media (hover: hover) and (pointer: fine) {
	.wmx-values-section .wmx-value-row:hover .wmx-value-divider {
		background: #8a8a8a;
		transition: background-color 600ms var(--wmx-values-ease) !important;
	}

	.wmx-values-section .wmx-value-row:hover .wmx-value-name .wmx-reveal-item {
		transform: translate(12px, 0) !important;
		transition: transform 600ms var(--wmx-values-ease) !important;
	}

	.wmx-values-section .wmx-value-row:hover .wmx-value-description {
		transform: translate(6px, 0) !important;
		transition: transform 600ms var(--wmx-values-ease) !important;
	}
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.wmx-values-section {
		--wmx-values-pad-x: 32px;
	}

	.wmx-values-title {
		font-size: clamp(56px, 7vw, 80px) !important;
		margin-bottom: clamp(72px, 9vw, 112px);
	}

	.wmx-value-row {
		grid-template-columns: minmax(0, 12%) minmax(0, 34%) minmax(0, 54%);
		padding: clamp(52px, 5.5vw, 68px) 0;
	}

	.wmx-value-number {
		font-size: clamp(36px, 4vw, 46px);
	}

	.wmx-value-name {
		font-size: clamp(32px, 4vw, 46px) !important;
	}

	.wmx-value-description {
		font-size: clamp(18px, 2vw, 22px);
		max-width: none;
	}
}

@media (max-width: 768px) {
	.wmx-values-section {
		--wmx-values-pad-x: 22px;
	}

	.wmx-values-section__shell {
		padding-top: clamp(72px, 14vw, 100px);
		padding-bottom: clamp(24px, 6vw, 40px);
	}

	.wmx-values-title {
		font-size: clamp(48px, 14vw, 72px) !important;
		margin-bottom: clamp(56px, 12vw, 88px);
		line-height: 0.9 !important;
	}

	.wmx-value-row {
		grid-template-columns: 1fr;
		row-gap: 18px;
		padding: clamp(40px, 9vw, 56px) 0;
	}

	.wmx-value-number {
		font-size: 36px;
		padding-top: 0;
	}

	.wmx-value-name {
		font-size: clamp(36px, 10vw, 48px) !important;
	}

	.wmx-value-description {
		font-size: 18px;
		line-height: 1.35;
		max-width: none;
	}

	.wmx-values-section .wmx-value-row:hover .wmx-value-name .wmx-reveal-item,
	.wmx-values-section .wmx-value-row:hover .wmx-value-description {
		transform: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wmx-values-section .wmx-reveal-item,
	.wmx-values-section .wmx-value-divider,
	.wmx-values-section .wmx-value-description {
		transform: none !important;
		opacity: 1 !important;
		transition: none !important;
	}
}
