/**
 * VBP Services widget.
 *
 * TEMPLATE FILE: compiled by Elementor into uploads/elementor/css/vbp-services.css with the
 * ELEMENTOR_SCREEN_* placeholders replaced by the Site Settings breakpoints.
 * Do not use relative url()s here.
 *
 * Card from Figma: 375 × 583, photo window 375 × 451 (portrait), 132px panel with title/price
 * and a 60px Book Now bar. Hover (Smart Animate 0.3s): the bar turns gold with black text.
 */

.vbp-services {
	--vbp-services-columns: 4;

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

.vbp-services .vbp-section-head__text {
	max-width: 623px;
}

.vbp-services__grid {
	display: grid;
	grid-template-columns: repeat(var(--vbp-services-columns), minmax(0, 1fr));
	gap: 16px;
}

.vbp-service {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #373737;
	border-radius: 15px;
	background-color: #000;
}

.vbp-service__media {
	aspect-ratio: 375 / 451;
	overflow: hidden;
	background-color: #191919;
}

/* Prefixed with .vbp-services to beat Elementor's `.elementor img { height: auto; max-width: 100% }`. */
.vbp-services .vbp-service__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	border-radius: 0;
	object-fit: cover;
	object-position: center;
}

.vbp-service__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 12px;
	padding: 20px 11px 17px 22px;
}

.vbp-service__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.vbp-service__title,
.vbp-service__price {
	margin: 0;
	font-family: var(--vbp-font);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.1;
}

.vbp-service__title {
	color: #fff;
}

.vbp-service__price {
	flex: none;
	color: #c9a227;
	font-variant-numeric: lining-nums;
}

.vbp-service__text {
	margin: 0;
	color: #b5b5b5;
	font-size: 18px;
	line-height: 1.45;
}

.vbp-service__book {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 60px;
	border-radius: 4px;
	background-color: #191919;
	color: #c9a227;
	font-family: var(--vbp-font);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.43;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease, font-size 0.3s ease;
}

.vbp-services .vbp-service:hover .vbp-service__book,
.vbp-services .vbp-service__book:focus-visible {
	background-color: #c08e2f;
	color: #000;
	font-size: 20px;
}

.vbp-services__empty {
	margin: 0;
	color: #b5b5b5;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.vbp-service__book {
		transition: none;
	}
}

/* Tablet and below */
@media (max-width: 1024px) {
	.vbp-services {
		--vbp-services-columns: 2;
	}

	.vbp-services__grid {
		gap: 20px;
	}

	.vbp-service__title,
	.vbp-service__price {
		font-size: 28px;
	}
}

/* Progress bar is only used by the mobile swipe row. */
.vbp-services__progress {
	display: none;
}

