/* ============================================================
   LP Jardim Bom Sucesso — Diego Fatoreto Marcheze
   Sistema: DESIGN.md (Zodiak + Satoshi · Committed pine green)
   ============================================================ */

:root {
  /* superfícies claras (marfim quente) */
  --paper: #f6f3ec;
  --paper: oklch(0.962 0.009 95);
  --card: #fdfcf8;
  --card: oklch(0.99 0.005 95);
  --soft: #efeadf;
  --soft: oklch(0.935 0.012 95);

  /* pinheiro profundo (committed) */
  --pine: #13201a;
  --pine: oklch(0.22 0.025 165);
  --pine-2: #1c2b23;
  --pine-2: oklch(0.27 0.028 165);
  --pine-3: #0d1712;
  --pine-3: oklch(0.18 0.02 165);

  /* acentos */
  --wa: #25d366;
  --wa-press: #1fbd5b;
  --selo: #027a48;
  --brass: #b08d3e;
  --brass: oklch(0.66 0.1 85);
  --brass-2: #cfae62;
  --brass-2: oklch(0.78 0.09 90);

  /* texto e linhas — claros: sobre --paper (AA 4.5+); ivory-*: sobre --pine */
  --olive: #545c55;
  --olive: oklch(0.48 0.02 160);
  --olive-2: #656d66;
  --olive-2: oklch(0.53 0.018 160);
  --line: rgba(19, 32, 26, 0.12);
  --line-dark: rgba(246, 243, 236, 0.13);
  --ivory: rgba(246, 243, 236, 0.92);
  --ivory-mut: rgba(246, 243, 236, 0.78);
  --danger: #b03518;

  /* sombras tingidas de pinheiro */
  --shadow-sm: 0 1px 2px rgba(19, 32, 26, 0.05), 0 6px 16px -6px rgba(19, 32, 26, 0.1);
  --shadow-md: 0 2px 6px rgba(19, 32, 26, 0.06), 0 18px 44px -12px rgba(19, 32, 26, 0.18);
  --shadow-lg: 0 10px 30px -8px rgba(19, 32, 26, 0.24), 0 32px 80px -16px rgba(19, 32, 26, 0.3);

  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* ease-out-quint */
  --font-display: "Zodiak", "Iowan Old Style", "Times New Roman", serif;
  --font-ui: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
}

::selection { background: var(--brass-2); color: var(--pine-3); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--pine);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea { font: inherit; }
a, button, input, textarea { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Reveal em cascata ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
  vertical-align: middle;
  margin-right: 0.6rem;
  transform: translateY(-1px);
}
@media (max-width: 520px) {
  .eyebrow { font-size: 0.72rem; }
  .eyebrow::before { display: none; }
}
.eyebrow.brass { color: var(--brass-2); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.32rem, 2.4vw, 1.7rem); }

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--pine);
  color: var(--paper);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: calc(0.9rem + env(safe-area-inset-top)); }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}
