/**
 * Homepage sections — BUILD-SPEC §4.
 *
 * Structure is authored in Divi; all styling lives here, keyed off the CSS classes the
 * layout seeder attaches. Every colour comes from the palette tokens, so switching
 * palettes re-skins the whole page.
 */

/* Divi's row wrapper fights our full-bleed sections; normalise it. */
.vrg-section > .et_pb_row,
.vrg-hero > .et_pb_row {
	max-width: 1180px;
	width: 92%;
}

/* --- 1. Hero -------------------------------------------------------------- */
.vrg-hero {
	position: relative;
	background:
		linear-gradient(
			180deg,
			color-mix(in srgb, var(--vrg-color-primary) 82%, transparent),
			color-mix(in srgb, var(--vrg-color-primary) 94%, transparent)
		),
		var(--vrg-color-primary);
	padding-block: clamp(5rem, 14vw, 11rem);
}

.vrg-hero__inner {
	max-width: 46rem;
}

.vrg-hero__title {
	font-family: var(--vrg-font-display);
	color: var(--vrg-color-surface);
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 1.05;
	margin: 0 0 1rem;
}

.vrg-hero__sub {
	color: color-mix(in srgb, var(--vrg-color-surface) 88%, transparent);
	font-size: 1.125rem;
	margin-bottom: 2rem;
}

/* --- IDX placeholders ----------------------------------------------------- */
.vrg-idx-slot__note {
	font-size: 0.8125rem;
	color: var(--vrg-color-muted);
	font-style: italic;
	margin-top: 0.75rem;
}

.vrg-section--dark .vrg-idx-slot__note {
	color: color-mix(in srgb, var(--vrg-color-surface) 70%, transparent);
}

.vrg-omnibar-stub,
.vrg-valuation__form,
.vrg-newsletter__form {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	max-width: 34rem;
}

.vrg-omnibar-stub input,
.vrg-valuation__form input,
.vrg-newsletter__form input {
	flex: 1 1 18rem;
	padding: 1rem 1.25rem;
	border: 1px solid color-mix(in srgb, var(--vrg-color-muted) 45%, transparent);
	border-radius: var(--vrg-radius);
	font: inherit;
	background: var(--vrg-color-surface);
	color: var(--vrg-color-ink);
}

.vrg-omnibar-stub button,
.vrg-valuation__form button,
.vrg-newsletter__form button {
	cursor: pointer;
	border: 0;
	font-family: var(--vrg-font-eyebrow);
	text-transform: uppercase;
	letter-spacing: var(--vrg-tracking-eyebrow);
	background: var(--vrg-color-accent);
	color: var(--vrg-color-ink);
	padding: 1rem 2rem;
	border-radius: var(--vrg-radius);
}

/* --- 2. Stats strip ------------------------------------------------------- */
.vrg-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 2rem;
	text-align: center;
}

.vrg-stats__figure {
	display: block;
	font-family: var(--vrg-font-display);
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--vrg-color-primary);
	line-height: 1;
}

.vrg-stats__label {
	display: block;
	margin-top: 0.5rem;
	font-family: var(--vrg-font-eyebrow);
	text-transform: uppercase;
	letter-spacing: var(--vrg-tracking-eyebrow);
	font-size: 0.8125rem;
	color: var(--vrg-color-muted);
}

/* --- 3. Featured listings ------------------------------------------------- */
.vrg-listings {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: 1.75rem;
}

.vrg-listing {
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--vrg-color-muted) 25%, transparent);
	border-radius: var(--vrg-radius);
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.vrg-listing:hover {
	box-shadow: 0 18px 40px color-mix(in srgb, var(--vrg-color-primary) 18%, transparent);
	transform: translateY(-3px);
}

.vrg-listing__media {
	aspect-ratio: 4 / 3;
	background: color-mix(in srgb, var(--vrg-color-primary-light) 30%, var(--vrg-color-surface));
}

.vrg-listing__body {
	padding: 1.25rem;
}

