/* Material Design Icons */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Rede Provectum — shared styles */
:root {
  --accent: #1C3C85;
  --accent-ink: #122759;
  --accent-soft: #EBEFF8;
  --ink: #0A0A0A;
  --ink-2: #2B2F36;
  --ink-3: #5B6270;
  --ink-4: #8B93A1;
  --line: #E7EAEE;
  --line-2: #F0F2F5;
  --bg: #FFFFFF;
  --bg-2: #F7F8FA;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-1: 0 1px 2px rgba(10,12,20,.04), 0 2px 6px rgba(10,12,20,.04);
  --shadow-2: 0 4px 14px rgba(10,12,20,.06), 0 16px 40px rgba(10,12,20,.06);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

/* Material Icons */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  overflow: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.material-icons.sm { font-size: 18px; }
.material-icons.lg { font-size: 28px; }
.material-icons.xl { font-size: 32px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 28px; }

/* ─────────── Nav ─────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.02em; font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.logo img {
  height: 36px;
  width: auto;
  display: block;
}
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-transform: uppercase;
}
.logo-text small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  font-weight: 500;
  margin-top: 1px;
}
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-item { position: relative; }
/* Top-level links and dropdown triggers share the same look */
.nav-item > a,
.nav-trigger {
  font-size: 14px; color: var(--ink-2);
  padding: 8px 10px; position: relative;
  transition: color .15s;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; line-height: 1;
}
.nav-item > a:hover,
.nav-trigger:hover,
.has-dropdown:hover .nav-trigger { color: var(--accent); }
.nav-item > a.active,
.nav-item.active > .nav-trigger { color: var(--ink); }
.nav-item > a.active::after,
.nav-item.active > .nav-trigger::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px;
  height: 2px; background: var(--accent);
}
.nav-trigger .caret { transition: transform .2s ease; color: var(--ink-4); }
.has-dropdown:hover .nav-trigger .caret,
.has-dropdown.open .nav-trigger .caret { transform: rotate(180deg); color: var(--accent); }

/* Dropdown panel */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15,30,60,.12);
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 70;
}
/* Invisible bridge so the menu doesn't close in the gap */
.dropdown::before {
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  font-size: 14px; color: var(--ink-2); font-weight: 500;
  padding: 9px 12px; border-radius: 8px;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.dropdown a:hover { background: var(--bg-2); color: var(--accent); }
.dropdown a.active { color: var(--accent); background: var(--bg-2); }
.dropdown .dropdown-cta {
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.dropdown .dropdown-cta b { font-weight: 600; }
.dropdown .dropdown-cta:hover { background: var(--accent-ink); color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.lang {
  font-size: 13px; padding: 6px 10px; border-radius: 999px;
  color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px;
}
.lang:hover { background: var(--line-2); color: var(--ink); }
.lang b { color: var(--ink); font-weight: 600; }
.cta {
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  transition: background .15s, transform .05s;
  display: inline-flex; align-items: center; gap: 8px;
}
.cta:hover { background: var(--accent-ink); }
.cta:active { transform: translateY(1px); }
.cta-ghost {
  padding: 10px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--line);
  color: var(--ink); background: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .15s, background .15s;
}
.cta-ghost:hover { border-color: var(--ink-4); background: var(--bg-2); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #BFD1EA 0%, #7399C7 100%);
  color: #fff; font-size: 12px; font-weight: 600;
  display: grid; place-items: center;
  border: 1px solid var(--line);
}

.burger { display: none; }

@media (max-width: 960px) {
  .nav-links, .nav-right .lang, .nav-right .icon-btn, .nav-right .avatar { display: none; }
  .nav-right .cta { display: none; }
  .burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; margin-left: auto; }
  .burger:hover { background: var(--line-2); }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10,12,20,.3);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-inner {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(360px, 86vw);
  background: #fff;
  padding: 22px;
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; gap: 6px;
}
.drawer.open .drawer-inner { transform: translateX(0); }
.drawer a { padding: 12px 6px; font-size: 17px; border-bottom: 1px solid var(--line-2); }
.drawer-label {
  display: block; margin-top: 16px; padding: 0 6px 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-4);
}
.drawer-label:first-of-type { margin-top: 4px; }
.drawer .cta { margin-top: 18px; justify-content: center; border-bottom: none; }
.drawer .cta b { font-weight: 600; }