.sec-dark a:focus-visible,
.sec-dark button:focus-visible,
.topbar a:focus-visible,
.topbar button:focus-visible,
.footer a:focus-visible,
.lightbox button:focus-visible {
  outline-color: var(--brass-2);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.16s var(--ease), background 0.16s ease, box-shadow 0.16s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .ico { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; }

.btn-wa {
  background: var(--wa);
  color: #0b2d18;
  box-shadow: 0 14px 28px -14px rgba(19, 32, 26, 0.55);
}
.btn-paper {
  background: var(--ivory);
  color: var(--pine);
  box-shadow: 0 14px 28px -14px rgba(13, 23, 18, 0.6);
}
.btn-ink { background: var(--pine); color: var(--paper); }
.btn-outline { border: 1.5px solid var(--pine); color: var(--pine); background: transparent; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.72; pointer-events: none; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(1px) scale(0.99); }
  .btn-wa:hover { background: var(--wa-press); }
  .btn-paper:hover { background: #fff; background: oklch(0.99 0.005 95); }
  .btn-ink:hover { background: var(--pine-2); }
  .btn-outline:hover { background: var(--pine); color: var(--paper); }
}

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  background: rgba(13, 23, 18, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.topbar.solid { background: rgba(13, 23, 18, 0.94); border-bottom-color: var(--line-dark); }
.topbar-inner { display: flex; align-items: center; gap: 1.6rem; padding: 0.65rem 0; }
.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  color: var(--ivory);
  line-height: 1.1;
}
.brand-nome {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-cidade {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--brass-2);
  margin-top: 0.1rem;
}
@media (hover: hover) { .brand:hover .brand-nome { color: var(--brass-2); } }
.topnav { display: none; gap: 0.4rem; margin-left: auto; }
.topnav a {
  color: var(--ivory);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  transition: color 0.18s, background 0.18s;
}
@media (hover: hover) {
  .topnav a:hover { color: var(--brass-2); background: rgba(246, 243, 236, 0.07); }
}
.btn-topo { display: none; }
@media (min-width: 860px) {
  .topnav { display: flex; }
  .btn-topo { display: inline-flex; min-height: 44px; padding: 0.65rem 1.3rem; font-size: 0.88rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  overflow: hidden;
}
/* Capa: foto principal da casa Ref. 033 (anúncio 00605), fundo fixo no desktop */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("https://storage.googleapis.com/imoflow-imagens/imf260526og953103/imoveis/6a56667d2aa30718e4c11a8b/imagens/3_1784047231214.jpeg") center 82% / cover no-repeat;
}
@media (min-width: 900px) {
  .hero-bg { background-attachment: fixed; background-position: center 30%; }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 23, 18, 0.66) 0%, rgba(13, 23, 18, 0.28) 34%, rgba(13, 23, 18, 0.58) 68%, rgba(13, 23, 18, 0.93) 100%),
    radial-gradient(120% 85% at 16% 90%, rgba(13, 23, 18, 0.62) 0%, transparent 62%);
}
.hero .eyebrow { color: var(--brass-2); text-shadow: 0 1px 10px rgba(13, 23, 18, 0.65); }
.hero-inner { position: relative; padding: 9rem 0 4.8rem; max-width: 100%; }
.hero h1 {
  margin: 0.9rem 0 1.1rem;
  max-width: 21ch;
  text-shadow: 0 2px 26px rgba(13, 23, 18, 0.45);
}
.hero-sub {
  max-width: 52ch;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  color: rgba(246, 243, 236, 0.88);
}
.hero-sub strong { color: var(--brass-2); font-weight: 700; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }
.hero-ctas .btn { padding: 0.95rem 2rem; font-size: 1rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.1rem; list-style: none; }
.hero-chips li {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 243, 236, 0.26);
  background: rgba(13, 23, 18, 0.38);
  color: rgba(246, 243, 236, 0.92);
}

/* ---------- Faixa de fatos ---------- */
.fatos {
  background: var(--pine);
  color: var(--ivory);
  border-top: 1px solid var(--line-dark);
}
.fatos-inner {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0;
}
.fatos-inner p {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.85rem 0.2rem;
  font-size: 0.92rem;
  color: var(--ivory-mut);
  line-height: 1.35;
}
.fatos-inner p + p { border-top: 1px solid var(--line-dark); }
.fatos-inner b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ivory);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
@media (min-width: 760px) {
  .fatos-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
  }
  .fatos-inner p { padding: 0.2rem 0; flex-direction: column; align-items: flex-start; gap: 0.1rem; }
  .fatos-inner p + p { border-top: 0; border-left: 1px solid var(--line-dark); padding-left: 1.5rem; }
  .fatos-inner p { flex: 1; }
}

/* ---------- Seções ---------- */
.sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec-soft { background: var(--soft); }
.sec-dark { background: var(--pine); color: var(--ivory); }
.sec-dark p { line-height: 1.68; }
.sec-head { max-width: 640px; margin-bottom: 2.8rem; }
.sec-head h2 { margin: 0.7rem 0 0.8rem; }
.sec-sub { color: var(--olive); max-width: 58ch; }
.sec-dark .sec-sub { color: var(--ivory-mut); }

/* ---------- Grade de imóveis ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease), box-shadow 0.28s ease;
  cursor: pointer;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
  .card:hover .card-media img { transform: scale(1.05); }
}
.card:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card-badges { position: absolute; top: 0.85rem; left: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--card);
  background: var(--selo);
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 2px 10px -2px rgba(13, 23, 18, 0.4);
}
.card-fotos-tag {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ivory);
  background: rgba(13, 23, 18, 0.66);
  padding: 0.32rem 0.62rem;
  border-radius: 9px;
}
.card-fotos-tag svg { width: 14px; height: 14px; }

.card-body { padding: 1.3rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.card-preco {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.card-preco small {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--olive-2);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}
.card-titulo {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--olive);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.83rem;
  color: var(--olive);
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  margin-top: auto;
}
.card-meta span { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.card-meta svg { width: 15px; height: 15px; color: var(--brass); flex: 0 0 auto; }
.card-acoes { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.card-acoes .btn { flex: 1; min-height: 46px; padding: 0.7rem 1rem; font-size: 0.88rem; }
.card-acoes .btn-ver { background: var(--pine); color: var(--paper); }
@media (hover: hover) { .card-acoes .btn-ver:hover { background: var(--pine-2); } }
.card-acoes .btn-wa-mini { flex: 0 0 auto; width: 48px; padding: 0; border-radius: var(--radius-sm); }
.card-acoes .btn-wa-mini .ico { width: 1.35rem; height: 1.35rem; }
.card-ref { font-size: 0.75rem; color: var(--olive-2); letter-spacing: 0.05em; }

/* card destaque: primeira casa ocupa 2 colunas no desktop */
@media (min-width: 1020px) {
  .card--destaque { grid-column: span 2; }
  .card--destaque .card-media { aspect-ratio: 16 / 9; }
  .card--destaque .card-preco { font-size: 2.2rem; }
  .card--destaque .card-titulo { font-size: 1.05rem; }
}