.vrg-listing__price {
	display: inline-block;
	font-family: var(--vrg-font-eyebrow);
	letter-spacing: 0.04em;
	background: var(--vrg-color-accent);
	color: var(--vrg-color-ink);
	padding: 0.25em 0.75em;
	border-radius: var(--vrg-radius);
	margin-bottom: 0.5rem;
}

.vrg-listing__address {
	font-size: 1.125rem;
	margin: 0.25rem 0;
}

.vrg-listing__meta {
	color: var(--vrg-color-muted);
	font-size: 0.9375rem;
	margin: 0;
}

/* --- 4. Meet Violet ------------------------------------------------------- */
.vrg-portrait {
	aspect-ratio: 4 / 5;
	background: color-mix(in srgb, var(--vrg-color-primary-light) 35%, var(--vrg-color-surface));
	display: grid;
	place-items: center;
	border-radius: var(--vrg-radius);
	color: var(--vrg-color-primary);
	font-family: var(--vrg-font-eyebrow);
	text-transform: uppercase;
	letter-spacing: var(--vrg-tracking-eyebrow);
}

/* --- 5. Pillars ----------------------------------------------------------- */
.vrg-pillars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 2rem;
}

.vrg-pillar h3 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.vrg-pillar h3::after {
	content: "";
	display: block;
	width: 40px;
	height: 2px;
	background: var(--vrg-color-primary-light);
	margin-top: 0.75rem;
}

/* --- 6. Valuation band ---------------------------------------------------- */
.vrg-valuation__inner {
	max-width: 42rem;
}

.vrg-valuation__inner p {
	color: color-mix(in srgb, var(--vrg-color-surface) 85%, transparent);
}

/* --- 7. Communities grid -------------------------------------------------- */
.vrg-communities {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.25rem;
}

.vrg-community {
	position: relative;
	display: grid;
	place-items: end start;
	min-height: 13rem;
	padding: 1.25rem;
	border-radius: var(--vrg-radius);
	text-decoration: none;
	background:
		linear-gradient(
			180deg,
			transparent 40%,
			color-mix(in srgb, var(--vrg-color-primary) 85%, transparent)
		),
		color-mix(in srgb, var(--vrg-color-primary-light) 45%, var(--vrg-color-surface));
	transition: transform 0.25s ease;
}

.vrg-community:hover {
	transform: translateY(-3px);
}

.vrg-community__name {
	font-family: var(--vrg-font-display);
	font-size: 1.375rem;
	color: var(--vrg-color-surface);
}

/* --- 8. Testimonials ------------------------------------------------------ */
.vrg-quotes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
	gap: 2rem;
}

.vrg-quote {
	margin: 0;
	padding-left: 1.5rem;
	border-left: 2px solid var(--vrg-color-primary-light);
}

.vrg-quote p {
	font-family: var(--vrg-font-display);
	font-size: 1.375rem;
	line-height: 1.45;
	color: var(--vrg-color-primary);
}

.vrg-quote cite {
	font-family: var(--vrg-font-eyebrow);
	text-transform: uppercase;
	letter-spacing: var(--vrg-tracking-eyebrow);
	font-size: 0.8125rem;
	color: var(--vrg-color-muted);
	font-style: normal;
}

/* --- 9. Buyer / seller split ---------------------------------------------- */
.vrg-split__panel {
	background: color-mix(in srgb, var(--vrg-color-primary-light) 18%, var(--vrg-color-surface));
	padding: clamp(2rem, 4vw, 3.5rem);
	border-radius: var(--vrg-radius);
	height: 100%;
}

.vrg-split__panel--alt {
	background: color-mix(in srgb, var(--vrg-color-accent) 40%, var(--vrg-color-surface));
}

.vrg-split__panel .vrg-button {
	display: inline-block;
	text-decoration: none;
	margin-top: 1rem;
}

/* --- 11. Newsletter ------------------------------------------------------- */
.vrg-newsletter {
	text-align: center;
}

.vrg-newsletter p {
	margin-inline: auto;
}

