/* Seu Novo Apartamento — identidade visual da Cury (Ubuntu, azul-marinho e azuis), feito para celular primeiro. */
:root {
  --navy: #1a374d;
  --navy-2: #0d2c40;
  --blue: #2d719f;
  --blue-2: #3e92cc;
  --sky: #d4dce2;
  --soft: #eef2f5;
  --line: #dde4ea;
  --ink: #212529;
  --muted: #5f6b76;
  --white: #fff;
  --wa: #25d366;
  --wa-2: #1da851;
  --yellow: #ffd23f;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(13, 44, 64, .12);
  --max: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* filtros e janelas escondem com o atributo hidden */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Ubuntu, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--white); line-height: 1.5; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 5.4vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.sec { padding: 40px 0; }
.sec-soft { background: var(--soft); }
.sec-navy { background: var(--navy); color: #fff; }
.sec-navy h2 { color: #fff; }
.lead { font-size: 1.08rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logo img { height: 34px; width: auto; }
.nav { display: none; gap: 22px; align-items: center; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--blue); }
.top-cta { display: inline-flex; }
@media (min-width: 900px) { .nav { display: flex; } }
.faixa { background: var(--navy); color: #cfe0ec; font-size: .78rem; text-align: center; padding: 5px 12px; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 14px 22px; font: 700 1rem/1.2 Ubuntu, sans-serif; text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; text-align: center; }
.btn:active { transform: scale(.98); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .35); }
.btn-wa:hover { background: var(--wa-2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); }
.btn-line { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-line:hover { background: var(--soft); }
.btn-sm { padding: 9px 14px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- herói do empreendimento ---------- */
.hero { position: relative; color: #fff; background: var(--navy-2); overflow: hidden; }
.hero picture, .hero .hero-img { position: absolute; inset: 0; }
.hero .hero-img img, .hero picture img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 44, 64, .15) 0%, rgba(13, 44, 64, .55) 45%, rgba(13, 44, 64, .95) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 26px; }
.hero h1 { color: #fff; margin-bottom: .2em; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hero .onde { font-size: 1.02rem; opacity: .95; margin-bottom: 14px; }
.badge { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 700; font-size: .78rem; border-radius: 6px; padding: 4px 9px; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 10px; }
.badge-blue { background: var(--blue-2); color: #fff; }
.badge-gray { background: var(--sky); color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.chips li { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 6px 12px; font-size: .9rem; backdrop-filter: blur(4px); }
.preco { margin: 4px 0 16px; }
.preco small { display: block; font-size: .85rem; opacity: .9; }
.preco strong { font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.1; }
.hero-ctas { display: grid; gap: 10px; }
.hero-note { font-size: .74rem; opacity: .8; margin: 12px 0 0; }
@media (min-width: 760px) {
  .hero .wrap { padding-top: 220px; padding-bottom: 44px; }
  .hero-ctas { grid-template-columns: auto auto; justify-content: start; }
}

/* ---------- blocos ---------- */
.grid2 { display: grid; gap: 22px; }
.grid2 > * { min-width: 0; }
@media (min-width: 860px) { .grid2 { grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; } }
.perto { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.perto li { display: flex; gap: 10px; align-items: flex-start; }
.perto li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232d719f' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }

/* tabela de plantas e preços */
.tipos { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tipos th, .tipos td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tipos th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 500; }
.tipos td.v { font-weight: 700; color: var(--navy); }
.tipos .n { white-space: nowrap; }
.tipos td.v .selo { display: inline-block; margin: 0 4px 4px 0; }
.tipos tr:last-child td { border-bottom: 0; }
.nota { font-size: .78rem; color: var(--muted); margin-top: 10px; }

/* faixas de renda */
.faixas { display: grid; gap: 12px; }
@media (min-width: 700px) { .faixas { grid-template-columns: repeat(3, 1fr); } }
.faixa-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; }
.faixa-card b { color: var(--navy); font-size: 1.05rem; }
.faixa-card p { margin: 6px 0 0; font-size: .92rem; color: var(--muted); }
.selos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.selo { border: 1.5px solid var(--navy); color: var(--navy); border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: .85rem; }

/* galerias (rolagem lateral, toque para ampliar) */
.galeria { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; margin: 0 -16px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.galeria button { scroll-snap-align: start; border: 0; padding: 0; background: var(--soft); border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 10; }
.galeria img { width: 100%; height: 100%; object-fit: cover; }
.galeria.plantas button { aspect-ratio: 16 / 10; background: #fff; border: 1px solid var(--line); }
.galeria.plantas img { object-fit: contain; }
@media (min-width: 760px) { .galeria { grid-auto-columns: 40%; } }
@media (min-width: 1100px) { .galeria { grid-auto-columns: 31%; } }
.gal-dica { font-size: .8rem; color: var(--muted); margin: -4px 0 8px; }

/* ampliar foto */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(5, 15, 25, .94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 96vw; max-height: 84vh; object-fit: contain; }
.lb button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.lb .lb-x { top: 14px; right: 14px; }
.lb .lb-p { left: 10px; top: 50%; transform: translateY(-50%); }
.lb .lb-n { right: 10px; top: 50%; transform: translateY(-50%); }
.lb .lb-c { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #cdd8e0; font-size: .85rem; }

/* vídeo leve */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video .play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center; }
.video .play::after { content: ""; border-left: 24px solid var(--navy); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* lazer */
.lazer { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.lazer li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; font-size: .86rem; color: var(--navy); }
.lazer img { width: 34px; height: 34px; margin: 0 auto 6px; object-fit: contain; }

/* local */
.local { display: grid; gap: 14px; }
@media (min-width: 760px) { .local { grid-template-columns: 1fr 1fr; } }
.local .card p { margin: 0 0 12px; }
.local .rotas { display: flex; gap: 8px; flex-wrap: wrap; }

/* perguntas */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* cartões da lista */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.emp { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 2px 10px rgba(13, 44, 64, .06); transition: box-shadow .15s, transform .15s; }
.emp:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.emp .ft { position: relative; aspect-ratio: 16 / 10; background: var(--soft); }
.emp .ft img { width: 100%; height: 100%; object-fit: cover; }
.emp .ft .badge { position: absolute; top: 10px; left: 10px; margin: 0; }
.emp .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.emp .bd h3 { margin: 0; font-size: 1.08rem; }
.emp .bd .b { color: var(--blue); font-size: .88rem; font-weight: 500; }
.emp .bd .r { color: var(--muted); font-size: .88rem; }
.emp .bd .p { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--navy); }
.emp .bd .p small { font-weight: 400; color: var(--muted); }

/* busca */
.busca { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.busca label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--muted); }
.busca select { font: 500 .95rem Ubuntu, sans-serif; color: var(--navy); border: 1px solid var(--line); border-radius: 10px; padding: 11px 10px; background: #fff; width: 100%; }
@media (min-width: 860px) { .busca { grid-template-columns: repeat(4, 1fr); } }
.contagem { margin: 18px 0 12px; color: var(--muted); font-size: .92rem; }
.home-hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 34px 0 24px; }
.home-hero h1 { color: #fff; }
.home-hero p { color: #cfe0ec; }
.chips-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.chips-links a { color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 6px 12px; text-decoration: none; font-size: .88rem; }
.chips-links a:hover { background: rgba(255, 255, 255, .12); }
.vazio { padding: 30px; text-align: center; color: var(--muted); }

/* textos legais e rodapé */
.legal { font-size: .72rem; color: var(--muted); line-height: 1.45; text-transform: none; }
.rodape { background: var(--navy-2); color: #b9cad7; padding: 30px 0 96px; font-size: .88rem; }
.rodape a { color: #fff; }
.rodape .aviso { border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.rodape nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
@media (min-width: 760px) { .rodape { padding-bottom: 30px; } }
.trilha { font-size: .82rem; color: var(--muted); padding-top: 12px; }
.trilha a { color: var(--muted); }

/* barra fixa no celular */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(13, 44, 64, .1); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; transform: translateY(110%); transition: transform .2s; }
.barra.on { transform: none; }
.barra .bp { flex: 1; line-height: 1.15; }
.barra .bp small { display: block; color: var(--muted); font-size: .72rem; }
.barra .bp b { color: var(--navy); font-size: 1.05rem; }
.barra .btn { padding: 12px 16px; font-size: .95rem; }
@media (min-width: 900px) { .barra { display: none; } }
.flutua { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); display: none; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); border: 0; cursor: pointer; }
.flutua svg { width: 32px; height: 32px; }
@media (min-width: 900px) { .flutua { display: flex; } }

/* janela estilo WhatsApp */
body.wa-lock { overflow: hidden; }
.wa-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(8, 20, 30, .6); display: flex; align-items: flex-end; justify-content: center; }
.wa-overlay[hidden] { display: none; }
@media (min-width: 600px) { .wa-overlay { align-items: center; } }
.wa-modal { width: 100%; max-width: 420px; background: #efeae2; border-radius: 18px 18px 0 0; overflow: hidden; box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); animation: sobe .22s ease-out; }
@media (min-width: 600px) { .wa-modal { border-radius: 18px; } }
@keyframes sobe { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.wa-head { background: #075e54; color: #fff; display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.wa-avatar img { width: 34px; height: auto; }
.wa-head-txt { flex: 1; line-height: 1.2; }
.wa-head-txt strong { display: block; font-size: 1rem; }
.wa-head-txt span { font-size: .78rem; opacity: .85; }
.wa-close { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; }
.wa-body { padding: 16px 14px 18px; display: grid; gap: 10px; }
.wa-bubble { background: #fff; border-radius: 0 10px 10px 10px; padding: 10px 12px; font-size: .95rem; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); max-width: 92%; }
.wa-bubble b { color: var(--navy); }
.wa-body label { font-size: .8rem; color: #54656f; display: grid; gap: 4px; }
.wa-body input { font: 1rem Ubuntu, sans-serif; border: 1px solid #d1d7db; border-radius: 10px; padding: 12px; background: #fff; width: 100%; }
.wa-body input:focus { outline: 2px solid #25d366; border-color: transparent; }
.wa-send { background: var(--wa); color: #fff; border: 0; border-radius: 999px; padding: 14px; font: 700 1rem Ubuntu, sans-serif; cursor: pointer; display: flex; gap: 8px; align-items: center; justify-content: center; }
.wa-send:disabled { opacity: .7; }
.wa-err { color: #c0392b; font-size: .85rem; margin: 0; }
.wa-note { font-size: .74rem; color: #667781; margin: 0; text-align: center; }
.wa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* páginas de texto */
.texto { max-width: 760px; }
.texto h2 { margin-top: 1.4em; }
