.eaf-stats,
.eaf-stats * {
	box-sizing: border-box;
}

.eaf-stats {
	--eaf-columns: 4;
	--eaf-duration: 900ms;
	--eaf-stagger: 90ms;
	--eaf-separator: rgba(255, 255, 255, 0.2);
	--eaf-icon-color: #d6a23d;
	--eaf-official-gold: #d6a23d;
	--eaf-gold-glow: rgba(214, 162, 61, 0.28);
	position: relative;
	width: 100%;
	padding: 18px 32px;
	font-family: inherit;
	isolation: isolate;
}

.eaf-stats--full {
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	margin-left: -50vw;
}

.eaf-stats__container {
	width: 100%;
	max-width: 1760px;
	margin-right: auto;
	margin-left: auto;
}

.eaf-stats__bar {
	position: relative;
	overflow: hidden;
	width: 100%;
	padding: 30px 34px;
	border-radius: 16px;
	background-color: #00264b;
	box-shadow: 0 9px 26px rgba(0, 28, 57, 0.1);
}

.eaf-stats__bar::before {
	position: absolute;
	inset: 0;
	pointer-events: none;
	content: "";
	background:
		radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.055), transparent 34%),
		linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.025) 48%, transparent 75%);
}

.eaf-stats__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(var(--eaf-columns), minmax(0, 1fr));
	width: 100%;
	margin: 0;
	padding: 0;
}

.eaf-stat {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 74px;
	padding: 4px 30px;
}

.eaf-stat__inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	gap: 22px;
	color: inherit;
	text-decoration: none;
	transition: transform 220ms ease, opacity 220ms ease;
}

.eaf-stat__inner--link {
	border-radius: 8px;
}

.eaf-stat__inner--link:hover,
.eaf-stat__inner--link:focus-visible {
	color: inherit;
	text-decoration: none;
}

.eaf-stat__inner--link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 6px;
}

.eaf-stat__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	color: var(--eaf-item-icon, var(--eaf-icon-color));
	font-size: 48px;
	line-height: 1;
	opacity: 1;
	transition:
		transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
		filter 240ms ease;
}

.eaf-stat__icon i {
	display: block;
	width: 1em;
	height: 1em;
	color: inherit;
	font-size: inherit;
	line-height: 1;
	opacity: 1;
	text-align: center;
}

.eaf-stat__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.55px;
	stroke-opacity: 1;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 1;
	overflow: visible;
}

/*
 * Elementor can return SVGs with large viewBoxes. A non-scaling stroke keeps
 * their outline at the same visible weight as the official 24px line icons.
 */
.eaf-stat__icon svg * {
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 2.55px !important;
	stroke-opacity: 1 !important;
	opacity: 1 !important;
	vector-effect: non-scaling-stroke;
}

/* Enabled by default, but editable from Elementor. It also upgrades widgets
 * saved with the previous, muted per-item color. */
.eaf-stats.eaf-icons-official .eaf-stat__icon,
.eaf-stats.eaf-icons-official .eaf-stat__icon i,
.eaf-stats.eaf-icons-official .eaf-stat__icon svg {
	color: var(--eaf-official-gold) !important;
	opacity: 1 !important;
}

.eaf-stats.eaf-icons-official .eaf-stat__icon {
	filter: drop-shadow(0 0 3px var(--eaf-gold-glow));
	text-shadow: 0 0 4px var(--eaf-gold-glow);
}

/* One short, staggered reveal: no infinite animation and no timer loop. */
.eaf-stats.eaf-icon-reveal.is-visible .eaf-stat__icon > i,
.eaf-stats.eaf-icon-reveal.is-visible .eaf-stat__icon > svg {
	animation: eaf-icon-gold-reveal 720ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
	animation-delay: calc(110ms + (var(--eaf-item-index, 0) * var(--eaf-stagger)));
}

@keyframes eaf-icon-gold-reveal {
	0% {
		opacity: 0;
		transform: scale(0.56) rotate(-7deg);
		filter: brightness(0.72) drop-shadow(0 0 0 transparent);
	}
	58% {
		opacity: 1;
		transform: scale(1.13) rotate(2deg);
		filter: brightness(1.32) drop-shadow(0 0 7px var(--eaf-gold-glow));
	}
	100% {
		opacity: 1;
		transform: scale(1) rotate(0);
		filter: brightness(1) drop-shadow(0 0 2px var(--eaf-gold-glow));
	}
}

.eaf-stat__copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	line-height: 1.15;
}

.eaf-stat__value,
.eaf-stat__label {
	display: block;
	max-width: 100%;
}