/* ---------- Bairro ---------- */
.bairro-grid { display: grid; gap: 2.8rem; align-items: center; }
@media (min-width: 960px) { .bairro-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4.5rem; } }
.bairro-txt h2 { margin: 0.7rem 0 1rem; max-width: 20ch; }
.bairro-txt > p { color: var(--ivory-mut); max-width: 54ch; }
.beneficios { list-style: none; margin-top: 2rem; display: grid; }
.beneficios li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line-dark);
}
@media (min-width: 620px) {
  .beneficios { grid-template-columns: 1fr 1fr; column-gap: 2.2rem; }
}
.b-ico {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 0.15rem;
  color: var(--brass-2);
}
.beneficios strong { display: block; font-size: 0.94rem; font-weight: 700; }
.beneficios span { color: var(--ivory-mut); font-size: 0.85rem; line-height: 1.5; display: block; }

.bairro-fotos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 150px;
  gap: 0.8rem;
}
@media (min-width: 560px) { .bairro-fotos { grid-auto-rows: 185px; } }
.bairro-fotos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark);
}
.bairro-fotos img:first-child { grid-column: span 2; }

/* ---------- Corretor ---------- */
.corretor-grid { display: grid; gap: 2.4rem; align-items: center; }
.corretor-grid > *, .bairro-grid > *, .cta-grid > *, .imovel-grid > * { min-width: 0; }
@media (min-width: 900px) { .corretor-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4.5rem; } }
.corretor-card {
  background: var(--pine);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
  box-shadow: var(--shadow-md);
}
.corretor-foto {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 62%;
  border-radius: calc(var(--radius) - 8px);
}
.corretor-card h3 { font-size: 1.55rem; }
.creci { color: var(--brass-2); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; }
.corretor-txt h2 { margin-bottom: 1rem; max-width: 22ch; }
.corretor-txt > p { color: var(--olive); max-width: 56ch; }
.corretor-links { list-style: none; margin-top: 1.5rem; display: grid; }
.corretor-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.18s;
  overflow-wrap: anywhere;
}
.l-ico { width: 19px; height: 19px; color: var(--brass); flex: 0 0 auto; }
@media (hover: hover) { .corretor-links a:hover { color: var(--brass); } }

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207, 174, 98, 0.12) 0%, transparent 65%);
  top: -180px;
  right: -140px;
  pointer-events: none;
}
.cta-grid { display: grid; gap: 2.8rem; align-items: center; position: relative; }
@media (min-width: 940px) { .cta-grid { grid-template-columns: 1fr 420px; gap: 4.5rem; } }
.cta-txt h2 { margin: 0.7rem 0 1rem; max-width: 18ch; }
.cta-txt > p { color: var(--ivory-mut); max-width: 48ch; }
.cta-selos { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.65rem; color: rgba(246, 243, 236, 0.88); font-size: 0.93rem; }
.cta-selos li { display: flex; align-items: center; gap: 0.6rem; }
.s-ico { width: 17px; height: 17px; color: var(--wa); flex: 0 0 auto; }

.cta-form-card {
  background: var(--card);
  color: var(--pine);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-lg);
}
.cta-form-card h3 { margin-bottom: 1.2rem; }

