/**
 * VBP CTA widget.
 *
 * TEMPLATE FILE: compiled by Elementor into uploads/elementor/css/vbp-cta.css with the
 * ELEMENTOR_SCREEN_* placeholders replaced by the Site Settings breakpoints.
 * Do not use relative url()s here (the image is rendered as <img> from PHP).
 *
 * Figma: card 1548 × 471, radius 25, gold; photo 1292px wide pinned right; content 123px from
 * the left, 86px from the top. Button hover (Smart Animate 0.3s): cream "Claim Your Offer" →
 * gold "Book Now" with white text.
 */

.vbp-cta {
	position: relative;
	isolation: isolate;
	display: flex;
	min-height: 471px;
	overflow: hidden;
	border-radius: 25px;
	background-color: #c08e2f;
	font-family: var(--vbp-font);
}

/* Prefixed with .vbp-cta to beat Elementor's `.elementor img { height: auto; max-width: 100% }`. */
.vbp-cta .vbp-cta__image {
	position: absolute;
	z-index: -1;
	top: 0;
	right: 0;
	width: 83.46%;
	height: 100%;
	max-width: none;
	border-radius: 0;
	object-fit: cover;
	object-position: 100% 50%;
	pointer-events: none;
}

.vbp-cta__content {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: calc(594px + 123px);
	padding: 86px 0 66px 123px;
}

.vbp-cta__heading {
	max-width: 500px;
	margin: 0;
	color: #fff;
	font-family: var(--vbp-font);
	font-size: 45px;
	font-weight: 600;
	line-height: 1.1;
}

.vbp-cta__text {
	max-width: 594px;
	margin: 28px 0 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 20px;
	line-height: 28px;
}

/* Button: both labels share one grid cell, so the button fits the longer one. */
.vbp-cta .vbp-cta__button {
	box-sizing: border-box;
	display: inline-grid;
	place-items: center;
	min-width: 186px;
	height: 65px;
	margin-top: 39px;
	padding: 10px 26px;
	overflow: hidden;
	border: 1px solid #fff;
	border-radius: 42px;
	background-color: #fff4da;
	color: #000;
	font-family: var(--vbp-font);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.43;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.vbp-cta .vbp-cta__button:hover,
.vbp-cta .vbp-cta__button:focus-visible {
	background-color: #c08e2f;
	color: #fff;
}

.vbp-cta__label {
	grid-area: 1 / 1;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.vbp-cta__label--hover {
	opacity: 0;
	transform: translateY(110%);
}

.vbp-cta__button--swap:hover .vbp-cta__label:not(.vbp-cta__label--hover),
.vbp-cta__button--swap:focus-visible .vbp-cta__label:not(.vbp-cta__label--hover) {
	opacity: 0;
	transform: translateY(-110%);
}

.vbp-cta__button--swap:hover .vbp-cta__label--hover,
.vbp-cta__button--swap:focus-visible .vbp-cta__label--hover {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.vbp-cta__label {
		transform: none !important;
	}
}

/* Tablet and below */
@media (max-width: 1024px) {
	.vbp-cta {
		min-height: 400px;
	}

	.vbp-cta .vbp-cta__image {
		width: 75%;
	}

	.vbp-cta__content {
		max-width: 62%;
		padding: 56px 0 56px 48px;
	}

	.vbp-cta__heading {
		font-size: 36px;
	}

	.vbp-cta__text {
		margin-top: 20px;
		font-size: 18px;
		line-height: 26px;
	}

	.vbp-cta .vbp-cta__button {
		margin-top: 28px;
	}
}

/* Mobile (Figma 393 × 811): full-bleed card, mobile image as the background, text and full-width button on top. */
@media (max-width: 767px) {
	.vbp-cta {
		flex-direction: column;
		min-height: 0;
		aspect-ratio: 393 / 811;
		margin-inline: calc(-1 * var(--vbp-content-padding-left)) calc(-1 * var(--vbp-content-padding-right));
		border-radius: 0;
	}

	.vbp-cta .vbp-cta__image {
		width: 100%;
		object-position: 89.3% 0;
	}

	.vbp-cta__content {
		align-items: stretch;
		max-width: none;
		padding: 35px 22px;
	}

	.vbp-cta__heading {
		max-width: none;
		font-size: 28px;
		line-height: 1.13;
	}

	.vbp-cta__text {
		margin-top: 14px;
		font-size: 18px;
		line-height: 28px;
	}

	.vbp-cta .vbp-cta__button {
		width: 100%;
		margin-top: 24px;
	}
}