.eaf-stat__value {
	margin: 0 0 3px;
	color: #fff;
	font-size: clamp(27px, 2.1vw, 36px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.025em;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.eaf-stat__label {
	color: #e2eaf2;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.35;
	white-space: normal;
}

.eaf-stats--separators .eaf-stat::after {
	position: absolute;
	top: 50%;
	right: 0;
	width: 1px;
	height: 72%;
	content: "";
	transform: translateY(-50%);
	background: var(--eaf-separator);
}

.eaf-stats--separators .eaf-stat:last-child::after {
	display: none;
}

@media (hover: hover) {
	.eaf-hover-lift .eaf-stat:hover .eaf-stat__inner,
	.eaf-hover-lift .eaf-stat:focus-within .eaf-stat__inner {
		transform: translateY(-4px);
	}

	.eaf-hover-lift .eaf-stat:hover .eaf-stat__icon,
	.eaf-hover-lift .eaf-stat:focus-within .eaf-stat__icon {
		transform: translateY(-2px) scale(1.08) rotate(-2deg);
		filter: brightness(1.18) drop-shadow(0 0 7px var(--eaf-gold-glow));
	}

	.eaf-hover-scale .eaf-stat:hover .eaf-stat__inner,
	.eaf-hover-scale .eaf-stat:focus-within .eaf-stat__inner {
		transform: scale(1.045);
	}

	.eaf-hover-scale .eaf-stat:hover .eaf-stat__icon,
	.eaf-hover-scale .eaf-stat:focus-within .eaf-stat__icon {
		transform: scale(1.1);
		filter: brightness(1.18) drop-shadow(0 0 7px var(--eaf-gold-glow));
	}
}

@media (min-width: 1025px) {
	.eaf-stats--separators.eaf-cols-d-1 .eaf-stat::after,
	.eaf-stats--separators.eaf-cols-d-2 .eaf-stat:nth-child(2n)::after,
	.eaf-stats--separators.eaf-cols-d-3 .eaf-stat:nth-child(3n)::after,
	.eaf-stats--separators.eaf-cols-d-4 .eaf-stat:nth-child(4n)::after {
		display: none;
	}
}

/* Motion-ready is added by JavaScript. Without JavaScript all content stays visible. */
.eaf-stats.eaf-motion-ready:not(.is-visible) .eaf-stat {
	opacity: 0;
}

.eaf-stats.eaf-motion-ready.eaf-entry-fade_up:not(.is-visible) .eaf-stat {
	transform: translateY(12px);
}

.eaf-stats.eaf-motion-ready .eaf-stat {
	transition:
		opacity var(--eaf-duration) cubic-bezier(0.22, 1, 0.36, 1),
		transform var(--eaf-duration) cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: calc(var(--eaf-item-index, 0) * var(--eaf-stagger));
}

.eaf-stats.is-visible .eaf-stat {
	opacity: 1;
	transform: none;
}

@media (max-width: 1024px) {
	.eaf-stats {
		--eaf-columns: 2;
		padding: 16px 20px;
	}

	.eaf-stats__bar {
		padding: 26px 18px;
	}

	.eaf-stat {
		padding: 14px 24px;
	}

}

@media (min-width: 768px) and (max-width: 1024px) {
	.eaf-stats--separators.eaf-cols-t-1 .eaf-stat::after,
	.eaf-stats--separators.eaf-cols-t-2 .eaf-stat:nth-child(2n)::after,
	.eaf-stats--separators.eaf-cols-t-3 .eaf-stat:nth-child(3n)::after,
	.eaf-stats--separators.eaf-cols-t-4 .eaf-stat:nth-child(4n)::after {
		display: none;
	}
}

@media (max-width: 767px) {
	.eaf-stats {
		padding: 12px;
	}

	.eaf-stats__bar {
		padding: 20px 8px;
		border-radius: 13px;
	}

	.eaf-stat {
		min-height: 128px;
		padding: 18px 8px;
		text-align: center;
	}

	.eaf-stat__inner {
		width: 100%;
		flex-direction: column;
		gap: 10px;
	}

	.eaf-stat__icon {
		width: 40px;
		height: 40px;
		font-size: 40px;
	}

	.eaf-stat__copy {
		width: 100%;
		align-items: center;
	}

	.eaf-stat__value {
		font-size: clamp(25px, 8vw, 32px);
	}

	.eaf-stat__label {
		max-width: 145px;
		font-size: 13px;
		line-height: 1.3;
	}

	.eaf-stats--separators.eaf-cols-m-1 .eaf-stat::after,
	.eaf-stats--separators.eaf-cols-m-2 .eaf-stat:nth-child(2n)::after,
	.eaf-stats--separators.eaf-cols-m-3 .eaf-stat:nth-child(3n)::after,
	.eaf-stats--separators.eaf-cols-m-4 .eaf-stat:nth-child(4n)::after {
		display: none;
	}
}

@media (max-width: 380px) {
	.eaf-stat {
		min-height: 122px;
		padding-right: 5px;
		padding-left: 5px;
	}

	.eaf-stat__value {
		font-size: 24px;
	}

	.eaf-stat__label {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eaf-stats.eaf-motion-ready .eaf-stat,
	.eaf-stat__inner,
	.eaf-stat__icon,
	.eaf-stat__icon > i,
	.eaf-stat__icon > svg {
		animation: none !important;
		transition: none !important;
	}

	.eaf-stats.eaf-motion-ready:not(.is-visible) .eaf-stat {
		opacity: 1;
		transform: none;
	}
}
