/* Miami upholstery promo (post 10142) -- design 'miami-hero-v3' (built as the
   V3 comparison, promoted to the page 2026-10-28). Loaded ONLY where that
   design renders (functions.php, vr_page_design()), and every selector is
   scoped to .vrg-v3-hero / .vrg-v3-reviews / .vrg-v3-form, so no other page
   can be affected.
   Mobile first (most campaign traffic is phones); tablet from 761px; the
   three-zone desktop composition from 1200px. Theme tokens only. */

.vrg-v3-hero {
	--v3-ink: var(--wp--preset--color--contrast);
	--v3-muted: var(--wp--preset--color--neutral-700);
	--v3-green: var(--wp--preset--color--green-deep-700);
	--v3-tint: var(--wp--preset--color--green-tint-100);
	display: grid;
	gap: 22px;
	padding-top: 8px;
	padding-bottom: clamp(36px, 5vw, 64px);
}

/* ---------- Breadcrumb (real nav list; links underlined, not colour-only) */
.vrg-v3-hero .vrg-v3-crumbs { margin: 0; }
.vrg-v3-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.vrg-v3-crumbs li { display: inline-flex; align-items: center; }
.vrg-v3-crumbs li + li::before { content: "\203A" / ""; margin: 0 8px; color: var(--wp--preset--color--neutral-500); }
.vrg-v3-crumbs a { display: inline-block; padding: 4px 0; color: var(--v3-green); text-decoration: underline; text-decoration-color: rgba(31, 111, 48, 0.35); text-underline-offset: 3px; }
.vrg-v3-crumbs a:hover { text-decoration-color: currentColor; }
.vrg-v3-crumbs [aria-current="page"] { padding: 4px 0; font-weight: 600; color: var(--v3-muted); }
/* One line on phones: shorter last crumb (preview-variants.php) + tighter type. */
@media (max-width: 760px) {
	.vrg-v3-hero .vrg-v3-crumbs { font-size: 13px; }
	.vrg-v3-crumbs ol { flex-wrap: nowrap; white-space: nowrap; }
	.vrg-v3-crumbs li + li::before { margin: 0 6px; }
}
@media (max-width: 359px) { .vrg-v3-hero .vrg-v3-crumbs { font-size: 12px; } .vrg-v3-crumbs li + li::before { margin: 0 4px; } }

/* ---------- Copy */
.vrg-v3-copy h1 {
	margin: 0 0 16px;
	font-size: clamp(32px, 9.2vw, 40px);
	line-height: 1.08;
	color: var(--v3-ink);
	text-wrap: balance;
}

/* Trust line under the H1: compact, links to the reviews section. Stars are decorative. */
.vrg-v3-trust { display: inline-flex; flex-direction: column; gap: 2px; margin: 0 0 14px; color: var(--v3-ink); text-decoration: none; }
.vrg-v3-trust__top { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; }
.vrg-v3-trust__stars { color: var(--wp--preset--color--stars); font-size: 15px; letter-spacing: 1px; line-height: 1; }
.vrg-v3-trust__counts { font-size: 14px; color: var(--v3-muted); text-decoration: underline; text-decoration-color: rgba(80, 90, 101, 0.4); text-underline-offset: 3px; }
.vrg-v3-trust:hover .vrg-v3-trust__counts { text-decoration-color: currentColor; }
.vrg-v3-trust__seg { white-space: nowrap; }
#vrg-v3-reviews { scroll-margin-top: 16px; }

.vrg-v3-offer { margin: 0 0 20px; }
.vrg-v3-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; }
.vrg-v3-price__amount { font-family: var(--wp--preset--font-family--heading); font-size: 46px; line-height: 1; color: var(--v3-green); }
.vrg-v3-price__unit { font-size: 19px; font-weight: 700; color: var(--v3-ink); }
.vrg-v3-terms { max-width: 44ch; margin: 0; font-size: 15px; line-height: 1.5; color: var(--v3-muted); }