.vrg-newsletter__form {
	margin-inline: auto;
	justify-content: center;
}

/* --- Shared --------------------------------------------------------------- */
.vrg-heading h2 {
	margin-bottom: 0.5rem;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

@media (max-width: 767px) {
	.vrg-hero { padding-block: clamp(3rem, 12vw, 6rem); }
	.vrg-quotes,
	.vrg-listings { gap: 1.25rem; }
}

/* Divi's blog module renders post title and meta links at 15–20px tall,
   below the WCAG 2.5.8 24px minimum. */
.vrg-blog .entry-title a,
.vrg-blog .post-meta a,
.vrg-blog .post-content a {
	display: inline-block;
	min-height: 24px;
	line-height: 24px;
}

.vrg-blog .entry-title {
	font-family: var(--vrg-font-display);
	font-size: 1.25rem;
}

.vrg-blog .post-meta {
	font-family: var(--vrg-font-eyebrow);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.75rem;
	color: var(--vrg-color-muted);
}

/* Real portrait image (replaces the placeholder block once set). */
.vrg-portrait--filled {
	margin: 0;
	border-radius: var(--vrg-radius);
	overflow: hidden;
	background: color-mix(in srgb, var(--vrg-color-primary-light) 20%, var(--vrg-color-surface));
}

.vrg-portrait__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center top;
}

/* Meet Violet: centre the copy against the portrait and cap the image height so a
   tall 4:5 crop does not leave the text stranded at the top on wide screens. */
@media (min-width: 981px) {
	.vrg-meet > .et_pb_row {
		display: flex !important;
		align-items: center;
	}

	.vrg-meet > .et_pb_row > .et_pb_column {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.vrg-portrait--filled {
		max-height: 34rem;
	}

	.vrg-portrait--filled .vrg-portrait__img {
		height: 34rem;
		aspect-ratio: auto;
	}
}

/* --- Google rating badge -------------------------------------------------- */
.vrg-gbadge {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.5rem;
	padding: 1.25rem 1.5rem;
	border-radius: var(--vrg-radius);
	background: var(--vrg-color-surface);
	border: 1px solid color-mix(in srgb, var(--vrg-color-primary-light) 35%, transparent);
}

.vrg-gbadge__text {
	margin: 0;
	max-width: none;
	font-size: 1.0625rem;
}

.vrg-gbadge__text strong {
	color: var(--vrg-color-primary);
}

.vrg-gbadge .vrg-button {
	margin-left: auto;
	text-decoration: none;
}

/* Stars: gold reads as a rating, and the accent is already the brand's warm tone. */
.vrg-star {
	color: color-mix(in srgb, var(--vrg-color-muted) 45%, transparent);
	font-size: 1.35rem;
	line-height: 1;
	letter-spacing: 0.05em;
}

.vrg-star--on {
	color: #E8B931;
}

.vrg-quote__stars {
	margin-bottom: 0.6rem;
}

.vrg-quote__stars .vrg-star {
	font-size: 1rem;
}

/* Review cards sit on a surface so they read as discrete quotes. */
.vrg-section--tint .vrg-quote,
.vrg-section .vrg-quote {
	background: var(--vrg-color-surface);
	border-left: 3px solid var(--vrg-color-primary-light);
	border-radius: var(--vrg-radius);
	padding: 1.5rem;
}

.vrg-quote p {
	font-size: 1.125rem;
	line-height: 1.55;
}

.vrg-quote cite {
	display: block;
	margin-top: 0.75rem;
}

@media (max-width: 767px) {
	.vrg-gbadge .vrg-button { margin-left: 0; }
}

.vrg-quote__when {
	color: var(--vrg-color-muted);
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

/* Reviews vary a lot in length; keep the grid tidy rather than stretching cards. */
.vrg-quotes {
	align-items: start;
}

/* Mirrored Meet section.
   The copy comes first in the DOM here, so normal flow already gives copy-left /
   portrait-right. Reversing would undo the mirror and make both sections identical. */
