/* UNIQUE · Santiago/RS — Vértice Gestão Imobiliária */
:root {
  --bg: #0f1114;
  --bg-2: #15181c;
  --bg-3: #1b1f24;
  --line: #2a2f36;
  --text: #f1ede5;
  --muted: #a7abb2;
  --accent: #c9a15f;
  --accent-2: #e0bd7e;
  --green: #25d366;
  --radius: 14px;
  --max: 1120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Constelação dourada de fundo */
#dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* canvas é elemento substituído: sem width/height explícitos o inset:0 não
     segura o bitmap e ele estoura a viewport no mobile */
  width: 100%;
  height: 100%;
}
.hero, .section, footer, .sticky-bar { position: relative; z-index: 1; }
.alt { background: rgba(21, 24, 28, 0.72); }

h1, h2, h3, .serif {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: 0.5em; }
.kicker {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1em;
}
.section { padding: clamp(64px, 9vw, 110px) 20px; }
.wrap { max-width: var(--max); margin: 0 auto; }
.lead { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.15rem); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-gold {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #17130a;
  box-shadow: 0 6px 24px rgba(201, 161, 95, 0.28);
}
.btn-gold:hover { box-shadow: 0 8px 32px rgba(201, 161, 95, 0.42); }
.btn-wa { background: var(--green); color: #06250f; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-block { width: 100%; }

/* Sticky bar */
.sticky-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(15, 17, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform 0.3s ease;
}
.sticky-bar.on { transform: translateY(0); }
.sticky-bar .sb-txt { font-size: 0.85rem; color: var(--muted); }
.sticky-bar .sb-txt strong { color: var(--accent-2); font-weight: 600; }
.sticky-bar .btn { min-height: 42px; padding: 9px 18px; font-size: 0.9rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/fachada-noite.webp') center 30% / cover no-repeat;
}
@media (max-width: 760px) {
  .hero-bg { background-image: url('assets/fachada-noite-m.webp'); }
  /* No celular o texto ocupa a largura toda: precisa de mais escuro por baixo. */
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(15,17,20,0.78) 0%, rgba(15,17,20,0.68) 45%, rgba(15,17,20,0.9) 78%, var(--bg) 100%);
  }
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,17,20,0.55) 0%, rgba(15,17,20,0.15) 35%, rgba(15,17,20,0.82) 72%, var(--bg) 100%);
}
.hero-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 44px);
  z-index: 2;
}
.wordmark { font-family: 'Fraunces', serif; font-size: 1.15rem; letter-spacing: 0.04em; }
.wordmark small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.realizacao { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); text-align: right; }
.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(104px, 13vh, 150px) 20px clamp(40px, 5vw, 70px);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}
/* Form do hero: compacto, cabe inteiro em notebook 900px */
.hero-form .form-shell { padding: 26px 24px; }
.hero-form .form-shell h2 { font-size: 1.3rem; line-height: 1.2; }
.hero-form .kicker { margin-bottom: 0.5em; font-size: 0.7rem; }
.hero-form .field { margin-bottom: 11px; }
.hero-form .field .lbl { margin-bottom: 5px; font-size: 0.78rem; }
.hero-form .field input,
.hero-form .field select { min-height: 46px; padding: 10px 14px; font-size: 0.95rem; }
.hero-form .check { padding: 11px 14px; margin-bottom: 14px; font-size: 0.85rem; }
/* dois selects lado a lado: poupa uma linha sem perder qualificação */
.hero-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-form .field-row .field { margin-bottom: 11px; }
.hero-form .btn { min-height: 50px; }
.hero-form .form-note { margin-top: 10px; font-size: 0.7rem; }
@media (max-width: 940px) {
  .hero-content { grid-template-columns: 1fr; padding-top: 104px; }
  .hero { min-height: 0; }
  .hero-form .form-shell { padding: clamp(24px, 5vw, 34px); }
  .hero-form .field { margin-bottom: 16px; }
  .hero-form .field input,
  .hero-form .field select { min-height: 52px; padding: 12px 16px; font-size: 1rem; }
  .hero-form .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-form .field-row .field { margin-bottom: 16px; }
}