.vrg-v3-benefits { display: grid; gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.vrg-v3-benefits li { display: flex; align-items: center; gap: 12px; }
.vrg-v3-benefits__icon { display: inline-flex; flex: 0 0 40px; align-items: center; justify-content: center; height: 40px; border-radius: 12px; background: var(--v3-tint); color: var(--v3-green); }
.vrg-v3-benefits__text { display: flex; flex-direction: column; line-height: 1.3; }
.vrg-v3-benefits__text strong { font-size: 16px; color: var(--v3-ink); }
.vrg-v3-benefits__text span { font-size: 14.5px; color: var(--v3-muted); }

/* Two actions; overrides the shared .vrg-hero-actions spacing (kept on the
   element only so the sticky bar steps aside while these are on screen). */
.vrg-v3-hero .vrg-v3-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.vrg-v3-hero .vrg-v3-actions .vrg-btn {
	flex: 1 1 100%;
	gap: 10px;
	min-height: 52px;
	padding: 12px 20px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}

/* ---------- Photo. The 853x1280 original shows the action (hands, tool on
   the tufted cushion, the sofa) in its lower half and left/centre; every crop
   keeps that, never just the head/torso. */
.vrg-v3-photo { position: relative; margin: 22px 0 0; overflow: hidden; border-radius: 20px; background: var(--v3-tint); aspect-ratio: 20 / 21; } /* ~370px tall at 393px */
.vrg-v3-photo picture { display: block; width: 100%; height: 100%; }
.vrg-v3-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; } /* 20:21 = rows ~225-1120: head, both hands, tool on the cushion, sofa top */

/* ---------- Form: the existing photo-estimate block; only its intro spacing is tightened here */
.vrg-v3-form { min-width: 0; }
.vrg-v3-form .vrg-quote-form .vrg-quote-form__sub { margin-bottom: 16px; }
.vrg-v3-form .vrg-pe .vrg-pe__call { margin: -8px 0 10px; }
.vrg-v3-form .vrg-pe__progress-steps { margin-bottom: 10px; }
.vrg-v3-form .vrg-pe .vrg-pe__legend { margin-bottom: 10px; }

/* ---------- Tablet: copy and photo share one white panel; form below */
@media (min-width: 761px) {
	.vrg-v3-hero { gap: 24px; }
	.vrg-v3-stage {
		display: grid;
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		overflow: hidden;
		border: 1px solid var(--wp--preset--color--neutral-200);
		border-radius: var(--wp--custom--radius--card);
		background: #fff;
		box-shadow: var(--wp--custom--shadow--sm);
	}
	/* Centred in the panel: the row height follows the taller of copy/form, so
	   any slack splits evenly above and below instead of pooling under the buttons. */
	.vrg-v3-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 3.4vw, 44px); }
	.vrg-v3-copy h1 { font-size: clamp(36px, 3.4vw, 46px); }
	.vrg-v3-photo { margin: 0; border-radius: 0; aspect-ratio: auto; min-height: 320px; }
	/* Out of flow so the image never sets the row height; the copy does. */
	.vrg-v3-photo picture { position: absolute; inset: 0; }
	.vrg-v3-photo img { object-position: 18% 82%; } /* tall column: whole figure; narrow column: left hand + tool stay in */
	.vrg-v3-form { width: 100%; max-width: 640px; justify-self: center; }
	.vrg-v3-hero .vrg-v3-actions .vrg-btn { flex: 1 1 200px; }
}

/* ---------- Desktop: one composition -- crumb row, then [copy | photo] panel
   and the form card side by side, tops and bottoms aligned. */
@media (min-width: 1200px) {
	.vrg-v3-hero {
		grid-template-columns: minmax(0, 1fr) minmax(380px, 420px);
		grid-template-areas: "crumbs crumbs" "stage form";
		column-gap: 28px;
		row-gap: 14px;
		align-items: stretch;
	}
	.vrg-v3-crumbs { grid-area: crumbs; }
	/* 1.6 : 1 keeps the H1 on two lines from 1200px up; the photo column stays
	   >=250px wide, which at full height still shows both hands and the tool. */
	.vrg-v3-stage { grid-area: stage; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
	.vrg-v3-copy { padding: 40px 36px 40px 40px; }
	.vrg-v3-copy h1 { font-size: clamp(34px, 2.9vw, 44px); }
	.vrg-v3-form { grid-area: form; max-width: none; }
	.vrg-v3-form .vrg-quote-form { box-sizing: border-box; height: 100%; padding: 34px 30px; box-shadow: var(--wp--custom--shadow--md); }
	.vrg-v3-form .vrg-quote-form h2 { font-size: 32px; }
	.vrg-v3-hero .vrg-v3-actions .vrg-btn { flex-basis: 190px; padding: 12px 16px; font-size: 15.5px; }
}

/* ---------- Reviews (variants/miami-reviews-v3.php): Google-review styling,
   source shown with the Google mark, links to both Google Maps listings. */
.vrg-v3-reviews { --v3-ink: var(--wp--preset--color--contrast); --v3-muted: var(--wp--preset--color--neutral-700); }
.vrg-v3-g { flex: 0 0 auto; }
/* One grid, ordered per screen: phones read intro -> reviews -> locations -> button;
   from 761px the location cards move up beside the intro (Google-style summary). */
.vrg-v3-reviews { display: grid; grid-template-areas: "intro" "list" "places" "more"; grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
.vrg-v3-reviews__intro { grid-area: intro; }
.vrg-v3-review-list { grid-area: list; }
.vrg-v3-places { grid-area: places; }
.vrg-v3-reviews__more { grid-area: more; }
.vrg-v3-reviews__eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--v3-muted); }
.vrg-v3-reviews h2 { margin: 0 0 6px; }
.vrg-v3-reviews__note { margin: 0; font-size: 15px; color: var(--v3-muted); }