/* Mobile (Figma 393px): horizontal swipe row (cards 323px, next card peeking), progress bar underneath. */
@media (max-width: 767px) {
	.vbp-services__grid {
		display: flex;
		gap: 13px;
		margin-inline: calc(-1 * var(--vbp-content-padding-left)) calc(-1 * var(--vbp-content-padding-right));
		padding-inline: var(--vbp-content-padding-left) var(--vbp-content-padding-right);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-padding-inline: var(--vbp-content-padding-left);
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.vbp-services__grid::-webkit-scrollbar {
		display: none;
	}

	.vbp-service {
		flex: 0 0 min(323px, 84vw);
		border-width: 0.86px;
		border-radius: 12.9px;
		scroll-snap-align: start;
	}

	.vbp-service__body {
		padding: 17px 12px 18px 19px;
	}

	.vbp-service__title,
	.vbp-service__price {
		font-size: 24px;
	}

	.vbp-service__book,
	.vbp-services .vbp-service:hover .vbp-service__book,
	.vbp-services .vbp-service__book:focus-visible {
		height: 51.66px;
		border-radius: 3.44px;
		font-size: 20px;
	}

	.vbp-services__progress {
		display: block;
		height: 10px;
		margin-top: 21px;
		overflow: hidden;
		border-radius: 25px;
		background-color: #242424;
	}

	.vbp-services__progress-bar {
		display: block;
		width: var(--vbp-services-thumb, 32%);
		height: 100%;
		border-radius: 25px;
		background-color: #fff;
		transform: translateX(var(--vbp-services-offset, 0px));
	}
}

/* -------------------------------------------------------------------------
 * Wide cards — VBP Services 2 (Figma "Our Services": 757 × 583 cards, two per row, 32px gaps).
 * Same markup as above; body/head are flattened so title, price and Book Now share one row.
 * Hover (Smart Animate 0.3s): card turns #fff9e4, Book Now turns gold with black text.
 * ---------------------------------------------------------------------- */

.vbp-services--wide {
	--vbp-services-columns: 2;
}

.vbp-services--wide .vbp-services__grid {
	gap: 32px;
}

.vbp-services--wide .vbp-service {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	grid-template-areas:
		"media media media"
		"title price book"
		"text  text  text";
	align-items: center;
	column-gap: 18px;
	border: 1px solid rgba(55, 55, 55, 0.22);
	border-radius: 15px;
	background-color: #fff;
	transition: background-color 0.3s ease;
}

.vbp-services--wide .vbp-service__body,
.vbp-services--wide .vbp-service__head {
	display: contents;
}

.vbp-services--wide .vbp-service__media {
	grid-area: media;
	aspect-ratio: 757 / 482;
	background-color: #e9e9e9;
}

.vbp-services--wide .vbp-service__title {
	grid-area: title;
	margin: 20px 0 21px 35px;
	color: #000;
}

.vbp-services--wide .vbp-service__price {
	grid-area: price;
}

.vbp-services--wide .vbp-service__text {
	grid-area: text;
	margin: -6px 35px 21px;
	color: #535353;
}

.vbp-services--wide .vbp-service__book {
	grid-area: book;
	width: 180px;
	margin-right: 34px;
}

.vbp-services.vbp-services--wide .vbp-service:hover {
	background-color: #fff9e4;
}

.vbp-services.vbp-services--wide .vbp-service:hover .vbp-service__book,
.vbp-services.vbp-services--wide .vbp-service__book:focus-visible {
	background-color: #c9a227;
	color: #000;
}

/* The swipe row and its progress bar belong to the dark VBP Services only. */
.vbp-services--wide .vbp-services__progress {
	display: none !important;
}

@media (max-width: 1024px) {
	.vbp-services--wide .vbp-services__grid {
		gap: 20px;
	}

	.vbp-services--wide .vbp-service__title {
		margin-left: 22px;
	}

	.vbp-services--wide .vbp-service__book {
		width: 140px;
		margin-right: 22px;
	}
}

/* Mobile (Figma 393px): stacked cards — photo 304px, title + price, full-width Book Now bar. */
@media (max-width: 767px) {
	.vbp-services--wide .vbp-services__grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin: 0;
		padding: 0;
		overflow: visible;
		scroll-snap-type: none;
	}

	.vbp-services--wide .vbp-service {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"media media"
			"title price"
			"text  text"
			"book  book";
		column-gap: 12px;
		border-width: 1px;
		border-radius: 15px;
	}

	.vbp-services--wide .vbp-service__media {
		aspect-ratio: 353 / 304;
	}

	.vbp-services--wide .vbp-service__title,
	.vbp-services--wide .vbp-service__price {
		font-size: 24px;
	}

	/* Figma: 20px row centred 30px below the photo, Book Now bar flush at 364px of a 424px card. */
	.vbp-services--wide .vbp-service__title {
		margin: 17px 0 17px 18px;
	}

	.vbp-services--wide .vbp-service__price {
		margin-right: 18px;
	}

	.vbp-services--wide .vbp-service__text {
		margin: -8px 18px 16px;
	}

	.vbp-services--wide .vbp-service__book,
	.vbp-services.vbp-services--wide .vbp-service:hover .vbp-service__book {
		width: auto;
		height: 60px;
		margin: 0;
		border-radius: 4px;
		font-size: 20px;
	}
}
