/**
 * VBP Stat widget.
 *
 * TEMPLATE FILE: compiled by Elementor into uploads/elementor/css/vbp-stat.css with the
 * ELEMENTOR_SCREEN_* placeholders replaced by the Site Settings breakpoints.
 * Do not use relative url()s here (images are rendered as <img> from PHP).
 *
 * Positions inside the featured card are percentages of the Figma card (608 × 539) so the
 * artwork keeps its composition at any size. Hover states mirror the Figma "Variant2"
 * Smart Animate (0.3s, linear).
 */

.vbp-stat {
	--vbp-stat-radius: 25px;
	--vbp-stat-transition: 0.3s linear;

	font-family: var(--vbp-font);
}

.vbp-stat__grid {
	display: grid;
	grid-template-columns: minmax(0, 608fr) minmax(0, 445fr) minmax(0, 445fr);
	grid-auto-rows: minmax(257px, auto);
	column-gap: 24px;
	row-gap: 25px;
}

/* -------------------------------------------------------------------------
 * Featured card
 *
 * The card is a size container: artwork uses cqw (1cqw = 1% of the card width, Figma card = 608px)
 * so it keeps the Figma composition when the card is narrower/wider, and stays anchored to the
 * card's bottom (clipper, glow) or top-right corner (lion watermark) when the grid makes the card taller.
 * Image rules are prefixed with .vbp-stat to beat Elementor's `.elementor img { height: auto; max-width: 100% }`.
 * ---------------------------------------------------------------------- */

.vbp-stat-feature {
	position: relative;
	isolation: isolate;
	container-type: inline-size;
	display: flex;
	grid-column: 1;
	grid-row: span 2;
	min-height: 539px;
	overflow: hidden;
	border-radius: var(--vbp-stat-radius);
	background-color: #c08e2f;
}

.vbp-stat .vbp-stat-feature img {
	max-width: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* Glow: two blurred ellipses (Figma Ellipse 5 → Variant2) cross-fade and morph, both anchored bottom-left. */
.vbp-stat .vbp-stat-feature__glow {
	position: absolute;
	z-index: 0;
	bottom: -59.41cqw;
	left: -23.06cqw;
	width: 151.38cqw;
	height: 122.93cqw;
	pointer-events: none;
	transform-origin: 0 100%;
	transition: transform var(--vbp-stat-transition), opacity var(--vbp-stat-transition);
}

.vbp-stat .vbp-stat-feature__glow--hover {
	bottom: -59.42cqw;
	left: -48.72cqw;
	width: 216.84cqw;
	height: 210.61cqw;
	opacity: 0;
	transform: translateX(11.83%) scale(0.698, 0.5837);
}

.vbp-stat .vbp-stat-feature:hover .vbp-stat-feature__glow {
	opacity: 0;
	transform: translateX(-16.95%) scale(1.4324, 1.7133);
}

.vbp-stat .vbp-stat-feature:hover .vbp-stat-feature__glow--hover {
	opacity: 1;
	transform: none;
}

.vbp-stat-feature__content {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 35px 43px 73px;
	color: #fff;
}

.vbp-stat-feature__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background-color: #e4ab42;
	transition: background-color var(--vbp-stat-transition);
}

.vbp-stat-feature:hover .vbp-stat-feature__icon {
	background-color: #b8821f;
}

.vbp-stat .vbp-stat-feature__icon img {
	display: block;
	width: auto;
	height: auto;
	max-width: 60%;
	max-height: 60%;
}

.vbp-stat-feature__number {
	margin: 34px 0 0;
	font-size: 100px;
	font-weight: 700;
	font-variant-numeric: lining-nums;
	line-height: 0.93;
}

.vbp-stat-feature__label {
	margin: -9px 0 0;
	font-size: 22px;
	line-height: 1.24;
}

.vbp-stat .vbp-stat-feature__divider {
	display: block;
	width: 244.5px;
	max-width: 100%;
	height: 1px;
	margin-top: 12px;
}

.vbp-stat-feature__avatars {
	display: flex;
	align-items: center;
	margin-top: 23px;
}

.vbp-stat-feature__avatar {
	box-sizing: border-box;
	flex-shrink: 0;
	width: 32.65px;
	height: 32.65px;
	margin-right: -7.18px;
	overflow: hidden;
	border: 0.65px solid #fff;
	border-radius: 50%;
	background-color: #000;
}

.vbp-stat-feature__avatar:last-child {
	margin-right: 0;
}

.vbp-stat .vbp-stat-feature__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vbp-stat-feature__text {
	max-width: 347px;
	margin: auto 0 0;
	padding-top: 24px;
	font-size: 22px;
	line-height: 1.24;
}

/*
 * Clipper + its shadow (Figma: 283 × 472, right edge 42px past the card, sitting on the card bottom).
 * Never taller than the card; tilts on hover around its centre.
 */
.vbp-stat-feature__visual {
	position: absolute;
	z-index: 2;
	right: max(-6.91cqw, -42px);
	bottom: 0;
	width: auto;
	height: min(77.63cqw, 87.57%);
	aspect-ratio: 283 / 472;
	pointer-events: none;
	transform-origin: 50% 50%;
	transition: transform var(--vbp-stat-transition);
}

