/* Mosaico Imóveis — Apartamento Veneza 2
   CSS puro, mobile-first, sem dependências externas. */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #1c1c1e;
  --ink-soft: #3a3936;
  --muted: #8c887e;
  --line: #e6e2da;
  --accent: #68009d;
  --accent-dark: #4a0071;
  --radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 860px) {
  .wrap { max-width: 1040px; }
}

/* ---------- top bar ----------
   full-bleed: mesmo padrão da barra fixa de WhatsApp — o fundo roxo
   ocupa a largura inteira da janela, o conteúdo interno fica alinhado
   ao centro, com a mesma largura do .wrap. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  justify-content: center;
  background: var(--accent);
}

.topbar-inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  padding: 12px 20px;
}

@media (min-width: 860px) { .topbar-inner { max-width: 1040px; padding-left: 56px; padding-right: 56px; } }

.topbar .brand { display: flex; align-items: center; gap: 12px; }

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark-img {
  width: 38px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.brand-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.topbar .brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

@media (min-width: 860px) { .topbar .brand-name { font-size: 22px; } }

/* ---------- shared section layout ---------- */
.section {
  padding: 34px 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* quando uma seção tem max-width menor que o .wrap (FAQ, formulário),
     isso centraliza ela em vez de deixar colada na esquerda em telas largas */
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.section.hero { padding-top: 24px; gap: 18px; }

.section-title {
  margin: 0;
  font-size: 19px;
}

.section-title::after {
  content: '';
  display: block;
  width: 26px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 7px;
}

.section-sub { margin: 0; font-size: 12.5px; color: var(--muted); }

@media (min-width: 860px) {
  .section { padding-left: 56px; padding-right: 56px; padding-top: 48px; }
  .section.hero { padding-top: 48px; }
}

/* ---------- hero ---------- */
.hero-photo {
  width: 100%;
  height: 260px;
  border-radius: 16px;
  box-shadow: 0 14px 30px -18px rgba(28, 28, 30, 0.35);
}

@media (min-width: 860px) { .hero-photo { height: 420px; } }

.badge {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 5px 11px;
  border-radius: 999px;
}

.hero-title {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.16;
  font-weight: 800;
}

@media (min-width: 860px) { .hero-title { font-size: 36px; } }

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 4px;
}

@media (min-width: 860px) { .stat-row { flex-direction: row; } }

.stat-cell {
  flex: 1;
  background: var(--surface);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-cell .value { font-size: 17px; font-weight: 700; color: var(--ink); }
.stat-cell .value.price { font-size: 21px; }
.stat-cell .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- CTA ---------- */
.cta-row { display: flex; justify-content: center; padding-top: 4px; }

.cta-chip {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 11px 20px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.cta-chip:hover { background: var(--accent-dark); }

/* ---------- ficha tecnica grid ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.grid-2.rooms { gap: 18px; }

@media (min-width: 860px) {
  .grid-2.rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .grid-2 { gap: 16px; }
}

.fact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fact-card .value { font-size: 17px; font-weight: 700; color: var(--ink); }
.fact-card .label { font-size: 12px; color: var(--muted); }

/* ---------- ambientes (placeholder / slider) ----------
   cada ambiente fica numa "moldura" fechada (fundo, borda, sombra) pra
   não ter dúvida onde um ambiente termina e o outro começa. */
.room-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 10px 14px;
  box-shadow: 0 10px 24px -20px rgba(28, 28, 30, 0.25);
}

.room-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f4f3ef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.room-photo .placeholder-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin-top: 8px;
}

/* ---------- slider de comparação (vazio / mobiliado) ---------- */
.compare-base,
.compare-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-overlay {
  clip-path: inset(0 0 0 50%);
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  transform: translateX(-1px);
  pointer-events: none;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(28, 28, 30, 0.35);
  pointer-events: none;
}

.compare-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(28, 28, 30, 0.6);
  padding: 3px 8px;
  border-radius: 999px;
  pointer-events: none;
}

/* etiqueta com o nome do ambiente, dentro da própria foto — assim a
   identificação do cômodo nunca se separa da imagem, nem some no meio
   do scroll ou fica perto da legenda do card vizinho. */
.room-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.compare-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.room-caption { font-size: 12.5px; color: var(--ink-soft); }

.notice {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

/* ---------- diferenciais ---------- */
.feature-item { display: flex; align-items: flex-start; gap: 9px; }
.feature-item svg { flex-shrink: 0; margin-top: 3px; }
.feature-item span { font-size: 14px; color: var(--ink-soft); line-height: 1.4; }

/* ---------- localizacao ---------- */
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.info-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- faq (accordion nativo, <details>/<summary>) ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.faq-item { background: var(--surface); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item .q { font-size: 14px; font-weight: 600; color: var(--ink); }

.faq-item .chev {
  flex-shrink: 0;
  transition: transform 0.18s ease;
  color: var(--accent);
}

.faq-item[open] .chev { transform: rotate(180deg); }

.faq-item .a {
  font-size: 13.5px;
  color: #6b6862;
  line-height: 1.5;
  padding: 0 16px 16px;
}

/* ---------- formulario ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 24px -18px rgba(28, 28, 30, 0.2);
  max-width: 480px;
  margin: 0 auto;
}

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; color: #6b6862; font-weight: 600; }

.field input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14.5px;
  color: var(--ink);
  background: #f7f6f3;
}

.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.form-submit {
  border: none;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 16px;
  border-radius: 10px;
}

.form-submit:hover { background: #000; }

.form-hint { font-size: 11px; color: #a19c8f; line-height: 1.4; }
.form-status { font-size: 13px; font-weight: 600; display: none; }
.form-status.ok { color: #2f7d4f; display: block; }
.form-status.err { color: #a34a3a; display: block; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 14px;
  padding: 24px 20px calc(104px + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer .brand { display: flex; align-items: center; gap: 10px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { font-size: 9.5px; font-weight: 600; color: #a8a49a; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer .meta { display: flex; flex-direction: column; gap: 3px; }
.site-footer .meta span { font-size: 12.5px; color: #cbc7bc; }
.site-footer .meta span.addr { font-size: 12px; color: #8c887e; }

/* ---------- botao flutuante whatsapp ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  /* verde oficial do WhatsApp (não o roxo da marca) — de propósito,
     pra ficar óbvio de cara que é o botão de conversa, sem o cliente
     ter que ler nada antes de clicar */
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(28, 28, 30, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}

.wa-float:hover { background: #1ebe5a; transform: translateY(-1px); }
