/* ==========================================================================
   Hidden Valley — theme layer (tokens, base, header, footer, mobile bar)
   Widget styles live in the Hidden Valley Lots plugin (hv.css).
   ========================================================================== */

:root {
	--hv-ink: #0e1f24;
	--hv-ink-2: #16303a;
	--hv-ink-3: #22434f;
	--hv-paper: #fbf9f4;
	--hv-sand-50: #f5efe2;
	--hv-sand: #ead7a9;
	--hv-teal: #3cb2c1;
	--hv-teal-d: #1d8796;
	--hv-lime: #b5cf6a;
	--hv-green: #8ea335;
	--hv-olive: #6f7a22;
	--hv-text: #13252b;
	--hv-muted: #5a6a6f;
	--hv-line: rgba(14, 31, 36, .12);
	--hv-line-inv: rgba(255, 255, 255, .16);

	--hv-st-available: #a6cf45;
	--hv-st-under_offer: #e8b04a;
	--hv-st-sold: #c8553d;
	--hv-st-hold: #8a9ba8;

	--hv-accent: var(--hv-lime);
	--hv-accent-ink: #172204;

	--hv-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--hv-radius: 18px;
	--hv-radius-sm: 10px;
	--hv-gutter: clamp(16px, 4vw, 48px);
	--hv-max: 1440px;
	--hv-header-h: 76px;
	--hv-shadow: 0 24px 60px -24px rgba(14, 31, 36, .35);
	--hv-ease: cubic-bezier(.2, .7, .1, 1);
}

/* Market accents: East = teal, WA = lime. */
.hv-market-east { --hv-accent: var(--hv-teal); --hv-accent-ink: #04262b; }
.hv-market-west { --hv-accent: var(--hv-lime); --hv-accent-ink: #172204; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hv-header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--hv-paper);
	color: var(--hv-text);
	font-family: var(--hv-font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--hv-accent); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.hv-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--hv-accent); color: var(--hv-accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.hv-skip:focus { top: 12px; }

.hv-kicker { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--hv-muted); }

/* ---------- Buttons ---------- */
.hv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
	font-weight: 700; font-size: 16px; letter-spacing: -.005em; line-height: 1.1;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform .25s var(--hv-ease), background-color .2s, color .2s, box-shadow .25s;
}
.hv-btn:hover { transform: translateY(-2px); }
.hv-btn--accent { background: var(--hv-accent); color: var(--hv-accent-ink); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--hv-accent) 70%, transparent); }
.hv-btn--ink { background: var(--hv-ink); color: #fff; }
.hv-btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.hv-btn--ghost:hover { background: rgba(255, 255, 255, .2); }
.hv-btn--line { background: transparent; color: var(--hv-ink); box-shadow: inset 0 0 0 1.5px var(--hv-ink); }
.hv-btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ---------- Header ---------- */
.hv-header {
	position: fixed; inset: 0 0 auto; z-index: 90;
	color: #fff;
	transition: background-color .35s, box-shadow .35s, transform .35s var(--hv-ease);
	padding-top: env(safe-area-inset-top);
}
.hv-header::before {
	content: ""; position: absolute; inset: 0 0 -40px; pointer-events: none;
	background: linear-gradient(180deg, rgba(8, 18, 22, .55), rgba(8, 18, 22, 0));
	transition: opacity .35s;
}
.hv-header.is-solid, .hv-solid-header .hv-header { background: rgba(14, 31, 36, .94); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--hv-line-inv); }
.hv-header.is-solid::before, .hv-solid-header .hv-header::before { opacity: 0; }
.hv-header.is-hidden { transform: translateY(-100%); }
.hv-header__inner {
	position: relative; display: flex; align-items: center; gap: 24px;
	max-width: 1480px; margin: 0 auto; height: var(--hv-header-h); padding: 0 var(--hv-gutter);
}
.hv-header__brand { display: block; flex: 0 0 auto; }
.hv-header__brand .hv-logo { display: block; width: 176px; height: auto; }
.hv-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.hv-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.hv-nav__list a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; opacity: .9; transition: background-color .2s, opacity .2s; }
.hv-nav__list a:hover, .hv-nav__list .current-menu-item > a { opacity: 1; background: rgba(255, 255, 255, .12); }
.hv-header__actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.hv-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.hv-switch__opt { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; color: rgba(255, 255, 255, .8); transition: background-color .2s, color .2s; }
.hv-switch__opt:hover { color: #fff; }
.hv-switch__opt.is-active { background: var(--hv-accent); color: var(--hv-accent-ink); }
.hv-switch--lg .hv-switch__opt { padding: 12px 18px; font-size: 15px; }

.hv-lotsbadge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.hv-lotsbadge:hover { background: rgba(255, 255, 255, .16); }
.hv-lotsbadge__n { font-weight: 800; font-variant-numeric: tabular-nums; }
.hv-lotsbadge__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hv-st-available); box-shadow: 0 0 0 0 rgba(166, 207, 69, .7); animation: hv-pulse 2.2s infinite; display: inline-block; }
@keyframes hv-pulse { 0% { box-shadow: 0 0 0 0 rgba(166, 207, 69, .65); } 70% { box-shadow: 0 0 0 9px rgba(166, 207, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(166, 207, 69, 0); } }
@media (prefers-reduced-motion: reduce) { .hv-lotsbadge__dot { animation: none; } }

.hv-burger { display: none; position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); cursor: pointer; }
.hv-burger span:not(.screen-reader-text) { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--hv-ease), top .3s; }
.hv-burger span:nth-child(1) { top: 18px; }
.hv-burger span:nth-child(2) { top: 26px; }
.hv-burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.hv-burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.hv-drawer { position: fixed; inset: 0; z-index: 85; background: var(--hv-ink); color: #fff; padding: calc(var(--hv-header-h) + env(safe-area-inset-top) + 16px) var(--hv-gutter) 32px; overflow-y: auto; }
.hv-drawer[hidden] { display: none; }
.hv-drawer .hv-nav__list { flex-direction: column; gap: 0; }
.hv-drawer .hv-nav__list a { font-size: 30px; font-weight: 800; letter-spacing: -.02em; padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--hv-line-inv); }
.hv-drawer__label { margin: 32px 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; font-weight: 700; }
.hv-drawer__phone { display: block; margin-top: 28px; font-weight: 700; text-decoration: none; color: var(--hv-accent); }
body.hv-drawer-open { overflow: hidden; }


