/* Apex Avenue Realty — shared base for the homepage variants (each variant has its own stylesheet). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body.hv { margin: 0; background: var(--bg, #fff); color: var(--ink, #111); font: 400 16px/1.6 var(--font-body, system-ui, sans-serif); overflow-x: clip; -webkit-font-smoothing: antialiased; }
:where(.hv) img { max-width: 100%; display: block; }
:where(.hv) a { color: inherit; }
:where(.hv) :is(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.hv) button { cursor: pointer; }
:where(.hv) :is(h1, h2, h3) { margin: 0; font-family: var(--font-head, inherit); line-height: 1.12; text-wrap: balance; }
:where(.hv) p { margin: 0; }
:where(.hv) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.hv) :is(figure, blockquote, address) { margin: 0; font-style: normal; }
.hv [hidden] { display: none !important; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; vertical-align: -0.18em; }
.hv-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hv-skip { position: absolute; left: 12px; top: -60px; z-index: 3000; background: #fff; color: #000; padding: 10px 16px; border-radius: 6px; }
.hv-skip:focus { top: 12px; }
.hv :focus-visible { outline: 2px solid var(--focus, #2a7be8); outline-offset: 3px; }
html.hv-locked { overflow: hidden; }

.hv-loading { padding: 2rem 0; opacity: .6; }
.hv-empty { padding: 1.5rem 0; }
.hv-empty a { text-decoration: underline; }

.hv-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.hv-reveal.is-in { opacity: 1; transform: none; }

/* forms (lead forms are sent by js/site.js) */
.hv-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hv-f { display: grid; gap: 6px; min-width: 0; font-size: .82rem; font-weight: 600; }
.hv-f--wide, .hv-form .hv-submit, .hv-form .form-privacy-note, .hv-form .form-msg { grid-column: 1 / -1; }
.hv-f input, .hv-f select, .hv-f textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line, #d5dbe5); border-radius: var(--r-input, 8px); background: var(--field, #fff); color: var(--field-ink, #111); font-size: 16px; font-weight: 400; }
.hv-f textarea { min-height: 90px; resize: vertical; }
.hv-submit { min-height: 48px; border: 0; border-radius: var(--r-btn, 8px); background: var(--accent, #0b46c8); color: var(--accent-ink, #fff); font-weight: 700; letter-spacing: .01em; }
.hv-submit:hover { filter: brightness(1.08); }
.hv-submit:disabled { opacity: .6; }
@media (max-width: 560px) { .hv-form { grid-template-columns: 1fr; } }

/* modal */
.hv-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(4, 10, 24, .62); backdrop-filter: blur(4px); }
.hv-modal-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--modal-bg, #fff); color: var(--modal-ink, #111); border-radius: var(--r-card, 14px); padding: 28px; }
.hv-modal-box h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.hv-modal-box > p { margin-bottom: 1rem; opacity: .8; }
.hv-modal-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; }

/* generic card grid ([data-hv-grid]) */
.hv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 22px; }
.hv-card { display: flex; flex-direction: column; min-width: 0; background: var(--card, #fff); border-radius: var(--r-card, 12px); overflow: hidden; border: 1px solid var(--line, #e3e8f0); }
.hv-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe6f0; }
.hv-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hv-card:hover .hv-card-media img { transform: scale(1.04); }
.hv-card-tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: #111; font-size: .72rem; font-weight: 700; }
.hv-card-body { padding: 16px 18px 18px; display: grid; gap: 4px; }
.hv-card-dev { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; opacity: .65; }
.hv-card h3 { font-size: 1.12rem; }
.hv-card h3 a { text-decoration: none; }
.hv-card-sub { font-size: .86rem; opacity: .75; }
.hv-card-price { margin-top: 6px; font-weight: 700; color: var(--accent-text, inherit); }
.hv-card-price span { font-weight: 400; opacity: .7; font-size: .85em; }

/* privacy note / form messages added by site.js */
.hv .form-privacy-note a { color: inherit; }

/* design switcher sits above the variants' bottom bars */
.hs-bar { z-index: 1800 !important; }