/* ---------- Formulários ---------- */
.fg { margin-bottom: 0.85rem; }
.fg input, .fg textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 16px; /* trava o auto-zoom do iOS */
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--pine);
  transition: border-color 0.18s, box-shadow 0.18s;
  resize: vertical;
  caret-color: var(--brass);
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--olive-2); }
.fg input:focus, .fg textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(176, 141, 62, 0.16);
}
.tel-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.tel-wrap:focus-within { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176, 141, 62, 0.16); }
.tel-ddi {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 0.7rem 0 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--olive);
  border-right: 1px solid var(--line);
}
.tel-wrap input { border: 0 !important; box-shadow: none !important; background: transparent; flex: 1; min-width: 0; }
.ferr { color: var(--danger); font-size: 0.8rem; font-weight: 500; margin-top: 0.3rem; min-height: 0.9em; }
.fcount { text-align: right; font-size: 0.75rem; color: var(--olive-2); margin-top: 0.25rem; }
.terms { font-size: 0.76rem; color: var(--olive-2); margin-top: 0.9rem; line-height: 1.55; }
.terms a { text-decoration: underline; text-underline-offset: 2px; }
.spinner {
  width: 1em;
  height: 1em;
  border: 2px solid rgba(11, 45, 24, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer {
  background: var(--pine-3);
  color: rgba(246, 243, 236, 0.75);
  padding: 3.4rem 0 1.6rem;
  padding-bottom: calc(1.6rem + env(safe-area-inset-bottom));
  font-size: 0.9rem;
}
.footer p { line-height: 1.7; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.2rem; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-logo { width: 110px; margin-bottom: 0.9rem; }
.footer h4 {
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.7rem;
}
.footer a { display: inline-block; padding: 0.45rem 0; margin: -0.2rem 0; }
@media (hover: hover) { .footer a:hover { color: var(--brass-2); } }
.footer-base { padding-top: 1.4rem; font-size: 0.78rem; color: rgba(246, 243, 236, 0.62); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: calc(1.1rem + env(safe-area-inset-right));
  bottom: calc(1.1rem + env(safe-area-inset-bottom));
  z-index: 70;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #0b2d18;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px -10px rgba(13, 23, 18, 0.55);
  transition: transform 0.2s var(--ease);
  animation: waPulse 2.6s ease-out infinite;
}
.wa-float:active { transform: scale(0.94); }
@media (hover: hover) { .wa-float:hover { transform: scale(1.08); } }
.wa-float svg { width: 32px; height: 32px; }
@keyframes waPulse {
  0% { box-shadow: 0 14px 34px -10px rgba(13, 23, 18, 0.55), 0 0 0 0 rgba(37, 211, 102, 0.42); }
  70% { box-shadow: 0 14px 34px -10px rgba(13, 23, 18, 0.55), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 14px 34px -10px rgba(13, 23, 18, 0.55), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Drawer contato ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(13, 23, 18, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.drawer-overlay.on { opacity: 1; }
.drawer {
  position: fixed;
  z-index: 81;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem 1.5rem 1.6rem;
  right: calc(1.1rem + env(safe-area-inset-right));
  bottom: calc(5.9rem + env(safe-area-inset-bottom));
  width: min(370px, calc(100vw - 2.4rem));
  border-radius: var(--radius);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.28s var(--ease), opacity 0.28s ease;
  overscroll-behavior: contain;
}
.drawer.on { transform: none; opacity: 1; }
@media (max-width: 640px) {
  .drawer {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    transform: translateY(100%);
    max-height: 88svh;
    overflow-y: auto;
    padding-bottom: calc(1.6rem + env(safe-area-inset-bottom));
  }
  .drawer.on { transform: none; }
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.drawer-head h4 { font-size: 1.3rem; font-family: var(--font-display); font-weight: 400; }
.drawer-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--olive);
  border-radius: 50%;
}
.drawer-close:active { background: var(--soft); }
@media (hover: hover) { .drawer-close:hover { background: var(--soft); color: var(--pine); } }

/* ---------- Modal imóvel ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal-shell { min-height: 100%; }
.modal-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem clamp(1rem, 4vw, 2.2rem);
  padding-left: max(clamp(1rem, 4vw, 2.2rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 4vw, 2.2rem), env(safe-area-inset-right));
  background: rgba(246, 243, 236, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.btn-voltar {
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 44px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}
.btn-voltar:active { background: var(--soft); }
@media (hover: hover) { .btn-voltar:hover { background: var(--soft); } }
.modal-ref { margin-left: auto; font-size: 0.8rem; color: var(--olive-2); font-weight: 700; letter-spacing: 0.05em; }

.modal-body {
  padding: 1.4rem clamp(1rem, 4vw, 2.2rem) 6.5rem;
  max-width: 1180px;
  margin: 0 auto;
}
@media (min-width: 960px) { .modal-body { padding-bottom: 4rem; } }

/* Galeria — no mobile só a foto principal + tira horizontal; thumbs laterais no desktop */
.galeria { display: grid; gap: 0.7rem; margin-bottom: 1rem; }
.g-thumb-desktop { display: none; }
@media (min-width: 860px) {
  .galeria { grid-template-columns: 1.75fr 1fr; grid-auto-rows: 245px; margin-bottom: 1.9rem; }
  .g-main { grid-row: span 2; }
  .g-thumb-desktop { display: block; }
}
.g-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--soft);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  min-height: 230px;
}
@media (min-width: 860px) { .g-item { min-height: 0; } }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
@media (hover: hover) { .g-item:hover img { transform: scale(1.04); } }
.g-vermais {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(13, 23, 18, 0.56);
  color: var(--ivory);
  font-weight: 700;
  font-size: 1rem;
}
.g-thumbs-mobile {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  margin-bottom: 1.4rem;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.g-thumbs-mobile::-webkit-scrollbar { display: none; }
.g-thumbs-mobile .g-item { flex: 0 0 132px; aspect-ratio: 4 / 3; min-height: 0; scroll-snap-align: start; }
@media (min-width: 860px) { .g-thumbs-mobile { display: none; } }

/* Corpo do imóvel */
.imovel-grid { display: grid; gap: 2.2rem; align-items: start; }
@media (min-width: 960px) { .imovel-grid { grid-template-columns: 1fr 380px; gap: 3rem; } }

.imovel-conteudo h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin-bottom: 0.5rem; }
.imovel-endereco {
  color: var(--olive);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.7rem;
}
.imovel-endereco svg { width: 16px; height: 16px; color: var(--brass); flex: 0 0 auto; }

.carac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(106px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.9rem;
}
.carac {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.6rem;
  text-align: center;
}
.carac svg { width: 20px; height: 20px; color: var(--brass); margin: 0 auto 0.35rem; display: block; }
.carac b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.carac span { font-size: 0.73rem; color: var(--olive); line-height: 1.25; display: block; }

.imovel-conteudo h3 { margin: 1.9rem 0 0.7rem; }
.imovel-desc { color: #3f473f; color: oklch(0.4 0.02 160); white-space: pre-line; max-width: 65ch; line-height: 1.72; }

.pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--olive);
}
.pill.green { background: rgba(2, 122, 72, 0.08); border-color: rgba(2, 122, 72, 0.24); color: var(--selo); }
.itens-cat { margin-bottom: 0.95rem; }
.itens-cat h5 {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--olive-2);
  margin-bottom: 0.45rem;
}

/* Card de conversão */
.conv-card {
  position: sticky;
  top: 74px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 1.7rem 1.55rem;
}
.conv-preco-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--selo);
}
.conv-preco { font-family: var(--font-display); font-weight: 700; font-size: 2.35rem; line-height: 1.05; letter-spacing: -0.01em; }
.conv-iptu { font-size: 0.82rem; color: var(--olive-2); margin-top: 0.25rem; }
.conv-div { height: 1px; background: var(--line); margin: 1.15rem 0; }
.conv-card h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; margin-bottom: 0.9rem; }