@media (max-width: 760px) {
	:root { --hv-header-h: 64px; }
	.hv-header__brand .hv-logo { width: 138px; }
	.hv-header .hv-switch, .hv-header__cta, .hv-lotsbadge__t { display: none; }
	.hv-lotsbadge { padding: 8px 12px; }
}

/* ---------- Main + simple pages ---------- */
.hv-main { display: block; min-height: 60vh; }
.hv-solid-header .hv-main { padding-top: var(--hv-header-h); }
.hv-page { max-width: 860px; margin: 0 auto; padding: calc(var(--hv-header-h) + 64px) var(--hv-gutter) 96px; }
.hv-page__title { font-size: clamp(36px, 5vw, 60px); }
.hv-prose { font-size: 18px; }
.hv-prose a { color: var(--hv-teal-d); }
.hv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.hv-page--archive { max-width: var(--hv-max); }
.hv-card { background: #fff; border-radius: var(--hv-radius); overflow: hidden; box-shadow: 0 1px 0 var(--hv-line); }
.hv-card__img img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hv-card__body { padding: 20px 22px; }
.hv-card__meta { font-size: 13px; color: var(--hv-muted); margin: 0 0 6px; }
.hv-card__title { font-size: 21px; }
.hv-card__title a { text-decoration: none; }

.hv-404 { min-height: 80vh; display: grid; place-content: center; text-align: center; padding: calc(var(--hv-header-h) + 40px) var(--hv-gutter) 80px; background: var(--hv-ink); color: #fff; }
.hv-404 h1 { font-size: clamp(40px, 7vw, 88px); }
.hv-404 .hv-btn--line { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }

/* ---------- Footer ---------- */
.hv-footer { background: var(--hv-ink); color: rgba(255, 255, 255, .86); padding: 0 var(--hv-gutter) calc(32px + env(safe-area-inset-bottom)); }
.hv-footer a { text-decoration: none; }
.hv-footer a:hover { color: var(--hv-accent); }
.hv-footer__cta { max-width: var(--hv-max); margin: 0 auto; padding: clamp(64px, 10vw, 128px) 0 clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--hv-line-inv); }
.hv-footer__kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--hv-accent); }
.hv-footer__big { font-size: clamp(44px, 8.4vw, 124px); font-weight: 800; line-height: .94; letter-spacing: -.035em; color: #fff; text-transform: uppercase; margin-bottom: 36px; }
.hv-footer__big span { color: var(--hv-accent); }
.hv-footer__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hv-footer__grid { max-width: var(--hv-max); margin: 0 auto; padding: 56px 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; font-size: 15px; }
.hv-footer__brand .hv-logo { width: 200px; margin-bottom: 18px; }
.hv-footer__brand p { max-width: 34ch; opacity: .75; }
.hv-footer__h { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: rgba(255, 255, 255, .55); margin-bottom: 14px; }
.hv-footer__small { font-size: 13px; opacity: .6; }
.hv-footer__menu, .hv-footer .hv-nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hv-footer .hv-nav__list a { padding: 0; background: none; font-weight: 500; font-size: 15px; }
.hv-footer__legal { max-width: var(--hv-max); margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--hv-line-inv); display: flex; justify-content: space-between; gap: 32px; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.hv-footer__legal p { max-width: 90ch; margin: 0; }
@media (max-width: 900px) {
	.hv-footer__grid { grid-template-columns: 1fr 1fr; }
	.hv-footer__brand { grid-column: 1 / -1; }
	.hv-footer__legal { flex-direction: column; gap: 10px; }
}

/* ---------- Mobile action bar ---------- */
.hv-mbar { display: none; }
@media (max-width: 760px) {
	.hv-mbar {
		position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 80;
		display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 6px;
		border-radius: 999px; background: rgba(14, 31, 36, .92); backdrop-filter: blur(12px);
		box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
		transform: translateY(140%); transition: transform .4s var(--hv-ease);
	}
	.hv-mbar.is-in { transform: none; }
	.hv-mbar__btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; }
	.hv-mbar__btn svg { width: 18px; height: 18px; }
	.hv-mbar__btn--primary { background: var(--hv-accent); color: var(--hv-accent-ink); }
	.hv-mbar__btn--primary .hv-lotsbadge__dot { background: var(--hv-accent-ink); animation: none; }
	.hv-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
	body.hv-no-mbar .hv-mbar { display: none; }
}