.vbp-stat-feature:hover .vbp-stat-feature__visual {
	transform: translateY(-0.64%) rotate(-3.1deg) scale(1.03);
}

.vbp-stat .vbp-stat-feature__shadow {
	position: absolute;
	top: 20.74%;
	left: -32.69%;
	width: 105.27%;
	height: 94.98%;
	opacity: 0.77;
}

.vbp-stat .vbp-stat-feature__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 83.87% 50%;
}

/*
 * Lion watermark: trimmer-shape.svg is pre-cropped to the card's top-right corner (160 × 160 on the
 * 608px Figma card) and carries its own 9% opacity, so no extra opacity here.
 */
.vbp-stat .vbp-stat-feature__watermark {
	position: absolute;
	z-index: 3;
	top: 0;
	right: 0;
	width: min(26.32cqw, 160px);
	height: auto;
	pointer-events: none;
}

/* -------------------------------------------------------------------------
 * Stat cards
 * ---------------------------------------------------------------------- */

.vbp-stat-card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 257px;
	padding: 17px 21px 19px;
	border: 1px solid transparent;
	border-radius: var(--vbp-stat-radius);
	background-color: #fff;
	transition: background-color var(--vbp-stat-transition), border-color var(--vbp-stat-transition);
}

.vbp-stat .vbp-stat-card:hover {
	border-color: rgba(0, 0, 0, 0.15);
	background-color: #fff6e5;
}

.vbp-stat-card__icon {
	box-sizing: border-box;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 1.273px solid rgba(211, 174, 99, 0.06);
	border-radius: 50%;
	background-color: #fff8ea;
	transition: background-color var(--vbp-stat-transition);
}

.vbp-stat .vbp-stat-card:hover .vbp-stat-card__icon {
	background-color: #ffe8bd;
}

.vbp-stat .vbp-stat-card__icon img {
	display: block;
	width: auto;
	height: auto;
	max-width: 70%;
	max-height: 70%;
}

.vbp-stat-card__title {
	margin: 29px 0 0;
	color: #d39e39;
	font-size: 32px;
	font-weight: 500;
	line-height: 0.93;
}

.vbp-stat-card__subtitle {
	margin: 12px 0 0;
	color: #000;
	font-family: var(--vbp-font);
	font-size: 24px;
	font-weight: 500;
	line-height: 0.93;
}

.vbp-stat-card__text {
	margin: 16px 0 0;
	color: #535353;
	font-size: 20px;
	line-height: 28px;
}

@media (prefers-reduced-motion: reduce) {
	.vbp-stat {
		--vbp-stat-transition: 0s linear;
	}
}

/* Tablet and below: featured card on its own row, stat cards 2 × 2 underneath. */
@media (max-width: 1024px) {
	.vbp-stat__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: auto;
		column-gap: 20px;
		row-gap: 20px;
	}

	.vbp-stat-feature {
		grid-column: 1 / -1;
		grid-row: auto;
		min-height: 480px;
	}

	.vbp-stat-feature__number {
		font-size: 84px;
	}

	.vbp-stat-card {
		min-height: 0;
	}
}

/* Mobile (Figma 393px): gold card on top (311px tall), stat cards in a 2 × 2 grid with centred content. */
@media (max-width: 767px) {
	.vbp-stat {
		--vbp-stat-radius: 25px;
	}

	.vbp-stat__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 5px;
	}

	.vbp-stat-feature {
		min-height: 311px;
		margin-bottom: 11px;
		border-radius: 14.4px;
	}

	.vbp-stat-feature__content {
		padding: 19px 23px 18px;
	}

	.vbp-stat-feature__icon {
		width: 35px;
		height: 35px;
	}

	.vbp-stat-feature__number {
		margin-top: 25px;
		font-size: 50px;
	}

	.vbp-stat-feature__label {
		margin-top: -2px;
		font-size: 18px;
	}

	.vbp-stat .vbp-stat-feature__divider {
		width: 141px;
		margin-top: 4px;
	}

	.vbp-stat-feature__avatars {
		margin-top: 13px;
	}

	.vbp-stat-feature__avatar {
		width: 30.8px;
		height: 30.8px;
		margin-right: -6.78px;
	}

	.vbp-stat-feature__text {
		max-width: 56%;
		padding-top: 25px;
		font-size: 20px;
	}

	.vbp-stat-card {
		align-items: center;
		min-height: 214px;
		padding: 21px 10px;
		text-align: center;
	}

	.vbp-stat-card__icon {
		width: 30px;
		height: 30px;
	}

	.vbp-stat-card__title {
		margin-top: 18px;
		font-size: 20px;
	}

	.vbp-stat-card__subtitle {
		margin-top: 2px;
		font-size: 20px;
	}

	.vbp-stat-card__text {
		margin-top: 8px;
		color: rgba(104, 104, 104, 0.9);
		font-size: 14px;
		line-height: 17px;
	}
}
