/* =========================================================================
   Kauan Cardoso · estilos
   Direção: editorial e premium, em azul-marinho, preto, chumbo, cinza espacial e branco.
   Bricolage Grotesque estreita nos títulos (voz própria, sotaque gráfico),
   Hanken Grotesk no texto. Fundo gelo, tinta quase preta e azul-aço só em
   detalhes. Fios finos no lugar de sombras; cantos quase retos.
   Imóveis em fundo branco e neutro: a marca das construtoras não se mistura
   com a do Kauan.
   ========================================================================= */

:root {
  --ink: #0b1220;          /* azul-marinho quase preto: texto principal e marca */
  --ink-2: #2b313b;
  --terra: #46536b;        /* azul-aço: acento discreto */
  --terra-soft: #dde1e8;
  --paper: #f4f5f7;        /* fundo */
  --paper-2: #e6e8ec;      /* faixas */
  --white: #ffffff;        /* cartões */
  --stone: #5e6573;        /* texto secundário */
  --line: rgba(11, 18, 32, 0.14);
  --line-strong: rgba(11, 18, 32, 0.32);
  --wa: #0b1220;           /* botões de WhatsApp em preto-azulado, como o resto da marca */
  --wa-dark: #000000;
  --danger: #a32a1f;
  --r: 4px;
  --r-lg: 8px;
  --gutter: 18px;
  --wrap: 1240px;
  --top-h: 64px;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1000px) { :root { --gutter: 48px; --top-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); background: var(--paper); }
html.no-scroll, html.no-scroll body { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--terra-soft); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: var(--r); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.loading { padding-block: 120px; color: var(--stone); }

/* Títulos: estreitos, pesados na medida, com tracking negativo */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  font-variation-settings: "wdth" 82, "opsz" 96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 10.5vw, 5.6rem); line-height: 0.95; }
h2 { font-size: clamp(2.1rem, 7vw, 3.6rem); line-height: 1; }
h3 { font-size: 1.3rem; line-height: 1.15; font-variation-settings: "wdth" 88, "opsz" 24; letter-spacing: -0.015em; }