/* No celular a ordem é: título → escassez → FORMULÁRIO → detalhes.
   Antes, badges e botão empurravam o form pra baixo da dobra. */
@media (max-width: 760px) {
  .hero-content { display: flex; flex-direction: column; gap: 20px; }
  .hero-copy { display: contents; }
  .hero h1        { order: 1; }
  .hero .sub      { order: 2; margin-bottom: 4px; }
  .scarcity       { order: 3; margin-bottom: 4px; max-width: none; }
  .hero-form      { order: 4; }
  .hero-badges    { order: 5; }
  /* O botão flutuante já cobre o WhatsApp no mobile — este aqui só empurrava o form. */
  .hero-wa        { display: none; }

  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .hero .sub { font-size: 0.98rem; }
  .hero-badges {
    gap: 8px 16px;
    font-size: 0.78rem;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }
  .sc-num { font-size: 2.5rem; }
  .sc-txt { font-size: 0.9rem; }
}
.hero h1 {
  font-size: clamp(2.1rem, 6.5vw, 4rem);
  max-width: 15ch;
  margin-bottom: 0.4em;
}
.hero h1 em { font-style: italic; color: var(--accent-2); }
.hero .sub {
  font-size: clamp(1.02rem, 2.4vw, 1.25rem);
  color: #d8d4cb;
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
/* ═══ Escassez real (12 de 28 · salas esgotadas) ═══ */
.scarcity {
  /* Fundo escuro POR BAIXO do dourado: sobre a foto da fachada o texto
     precisa ganhar do prédio, senão o argumento mais forte fica ilegível. */
  background:
    linear-gradient(150deg, rgba(201, 161, 95, 0.18), rgba(201, 161, 95, 0.06)),
    rgba(13, 15, 18, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 161, 95, 0.5);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 22px;
  max-width: 460px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.sc-head { display: flex; align-items: center; gap: 14px; }
.sc-num {
  font-family: 'Fraunces', serif;
  font-size: 2.9rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-2);
  flex: none;
}
.sc-txt { font-size: 0.95rem; line-height: 1.3; color: #cfd3d9; }
.sc-txt b { color: var(--text); font-weight: 600; }
.sc-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 12px 0 10px;
}
.sc-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.sc-foot { font-size: 0.82rem; color: #cfd3d9; line-height: 1.5; }
.sc-foot b { color: var(--accent-2); font-weight: 600; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.82rem; color: var(--muted); }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges b { color: var(--text); font-weight: 600; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

/* Cards */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.card h3 { font-size: 1.22rem; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.75; }
.card .num {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  color: var(--accent-2);
  line-height: 1;
  margin-bottom: 8px;
}
.card-hl {
  background: linear-gradient(160deg, rgba(201,161,95,0.14), rgba(201,161,95,0.04));
  border-color: rgba(201, 161, 95, 0.45);
}
.card-hl h3 { color: var(--accent-2); }

/* Payment steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .stepnum {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  color: var(--accent);
  border: 1px solid rgba(201,161,95,0.5);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.disclaimer { font-size: 0.75rem; color: #767b83; margin-top: 22px; max-width: 720px; }

/* Location */
.loc-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 860px) { .loc-grid { grid-template-columns: 1fr; } }
.loc-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.loc-list { list-style: none; }
.loc-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}
.loc-list li:last-child { border-bottom: 0; }
.loc-list b { color: var(--text); font-weight: 600; }
.loc-list .dot { margin-top: 10px; }

/* Gallery */
.gal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gal figure { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gal figure:hover img { transform: scale(1.04); }
.gal figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  font-size: 0.82rem;
  background: linear-gradient(transparent, rgba(10,11,13,0.85));
}
.gal .big { grid-column: span 4; aspect-ratio: 16/9; }
.gal .sml { grid-column: span 2; aspect-ratio: 4/4.4; }
.gal .half { grid-column: span 3; aspect-ratio: 16/10; }
@media (max-width: 700px) {
  .gal { grid-template-columns: 1fr 1fr; }
  .gal .big { grid-column: span 2; }
  .gal .sml, .gal .half { grid-column: span 1; aspect-ratio: 1/1.1; }
}

/* Plantas */
.plantas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .plantas-grid { grid-template-columns: 1fr; } }
.planta-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.plt { display: flex; flex-direction: column; gap: 12px; }
.plt-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  flex-wrap: wrap;
}
.plt-card.hl { border-color: rgba(201,161,95,0.45); }
.plt-card h3 { font-size: 1.05rem; }
.plt-card .meta { font-size: 0.82rem; color: var(--muted); }
.plt-card .btn { min-height: 40px; padding: 8px 16px; font-size: 0.85rem; }
.sold-out {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 14px;
  margin-top: 4px;
}
.sold-out b { color: var(--accent-2); font-weight: 600; }