.vrg-v3-places { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.vrg-v3-place {
	display: flex; align-items: flex-start; gap: 12px; height: 100%; box-sizing: border-box;
	padding: 14px 16px; border: 1px solid var(--wp--preset--color--neutral-200); border-radius: 16px;
	background: #fff; color: var(--v3-ink); text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.vrg-v3-place:hover { border-color: var(--wp--preset--color--green-tint-200); box-shadow: var(--wp--custom--shadow--sm); }
.vrg-v3-place__body { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.vrg-v3-place__name { font-size: 15px; font-weight: 700; }
.vrg-v3-place__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--v3-muted); }
.vrg-v3-place__rating strong { color: var(--v3-ink); }
.vrg-v3-place__addr { font-size: 13px; color: var(--v3-muted); }
.vrg-v3-place__go { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--wp--preset--color--green-deep-700); }
.vrg-v3-place .vrg-v3-g { margin-top: 2px; }

.vrg-v3-stars { display: inline-flex; font-size: 15px; letter-spacing: 1px; line-height: 1; }
.vrg-v3-stars .is-on { color: var(--wp--preset--color--stars); }
.vrg-v3-stars .is-off { color: var(--wp--preset--color--neutral-200); }

.vrg-v3-review-list { position: relative; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; } /* positioned: keeps the cards' visually-hidden labels inside the scroller */
.vrg-v3-review {
	position: relative; display: flex; flex-direction: column; gap: 10px;
	padding: 18px 18px 20px; border: 1px solid var(--wp--preset--color--neutral-200); border-radius: 16px;
	background: #fff; box-shadow: var(--wp--custom--shadow--sm);
}
.vrg-v3-review__top { display: flex; align-items: center; gap: 10px; }
.vrg-v3-review__avatar { display: inline-flex; flex: 0 0 40px; align-items: center; justify-content: center; height: 40px; border-radius: 50%; color: #fff; font-size: 17px; font-weight: 700; }
.vrg-v3-review__who { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
.vrg-v3-review__name { overflow: hidden; font-size: 15px; font-weight: 700; color: var(--v3-ink); text-overflow: ellipsis; white-space: nowrap; }
.vrg-v3-review__date { font-size: 13px; color: var(--v3-muted); }
.vrg-v3-review__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--wp--preset--color--neutral-800); }
.vrg-v3-reviews__more { margin: 0; text-align: center; }
.vrg-v3-reviews__more .vrg-btn { gap: 10px; min-height: 48px; padding: 10px 22px; font-family: var(--wp--preset--font-family--body); font-size: 15.5px; font-weight: 700; }

@media (max-width: 760px) {
	/* Horizontal scroll-snap row with the next card peeking in. */
	.vrg-v3-review-list {
		grid-auto-columns: 84%; grid-auto-flow: column;
		margin: 0 calc(-1 * var(--wp--preset--spacing--pad-x)); padding: 2px var(--wp--preset--spacing--pad-x) 8px;
		overflow-x: auto; overscroll-behavior-x: contain; scroll-padding-inline: var(--wp--preset--spacing--pad-x); scroll-snap-type: x mandatory;
	}
	.vrg-v3-review { scroll-snap-align: start; }
	.vrg-v3-reviews__more .vrg-btn { width: 100%; }
}
.vrg-v3-review-list:focus-visible { outline: 2px solid var(--wp--preset--color--green-deep-700); outline-offset: 4px; border-radius: 16px; }
@media (min-width: 761px) {
	.vrg-v3-reviews { grid-template-areas: "intro" "places" "list" "more"; row-gap: 22px; }
	.vrg-v3-places { grid-template-columns: 1fr 1fr; }
	.vrg-v3-review-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
	.vrg-v3-reviews { grid-template-areas: "intro places" "list list" "more more"; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 32px; align-items: end; }
	.vrg-v3-review-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