/* Rótulo de seção: pequeno, com fio antes */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 600 0.75rem/1.2 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.fine { font-size: 0.85rem; color: var(--stone); line-height: 1.5; }
.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 5px; text-decoration-thickness: 1px; cursor: pointer;
}
.link:hover { text-decoration-color: currentColor; }
.link--arrow { text-decoration: none; border-bottom: 1px solid var(--ink); min-height: 0; padding-bottom: 4px; }
.link--arrow .icon { transition: transform 0.25s var(--ease); }
.link--arrow:hover .icon { transform: translateX(4px); }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  border: 1px solid var(--bd); border-radius: var(--r);
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1.1 var(--body); letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color 0.2s var(--ease), border-color 0.2s, color 0.2s;
}
.btn--primary { --bg: var(--ink); }
.btn--primary:hover { --bg: var(--ink-2); }
.btn--wa { --bg: var(--wa); }
.btn--wa:hover { --bg: var(--wa-dark); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.btn--ghost:hover { --bd: var(--ink); }
.btn--light { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn--light:hover { --bg: #fff; --bd: #fff; }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 0.94rem; }
.btn--lg { min-height: 58px; padding: 14px 28px; font-size: 1.05rem; }
.btn--icon { width: 46px; min-height: 46px; padding: 0; }
.btn--block { width: 100%; }

/* ---------- Topo ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--top-h); background: rgba(244, 245, 247, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.top.is-scrolled, .top.is-solid { border-bottom-color: var(--line); }
.top__bar { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__mark {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: var(--r); background: var(--ink); color: var(--paper);
  font: 700 1.05rem/1 var(--display); font-variation-settings: "wdth" 75, "opsz" 24; letter-spacing: -0.06em;
}
.brand__text { display: grid; line-height: 1.15; min-width: 0; }
.brand__text b { font: 600 1.18rem/1 var(--display); font-variation-settings: "wdth" 82, "opsz" 24; letter-spacing: -0.02em; color: var(--ink); }
.brand__text small { margin-top: 3px; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--stone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: none; }
.top__wa span { display: none; }
.top__wa { width: 44px; padding: 0; }
@media (min-width: 900px) {
  .nav { display: flex; gap: 28px; }
  .nav a { padding: 6px 0; text-decoration: none; font-weight: 500; color: var(--ink); border-bottom: 1px solid transparent; }
  .nav a:hover { border-bottom-color: var(--ink); }
  .top__wa { width: auto; padding: 8px 18px; }
  .top__wa span { display: inline; }
}

/* ---------- Início ---------- */
.hero { padding: 20px 0 56px; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; gap: 28px; }
.hero__photo { order: -1; }
/* Foto em pé (9:16) com o Kauan de corpo inteiro: o recorte fica nele, do rosto aos pés */
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; max-height: 64svh; object-fit: cover; object-position: 42% 78%; border-radius: var(--r); background: var(--paper-2); }
.hero__badge { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--stone); }
.hero__badge b { color: var(--ink); font-weight: 600; }
.hero__copy { display: grid; gap: 22px; align-content: start; }
.hero__copy h1 { max-width: 12ch; }
.hero__lead { font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.quick { display: grid; gap: 0; margin-top: 6px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--white); overflow: hidden; }
.quick__field { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.quick__field input, .quick__field select { width: 100%; min-height: 56px; padding: 14px 16px; border: 0; background: transparent; font-size: 1rem; }
.quick__field select { -webkit-appearance: none; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b1220' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 40px; }
.quick__field input:focus, .quick__field select:focus { outline: none; background-color: #fff; }
.quick__field--text .icon { position: absolute; left: 16px; color: var(--stone); pointer-events: none; }
.quick__field--text input { padding-left: 46px; }
.quick .btn { min-height: 56px; border-radius: 0; border: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.trust { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.85rem; color: var(--stone); }
.trust li + li::before { content: "/"; margin: 0 10px; color: var(--line-strong); }
@media (min-width: 720px) {
  .quick { grid-template-columns: 1.7fr 1fr auto; }
  .quick__field { border-bottom: 0; border-right: 1px solid var(--line); }
}
@media (min-width: 1000px) {
  .hero { padding: 56px 0 88px; }
  .hero__grid { grid-template-columns: 1.3fr 0.8fr; gap: 72px; align-items: end; }
  .hero__photo { order: 0; }
  .hero__photo img { max-height: none; }
}

/* ---------- Seções ---------- */
.section { padding: clamp(64px, 11vw, 112px) 0; }
.section--tint { background: rgba(230, 232, 236, 0.85); }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 50rem; }
.section-head__lead { color: var(--stone); font-size: 1.08rem; max-width: 50ch; }

/* ---------- Filtros ---------- */
.filters { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 18px; }
.filters__search { position: relative; display: flex; align-items: center; }
.filters__search .icon { position: absolute; left: 14px; color: var(--stone); pointer-events: none; }
.filters__search input { width: 100%; min-height: 50px; padding: 12px 14px 12px 44px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--white); font-size: 1rem; }
.filters__search input:focus { outline: none; border-color: var(--ink); }
.filters__toggle { min-height: 50px; }
.filters__badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 2px; background: var(--terra); color: #fff; font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.filters__more { grid-column: 1 / -1; display: none; grid-template-columns: 1fr 1fr; gap: 12px 10px; padding: 16px 0 4px; border-top: 1px solid var(--line); }
.filters.is-open .filters__more { display: grid; }
.fsel { display: grid; gap: 6px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }
.fsel select {
  min-height: 46px; padding: 8px 34px 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r);
  -webkit-appearance: none; appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b1220' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 0.98rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink);
}
.filters__clear { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 1000px) {
  .filters { grid-template-columns: 1fr; }
  .filters__toggle { display: none; }
  .filters__more { display: grid; grid-template-columns: repeat(5, 1fr) auto; align-items: end; padding-top: 16px; }
  .filters__clear { grid-column: auto; }
}
.results { margin-bottom: 22px; color: var(--stone); font-size: 0.95rem; }
.results b { color: var(--ink); font-weight: 600; }
.results:focus { outline: none; }
.results__note { display: block; margin-top: 2px; font-size: 0.86rem; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 40px 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; } }
.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; border-radius: var(--r); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.4s; }
.card:hover .card__media img { transform: scale(1.025); }
.card__stage, .card__video { position: absolute; top: 0; padding: 7px 10px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.card__stage { left: 0; background: var(--ink); color: var(--paper); border-bottom-right-radius: var(--r); }
.card__stage.is-pending { background: var(--white); color: var(--stone); }
.card__video { right: 0; display: inline-flex; align-items: center; gap: 5px; background: rgba(11, 18, 32, 0.72); color: #fff; border-bottom-left-radius: var(--r); }
.card__video .icon { width: 0.8em; height: 0.8em; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; flex: 1; }
.card__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
.card__meta span:last-child { font-variant-numeric: tabular-nums; }
.card__dev { order: -1; font-size: 0.8rem; font-weight: 600; color: var(--terra); }
.card__dev span { font-weight: 400; color: var(--stone); }
.card__title { font-size: 1.5rem; line-height: 1.05; margin-top: 2px; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__loc { display: flex; align-items: center; gap: 6px; font-size: 0.92rem; color: var(--stone); }
.card__loc .icon { display: none; }
.card__facts { display: flex; flex-wrap: wrap; font-size: 0.92rem; color: var(--ink-2); }
.card__facts .icon { display: none; }
.card__facts li + li::before { content: "·"; margin: 0 8px; color: var(--stone); }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.card__body > .card__foot { margin-top: 10px; }
.card__price { display: grid; line-height: 1.15; }
.card__price b { font: 600 1.4rem/1 var(--display); font-variation-settings: "wdth" 85, "opsz" 32; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.card__price b.is-muted { font: 500 1rem/1.2 var(--body); color: var(--stone); }
.card__price small { margin-top: 4px; font-size: 0.74rem; color: var(--stone); }
.card__foot .btn { position: relative; z-index: 1; --bg: transparent; --fg: var(--wa); --bd: var(--line-strong); }
.card__foot .btn:hover { --bg: var(--wa); --fg: #fff; --bd: var(--wa); }
.empty { display: grid; gap: 14px; justify-items: start; padding: 24px 0; border-top: 1px solid var(--line); }

/* Atalhos de empreendimentos */
.more-dev { display: grid; gap: 16px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--ink); }
.more-dev p { color: var(--stone); font-size: 0.95rem; max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 0; }
.chips li { border-right: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; text-decoration: none; font: 600 1.05rem/1 var(--display); font-variation-settings: "wdth" 85, "opsz" 24; letter-spacing: -0.01em; color: var(--ink); }
.chip:hover { color: var(--terra); }
@media (min-width: 1000px) { .more-dev { grid-template-columns: 0.75fr 1.25fr; align-items: start; } .chips { margin-top: -10px; } }

/* ---------- Formulários ---------- */
.card-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px; }
@media (min-width: 640px) { .card-box { padding: 36px; } }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { font-weight: 600; font-size: 0.95rem; color: var(--ink); padding: 0; }
.field > legend { margin-bottom: 8px; }
.field input[type="text"], .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; font-size: 1rem;
}
.field select { -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b1220' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus { border-color: var(--ink); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field__err { color: var(--danger); font-weight: 600; font-size: 0.88rem; }
.opt-tag { font-weight: 400; font-size: 0.82rem; color: var(--stone); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; font-weight: 500; font-size: 0.95rem; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.opt:hover span { border-color: var(--ink); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.opt input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.done:empty { display: none; }
.done { display: grid; gap: 4px; padding: 12px 14px; border-left: 2px solid var(--wa); background: #eef0f3; font-size: 0.95rem; }

/* ---------- Simulação ---------- */
.sim { display: grid; gap: 36px; }
.sim__form { display: grid; gap: 22px; }
.sim__steps { display: grid; gap: 0; margin-top: 16px; border-top: 1px solid var(--line-strong); }
.sim__steps li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.sim__steps b { font: 600 1.6rem/1 var(--display); font-variation-settings: "wdth" 75, "opsz" 48; color: var(--terra); font-variant-numeric: tabular-nums; }
@media (min-width: 1000px) { .sim { grid-template-columns: 1fr 1fr; gap: 88px; align-items: start; } .sim__head { position: sticky; top: calc(var(--top-h) + 32px); } }

/* ---------- Sobre ---------- */
.about { display: grid; gap: 32px; }
.about__photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--paper-2); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.about__copy { display: grid; gap: 18px; align-content: center; }
.about__copy p { font-size: 1.12rem; color: var(--ink-2); max-width: 54ch; }
.about__copy a { font-weight: 600; color: var(--ink); text-underline-offset: 4px; }
.facts { display: grid; gap: 0; margin-top: 10px; border-top: 1px solid var(--line-strong); }
.facts li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts b { font: 600 2rem/1 var(--display); font-variation-settings: "wdth" 80, "opsz" 64; letter-spacing: -0.02em; color: var(--ink); }
.facts span { color: var(--stone); font-size: 0.94rem; }
@media (min-width: 900px) {
  .about { grid-template-columns: 0.85fr 1.15fr; gap: 72px; }
  .facts { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
.wins { margin-top: 80px; }
.wins__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin-bottom: 22px; padding-top: 22px; border-top: 1px solid var(--ink); }
.wins__head h3 { font-size: 1.8rem; font-variation-settings: "wdth" 82, "opsz" 48; }
.wins__head p { color: var(--stone); }
.wins__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 74%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
.win { scroll-snap-align: start; }
.win a { display: block; text-decoration: none; }
.win img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); background: var(--paper-2); }
.win__cap { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; font-size: 0.88rem; }
.win__cap b { font-weight: 600; }
.win__cap small { color: var(--stone); font-size: 0.82rem; white-space: nowrap; }
@media (min-width: 900px) { .wins__list { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 28px; } }

/* ---------- Chamada final ---------- */
.cta { padding: clamp(72px, 13vw, 132px) 0; background: var(--ink); color: var(--paper); }
.cta__inner { display: grid; gap: 20px; justify-items: start; }
.cta h2 { color: var(--paper); font-size: clamp(2.6rem, 9vw, 5rem); max-width: 14ch; }
.cta p { color: rgba(244, 245, 247, 0.75); font-size: 1.12rem; max-width: 46ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cta .btn--light { --fg: var(--ink); }
.cta .btn--wa { --bg: #ffffff; --bd: #ffffff; }
.cta .btn--wa:hover { --bg: #e6e8ec; }
.cta__meta { font-size: 0.88rem !important; letter-spacing: 0.02em; }

/* ---------- Rodapé ---------- */
.foot { padding: 32px 0 calc(110px + env(safe-area-inset-bottom)); background: #05080e; color: rgba(244, 245, 247, 0.72); font-size: 0.9rem; border-top: 1px solid rgba(244, 245, 247, 0.12); }
.foot__inner { display: grid; gap: 10px; }
.foot b { color: var(--paper); font-weight: 600; }
.foot__legal { font-size: 0.82rem; max-width: 80ch; color: rgba(244, 245, 247, 0.55); }
.foot__copy { font-size: 0.8rem; color: rgba(244, 245, 247, 0.45); }
@media (min-width: 900px) { .foot { padding-bottom: 32px; } }

/* ---------- Botão fixo (início) ---------- */
.fab {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px;
  border-radius: var(--r); background: var(--wa); color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.22); transition: transform 0.3s var(--ease), opacity 0.3s;
}
.fab .icon { width: 22px; height: 22px; }
.fab.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .fab { left: auto; right: 28px; bottom: 28px; padding: 0 22px; } }

/* ---------- Página do imóvel ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 16px; font-size: 0.84rem; color: var(--stone); }
.crumbs a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

.gal__rail { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.gal__rail::-webkit-scrollbar { display: none; }
.gal__item { display: block; width: 100%; height: clamp(300px, 64vw, 480px); padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--paper-2); cursor: zoom-in; scroll-snap-align: start; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gal__item:hover img { transform: scale(1.02); }
.gal__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.gal__note { font-size: 0.82rem; color: var(--stone); }
.gal__bar .btn--light { --bg: transparent; --bd: var(--line-strong); }
@media (min-width: 720px) { .gal__rail { grid-auto-columns: 34%; } }
@media (min-width: 1000px) {
  .gal__rail { grid-auto-columns: calc((min(100vw, var(--wrap)) - 2 * var(--gutter)) / 4); max-width: var(--wrap); margin-inline: auto; }
  .gal__item { height: 440px; }
  .gal__rail li:first-child { grid-column: span 2; }
}

.pd { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 72px; }
.pd__main { min-width: 0; }
.pd__head { display: grid; gap: 14px; padding-bottom: 24px; }
.pd__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 2px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }
.tag--strong { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pd__dev { font-size: 0.95rem; color: var(--stone); }
.pd__dev span { margin-right: 6px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
.pd__dev b { color: var(--terra); font-weight: 600; }
.pd__head h1 { font-size: clamp(2.3rem, 8vw, 4rem); }
.pd__loc { display: flex; align-items: center; gap: 6px; color: var(--stone); }
.pd__loc .icon { display: none; }
.pd__lead { font-size: 1.18rem; color: var(--ink-2); max-width: 56ch; }
.pd__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin-top: 6px; border-top: 1px solid var(--line-strong); }
.pd__facts li { display: grid; gap: 2px; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.pd__facts .icon { display: none; }
.pd__facts span { font: 600 1.3rem/1.1 var(--display); font-variation-settings: "wdth" 82, "opsz" 32; color: var(--ink); }

.subnav { position: sticky; top: var(--top-h); z-index: 20; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter); background: rgba(244, 245, 247, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; font-weight: 500; font-size: 0.94rem; color: var(--stone); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.pd__sec { display: grid; gap: 14px; padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--top-h) + 56px); }
.pd__sec h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.pd__sec h3 { margin-top: 10px; font-size: 1.15rem; }
.pd__sec p { max-width: 62ch; color: var(--ink-2); }
.ticks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ticks li { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ticks .icon { display: none; }
.ticks li::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--terra); transform: translateY(-2px); }
@media (min-width: 640px) { .ticks { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.pd__video { max-width: 360px; border-radius: var(--r); overflow: hidden; background: #000; }
.pd__video video { display: block; width: 100%; aspect-ratio: 9 / 16; }
.pending-box { display: grid; gap: 12px; justify-items: start; padding: 18px 0 0; border-top: 1px dashed var(--line-strong); }
.pd__addr { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.map { display: grid; gap: 10px; justify-items: start; }
.map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--r); background: var(--paper-2); }
.pend { display: flex; flex-wrap: wrap; gap: 6px; }
.pend li { padding: 5px 10px; border: 1px dashed var(--line-strong); border-radius: 2px; font-size: 0.86rem; color: var(--stone); }
.pd__src { padding-top: 22px; font-size: 0.84rem; color: var(--stone); }
.pd__src a { color: var(--ink); text-underline-offset: 3px; }

.pd__side { display: grid; gap: 16px; align-content: start; }
.price-box { display: grid; gap: 10px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--r); }
.price-box__label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.price-box__value { font: 600 2.4rem/1 var(--display); font-variation-settings: "wdth" 80, "opsz" 64; letter-spacing: -0.025em; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-box__note { font-size: 0.85rem; color: var(--stone); margin-bottom: 8px; }
.price-box__row { display: flex; justify-content: space-between; gap: 10px; }
.agent { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.agent img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.agent p { display: grid; line-height: 1.35; font-size: 0.85rem; color: var(--stone); }
.agent b { color: var(--ink); font-size: 1rem; font-weight: 600; }
@media (min-width: 1000px) {
  .pd { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; padding-top: 40px; }
  .pd__side { position: sticky; top: calc(var(--top-h) + 24px); }
  .subnav { margin-inline: 0; padding-inline: 0; }
}
.others h2 { margin-bottom: 32px; }
.others__more { margin-top: 36px; }
.notfound { display: grid; gap: 16px; justify-items: start; padding-block: 112px; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Barra fixa da página do imóvel (celular) */
.bar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--line-strong);
  transition: transform 0.3s var(--ease);
}
.bar.is-hidden { transform: translateY(110%); }
.bar__price { display: grid; line-height: 1.1; }
.bar__price small { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }
.bar__price b { font: 600 1.3rem/1.1 var(--display); font-variation-settings: "wdth" 82, "opsz" 32; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (min-width: 1000px) { .bar { display: none; } }

/* ---------- Ampliação ---------- */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #05080e; color: var(--paper); }
.lb::backdrop { background: #05080e; }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 0 20px; }
.lb__count { font-size: 0.86rem; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.lb__stage { position: relative; min-height: 0; touch-action: pan-y; }
.lb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; opacity: 0; transition: opacity 0.3s; }
.lb__img.is-loaded { opacity: 1; }
.lb__btn { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(244, 245, 247, 0.25); border-radius: var(--r); background: rgba(5, 8, 14, 0.6); color: var(--paper); cursor: pointer; }
.lb__btn:hover { border-color: var(--paper); }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: 12px; }
.lb__next { right: 12px; }
.lb__cap { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); text-align: center; font-size: 0.88rem; color: rgba(244, 245, 247, 0.75); }

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* =========================================================================
   Movimento (assets/js/motion.js)
   Uma curva (--ease) e um ritmo (0,9 s) para tudo: o fundo ondula, o
   conteúdo sobe, os fios se desenham e a foto do card vira a capa do imóvel.
   ========================================================================= */
.bg-lines { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
body { background: transparent; }
main, .foot { position: relative; }

.motion .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s); }
.motion .rv.is-in { opacity: 1; transform: none; }
.motion .rv .eyebrow::before, .motion .eyebrow::before { transition: width 0.9s var(--ease) calc(var(--d, 0s) + 0.2s); }
.motion .rv:not(.is-in) .eyebrow::before { width: 0; }
.motion .more-dev.rv, .motion .wins__head.rv { border-top-color: transparent; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 0 / 0 1px; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), background-size 1.2s var(--ease) 0.15s; }
.motion .more-dev.rv.is-in, .motion .wins__head.rv.is-in { background-size: 100% 1px; }
.motion .card.rv .card__media img { transform: scale(1.08); transition: transform 1.4s var(--ease) var(--d, 0s); }
.motion .card.rv.is-in .card__media img { transform: none; }
.motion .card.rv.is-in:hover .card__media img { transform: scale(1.025); transition-duration: 0.8s; transition-delay: 0s; }

/* Abertura: palavras sobem, foto se revela de baixo para cima */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.motion .hero h1 .w > span { display: inline-block; transform: translateY(105%); animation: kc-rise 0.9s var(--ease) forwards; animation-delay: calc(var(--i) * 0.06s + 0.1s); }
.motion .hero__photo img { animation: kc-unveil 0.9s var(--ease) both; }
.motion .hero__badge, .motion .hero__copy > :not(h1) { animation: kc-fade 0.9s var(--ease) both; }
.motion .hero__copy > .eyebrow { animation-delay: 0s; }
.motion .hero__copy > .hero__lead { animation-delay: 0.55s; }
.motion .hero__copy > .quick { animation-delay: 0.65s; }
.motion .hero__copy > .hero__actions { animation-delay: 0.75s; }
.motion .hero__copy > .trust, .motion .hero__badge { animation-delay: 0.85s; }
@keyframes kc-rise { to { transform: none; } }
@keyframes kc-unveil { from { clip-path: inset(100% 0 0 0); transform: scale(1.06); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes kc-fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Galeria do imóvel desliza para dentro */
.motion .gal__rail li { animation: kc-slide 0.9s var(--ease) both; }
.motion .gal__rail li:nth-child(2) { animation-delay: 0.08s; }
.motion .gal__rail li:nth-child(3) { animation-delay: 0.16s; }
.motion .gal__rail li:nth-child(n+4) { animation-delay: 0.24s; }
.motion .gal__rail li:first-child { animation: none; }
@keyframes kc-slide { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

/* Troca de página: a foto do card vira a capa da galeria */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }
::view-transition-old(root) { animation: 0.35s var(--ease) both kc-out; }
::view-transition-new(root) { animation: 0.55s var(--ease) both kc-in; }
@keyframes kc-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes kc-in { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .bg-lines { opacity: 0.7; }
}

/* Capa tipográfica quando o imóvel ainda não tem foto própria */
.ph {
  display: grid; align-content: end; gap: 6px; width: 100%; height: 100%; padding: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #1b212b, #0b1220);
  color: #f4f5f7;
}
.ph b { font: 600 clamp(1.6rem, 5vw, 2.4rem)/0.98 var(--display); font-variation-settings: "wdth" 80, "opsz" 64; letter-spacing: -0.03em; }
.ph small { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #9aa1ad; }
.gal__item.ph { cursor: default; }
.cta .btn--wa { --fg: var(--ink); }
.cta .btn--light { --bg: transparent; --fg: var(--paper); --bd: rgba(244, 245, 247, 0.35); }
.cta .btn--light:hover { --bg: rgba(244, 245, 247, 0.08); --bd: var(--paper); }