/* Timeline */
.tl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 700px) { .tl { grid-template-columns: 1fr; } }
.tl .card { border-top: 3px solid var(--line); }
.tl .card.on { border-top-color: var(--accent); }
.tl .when { font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--accent); flex: none; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { color: var(--muted); padding: 0 0 20px; font-size: 0.96rem; max-width: 660px; }

/* Form */
.form-shell {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 5vw, 44px);
  max-width: 560px;
  margin: 0 auto;
}
.form-shell h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.field { display: block; margin-bottom: 16px; text-align: left; }
.field .lbl { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field input, .field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field input.err { border-color: #d06a5a; }
.err-msg {
  display: block;
  min-height: 0;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #e08878;
  line-height: 1.4;
}
.check {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(201,161,95,0.07);
  border: 1px solid rgba(201,161,95,0.3);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
}
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-note { font-size: 0.75rem; color: #767b83; margin-top: 14px; text-align: center; }
/* honeypot: fora da tela para humano, preenchível por robô. Não usar display:none —
   parte dos bots ignora campos escondidos assim. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note a { color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 20px 60px; }
footer .wrap { display: flex; flex-direction: column; gap: 18px; }
footer p { font-size: 0.78rem; color: #767b83; max-width: 820px; }
.foot-brands { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 55;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(0,0,0,0.45);
  transition: transform 0.15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #06250f; }

/* Obrigado */
.thanks {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.thanks .form-shell { max-width: 520px; }
.thanks .big-check {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 22px;
}

/* Popup evento */
.popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 9, 11, 0.82);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.popup.open { display: flex; }
.popup.show { opacity: 1; }
.popup-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(170deg, #1b1f24, #121519);
  border: 1px solid rgba(201, 161, 95, 0.45);
  border-radius: 20px;
  padding: 34px 28px 28px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s ease;
}
.popup.show .popup-card { transform: none; }
.popup-x {
  position: absolute;
  top: 10px; right: 14px;
  background: none; border: 0;
  color: var(--muted);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}
.popup-x:hover { color: var(--text); }
.popup-card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.popup-card .pp-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.popup-card .kicker { margin-bottom: 0.6em; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ═══ Ajustes de toque e legibilidade no mobile ═══ */
@media (max-width: 760px) {
  /* alvos de toque com no mínimo 44px (guia Apple/Google) */
  .plt-card .btn { min-height: 46px; width: 100%; }
  .plt-card { flex-direction: column; align-items: stretch; gap: 12px; }
  .plt-card > div { text-align: left; }
  .popup-x { width: 46px; height: 46px; font-size: 2rem; top: 4px; right: 6px; }
  .check input { width: 24px; height: 24px; }
  /* link de TEXTO vira alvo tocável — :not(.btn) para não encolher os botões,
     que também carregam data-interest */
  .form-note a, .plt a[data-interest]:not(.btn) {
    display: inline-block;
    padding: 8px 2px;
    min-height: 24px;
  }
  /* nada abaixo de 12px */
  .kicker { font-size: 0.76rem; letter-spacing: 0.18em; }
  .form-note { font-size: 0.76rem; }
  .hero-form .kicker, .hero-form .form-note { font-size: 0.76rem; }
  .disclaimer { font-size: 0.78rem; }
  .gal figcaption { font-size: 0.8rem; }
  /* botão flutuante não cobre o CTA do rodapé */
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
