/* RV Patrimonial · venda direta do proprietário */
:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #1d1b18;
  --ink-2: #5b564e;
  --line: #e4ded3;
  --accent: #2f4a3a;
  --accent-2: #a9855a;
  --wa: #1f7a4d;
  --wa-hover: #17613d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 27, 24, .06), 0 8px 24px rgba(29, 27, 24, .06);
  --max: 1120px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: 0; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; margin-bottom: .6em; }

/* Cabeçalho */
.top { position: sticky; top: 0; z-index: 20; background: rgba(247, 244, 239, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.1; }
.logo b { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.logo span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.top nav { display: flex; gap: 20px; align-items: center; }
.top nav a { color: var(--ink); text-decoration: none; font-size: .92rem; }
.top nav a:hover { color: var(--accent); }
@media (max-width: 720px) { .top nav a.nav-link { display: none; } }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Hero do imóvel */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 15%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.82) 100%); }
.hero h1, .hero p, .hero .price { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 40px; }
.hero .eyebrow { color: #e9d6b8; }
.hero p.lead { font-size: 1.1rem; max-width: 620px; color: #f1ece4; }
.hero .price { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.4rem); margin: .2em 0 .8em; }
.hero .tag-ilustr { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; padding: 4px 10px; border-radius: 999px; }

/* Faixa de dados */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: -32px 0 0; position: relative; z-index: 3; box-shadow: var(--shadow); }
.facts div { background: var(--surface); padding: 16px 18px; }
.facts b { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.facts span { font-size: .82rem; color: var(--ink-2); }

section.block { padding: 64px 0; }
section.block + section.block { padding-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; gap: 28px; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
.list-check li:last-child { border-bottom: 0; }
.list-check li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Por que direto */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.why .card h3 { margin-bottom: .3em; }
.why .card p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #ddd; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; padding: 3px 8px; border-radius: 999px; }
.gallery .first { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .first { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; } }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(10, 10, 10, .88); }
dialog.lightbox img { max-width: 96vw; max-height: 84vh; object-fit: contain; border-radius: 8px; }
dialog.lightbox p { color: #eee; text-align: center; margin: 8px 0 0; font-size: .9rem; }
dialog.lightbox .lb-nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
dialog.lightbox .lb-prev { left: 12px; } dialog.lightbox .lb-next { right: 12px; }
dialog.lightbox .lb-close { position: fixed; top: 12px; right: 12px; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }

/* Tabelas */
table.details { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.details th, table.details td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.details th { font-weight: 500; color: var(--ink-2); width: 45%; padding-right: 12px; }

/* Unidades (Belong) */
.units { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.unit .num { font-family: var(--serif); font-size: 2rem; }
.unit .price { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); margin: .2em 0 .6em; }

/* Caminhos de compra */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.paths .card h3 { display: flex; gap: 10px; align-items: baseline; }
.paths .card h3 em { font-style: normal; font-family: var(--sans); font-size: .8rem; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 10px; }

/* Simulador */
.sim label { display: block; font-size: .9rem; color: var(--ink-2); margin: 10px 0 4px; }
.sim input[type=range] { width: 100%; accent-color: var(--accent); }
.sim output { font-weight: 600; color: var(--ink); }
.sim .res { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.sim .res div { background: var(--bg); border-radius: 10px; padding: 12px; }
.sim .res b { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.sim .res span { font-size: .8rem; color: var(--ink-2); }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--ink-2); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* CTA final */
.cta { background: var(--accent); color: #fff; border-radius: 20px; padding: 40px 28px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #dfe7e1; max-width: 560px; margin: 0 auto 1.4em; }

/* Home */
.home-hero { padding: 72px 0 40px; }
.home-hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; }
.props { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.prop { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.prop:hover { transform: translateY(-3px); }
.prop img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.prop .body { padding: 18px 20px 22px; }
.prop .price { font-family: var(--serif); font-size: 1.35rem; color: var(--accent); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: s; }
.steps .card::before { counter-increment: s; content: counter(s); font-family: var(--serif); font-size: 2rem; color: var(--accent-2); display: block; }

/* Rodapé */
footer { border-top: 1px solid var(--line); padding: 32px 0 110px; font-size: .85rem; color: var(--ink-2); margin-top: 40px; }
footer .wrap { display: grid; gap: 10px; }
footer a { color: var(--ink-2); }

/* Botão fixo no celular */
.sticky-wa { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
@media (max-width: 720px) { .sticky-wa { display: flex; } }

/* Aviso de cookies */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; max-width: 560px; margin: 0 auto; background: var(--ink); color: #f2eee7; border-radius: 14px; padding: 16px 18px; box-shadow: 0 12px 32px rgba(0,0,0,.3); font-size: .9rem; display: none; }
.consent.show { display: block; }
.consent a { color: #e9d6b8; }
.consent .row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.consent button { flex: 1; min-width: 120px; padding: 10px 14px; border-radius: 999px; border: 0; font-weight: 600; cursor: pointer; }
.consent .ok { background: #f2eee7; color: var(--ink); }
.consent .no { background: transparent; color: #f2eee7; border: 1px solid #6d675e; }

.note { font-size: .82rem; color: var(--ink-2); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