/* ─────────── Buttons ─────────── */
.btn-blue {
  background: var(--accent); color: #fff;
  padding: 12px 18px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s;
}
.btn-blue:hover { background: var(--accent-ink); }
.btn-outline {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 18px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .15s, background .15s;
}
.btn-outline:hover { border-color: var(--ink); background: var(--bg-2); }

/* ─────────── Section scaffolding ─────────── */
section { padding: 88px 0; }
/* wrap + min-width:0: sem isso os filhos não encolhem abaixo do próprio
   conteúdo (min-width:auto do flex) e empurram a página em telas estreitas */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head > * { min-width: 0; }
.sec-eyebrow {
  font-size: 12px; color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 10px;
}
.sec-title {
  /* clamp em vez de 40px fixo: "Empreendimentos" a 40px mede 337px e não
     cabe num celular de 320px, empurrando a página inteira para a direita */
  font-size: clamp(27px, 5.2vw, 40px); line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 600; margin: 0; max-width: 820px;
  text-wrap: balance;
}
.sec-sub { color: var(--ink-3); margin-top: 10px; max-width: 560px; }

/* Cabeçalho-padrão das páginas internas: fundo branco, alinhado à esquerda,
   eyebrow azul + título grande + subtítulo cinza (referência: Unidades) */
.page-hero { padding: 56px 0 32px; }
.page-hero h1 {
  font-size: clamp(34px, 4.5vw, 52px); line-height: 1.05; letter-spacing: -0.025em;
  font-weight: 600; margin: 0 0 14px; max-width: 720px; text-wrap: balance;
}
.page-hero p { color: var(--ink-3); font-size: 17px; max-width: 620px; margin: 0; line-height: 1.6; }
.sec-link { color: var(--accent); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.sec-link:hover { color: var(--accent-ink); }

/* ─────────── Listing card ─────────── */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  position: relative;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--line-2); }
.card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media > img { transform: scale(1.04); }