/* Barra mobile fixa no modal */
.conv-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 34px -12px rgba(19, 32, 26, 0.25);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 1rem;
}
.conv-bar .cb-preco { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.05; white-space: nowrap; }
.conv-bar .cb-preco small {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--olive-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.15rem;
}
.conv-bar .btn { flex: 1; min-height: 50px; padding: 0.8rem 1rem; font-size: 0.92rem; }
@media (min-width: 960px) { .conv-bar { display: none; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 16, 13, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
[hidden] { display: none !important; }
.lb-img {
  max-width: 92vw;
  max-height: 84svh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px -12px rgba(0, 0, 0, 0.7);
  user-select: none;
  -webkit-user-select: none;
}
.lb-close {
  position: absolute;
  top: calc(0.9rem + env(safe-area-inset-top));
  right: calc(1rem + env(safe-area-inset-right));
  font-size: 2.1rem;
  color: var(--ivory);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: var(--ivory);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
}
.lb-close:active, .lb-nav:active { background: rgba(246, 243, 236, 0.14); }
@media (hover: hover) {
  .lb-close:hover, .lb-nav:hover { background: rgba(246, 243, 236, 0.12); }
}
.lb-prev { left: calc(0.6rem + env(safe-area-inset-left)); }
.lb-next { right: calc(0.6rem + env(safe-area-inset-right)); }
.lb-count {
  position: absolute;
  bottom: calc(1.1rem + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  color: var(--ivory);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(246, 243, 236, 0.1);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .lb-nav { width: 46px; height: 46px; font-size: 2rem; }
}

body.locked { overflow: hidden; }