/* ---------- Elementor integration ---------- */
.elementor-page .hv-main > .elementor { overflow: clip; }
.e-con { --container-max-width: var(--hv-max); }
.elementor-widget-text-editor { font-size: 18px; }

/* Market switch label: "Looking from  East Coast | West Coast" */
.hv-switch { align-items: center; }
.hv-switch__label { padding: 0 8px 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.hv-drawer .hv-switch__label { display: none; }


/* Full-width header */
.hv-header__inner { max-width: none; padding: 0 clamp(20px, 2.4vw, 44px); gap: clamp(16px, 2vw, 32px); }
.hv-nav { justify-content: flex-start; }
/* Header fit, widest first: drop the badge words, then the "Looking from" label, then go to the burger. */
.hv-nav__list a { white-space: nowrap; }
@media (max-width: 1640px) { .hv-nav__list a { padding: 10px 11px; } }
@media (max-width: 1600px) { .hv-header .hv-lotsbadge__t { display: none; } }
@media (max-width: 1500px) { .hv-header .hv-switch__label { display: none; } }
@media (max-width: 1300px) { .hv-nav { display: none; } .hv-burger { display: inline-block; } .hv-header__actions { margin-left: auto; } }
@media (max-width: 760px) { .hv-header .hv-switch, .hv-header__cta, .hv-lotsbadge__t { display: none; } }
