/* ==========================================================================
   Nationwide Home Center — public site styles
   Colors are CSS variables; Admin → Settings can override the brand colors.
   ========================================================================== */
:root {
  --navy: #0E2A47;
  --navy-2: #163A5F;
  --navy-3: #21507f;
  --red: #C8322E;
  --red-2: #a72824;
  --gold: #E9A23B;
  --ink: #17212c;
  --text: #3a4654;
  --muted: #6b7785;
  --line: #e2e7ed;
  --bg: #ffffff;
  --soft: #f4f7fa;
  --sky: #eaf2f9;
  --cream: #faf6ef;
  --ok: #1f8a4c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(14, 42, 71, .06), 0 8px 24px rgba(14, 42, 71, .08);
  --shadow-lg: 0 20px 50px rgba(14, 42, 71, .18);
  --container: 1240px;
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.bg-soft { background: var(--soft); }
.bg-sky { background: var(--sky); }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: #d6e1ec; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.center { text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.kicker::before { content: ""; width: 22px; height: 3px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; transition: .18s ease; line-height: 1.2; white-space: nowrap; cursor: pointer; text-align: center; }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-2); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(200, 50, 46, .3); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--sky); color: var(--navy); }
.btn-ghost-white { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost-white:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Promo bar & header ---------- */
.promo-bar { background: var(--red); color: #fff; font-size: .9rem; text-align: center; padding: 9px 16px; }
.promo-bar a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.topbar { background: var(--navy); color: #c8d6e5; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold); }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 3px 10px; font-weight: 700; font-size: .75rem; letter-spacing: .05em; }
.lang-switch a.active { background: #fff; color: var(--navy); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(14, 42, 71, .08); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); flex: none; }
.brand:hover { color: var(--navy); }
.brand-logo { height: 52px; width: auto; max-width: 300px; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.28rem; letter-spacing: .02em; }
.brand-sub { font-weight: 700; font-size: .66rem; letter-spacing: .34em; color: var(--red); margin-top: 5px; }
.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a, .main-nav > ul > li > button { display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-weight: 650; font-size: .95rem; background: none; border: 0; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > button:hover, .main-nav > ul > li.active > a, .main-nav > ul > li.active > button { color: var(--red); background: var(--soft); }
.main-nav .icon { width: 16px; height: 16px; }
.dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 14px; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: .93rem; }
.dropdown a:hover { background: var(--soft); color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; border: 0; background: var(--soft); color: var(--navy); }
.icon-btn:hover { background: var(--sky); color: var(--red); }
.menu-toggle { display: none; }

.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px 0; display: none; }
.search-panel.open { display: block; }
.search-form { display: flex; gap: 10px; }
.search-form input { flex: 1; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(9, 22, 38, .55); opacity: 0; transition: .25s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 88vw); background: #fff; transform: translateX(100%); transition: .3s ease; display: flex; flex-direction: column; overflow-y: auto; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer nav ul { list-style: none; margin: 0; padding: 8px 12px; }
.drawer nav a { display: block; padding: 12px 10px; color: var(--ink); font-weight: 650; border-radius: 9px; }
.drawer nav a:hover { background: var(--soft); }
.drawer nav .sub a { padding-left: 26px; font-weight: 550; color: var(--text); font-size: .95rem; }
.drawer-foot { margin-top: auto; padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 700; font-size: .85rem; color: var(--ink); }
.field .help { font-size: .78rem; color: var(--muted); }
.input, .select, .textarea, .search-form input { width: 100%; border: 1.5px solid #cfd8e2; background: #fff; border-radius: 11px; padding: 12px 14px; font-size: .97rem; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus, .search-form input:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(33, 80, 127, .12); }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2A47' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red); }
.field-error { color: var(--red); font-size: .8rem; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1.5px solid #cfd8e2; border-radius: 999px; font-size: .88rem; font-weight: 600; background: #fff; transition: .15s; }
.choice input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.consent { font-size: .75rem; color: var(--muted); line-height: 1.55; }
.consent a { text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; }
.alert { padding: 14px 18px; border-radius: 11px; font-weight: 600; font-size: .93rem; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: #e7f6ec; color: #17633a; border: 1px solid #bfe5cc; }
.alert-error { background: #fdecec; color: #8f1f1c; border: 1px solid #f5c4c2; }
.alert-info { background: var(--sky); color: var(--navy); border: 1px solid #cfe0ef; }

.lead-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 36px; border: 1px solid var(--line); }
.lead-card h2 { font-size: 1.7rem; }
.lead-form .btn[type=submit] { margin-top: 6px; }
.lead-form.sending { opacity: .6; pointer-events: none; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--navy); }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video, .hero-media object { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 25, 44, .86) 0%, rgba(9, 25, 44, .62) 42%, rgba(9, 25, 44, .12) 75%), linear-gradient(0deg, rgba(9, 25, 44, .45), transparent 40%); }
.hero .container { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 80px; }
.hero-content { max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: 1.18rem; color: #dbe6f1; max-width: 560px; }
.hero .kicker { color: var(--gold); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-search { margin-top: 28px; display: flex; background: #fff; border-radius: 999px; padding: 6px; max-width: 520px; box-shadow: var(--shadow-lg); }
.hero-search input { flex: 1; border: 0; padding: 12px 18px; border-radius: 999px; min-width: 0; color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-trust { display: flex; gap: 26px; margin-top: 36px; flex-wrap: wrap; font-size: .92rem; color: #cbd9e6; }
.hero-trust span { display: inline-flex; gap: 8px; align-items: center; }
.hero-trust .icon { color: var(--gold); }
@keyframes drift { from { transform: translateX(-40px); } to { transform: translateX(40px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 25, 44, .9), rgba(9, 25, 44, .55) 60%, rgba(9, 25, 44, .25)); }
.page-hero .container { position: relative; padding: 96px 24px 84px; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: #dbe6f1; max-width: 640px; font-size: 1.12rem; margin: 0; }
.page-hero.plain { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); }
.page-hero.plain .container { padding: 64px 24px 56px; }
.page-hero.plain::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .04); }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: #b9c9d9; margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--gold); }

/* ---------- Home cards ---------- */
.home-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; color: var(--text); height: 100%; }
.home-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.home-card-media { position: relative; aspect-ratio: 3 / 2; background: var(--soft); overflow: hidden; }
.home-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.home-card:hover .home-card-media img { transform: scale(1.05); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #fff; color: var(--navy); }
.badge-red { background: var(--red); color: #fff; }
.badge-gold { background: var(--gold); color: #1d1d1d; }
.badge-navy { background: var(--navy); color: #fff; }
.badge-soft { background: var(--sky); color: var(--navy); }
.home-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.home-card-builder { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.home-card h3 { margin: 4px 0 12px; font-size: 1.2rem; }
.home-card-specs { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink); font-weight: 600; }
.home-card-specs span { display: inline-flex; align-items: center; gap: 6px; }
.home-card-specs .icon { color: var(--red); width: 18px; height: 18px; }
.home-card-price { font-weight: 800; color: var(--navy); margin-bottom: 8px; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 2px 24px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel.cols-3 .carousel-track { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
.carousel-nav { display: flex; gap: 10px; align-items: center; }
.carousel-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--navy); transition: .15s; }
.carousel-btn:hover:not(:disabled) { background: var(--navy); color: #fff; border-color: var(--navy); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-count { font-size: .85rem; font-weight: 700; color: var(--muted); min-width: 60px; text-align: center; }

/* ---------- Intro / stats / types ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.stacked-media { position: relative; padding: 0 0 60px 60px; }
.stacked-media img { border-radius: 20px; box-shadow: var(--shadow-lg); }
.stacked-media img:last-child { position: absolute; left: 0; bottom: 0; width: 55%; border: 8px solid #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; margin-top: -60px; position: relative; z-index: 3; }
.stat { padding: 28px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 2.3rem; color: var(--navy); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.stat span { font-size: .88rem; color: var(--muted); font-weight: 600; }
.type-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; display: flex; align-items: flex-end; color: #fff; }
.type-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.type-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9, 25, 44, .9) 0%, rgba(9, 25, 44, .1) 60%); }
.type-card:hover img { transform: scale(1.06); }
.type-card-body { position: relative; z-index: 2; padding: 24px; }
.type-card h3 { color: #fff; margin-bottom: 6px; }
.type-card p { color: #d2deea; font-size: .9rem; margin-bottom: 12px; }
.type-card .link-arrow { color: var(--gold); }
.type-card:hover { color: #fff; }

/* Store CTA band */
.store-band { position: relative; border-radius: 24px; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; padding: 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; overflow: hidden; }
.store-band-mark { position: absolute; right: -60px; bottom: -120px; width: 380px; height: 380px; object-fit: contain; opacity: .07; pointer-events: none; }
.store-band > div, .store-band > form { position: relative; }
.store-band h2 { color: #fff; }
.store-band p { color: #cfdcea; }
.store-band form { display: flex; gap: 10px; background: rgba(255, 255, 255, .1); padding: 8px; border-radius: 999px; position: relative; }
.store-band input { flex: 1; border: 0; border-radius: 999px; padding: 14px 20px; min-width: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 18px; position: relative; z-index: 1; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 55px; left: 78px; right: -24px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: .94rem; }

/* Logo strip */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; align-items: center; }
.logo-strip img { height: 46px; width: auto; filter: grayscale(1); opacity: .7; transition: .2s; }
.logo-strip a:hover img, .logo-strip img:hover { filter: none; opacity: 1; }

/* Finance band */
.finance-band { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; background: var(--cream); border-radius: 20px; padding: 36px 40px; border: 1px solid #efe4d1; }
.finance-band .ic { width: 72px; height: 72px; border-radius: 18px; background: var(--gold); color: #fff; display: grid; place-items: center; }
.finance-band .ic .icon { width: 36px; height: 36px; }
.finance-band h3 { margin-bottom: 6px; }
.finance-band p { margin: 0; }

/* Post cards */
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; height: 100%; transition: .2s; color: var(--text); }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--text); }
.post-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.post-cat { color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.post-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.post-card p { font-size: .93rem; color: var(--muted); }
.post-card .link-arrow { margin-top: auto; }
.post-featured { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); color: var(--text); }
.post-featured:hover { color: var(--text); box-shadow: var(--shadow-lg); }
.post-featured img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.post-featured .post-card-body { padding: 36px; justify-content: center; }
.post-featured h3 { font-size: 1.5rem; }

/* ---------- Catalog (find a home) ---------- */
.catalog { display: grid; grid-template-columns: 290px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.filters-head h2 { font-size: 1.1rem; margin: 0; }
.filter-group { border-bottom: 1px solid var(--line); }
.filter-group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-weight: 750; color: var(--ink); cursor: pointer; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary .icon { transition: transform .2s; width: 18px; }
.filter-group[open] summary .icon { transform: rotate(180deg); }
.filter-body { padding: 0 20px 18px; display: grid; gap: 10px; }
.filter-body .check { font-size: .92rem; }
.filter-body .check small { color: var(--muted); margin-left: auto; }
.range-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.range-row .input { padding: 10px 12px; }
.seg { display: flex; border: 1.5px solid #cfd8e2; border-radius: 11px; overflow: hidden; }
.seg label { flex: 1; position: relative; text-align: center; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 0; font-size: .86rem; font-weight: 700; border-right: 1px solid #cfd8e2; }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.filters-foot { padding: 16px 20px; display: grid; gap: 8px; }
.catalog-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.catalog-count { font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.catalog-bar .select { width: auto; min-width: 220px; padding-top: 10px; padding-bottom: 10px; }
.catalog-search { display: flex; gap: 10px; margin-bottom: 18px; }
.catalog-search .input { flex: 1; }
.homes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; transition: opacity .2s; }
.homes-grid.loading { opacity: .4; }
.filter-toggle { display: none; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: .82rem; font-weight: 700; }
.chip .icon { width: 14px; height: 14px; }
.empty-state { text-align: center; padding: 60px 20px; background: var(--soft); border-radius: var(--radius); grid-column: 1 / -1; }
.empty-state .icon { width: 56px; height: 56px; color: var(--muted); margin: 0 auto 12px; }
.load-more-wrap { text-align: center; margin-top: 36px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 11px; display: inline-grid; place-items: center; border: 1px solid var(--line); font-weight: 700; color: var(--ink); background: #fff; }
.pagination a:hover { border-color: var(--navy); color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Home detail ---------- */
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: min(62vh, 560px); border-radius: 20px; overflow: hidden; position: relative; }
.detail-gallery a { display: block; overflow: hidden; background: var(--soft); }
.detail-gallery a:first-child { grid-row: 1 / 3; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.detail-gallery a:hover img { transform: scale(1.03); }
.detail-gallery .gallery-btn { position: absolute; right: 16px; bottom: 16px; }
.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; margin-top: 40px; }
.detail-title .home-card-builder { font-size: .85rem; }
.detail-title h1 { margin: 6px 0 14px; font-size: clamp(2rem, 4vw, 3rem); }
.spec-icons { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin: 24px 0 8px; }
.spec-icon { background: var(--soft); border-radius: 12px; padding: 16px; text-align: center; }
.spec-icon .icon { width: 26px; height: 26px; color: var(--red); margin: 0 auto 8px; }
.spec-icon strong { display: block; font-size: 1.3rem; color: var(--ink); line-height: 1.1; }
.spec-icon span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.detail-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.aside-card + .aside-card { margin-top: 18px; }
.aside-card .btn { width: 100%; }
.aside-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 20px; font-size: .92rem; }
.aside-card dt { color: var(--muted); font-weight: 600; }
.aside-card dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.detail-section { padding: 36px 0; border-top: 1px solid var(--line); }
.detail-section:first-of-type { border-top: 0; }
.detail-section h2 { font-size: 1.6rem; }
.media-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.tour-frame { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 16px; background: var(--soft); }
.floorplan-thumb { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; cursor: zoom-in; display: block; }
.disclaimer { font-size: .8rem; color: var(--muted); background: var(--soft); border-radius: 12px; padding: 16px 18px; margin-top: 18px; }
.spec-tabs { display: grid; grid-template-columns: 220px 1fr; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.spec-tab-list { background: var(--soft); display: flex; flex-direction: column; padding: 8px; gap: 2px; }
.spec-tab-list button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; border: 0; border-radius: 10px; background: none; font-weight: 650; color: var(--text); font-size: .93rem; }
.spec-tab-list button .icon { color: var(--muted); width: 20px; height: 20px; }
.spec-tab-list button[aria-selected=true] { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.spec-tab-list button[aria-selected=true] .icon { color: var(--red); }
.spec-panel { padding: 24px 28px; }
.spec-panel[hidden] { display: none; }
.spec-panel h3 { font-size: 1.15rem; margin-bottom: 16px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin: 0; }
.spec-list div { border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.spec-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.spec-list dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; font-size: .95rem; }

/* Store cards */
.store-list { display: grid; gap: 14px; }
.store-state { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 26px 0 10px; }
.store-state:first-child { margin-top: 0; }
.store-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; transition: .15s; }
.store-card:hover, .store-card.highlight { border-color: var(--navy-3); box-shadow: var(--shadow); }
.store-card h4 { margin: 0 0 4px; font-size: 1.05rem; }
.store-card h4 a { color: var(--ink); }
.store-card h4 a:hover { color: var(--red); }
.store-card p { margin: 0; font-size: .88rem; color: var(--muted); }
.store-city { font-size: .78rem; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.store-actions { display: flex; gap: 8px; }
.store-actions a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--navy); }
.store-actions a:hover { background: var(--navy); color: #fff; }
.distance { display: inline-block; font-size: .75rem; font-weight: 800; color: var(--navy); background: var(--sky); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }

/* Locations page */
.locator { display: grid; grid-template-columns: 440px 1fr; gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; height: calc(100vh - var(--header-h) - 60px); min-height: 620px; background: #fff; }
.locator-side { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; }
.locator-form { padding: 20px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; background: var(--soft); }
.locator-form .row { display: flex; gap: 8px; }
.locator-form .row .input { flex: 1; }
.locator-form .select { width: auto; }
.locator-results { overflow-y: auto; padding: 20px; flex: 1; }
.locator-count { font-weight: 800; color: var(--ink); margin-bottom: 4px; }
#map { width: 100%; height: 100%; background: var(--sky); }
.map-fallback { display: grid; place-items: center; height: 100%; color: var(--muted); }

/* ---------- Content blocks ---------- */
.feature { display: flex; gap: 18px; }
.feature-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--sky); color: var(--navy); display: grid; place-items: center; flex: none; }
.feature-ic .icon { width: 28px; height: 28px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; height: 100%; }
.card-ic { width: 60px; height: 60px; border-radius: 16px; background: var(--navy); color: #fff; display: grid; place-items: center; margin-bottom: 20px; }
.card-ic .icon { width: 28px; height: 28px; }
.card-ic.red { background: var(--red); }
.card-ic.gold { background: var(--gold); }
.card h3 { margin-bottom: 10px; }
.card ul { margin: 0; padding-left: 1.1em; }
.card li + li { margin-top: 8px; }
.num-card { position: relative; padding: 32px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); height: 100%; }
.num-card .num { font-size: 3rem; font-weight: 800; color: var(--sky); line-height: 1; position: absolute; top: 20px; right: 24px; -webkit-text-stroke: 1.5px var(--navy-3); color: transparent; opacity: .4; }
.num-card h3 { padding-right: 60px; }
.prose { font-size: 1.05rem; color: var(--text); }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose img { border-radius: 14px; margin: 1.5em 0; }
.prose ul li, .prose ol li { margin-bottom: .45em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 4px solid var(--red); margin: 1.5em 0; padding: .5em 0 .5em 1.2em; font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; margin-top: 1px; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; }
.check-list.cols-3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 20px; box-shadow: var(--shadow-lg); }
.cta-band { background: var(--navy); border-radius: 24px; padding: 48px 56px; display: flex; justify-content: space-between; align-items: center; gap: 30px; color: #cfdcea; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: 6px; font-size: 1.9rem; }
.cta-band p { margin: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.cta-band::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--red); opacity: .18; right: -100px; top: -140px; }

/* Accordion */
.accordion { display: grid; gap: 12px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s; }
.acc-item[open] { box-shadow: var(--shadow); border-color: #cfdbe7; }
.acc-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 750; color: var(--ink); font-size: 1.04rem; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary .plus { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; transition: .2s; color: var(--navy); }
.acc-item[open] summary .plus { transform: rotate(180deg); background: var(--navy); color: #fff; }
.acc-body { padding: 0 24px 22px; color: var(--text); }
.acc-body p:last-child { margin-bottom: 0; }
.acc-step { font-size: .75rem; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: 2px; }

/* Tabs (outdoor living) */
.tabs-nav { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 6px; gap: 4px; margin-bottom: 40px; flex-wrap: wrap; }
.tabs-nav button { border: 0; background: none; padding: 12px 24px; border-radius: 999px; font-weight: 750; color: var(--text); }
.tabs-nav button[aria-selected=true] { background: var(--navy); color: #fff; }
.tab-panel[hidden] { display: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-grid a { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; display: block; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid a:hover img { transform: scale(1.05); }
.config-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; text-align: left; width: 100%; transition: .15s; }
.config-card:hover { border-color: var(--navy-3); box-shadow: var(--shadow); }
.config-card img { border-radius: 8px; background: var(--soft); margin-bottom: 12px; aspect-ratio: 4 / 3; object-fit: contain; width: 100%; }
.config-card small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.config-card strong { display: block; color: var(--ink); }

/* Guide */
.chapter-card { display: flex; gap: 22px; padding: 30px; border-radius: 18px; background: #fff; border: 1px solid var(--line); align-items: flex-start; transition: .2s; }
.chapter-card:hover { box-shadow: var(--shadow-lg); }
.chapter-num { width: 58px; height: 58px; border-radius: 16px; background: var(--red); color: #fff; font-weight: 800; font-size: 1.5rem; display: grid; place-items: center; flex: none; }
.chapter-card h3 { margin-bottom: 6px; }
.stepper { display: flex; gap: 0; margin-bottom: 40px; background: var(--soft); border-radius: 999px; padding: 6px; }
.stepper a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 999px; color: var(--text); font-weight: 700; }
.stepper a span { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .85rem; border: 1px solid var(--line); }
.stepper a.active { background: var(--navy); color: #fff; }
.stepper a.active span { background: var(--red); color: #fff; border-color: var(--red); }
.stepper a.done span { background: var(--ok); color: #fff; border-color: var(--ok); }
.guide-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

/* Sticky subnav (stepping stones) */
.subnav-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.subnav { position: sticky; top: calc(var(--header-h) + 30px); display: grid; gap: 4px; }
.subnav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-weight: 700; color: var(--text); }
.subnav a span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-size: .85rem; }
.subnav a.active, .subnav a:hover { background: var(--soft); color: var(--navy); }
.subnav a.active span { background: var(--red); color: #fff; }
.stone { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.stone:last-child { border-bottom: 0; }
.stone-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.stone-head .chapter-num { width: 52px; height: 52px; font-size: 1.3rem; }
.stone-head h2 { margin: 0; }

/* Warranty tiles */
.cov-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cov { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 12px; }
.cov .card-ic { margin: 0 auto 14px; }
.cov h4 { margin: 0; font-size: .95rem; }

/* Lender grid */
.lender-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.lender { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--muted); font-size: .82rem; font-weight: 700; transition: .2s; }
.lender img { height: 48px; width: auto; }
.lender:hover { border-color: var(--navy-3); box-shadow: var(--shadow); }

/* Builder rows */
.builder-row { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--line); align-items: start; }
.builder-row:last-child { border-bottom: 0; }
.builder-logo { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; place-items: center; aspect-ratio: 16 / 10; }
.builder-logo img { max-height: 90px; width: auto; }

/* Promo */
.countdown { display: flex; gap: 12px; margin: 24px 0; }
.countdown div { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 12px 8px; min-width: 76px; text-align: center; }
.countdown strong { display: block; font-size: 2rem; color: #fff; line-height: 1; }
.countdown span { font-size: .72rem; color: #cbd9e6; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.promo-badge { display: inline-block; background: var(--gold); color: #1d1d1d; font-weight: 800; padding: 6px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 16px; }
.fine-print { font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }

/* Share */
.share { display: flex; gap: 8px; align-items: center; }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--navy); }
.share a:hover, .share button:hover { background: var(--navy); color: #fff; }

/* Modal & lightbox */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 17, 30, .82); }
.modal-box { position: relative; background: #fff; border-radius: 18px; max-width: 1100px; width: 100%; max-height: 90vh; overflow: auto; padding: 24px; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.lightbox .modal-box { background: transparent; box-shadow: none; padding: 0; max-width: 1300px; overflow: visible; display: flex; flex-direction: column; align-items: center; }
.lightbox img:not([src]) { visibility: hidden; }
.lightbox img { max-height: 80vh; width: auto; border-radius: 12px; background: #fff; }
.lightbox .lb-caption { color: #cfdcea; margin-top: 12px; font-size: .9rem; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: -64px; }
.lightbox .lb-next { right: -64px; }
.lightbox .modal-close { top: -56px; right: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1f35; color: #a9bbcc; padding: 72px 0 0; font-size: .93rem; }
.site-footer a { color: #d5e1ec; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 52px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .icon { color: var(--gold); margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.socials a:hover { background: var(--red); color: #fff; }
.footer-search { display: flex; margin-top: 18px; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 4px; }
.footer-search input { flex: 1; background: none; border: 0; color: #fff; padding: 8px 14px; min-width: 0; }
.footer-search input::placeholder { color: #8ea3b8; }
.footer-search button { border: 0; background: var(--red); color: #fff; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.footer-bottom { margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.footer-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.ehl { display: inline-flex; gap: 8px; align-items: center; }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; border: 0; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: .2s; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top .icon { transform: rotate(-90deg); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { scroll-behavior: auto !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav > ul > li > a, .main-nav > ul > li > button { padding: 10px 10px; font-size: .9rem; }
  .carousel-track { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cov-grid { grid-template-columns: repeat(3, 1fr); }
  .lender-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1040px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(360px, 90vw); max-height: none; border-radius: 0; z-index: 120; transform: translateX(-105%); transition: transform .3s; top: 0; }
  .filters.open { transform: none; box-shadow: var(--shadow-lg); }
  .filter-toggle { display: inline-flex; }
  .homes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .locator { grid-template-columns: 1fr; height: auto; }
  .locator-side { border-right: 0; }
  #map { height: 380px; order: -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-grid, .split, .store-band { grid-template-columns: 1fr; gap: 36px; }
  .subnav-layout { grid-template-columns: 1fr; }
  .subnav { position: static; grid-auto-flow: column; overflow-x: auto; }
}
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .section { padding: 64px 0; }
  .section-sm { padding: 44px 0; }
  .container { padding: 0 18px; }
  .topbar .hide-sm { display: none; }
  .brand-logo { height: 42px; max-width: 220px; }
  .brand-name { font-size: 1.08rem; }
  .brand-sub { font-size: .58rem; letter-spacing: .28em; }
  .grid-2, .grid-3, .grid-4, .form-grid, .homes-grid { grid-template-columns: 1fr; }
  .carousel-track, .carousel.cols-3 .carousel-track { grid-auto-columns: 82%; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: -40px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .detail-gallery { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .detail-gallery a:first-child { grid-row: auto; aspect-ratio: 3 / 2; }
  .detail-gallery a:not(:first-child) { display: none; }
  .spec-tabs { grid-template-columns: 1fr; }
  .spec-tab-list { flex-direction: row; overflow-x: auto; }
  .spec-tab-list button { white-space: nowrap; }
  .spec-list { grid-template-columns: 1fr; }
  .store-band, .cta-band { padding: 32px 24px; }
  .store-band form { flex-direction: column; border-radius: 18px; }
  .finance-band { grid-template-columns: 1fr; padding: 28px; }
  .post-featured { grid-template-columns: 1fr; }
  .builder-row { grid-template-columns: 1fr; gap: 20px; }
  .lender-grid { grid-template-columns: repeat(2, 1fr); }
  .cov-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .check-list.cols-2, .check-list.cols-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lead-card { padding: 24px; }
  .stacked-media { padding: 0 0 40px 30px; }
  .stepper a { font-size: 0; gap: 0; }
  .stepper a span { font-size: .85rem; }
  .lightbox .lb-prev { left: 4px; } .lightbox .lb-next { right: 4px; }
  .hero { min-height: 640px; }
  .page-hero .container { padding: 64px 18px 56px; }
  .catalog-bar .select { min-width: 0; width: 100%; }
}
@media print {
  .site-header, .site-footer, .topbar, .promo-bar, .to-top, .lead-card, .detail-aside { display: none !important; }
}
@media (max-width: 760px) {
  .hero-media::after { background: linear-gradient(180deg, rgba(9, 25, 44, .82) 0%, rgba(9, 25, 44, .7) 55%, rgba(9, 25, 44, .55) 100%); }
  .checklist .check { align-items: flex-start; }
}

/* ---------- Live chat widget ---------- */
.to-top { bottom: 92px; }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 90; font-size: .93rem; }
.chat-launcher { position: relative; display: flex; align-items: center; gap: 10px; border: 0; background: var(--red); color: #fff; padding: 14px 20px; border-radius: 999px; font-weight: 800; box-shadow: 0 10px 30px rgba(200, 50, 46, .4); transition: transform .2s; }
.chat-launcher:hover { transform: translateY(-2px); }
.chat-launcher .icon { width: 22px; height: 22px; }
.chat-dot { position: absolute; top: 8px; left: 30px; width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; border: 2px solid var(--red); }
.chat-badge { position: absolute; top: -6px; right: -4px; background: var(--gold); color: #1d1d1d; border-radius: 999px; font-size: .72rem; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; }
.chat.open .chat-launcher { display: none; }
.chat-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px)); background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(9, 25, 44, .3); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(120deg, var(--navy), var(--navy-3)); color: #fff; }
.chat-head img { border-radius: 10px; }
.chat-head strong { display: block; font-size: 1rem; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: #cfdcea; }
.chat-status i { width: 8px; height: 8px; border-radius: 50%; background: #9aa7b4; }
.chat-status.on i { background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); }
.chat-x { margin-left: auto; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: var(--soft); display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; flex-direction: column; max-width: 84%; }
.chat-msg span { padding: 10px 14px; border-radius: 16px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.chat-msg small { font-size: .7rem; color: var(--muted); margin: 3px 6px 0; }
.chat-msg.team { align-self: flex-start; }
.chat-msg.team span { background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg.visitor { align-self: flex-end; align-items: flex-end; }
.chat-msg.visitor span { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.note span { background: #fdf3e3; color: #6b4a10; font-size: .85rem; }
.chat-intro { padding: 12px 16px 0; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.chat-intro p { margin: 0; font-size: .82rem; color: var(--muted); }
.chat-intro .input { padding: 9px 12px; font-size: .9rem; }
.chat-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { flex: 1; border: 1.5px solid #cfd8e2; border-radius: 14px; padding: 10px 12px; resize: none; max-height: 120px; font: inherit; }
.chat-form textarea:focus { outline: none; border-color: var(--navy-3); }
.chat-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.chat-form button:disabled { opacity: .5; }
.chat-error { margin: 0 14px 6px; color: var(--red); font-size: .8rem; font-weight: 600; }
.chat-legal { margin: 0; padding: 0 14px 10px; font-size: .7rem; text-align: center; }
.chat-legal a { color: var(--muted); }
@media (max-width: 760px) {
  .chat { right: 12px; bottom: 12px; }
  .chat-launcher-label { display: none; }
  .chat-launcher { padding: 16px; }
  .chat.open { inset: 0; right: 0; bottom: 0; }
  .chat.open .chat-panel { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .to-top { bottom: 84px; right: 14px; }
}
.chat [hidden] { display: none !important; }
