/* ==========================================================================
   Virtuosite Estates – theme styles (layered on top of vsp-front.css)
   ========================================================================== */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2-variations"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2-variations"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
	--ve-header-h: 84px;
	--vsp-header-h: 84px;
	--ve-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--vsp-paper); color: var(--vsp-text); font: 400 1rem/1.6 var(--vsp-font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--vsp-ink); }
h1, h2, h3, h4, h5, h6 { font-family: var(--vsp-font-display); font-weight: 500; color: var(--vsp-ink); line-height: 1.15; letter-spacing: -0.012em; font-variation-settings: "opsz" 72, "SOFT" 40; }
::selection { background: var(--vsp-brass); color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; z-index: 100000; width: auto; height: auto; clip: auto; padding: 0.75rem 1rem; background: var(--vsp-ink); color: #fff; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--vsp-brass); outline-offset: 3px; }
.ve-site { min-height: 60vh; }
.ve-main { font-family: var(--vsp-font-body); }

/* ---- Header -------------------------------------------------------------- */
.ve-header { position: sticky; top: 0; z-index: 900; background: var(--vsp-paper); border-bottom: 1px solid transparent; transition: background 0.35s, border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ve-ease); }
.ve-header.is-scrolled { border-bottom-color: var(--vsp-line); box-shadow: 0 8px 30px -18px rgba(16, 35, 63, 0.25); }
.ve-header-inner { width: min(100% - 2.5rem, 1320px); margin-inline: auto; height: var(--ve-header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.ve-brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--vsp-ink); }
.ve-brand-logo { max-height: 52px; width: auto; display: block; }
.ve-brand-mark { width: 38px; height: 38px; color: var(--vsp-brass); display: grid; place-items: center; }
.ve-brand-mark svg { width: 100%; height: 100%; }
.ve-brand-text { font-family: var(--vsp-font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; font-variation-settings: "opsz" 48, "SOFT" 60; }
.ve-brand-text em { font-style: italic; font-weight: 400; color: var(--vsp-brass); margin: 0 0.05em; }
.ve-nav-list { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.ve-nav-list li { position: relative; }
.ve-nav-list a { display: inline-block; padding: 0.55em 0.85em; border-radius: 999px; font-weight: 600; font-size: 0.93rem; color: var(--vsp-ink); text-decoration: none; transition: background 0.2s, color 0.2s; }
.ve-nav-list a:hover, .ve-nav-list .current-menu-item > a, .ve-nav-list .current-menu-ancestor > a { background: rgba(var(--vsp-ink-rgb, 16, 35, 63), 0.07); }
.ve-nav-list .sub-menu { position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--vsp-line); border-radius: 12px; padding: 0.5rem; list-style: none; margin: 0; box-shadow: var(--vsp-shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.ve-nav-list li:hover > .sub-menu, .ve-nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ve-nav-list .sub-menu a { display: block; border-radius: 8px; }
.ve-header-actions { display: flex; align-items: center; gap: 0.75rem; }
.ve-header-phone { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; color: var(--vsp-ink); text-decoration: none; font-size: 0.93rem; }
.ve-header-phone .vsp-icon { color: var(--vsp-brass); }
.ve-header-cta { padding: 0.7em 1.25em; font-size: 0.88rem; }
.ve-burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.ve-burger span { display: block; width: 24px; height: 2px; background: var(--vsp-ink); border-radius: 2px; transition: transform 0.3s var(--ve-ease), opacity 0.2s; }
.ve-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ve-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ve-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ve-nav-mobile-extras { display: none; }

/* Transparent header over hero */
.has-transparent-header .ve-header:not(.is-scrolled):not(.is-open) { background: transparent; }
.has-transparent-header .ve-header:not(.is-scrolled):not(.is-open) .ve-brand, .has-transparent-header .ve-header:not(.is-scrolled):not(.is-open) .ve-nav-list > li > a, .has-transparent-header .ve-header:not(.is-scrolled):not(.is-open) .ve-header-phone { color: #fff; }
.has-transparent-header .ve-header:not(.is-scrolled):not(.is-open) .ve-brand-mark, .has-transparent-header .ve-header:not(.is-scrolled):not(.is-open) .ve-brand-text em { color: var(--vsp-brass-2); }
.has-transparent-header .ve-header:not(.is-scrolled):not(.is-open) .ve-nav-list > li > a:hover, .has-transparent-header .ve-header:not(.is-scrolled):not(.is-open) .ve-nav-list .current-menu-item > a { background: rgba(255, 255, 255, 0.14); }
.has-transparent-header .ve-header:not(.is-scrolled):not(.is-open) .ve-burger span { background: #fff; }
.has-transparent-header .ve-header:not(.is-scrolled):not(.is-open) .ve-brand-logo { filter: brightness(0) invert(1); }
.has-transparent-header .ve-site { margin-top: calc(-1 * var(--ve-header-h)); }
.has-transparent-header .vsp-hero { margin-top: 0; padding-top: var(--ve-header-h); }
.has-transparent-header .ve-page-hero.has-image { padding-top: calc(var(--ve-header-h) + 3rem); }

@media (max-width: 1080px) {
	.ve-header-phone span { display: none; }
	.ve-nav-list a { padding-inline: 0.6em; font-size: 0.88rem; }
}
@media (max-width: 900px) {
	.ve-burger { display: flex; }
	.ve-header-cta, .ve-header-phone { display: none; }
	.ve-nav { position: fixed; inset: var(--ve-header-h) 0 0 0; background: var(--vsp-paper); padding: 1.5rem; overflow: auto; transform: translateX(100%); visibility: hidden; transition: transform 0.4s var(--ve-ease), visibility 0s 0.4s; display: flex; flex-direction: column; gap: 1.5rem; z-index: 899; }
	.ve-header.is-open .ve-nav { transform: none; visibility: visible; transition: transform 0.4s var(--ve-ease); }
	.ve-nav-list { flex-direction: column; gap: 0; }
	.ve-nav-list a { display: block; font-family: var(--vsp-font-display); font-size: 1.6rem; font-weight: 500; padding: 0.5em 0.25em; border-radius: 0; border-bottom: 1px solid var(--vsp-line); }
	.ve-nav-list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; background: transparent; }
	.ve-nav-list .sub-menu a { font-size: 1.1rem; font-family: var(--vsp-font-body); font-weight: 600; }
	.ve-nav-mobile-extras { display: flex; flex-direction: column; gap: 0.75rem; }
	.ve-nav-phone { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; text-decoration: none; color: var(--vsp-ink); font-size: 1.1rem; }
	.ve-nav-mobile-extras .vsp-btn { justify-content: center; }
	.has-transparent-header .ve-header.is-open { background: var(--vsp-paper); }
}

/* ---- Page heads ----------------------------------------------------------- */
.ve-page-head { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.ve-page-head.has-image { color: #fff; min-height: 46vh; display: flex; align-items: flex-end; isolation: isolate; padding-top: 6rem; }
.ve-page-head.has-image .vsp-h1, .ve-page-head.has-image .vsp-lead { color: #fff; }
.ve-page-head-media { position: absolute; inset: 0; z-index: -1; }
.ve-page-head-media img { width: 100%; height: 100%; object-fit: cover; }
.ve-page-head-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 35, 63, 0.25), rgba(16, 35, 63, 0.82)); }
.ve-page-content { padding-bottom: clamp(3rem, 6vw, 5rem); }
.ve-prose { max-width: 74ch; font-size: 1.05rem; line-height: 1.75; }
.ve-prose > * + * { margin-top: 1.1em; }
.ve-prose h2 { font-size: 1.9rem; margin-top: 2em; }
.ve-prose h3 { font-size: 1.4rem; margin-top: 1.6em; }
.ve-prose a { text-decoration-color: var(--vsp-brass); text-underline-offset: 3px; }
.ve-prose img { border-radius: var(--vsp-radius); }
.ve-prose blockquote { margin: 1.5em 0; padding: 1rem 1.5rem; border-left: 3px solid var(--vsp-brass); background: var(--vsp-stone); border-radius: 0 var(--vsp-radius-sm) var(--vsp-radius-sm) 0; font-family: var(--vsp-font-display); font-size: 1.2em; font-style: italic; }
.ve-prose .vsp-form, .ve-prose .vsp-section, .ve-prose .ve-cta, .ve-prose .ve-split, .ve-prose .ve-features, .ve-prose .ve-faq { max-width: none; }
.ve-main--full > .vsp-section, .ve-main--full > .ve-features, .ve-main--full > .ve-faq, .ve-main--full > .ve-split, .ve-main--full > .vsp-collection { width: min(100% - 2.5rem, var(--vsp-container)); margin-inline: auto; }
.ve-main--full > p:empty { display: none; }
.ve-main--full .vsp-form { max-width: 820px; margin-inline: auto; }

/* ---- Sections ------------------------------------------------------------- */
.ve-section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.ve-section-inner { width: min(100% - 2.5rem, var(--vsp-container)); margin-inline: auto; }
.ve-section--narrow .ve-section-inner { max-width: 780px; }
.ve-section--narrow .ve-section-inner > h2, .ve-section--narrow .ve-section-inner > h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.ve-section--narrow .ve-section-inner > p { font-size: 1.08rem; line-height: 1.75; }
.ve-bg-stone { background: var(--vsp-stone); }
.ve-bg-ink { background: var(--vsp-ink); color: #fff; }
.ve-bg-ink h1, .ve-bg-ink h2, .ve-bg-ink h3, .ve-bg-ink .vsp-h2, .ve-bg-ink .vsp-lead { color: #fff; }
.ve-pad-0 { padding-block: 0; }
.ve-pad-small { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.ve-section .vsp-section { padding-block: 0; }

.ve-page-hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem); }
.ve-page-hero-inner { width: min(100% - 2.5rem, var(--vsp-container)); margin-inline: auto; max-width: 1240px; }
.ve-page-hero.has-image { color: #fff; min-height: 56vh; display: flex; align-items: flex-end; isolation: isolate; }
.ve-page-hero.has-image .vsp-h1, .ve-page-hero.has-image .vsp-lead { color: #fff; }
.ve-page-hero.has-image .vsp-eyebrow { color: var(--vsp-brass-2); }
.ve-page-hero-media { position: absolute; inset: 0; z-index: -1; }
.ve-page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.ve-page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 35, 63, 0.35), rgba(16, 35, 63, 0.85)); }
.ve-page-hero .vsp-h1 { max-width: 20ch; text-wrap: balance; }

.ve-cta { margin-block: clamp(2rem, 5vw, 4rem); border-radius: calc(var(--vsp-radius) + 8px); padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.ve-cta--ink { background: var(--vsp-ink); color: #fff; }
.ve-cta--ink::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(216, 182, 94, 0.28), transparent 65%); z-index: -1; }
.ve-cta--brass { background: var(--vsp-brass); color: #fff; }
.ve-cta--paper { background: var(--vsp-stone); color: var(--vsp-ink); }
.ve-cta-inner { max-width: 720px; margin-inline: auto; }
.ve-cta .vsp-eyebrow { color: var(--vsp-brass-2); }
.ve-cta--paper .vsp-eyebrow { color: var(--vsp-brass); }
.ve-cta-title { font-family: var(--vsp-font-display); font-weight: 500; font-size: clamp(1.9rem, 4vw, 3rem); color: inherit; margin: 0 0 0.75rem; letter-spacing: -0.015em; text-wrap: balance; }
.ve-cta-text { font-size: 1.1rem; opacity: 0.88; margin: 0 auto 1.75rem; max-width: 56ch; line-height: 1.6; }
.ve-cta-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.ve-btn-light { --fg: #fff; border-color: rgba(255, 255, 255, 0.4); }
.ve-btn-light:hover { border-color: #fff; }
.ve-cta--paper .ve-btn-light { --fg: var(--vsp-ink); border-color: var(--vsp-line); }

.ve-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.ve-split.is-reverse .ve-split-media { order: 2; }
.ve-split-media { position: relative; border-radius: var(--vsp-radius); overflow: hidden; aspect-ratio: 4 / 3.3; box-shadow: var(--vsp-shadow); }
.ve-split-media img { width: 100%; height: 100%; object-fit: cover; }
.ve-split-caption { position: absolute; left: 1rem; bottom: 1rem; padding: 0.5em 0.9em; background: rgba(255, 255, 255, 0.92); border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: var(--vsp-ink); backdrop-filter: blur(6px); }
.ve-split-text { font-size: 1.05rem; line-height: 1.7; color: var(--vsp-text); margin: 1rem 0 1.5rem; }
.ve-split-text ul { padding-left: 1.2em; }
.ve-split-text li { margin: 0.35em 0; }
@media (max-width: 800px) { .ve-split { grid-template-columns: 1fr; } .ve-split.is-reverse .ve-split-media { order: 0; } }

.ve-features { padding-block: clamp(2.5rem, 6vw, 5rem); }
.ve-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.ve-features-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ve-features-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ve-feature { background: #fff; border: 1px solid var(--vsp-line); border-radius: var(--vsp-radius); padding: 1.75rem; transition: transform 0.3s var(--ve-ease), box-shadow 0.3s; }
.ve-feature:hover { transform: translateY(-4px); box-shadow: var(--vsp-shadow); }
.ve-feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--vsp-stone); color: var(--vsp-brass); margin-bottom: 1rem; }
.ve-feature-icon .vsp-icon { width: 1.5rem; height: 1.5rem; }
.ve-feature-n { display: block; font-family: var(--vsp-font-display); font-size: 2.6rem; color: var(--vsp-brass); line-height: 1; margin-bottom: 0.75rem; font-weight: 500; }
.ve-feature h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }
.ve-feature p { margin: 0; color: var(--vsp-muted); line-height: 1.6; font-size: 0.97rem; }
@media (max-width: 900px) { .ve-features-grid, .ve-features-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ve-features-grid, .ve-features-grid--4, .ve-features-grid--2 { grid-template-columns: 1fr; } }

.ve-columns { columns: 2; column-gap: 3rem; }
@media (max-width: 760px) { .ve-columns { columns: 1; } }

.ve-faq { padding-block: clamp(2rem, 5vw, 4rem); max-width: 820px; }
.ve-faq-list { margin-top: 1.5rem; }
.ve-q { border-bottom: 1px solid var(--vsp-line); }
.ve-q summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; cursor: pointer; list-style: none; font-family: var(--vsp-font-display); font-size: 1.2rem; font-weight: 500; color: var(--vsp-ink); }
.ve-q summary::-webkit-details-marker { display: none; }
.ve-q summary .vsp-icon { transition: transform 0.25s; color: var(--vsp-brass); }
.ve-q[open] summary .vsp-icon { transform: rotate(90deg); }
.ve-q-body { padding: 0 0 1.25rem; color: var(--vsp-text); line-height: 1.7; max-width: 68ch; }

.ve-404 { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; max-width: 820px; margin-inline: auto; }
.ve-404 .vsp-lead { margin-inline: auto; margin-bottom: 2rem; }
.ve-404 .vsp-search-form--bar .vsp-sf-tabs { margin-bottom: 1rem; }
.ve-posts { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); padding-bottom: 4rem; }
.ve-post { background: #fff; border: 1px solid var(--vsp-line); border-radius: var(--vsp-radius); overflow: hidden; }
.ve-post-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.ve-post-body { padding: 1.25rem; }
.ve-post-title { font-size: 1.3rem; margin: 0 0 0.5rem; }
.ve-post-title a { text-decoration: none; }

/* ---- Footer ---------------------------------------------------------------- */
.ve-footer { background: var(--vsp-ink); color: rgba(255, 255, 255, 0.78); margin-top: clamp(3rem, 7vw, 6rem); font-family: var(--vsp-font-body); }
.ve-footer-inner { width: min(100% - 2.5rem, 1320px); margin-inline: auto; padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.ve-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.ve-footer .ve-brand { color: #fff; margin-bottom: 1rem; }
.ve-footer .ve-brand-logo { filter: brightness(0) invert(1); }
.ve-footer-brand p { max-width: 38ch; line-height: 1.65; margin: 0 0 1.25rem; }
.ve-social { display: flex; gap: 0.5rem; }
.ve-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; transition: background 0.2s; }
.ve-social a:hover { background: rgba(255, 255, 255, 0.12); }
.ve-social svg { width: 18px; height: 18px; }
.ve-footer-col h3 { color: #fff; font-family: var(--vsp-font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin: 0.4rem 0 1rem; }
.ve-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ve-footer-col li { margin: 0 0 0.55rem; }
.ve-footer-col a { color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: color 0.2s; }
.ve-footer-col a:hover { color: #fff; }
.ve-footer-line { display: flex; align-items: center; gap: 0.5em; color: #fff; text-decoration: none; font-weight: 600; margin-bottom: 0.6rem; }
.ve-footer-line .vsp-icon { color: var(--vsp-brass-2); }
.ve-footer-contact address { font-style: normal; line-height: 1.6; margin-top: 0.75rem; }
.ve-footer .vsp-portals { padding-block: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.ve-footer .vsp-portals-title { color: rgba(255, 255, 255, 0.6); }
.ve-footer .vsp-portal-badge--own { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.ve-footer-legal { padding-top: 1.5rem; }
.ve-footer .vsp-compliance { color: rgba(255, 255, 255, 0.55); max-width: 90ch; }
.ve-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }
.ve-footer-bottom p { margin: 0; }
.ve-legal-links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.ve-legal-links a { color: inherit; text-decoration: none; }
.ve-legal-links a:hover { color: #fff; }
.ve-credit a { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: 0.01em; }
@media (max-width: 900px) { .ve-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ve-footer-grid { grid-template-columns: 1fr; } }

/* ---- WordPress bits --------------------------------------------------------- */
.alignwide { width: min(100% - 2.5rem, 1240px); margin-inline: auto; }
.alignfull { width: 100%; }
.wp-block-image img { border-radius: var(--vsp-radius); }
/* Pagelayer compatibility: don't constrain its rows */
.ve-main--full .pagelayer-row, .ve-main--full .p-row { max-width: none; }
.ve-prose .pagelayer-row { max-width: none; }