/* Carrossel de fotos no card */
.cc { position: absolute; inset: 0; }
.cc-track { display: flex; height: 100%; transition: transform .35s ease; }
.cc-slide { flex: 0 0 100%; height: 100%; }
.cc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink-2); border: none;
  display: grid; place-items: center; cursor: pointer; z-index: 3;
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
  opacity: 0; transition: opacity .15s, background .15s, color .15s;
}
.cc-prev { left: 8px; }
.cc-next { right: 8px; }
.card-media:hover .cc-arrow { opacity: 1; }
.cc-arrow:hover { background: #fff; color: var(--accent); }
.cc-dots {
  position: absolute; bottom: 10px; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.cc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.55); box-shadow: 0 0 2px rgba(0,0,0,.35);
  pointer-events: auto; cursor: pointer; transition: background .15s, transform .15s;
}
.cc-dot.active { background: #fff; transform: scale(1.35); }
@media (hover: none) { .cc-arrow { opacity: .9; } }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.95); color: var(--ink);
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 9px; border-radius: 6px;
  text-transform: uppercase;
}
.card-badge.accent { background: var(--accent); color: #fff; }
.fav {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: color .15s, transform .15s;
}
.fav:hover { color: var(--accent); }
.fav.active { color: #E11D48; }
.fav.active svg { fill: currentColor; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-loc {
  font-size: 12px; color: var(--ink-4); letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
/* código do imóvel no card (identificação rápida) */
.card-ref {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0;
  color: var(--ink-4); background: var(--bg-2); border: 1px solid var(--line-2);
  padding: 1px 7px; border-radius: 5px; white-space: nowrap; flex-shrink: 0;
}
.card-title { font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.card-meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-3); padding-top: 4px; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line-2); margin-top: auto; }
.card-price { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.card-price small { font-size: 12px; font-weight: 400; color: var(--ink-4); margin-left: 2px; }
.card-more { color: var(--accent); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.card-more:hover { color: var(--accent-ink); }

/* Listings grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 840px)  { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ─────────── Footer ─────────── */
/* Fundo azul institucional da marca (--accent) em vez do preto original.
   #B9C0CB segue passando WCAG AA (5.6:1) neste azul — não precisou trocar. */
footer.foot {
  background: var(--accent); color: #B9C0CB;
  padding: 72px 0 32px;
}
.foot a { color: #B9C0CB; }
.foot a:hover { color: #fff; }
/* 3 colunas: marca · lançamentos · contato.
   Não sobrescreva isto com style inline no layout.js: inline vence as
   media queries abaixo e o footer perde a responsividade. */
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; }
/* min-width:0 deixa a coluna encolher abaixo do conteúdo em vez de vazar */
.foot-top > * { min-width: 0; }
@media (max-width: 840px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-top { grid-template-columns: 1fr; } }
.foot h5 { font-size: 13px; color: #fff; font-weight: 600; margin: 0 0 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #fff; font-weight: 700; font-size: 20px; }
.foot-brand .logo-mark { background: var(--accent); }
.foot-tag { font-size: 14px; line-height: 1.6; max-width: 320px; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input {
  flex: 1; background: #15171C; border: 1px solid #24272E;
  color: #fff; padding: 12px 14px; border-radius: 8px; font-size: 14px; outline: none;
}
.newsletter input:focus { border-color: var(--accent); }
.newsletter button {
  background: var(--accent); color: #fff; padding: 0 18px; border-radius: 8px; font-weight: 500; font-size: 14px;
}
.newsletter button:hover { background: var(--accent-ink); }
.socials { display: flex; gap: 8px; margin-top: 18px; }
/* #15171C (quase preto) some no fundo --accent: era escuro sobre escuro,
   agora precisa ser um "vidro" claro para o círculo continuar visível. */
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.14); display: grid; place-items: center;
  transition: background .15s;
}
.socials a:hover { background: rgba(255,255,255,.28); color: #fff; }
.foot-bottom {
  /* Divisor translúcido: robusto a qualquer cor de fundo do rodapé,
     ao contrário de um tom fixo como #1C1F25 (que sumia no --accent). */
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 20px;
  /* #6E7585 tinha só 2.2:1 de contraste no novo fundo (abaixo do mínimo
     de 4.5:1 do WCAG AA); reaproveita o #B9C0CB do corpo do rodapé. */
  font-size: 12.5px; color: #B9C0CB; flex-wrap: wrap;
}
.foot-bottom a:hover { color: #fff; }
/* O botão de WhatsApp do rodapé usa .btn-blue (mesmo azul do --accent que
   agora é o fundo do rodapé) — sem isto ficaria azul sobre azul, invisível.
   Escopado a .foot para não afetar o .btn-blue nos cards (fundo branco). */
.foot .btn-blue { background: #fff; color: var(--accent); }
.foot .btn-blue:hover { background: var(--accent-soft); }

/* ─────────── Tweaks panel ─────────── */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 280px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-2);
  padding: 16px; display: none;
  font-size: 13px;
}
.tweaks.open { display: block; }
.tweaks h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.tweaks p.hint { margin: 0 0 14px; color: var(--ink-4); font-size: 12px; }
.tweak-row { margin-bottom: 14px; }
.tweak-row label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.tweak-swatches { display: flex; gap: 8px; }
.swatch {
  width: 28px; height: 28px; border-radius: 8px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .1s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.active { border-color: var(--ink); }
.tweak-seg {
  display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.tweak-seg button {
  flex: 1; padding: 8px; font-size: 12px; color: var(--ink-3);
  background: #fff; transition: background .1s, color .1s;
}
.tweak-seg button.active { background: var(--accent); color: #fff; }

/* Utility */
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }
.muted { color: var(--ink-3); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: var(--ink-2);
  transition: all .15s;
}
.pill:hover { border-color: var(--ink); }
.pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
