/* Northstar Home Buyers */
:root {
  --black: #0e0e10;
  --black-2: #18181b;
  --black-3: #2a2a2f;
  --red: #e3171e;
  --red-2: #b8121a;
  --red-bright: #ff4b4f;
  --red-soft: #fdeced;
  --ink: #18181b;
  --muted: #5d5f66;
  --line: #e7e7ea;
  --bg: #ffffff;
  --bg-alt: #f6f5f4;
  --ok: #1f8a5b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 14, 16, 0.10);
  --wrap: 1160px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--black-3); }
a:hover { color: var(--red-2); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--black); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--black); color: #d9d9de; }
.section.dark h2, .section.dark h3 { color: #fff; }
.center { text-align: center; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.center .lede { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red-2); margin-bottom: 14px;
}
.eyebrow svg { width: 16px; height: 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 10px; border: 0;
  font: 700 1rem var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(227, 23, 30, .32); }
.btn-gold:hover { background: var(--red-2); color: #fff; }
.btn-navy { background: var(--black); color: #fff; }
.btn-navy:hover { background: var(--black-3); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.topbar { background: var(--red); color: #fff; font-size: .86rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--black); }
.logo svg { width: 38px; height: 38px; }
.logo-text { font-weight: 800; font-size: 1.15rem; line-height: 1.05; letter-spacing: -0.01em; }
.logo-text small { display: block; font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .dd > button {
  padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none;
  font: 600 .95rem var(--font); background: none; border: 0; cursor: pointer;
}
.nav > a:hover, .nav .dd > button:hover { background: var(--bg-alt); color: var(--black); }
.dd { position: relative; }
.dd > button::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.dd-menu {
  position: absolute; top: 100%; left: 0; min-width: 260px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  display: none; grid-template-columns: 1fr; gap: 2px;
}
.dd-menu.cols { grid-template-columns: 1fr 1fr; min-width: 420px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: grid; }
.dd-menu a { padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .92rem; }
.dd-menu a:hover { background: var(--red-soft); color: var(--black); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.phone-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--black); text-decoration: none; white-space: nowrap; }
.phone-link svg { width: 18px; height: 18px; color: var(--red-2); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; color: var(--black); }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(900px 420px at 90% 0%, rgba(227,23,30,.28) 0%, transparent 60%), linear-gradient(160deg, #0e0e10 0%, #1c1c20 100%);
  background-size: cover; background-position: center;
  color: #d9d9de; padding: 70px 0 90px;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,12,.92) 0%, rgba(10,10,12,.78) 45%, rgba(10,10,12,.55) 100%); }
.hero .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--red); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--red-bright); }
.hero .lede { color: #c9c9cf; }
.hero .eyebrow { color: var(--red-bright); }
.checks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: #fff; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--red-bright); margin-top: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.crumbs { font-size: .85rem; margin-bottom: 16px; color: #a3a3aa; }
.crumbs a { color: #d4d4d8; text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* Lead form card */
.form-card { border-top: 5px solid var(--red); background: #fff; color: var(--ink); border-radius: 18px; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.form-card h2 { font-size: 1.45rem; margin-bottom: 4px; }
.form-card .sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: 500 1rem var(--font); color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,23,30,.15); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; color: var(--muted); line-height: 1.45; margin: 6px 0 14px; }
.consent input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 10px 0 0; display: flex; justify-content: center; gap: 6px; align-items: center; }
.form-note svg { width: 14px; height: 14px; }
.form-msg { display: none; margin-top: 12px; padding: 12px; border-radius: 10px; font-size: .9rem; }
.form-msg.show { display: block; }
.form-msg.err { background: #fdecec; color: #8a1f1f; }
.form-msg.info { background: var(--red-soft); color: #7a0d12; }

/* Trust strip */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.trust-item { display: flex; gap: 12px; align-items: center; }
.trust-item svg { width: 34px; height: 34px; color: var(--red-2); flex: none; }
.trust-item strong { display: block; color: var(--black); font-size: 1rem; }
.trust-item span { font-size: .85rem; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}
.step p { color: var(--muted); margin: 0; }

/* Cards grid */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.card:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--red-soft); color: var(--red-2); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card .more { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--black-3); font-size: .9rem; }

/* Area chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.center .chips { justify-content: center; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.chip:hover { border-color: var(--red); color: var(--black); background: var(--red-soft); }
.region-block { margin-top: 32px; }
.region-block h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red-2); }
.region-block .chips { margin-top: 12px; }

/* Compare table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 32px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .97rem; }
.compare thead th { background: var(--black); color: #fff; font-weight: 700; }
.compare thead th.us { background: var(--red); color: #fff; }
.compare td.us { background: #fff6f6; font-weight: 700; color: var(--black); }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; color: var(--black); }
.table-scroll { overflow-x: auto; }

/* Two-column content */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3171e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.aside-card .eyebrow { color: var(--red-bright); }
.aside-card { position: sticky; top: 96px; background: var(--black); color: #d9d9de; border-top: 5px solid var(--red); border-radius: 18px; padding: 28px; }
.aside-card h3 { color: #fff; }
.aside-card .phone-big { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; margin: 8px 0 18px; }
.callout { border-left: 4px solid var(--red); background: var(--bg-alt); padding: 16px 20px; border-radius: 0 10px 10px 0; color: #3f3f46; font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; margin: 36px auto 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--black); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--black) 0%, #2a0d0f 100%); color: #d9d9de; border-left: 6px solid var(--red); border-radius: 22px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* Footer */
.footer { background: #0a0a0b; color: #9a9aa2; border-top: 5px solid var(--red); padding: 64px 0 28px; font-size: .92rem; }
.footer a { color: #d4d4d8; text-decoration: none; }
.footer a:hover { color: var(--red-bright); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .tag { color: var(--red-bright); font-weight: 600; }
.footer-legal { border-top: 1px solid #222226; margin-top: 44px; padding-top: 22px; font-size: .8rem; line-height: 1.55; color: #7c7c85; }
.footer-legal p { margin-bottom: 8px; }

/* Mobile sticky bar */
.mobile-bar { display: none; }

/* Responsive */
@media (max-width: 1020px) {
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: block; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; box-shadow: var(--shadow); max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav.open .dd-menu { position: static; display: grid; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav.open .dd-menu.cols { grid-template-columns: 1fr 1fr; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .aside-card { position: static; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 68px; }
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .topbar .hide-sm, .phone-link span { display: none; }
  .hero { padding: 44px 0 56px; }
  .checks, .row-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .steps, .trust .wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .nav.open .dd-menu.cols { grid-template-columns: 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(14,14,16,.08);
  }
  .mobile-bar .btn { padding: 12px; }
}

/* Media */
.media-split { align-items: center; }
.media-frame { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--black); position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40%; height: 6px; background: var(--red); }
.leaf-panel { display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, #3a0c0f 0%, var(--black) 70%); }
.leaf-panel svg { width: 46%; height: auto; color: var(--red); opacity: .9; }
.video-frame { max-width: 900px; margin: 32px auto 0; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.4); border-bottom: 6px solid var(--red); }
.video-frame video { width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) { .hero .hero-video { display: none; } }
