/* ProRealty — brand tokens
   Layout: charcoal header/footer bookends, cream reading bands, gold reserved for actions and key figures. */
:root {
  --bg: #F7F1E6;          /* cream page ground */
  --surface: #FFFFFF;     /* cards on cream */
  --sand: #EADFC4;        /* alternate band */
  --ink: #211E1A;         /* primary text */
  --muted: #5B5449;       /* secondary text */
  --line: #E4DACB;        /* hairlines */
  --gold: #C9972E;        /* actions, accents */
  --gold-ink: #8B6A1F;    /* gold text on light grounds */
  --night: #211E1A;       /* dark bands (both themes) */
  --night-2: #2B2621;     /* cards on dark bands */
  --night-line: #3A342C;
  --on-night: #EFE8DC;
  --on-night-muted: #C9C2B4;
  --good: #3F7D4E; --warn: #B7791F; --bad: #B4432F;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17140F; --surface: #211D18; --sand: #2A251E; --ink: #EFE7DA; --muted: #B9AFA0;
    --line: #3A342C; --gold: #D4A443; --gold-ink: #E2BE6A; --night: #0F0D0A; --night-2: #1E1A15;
    --night-line: #332D25; --on-night: #EFE8DC; --on-night-muted: #BDB4A6;
    --good: #6FB07F; --warn: #E0A84A; --bad: #E07A63; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17140F; --surface: #211D18; --sand: #2A251E; --ink: #EFE7DA; --muted: #B9AFA0;
  --line: #3A342C; --gold: #D4A443; --gold-ink: #E2BE6A; --night: #0F0D0A; --night-2: #1E1A15;
  --night-line: #332D25; --on-night: #EFE8DC; --on-night-muted: #BDB4A6;
  --good: #6FB07F; --warn: #E0A84A; --bad: #E07A63; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.18; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #211E1A; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(56px, 8vw, 96px); }
.band.sand { background: var(--sand); }
.band.paper { background: var(--bg); }
.band.night { background: var(--night); color: var(--on-night); }
.band.tight { padding-block: clamp(32px, 5vw, 56px); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.head.center { text-align: center; align-items: center; margin-inline: auto; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.night .eyebrow { color: var(--gold); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 68ch; }
.night .lead, .night p { color: var(--on-night-muted); }
.night h1, .night h2, .night h3 { color: #fff; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.gold { color: var(--gold); }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid.five { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.split { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center; }
.split > * { min-width: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 6px; font-weight: 700; font-size: 0.98rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: var(--font-body); }
.btn-gold { background: var(--gold); color: #211E1A; }
.btn-gold:hover { background: #B3841F; }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.night .btn-line, .hero .btn-line { color: #fff; }
.btn-line:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { font-weight: 700; text-decoration: none; color: var(--ink); }
.textlink:hover { color: var(--gold-ink); }
.night .textlink { color: var(--gold); }

/* Top bar + header */
.topbar { background: #161311; color: #A39A8C; font-size: 0.8rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 8px; }
.topbar b { color: #E9E2D6; font-weight: 600; }
.topbar a { color: #E9E2D6; text-decoration: none; }
.site-header { background: #211E1A; color: #fff; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; border-bottom: 1px solid #3A342C; }
.site-header .wrap { max-width: 1440px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 56px; height: 55px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1; }
.brand-name span { color: #C9972E; }
.brand-tag { display: block; font-size: 0.62rem; letter-spacing: 0.18em; color: #8B8377; margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 16px; }
.nav a { white-space: nowrap; color: #E9E2D6; text-decoration: none; font-size: 0.9rem; font-weight: 500; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { color: #E7C878; }
.nav a[aria-current="page"] { color: #E7C878; border-bottom-color: #C9972E; font-weight: 600; }
.nav-cta { white-space: nowrap; }
.menu-btn { display: none; background: transparent; border: 1px solid #4A4438; color: #fff; border-radius: 6px; min-width: 44px; min-height: 44px; cursor: pointer; }
@media (max-width: 1300px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #211E1A; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; border-bottom: 1px solid #3A342C; }
  .nav.open { display: flex; }
  .nav a { padding-block: 12px; border-bottom: 1px solid #3A342C; }
  .nav a[aria-current="page"] { border-bottom-color: #3A342C; }
  .nav-cta.desktop { display: none; }
}
@media (min-width: 1301px) { .nav .mobile-only { display: none; } }
@media (max-width: 1500px) { .site-header .brand-tag { display: none; } }

/* Heroes */
.hero { background: #211E1A; color: #fff; padding-block: clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; gap: 48px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero .side { order: 2; } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #C9972E; }
.hero .lead { color: #C9C2B4; }
.crumbs { font-size: 0.84rem; color: #8B8377; }
.crumbs a { color: #8B8377; }
.crumbs span { color: #E9E2D6; }
.hero .stack { gap: 20px; }
.seal { width: min(240px, 60vw); aspect-ratio: 1; border-radius: 50%; border: 1px solid #3A342C; display: grid; place-items: center; margin-inline: auto; }
.seal img { width: 88%; }
.side-card { background: #2B2621; border: 1px solid #3A342C; border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 4px; color: #E9E2D6; }
.side-card .label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; color: #C9972E; padding-bottom: 8px; }
.side-row { display: flex; gap: 12px; align-items: flex-start; padding-block: 12px; border-top: 1px solid #3A342C; font-size: 0.94rem; }
.side-row svg { flex-shrink: 0; margin-top: 2px; }
.stat-big { display: flex; flex-direction: column; gap: 2px; padding-block: 12px; border-top: 1px solid #3A342C; }
.stat-big b { font-family: var(--font-display); font-size: 1.9rem; color: #fff; line-height: 1.1; }
.stat-big span { font-size: 0.86rem; color: #C9C2B4; }

/* Home split hero */
.home-hero { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.home-hero .half { padding: clamp(48px, 7vw, 96px) var(--gutter); display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.home-hero .half.light { background: var(--bg); padding-right: clamp(48px, 9vw, 130px); }
.home-hero .half.dark { background: #211E1A; color: #fff; padding-left: clamp(48px, 9vw, 130px); }
.home-hero .half.dark .lead { color: #C9C2B4; }
.home-hero .half.dark h1 { color: #fff; }
.home-hero .seal-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 190px; height: 190px; border-radius: 50%; background: #211E1A; box-shadow: 0 0 0 8px var(--bg), 0 18px 40px rgba(0,0,0,0.25); display: grid; place-items: center; }
.home-hero .seal-mid img { width: 92%; }
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero .half.light, .home-hero .half.dark { padding-inline: var(--gutter); }
  .home-hero .seal-mid { display: none; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--sand); color: var(--ink); }
.dark .chip, .chip.gold { background: #C9972E; color: #211E1A; }

/* Trust strip */
.trust { background: var(--sand); }
.trust .wrap { display: grid; grid-template-columns: 110px repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 20px 28px; align-items: center; padding-block: 24px; }
.trust img { width: 92px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.94rem; line-height: 1.35; }
@media (max-width: 640px) { .trust .wrap { grid-template-columns: 1fr 1fr; } .trust img { grid-column: 1 / -1; } }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.dark { background: var(--night); border-color: var(--night); color: var(--on-night); }
.card.dark h3 { color: #fff; }
.card.dark p { color: var(--on-night-muted); }
.card.dashed { border-style: dashed; }
.night .card { background: var(--night-2); border-color: var(--night-line); color: var(--on-night); }
.night .card h3 { color: #fff; }
.card .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.card.dark .foot, .night .card .foot { border-color: var(--night-line); color: var(--on-night-muted); }
.card .foot b { color: var(--ink); }
.card.dark .foot b, .night .card .foot b { color: #fff; }
.icon-box { width: 52px; height: 52px; border-radius: 10px; background: var(--sand); display: grid; place-items: center; flex-shrink: 0; color: var(--gold-ink); }
.card.dark .icon-box, .night .icon-box { background: #3A342C; color: #E7C878; }
.card-head { display: flex; align-items: center; gap: 14px; }
.tag { align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: #8B6A1F; background: #EADFC4; padding: 5px 10px; border-radius: 12px; text-transform: uppercase; }
.price { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; }

.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.checks li::before { content: ""; flex-shrink: 0; width: 16px; height: 16px; margin-top: 4px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat; }
.checks.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px 28px; }
.flags li::before { background: var(--warn); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E"); }

/* Steps (true sequences only) */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: s; }
.step { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--line); padding-top: 16px; }
.night .step { border-color: var(--night-line); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--gold-ink); }
.night .step::before { color: var(--gold); }
.step b { font-size: 1.02rem; }
.night .step b { color: #fff; }

.method-row { display: grid; grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); }
.method-row .n { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--gold-ink); line-height: 1; }
.method-row .k { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; color: var(--gold-ink); display: block; margin-bottom: 4px; }
@media (max-width: 760px) { .method-row { grid-template-columns: 48px 1fr; } .method-row > div:nth-child(n+3) { grid-column: 2; } }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
table.t th { text-align: left; background: var(--sand); padding: 12px 14px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-ink); }
table.t td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.t td:first-child { font-weight: 600; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin-inline: auto; width: 100%; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.form .row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 0.82rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); font: inherit; font-size: 0.95rem; padding: 10px 12px; }
.field textarea { min-height: 100px; resize: vertical; }
.night .field input, .night .field select, .night .field textarea, .card.dark .field input, .card.dark .field select, .card.dark .field textarea { background: var(--night-2); border-color: var(--night-line); color: #fff; }
.night .field label, .card.dark .field label { color: var(--on-night); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.night .consent, .card.dark .consent { color: var(--on-night-muted); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.92rem; padding: 12px 14px; border-radius: 6px; background: color-mix(in srgb, var(--good) 14%, transparent); border: 1px solid var(--good); }
.form-status.error { background: color-mix(in srgb, var(--bad) 14%, transparent); border-color: var(--bad); }
.demo-note { font-size: 0.78rem; color: var(--muted); }
.night .demo-note, .card.dark .demo-note { color: var(--on-night-muted); }

/* Selfcheck */
.selfcheck { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.selfcheck label { display: flex; gap: 12px; align-items: flex-start; background: var(--night-2); border-radius: 10px; padding: 18px; cursor: pointer; color: var(--on-night); font-size: 0.95rem; }
.selfcheck input { width: 20px; height: 20px; accent-color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.selfcheck-result { font-weight: 600; color: var(--gold); min-height: 1.6em; }

/* Mock exhibit table on dark */
.exhibit { border: 1px solid var(--night-line); border-radius: 8px; overflow-x: auto; }
.exhibit .r { display: grid; grid-template-columns: 1fr 1.1fr 1.3fr 1fr; gap: 10px; padding: 11px 14px; font-size: 0.86rem; color: var(--on-night); border-top: 1px solid var(--night-line); min-width: 520px; }
.exhibit .r:first-child { background: var(--night-2); border-top: 0; font-weight: 700; color: var(--on-night-muted); font-size: 0.78rem; }
.exhibit .flag { color: #E7C878; }

/* Districts */
.district.hq { border: 2px solid var(--gold); }

/* Google band */
.gband { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 130px minmax(0, 1fr) 170px; gap: 32px; align-items: center; }
.gband .qr { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gband .qr img { width: 150px; }
@media (max-width: 760px) { .gband { grid-template-columns: 1fr; justify-items: start; } }

/* Social follow strip */
.follow { display: flex; flex-wrap: wrap; gap: 12px; }
.follow a { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.follow a:hover { border-color: var(--gold); }
.follow svg { width: 18px; height: 18px; }

/* Footer */
.site-footer { background: #161311; color: #A39A8C; padding-block: 64px 28px; font-size: 0.9rem; }
.site-footer .cols { display: grid; gap: 36px; grid-template-columns: 1.5fr 1fr 1fr 1fr 150px; }
@media (max-width: 1000px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .brandcol { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.92rem; margin: 0 0 12px; font-family: var(--font-body); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer a { color: #A39A8C; text-decoration: none; }
.site-footer a:hover { color: #E7C878; }
.site-footer .brandcol { display: flex; flex-direction: column; gap: 14px; }
.parent { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 8px; padding: 8px 12px; align-self: flex-start; }
.parent img { width: 120px; }
.parent span { color: #211E1A; font-size: 0.74rem; line-height: 1.35; font-weight: 600; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 50%; background: #2B2621; display: grid; place-items: center; color: #E9E2D6; }
.social a:hover { background: #C9972E; color: #211E1A; }
.social svg { width: 18px; height: 18px; }
.qrbox { background: #fff; border-radius: 10px; padding: 8px; display: inline-block; }
.qrbox img { width: 118px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid #2B2621; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.8rem; color: #8B8377; }
.footer-bottom a { color: #8B8377; }

/* WhatsApp float */
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,0.25); z-index: 60; text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }

/* Demo banner */
.demo-banner { background: #3A342C; color: #E9E2D6; font-size: 0.82rem; text-align: center; padding: 8px 16px; }
.demo-banner[hidden] { display: none; }
