/**
 * VBP Features widget.
 *
 * TEMPLATE FILE: compiled by Elementor into uploads/elementor/css/vbp-features.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).
 *
 * Desktop proportions from Figma (1459px group): columns 451 | oval 417 | 451, 70px gaps,
 * columns start 32px below the oval top, 76px between features, CTA 53px under the oval.
 * Image rules are prefixed with .vbp-features to beat Elementor's `.elementor img` reset.
 */

.vbp-features {
	--vbp-feature-icon-size: 100px;

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

.vbp-features__layout {
	display: grid;
	grid-template-columns: minmax(0, 451fr) minmax(0, 417fr) minmax(0, 451fr);
	align-items: start;
	column-gap: 70px;
	max-width: 1459px;
	margin: 0 auto;
}

.vbp-features__column {
	display: flex;
	flex-direction: column;
	row-gap: 76px;
	margin-top: 32px;
}

/* Feature: left column = text right-aligned with the icon on the right; right column = icon first. */
.vbp-feature {
	display: flex;
	align-items: center;
	gap: 17px;
}

.vbp-feature--left {
	flex-direction: row-reverse;
	text-align: right;
}

.vbp-feature__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: var(--vbp-feature-icon-size);
	height: var(--vbp-feature-icon-size);
	overflow: hidden;
	border-radius: calc(var(--vbp-feature-icon-size) * 0.198);
	background-color: #030409;
}

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

.vbp-feature__body {
	display: flex;
	flex: 0 1 342px;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.vbp-feature__title {
	margin: 0;
	color: #030409;
	font-family: var(--vbp-font);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.1;
}

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

/* Oval with lion pattern and cut-out portrait (Figma: 417 × 582). */
.vbp-features__oval {
	position: relative;
	box-sizing: border-box;
	aspect-ratio: 417 / 582;
	overflow: hidden;
	border: 1px solid #d3d3d3;
	border-radius: 1000px;
	background-color: #fffcf4;
}

/* lion.svg carries its own 27% opacity. */
.vbp-features .vbp-features__lion {
	position: absolute;
	top: 3.45%;
	left: 0.48%;
	width: 99.28%;
	height: 92.78%;
	max-width: none;
	pointer-events: none;
}

.vbp-features .vbp-features__photo {
	position: absolute;
	top: -7.04%;
	left: 0.22%;
	width: 99.57%;
	height: 106.87%;
	max-width: none;
	object-fit: cover;
}

.vbp-features__cta {
	display: flex;
	justify-content: center;
	margin-top: 53px;
}

/*
 * Dark skin (VBP Features 2, Figma "Why Us?"): near-black oval with a #2b2b2b edge and a darker lion
 * pattern, #141414 icon boxes, white titles and #bababa descriptions.
 */
.vbp-features--dark .vbp-section-head__text {
	max-width: 594px;
}

.vbp-features--dark .vbp-features__oval {
	border-color: #2b2b2b;
	background-color: #050505;
	background-image: linear-gradient(180deg, #050505 0%, #242222 100%);
}

.vbp-features--dark .vbp-feature__icon {
	background-color: #141414;
}

.vbp-features--dark .vbp-feature__title {
	color: #fff;
}

.vbp-features--dark .vbp-feature__text {
	color: #bababa;
}

/* Tablet and below: oval on top, features in two even columns, all icons on the left. */
@media (max-width: 1024px) {
	.vbp-features {
		--vbp-feature-icon-size: 80px;
	}

	.vbp-features__layout {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 40px;
		row-gap: 48px;
	}

	.vbp-features__center {
		grid-column: 1 / -1;
		order: -1;
		width: 100%;
		max-width: 340px;
		margin: 0 auto;
	}

	.vbp-features__column {
		row-gap: 40px;
		margin-top: 0;
	}

	.vbp-feature--left {
		flex-direction: row;
		text-align: left;
	}

	.vbp-feature__body {
		flex: 1 1 auto;
	}

	.vbp-feature__title {
		font-size: 26px;
	}

	.vbp-feature__text {
		font-size: 18px;
		line-height: 26px;
	}

	.vbp-features__cta {
		margin-top: 48px;
	}
}

/* Mobile (Figma 393px): oval on top, one list (left and right features interleaved), full-width button. */
@media (max-width: 767px) {
	.vbp-features {
		--vbp-feature-icon-size: 56px;
	}

	.vbp-features__layout {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 18px;
	}

	.vbp-features__center {
		max-width: 256.5px;
		margin-bottom: 6px;
	}

	/* Let the items of both columns sit in one list; PHP sets their order (left 1, right 1, left 2…). */
	.vbp-features__column {
		display: contents;
	}

	.vbp-feature,
	.vbp-feature--left {
		align-items: flex-start;
		order: var(--vbp-feature-order, 0);
		gap: 12px;
	}

	.vbp-features .vbp-feature__icon img {
		max-width: 76%;
		max-height: 76%;
	}

	.vbp-feature__body {
		gap: 7px;
	}

	.vbp-feature__title {
		font-size: 24px;
	}

	.vbp-feature__text {
		font-size: 18px;
		line-height: 28px;
	}

	.vbp-features__cta {
		margin-top: 24px;
	}

	.vbp-features__cta .vbp-btn {
		width: 100%;
		height: 65px;
		font-size: 20px;
	}
}
