/*
 * Sistema visual publico v149
 * Camada exclusivamente visual. Nao altera coleta, banco, APIs ou dados de imoveis.
 * Desenvolvido por Clan Digital - https://clanmarketing.com.br/
 */
:root {
  --crv-navy-950: #071426;
  --crv-navy-900: #0b1d34;
  --crv-navy-800: #123052;
  --crv-green-700: #087a50;
  --crv-green-600: #0c9764;
  --crv-green-100: #dff8ed;
  --crv-ink: #142235;
  --crv-muted: #5b6b7e;
  --crv-line: #dfe7f0;
  --crv-canvas: #f4f7fb;
  --crv-surface: #fff;
  --crv-shadow: 0 18px 55px rgba(7, 20, 38, .09);
  --crv-radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--crv-ink);
  background: var(--crv-canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(12, 151, 100, .32);
  outline-offset: 3px;
}
.wrap { width: min(1120px, calc(100% - 32px)) !important; margin-inline: auto !important; }

/* Cabecalho compartilhado */
.topbar {
  padding: 0 !important;
  color: #fff !important;
  background: var(--crv-navy-950) !important;
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: none !important;
}
.topbar > .wrap,
.topbar .wrap.nav {
  min-height: 66px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 11px 0 !important;
}
.topbar .brand {
  flex: 0 0 auto;
  color: #fff !important;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.025em;
  text-decoration: none;
}
.topbar .brand small {
  display: block !important;
  margin-top: 2px;
  color: #b9c9db !important;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.25;
}
.topbar .nav,
.topbar .links {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}
.topbar .nav a,
.topbar .links a {
  min-height: 38px;
  display: inline-flex !important;
  align-items: center;
  padding: 8px 10px !important;
  color: #dce7f5 !important;
  background: transparent !important;
  border: 1px solid transparent;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  text-decoration: none !important;
}
.topbar .nav a:hover,
.topbar .links a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
}
.topbar .nav a[href*="checklist"],
.topbar .links a[href*="checklist"] {
  color: #d6ffea !important;
  border-color: rgba(143,240,191,.25);
  background: rgba(12,151,100,.14) !important;
}

/* Hero no mesmo idioma visual do checklist */
.hero,
.top {
  position: relative;
  color: #fff !important;
  background:
    radial-gradient(circle at 85% 15%, rgba(21,190,125,.24), transparent 29%),
    radial-gradient(circle at 15% 80%, rgba(43,116,218,.22), transparent 30%),
    linear-gradient(135deg, var(--crv-navy-950), var(--crv-navy-800)) !important;
}
.hero { padding: 68px 0 72px !important; }
.top { padding: 30px 20px 62px !important; }
.hero h1,
.top h1 {
  max-width: 980px;
  margin: 20px 0 18px !important;
  color: #fff !important;
  font-size: clamp(40px, 6vw, 70px) !important;
  line-height: 1.01 !important;
  letter-spacing: -.055em !important;
  text-wrap: balance;
}
.hero p,
.hero .lead,
.top .lead {
  max-width: 880px;
  color: #dce7f5 !important;
  font-size: clamp(17px, 2vw, 21px) !important;
  line-height: 1.5;
}
.eyebrow,
.hero .pill,
.top .eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px !important;
  color: #c8f7df !important;
  background: rgba(12,151,100,.17) !important;
  border: 1px solid rgba(138,255,201,.24) !important;
  border-radius: 999px !important;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .02em;
}
.top .nav { margin-bottom: 42px; }
.top .menu a { border-radius: 10px; }

/* Botoes */
.btn,
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px !important;
  border: 1px solid transparent;
  border-radius: 13px !important;
  font-weight: 850 !important;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover, .button:hover { transform: translateY(-1px); }
.btn-primary,
.btn.green,
.btn.primary,
.button-primary {
  color: #fff !important;
  background: var(--crv-green-700) !important;
  box-shadow: 0 12px 28px rgba(12,151,100,.22);
}
.btn-primary:hover,
.btn.green:hover,
.btn.primary:hover,
.button-primary:hover { background: #066540 !important; }
.btn-secondary,
.btn.dark,
.btn.alt,
.button-light {
  color: var(--crv-navy-900) !important;
  background: #fff !important;
  border-color: var(--crv-line) !important;
}
.btn-outline,
.btn.ghost,
.btn.secondary {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.24) !important;
}

/* Superficies e tipografia */
.section,
.main,
.content { color: var(--crv-ink); }
.section-soft,
.section.soft,
.stats,
.steps,
.content { background: var(--crv-canvas) !important; }
h1, h2, h3 { color: var(--crv-ink); }
h2 {
  font-size: clamp(28px, 4vw, 40px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
}
p, li { text-wrap: pretty; }
.muted, .small, .help { color: var(--crv-muted) !important; }
.card,
.item,
.stat,
.step,
.qa,
.box,
.notice:not(.warn) {
  background: var(--crv-surface) !important;
  border-color: var(--crv-line) !important;
  border-radius: var(--crv-radius) !important;
  box-shadow: var(--crv-shadow) !important;
}
.item, .card, .box { overflow: hidden; }
.stat b, .metric strong, .price { color: var(--crv-green-700) !important; }
.badge, .pill, .chip, .tag {
  border-color: #bfead5 !important;
  background: var(--crv-green-100) !important;
  color: #066040 !important;
}
.note, .notice, .insight {
  border-color: #bfead5 !important;
  background: #edfbf5 !important;
  color: #075c3e !important;
}
.warning, .warn { box-shadow: none !important; }
.cta {
  background:
    radial-gradient(circle at 90% 10%, rgba(21,190,125,.2), transparent 34%),
    linear-gradient(135deg, var(--crv-navy-950), var(--crv-navy-800)) !important;
  border-radius: 24px !important;
  box-shadow: var(--crv-shadow);
}
.cta h1, .cta h2, .cta h3,
.cta p, .cta .small, .cta .muted,
.home139-final h1, .home139-final h2, .home139-final h3,
.home139-final p, .home139-final span, .home139-final strong {
  color: #fff !important;
}
.home139-final .btn {
  color: #fff !important;
  background: var(--crv-green-700) !important;
  border-color: var(--crv-green-700) !important;
}

/* Suporte legivel e com contraste suficiente */
#clan-suporte-whatsapp a { background: var(--crv-green-700) !important; }
#clan-suporte-whatsapp .wa { color: var(--crv-green-700) !important; }
#clan-suporte-whatsapp .wa svg { fill: var(--crv-green-700) !important; }

/* Vitrine: cards mais legiveis, sem alterar dados nem a logica da listagem */
.home139-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}
.home139-top em,
.home139-note,
.home139-benefits small,
.home139-cat-title p { color: #526174 !important; }

/* Lista horizontal: quatro cards completos, sem recorte lateral */
.section .carousel {
  gap: 16px !important;
  padding: 4px 0 12px !important;
  scroll-padding-inline: 0;
  scrollbar-color: #9aabc0 #e8eef5;
  scrollbar-width: thin;
}
.section .carousel > .item {
  min-width: calc((100% - 48px) / 4) !important;
  max-width: calc((100% - 48px) / 4) !important;
}

/* Contraste garantido em todas as superficies escuras conhecidas */
.footer h1, .footer h2, .footer h3,
.footer p, .footer li, .footer strong, .footer span, .footer small,
body > footer:not(.footer) h1, body > footer:not(.footer) h2,
body > footer:not(.footer) h3, body > footer:not(.footer) p,
body > footer:not(.footer) li, body > footer:not(.footer) strong,
body > footer:not(.footer) span, body > footer:not(.footer) small {
  color: #dce7f5 !important;
}
.crv8c-bairros-footer,
.crv8c-bairros-footer h1,
.crv8c-bairros-footer h2,
.crv8c-bairros-footer h3,
.crv8c-bairros-footer p,
.crv8c-bairros-footer a,
.crv8c-bairros-footer em { color: #edf7ff !important; }
.crv8c-bairros-footer .crv8c-letter > strong { color: #9ff4e7 !important; }
.crv8c-bairros-footer .crv8c-letter span { color: #b8c8da !important; }

/* Favoritos/comparacao: painel compacto, sem cobrir a pagina ou o WhatsApp */
body .f1float {
  left: 84px !important;
  right: auto !important;
  bottom: 18px !important;
  width: auto !important;
  max-width: min(720px, calc(100vw - 404px)) !important;
  gap: 18px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px !important;
}
body .f1float > div:first-child {
  min-width: 210px;
  color: #fff !important;
  line-height: 1.25;
}
body .f1float > div:first-child span {
  color: #d6e2f0 !important;
  font-size: 13px;
}
body .f1float > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
body .f1float .f1btn {
  margin: 0 !important;
  color: #071329 !important;
  background: #fff !important;
}

body.f1dock-visible {
  padding-bottom: 104px !important;
}

/* Formularios e tabelas */
input, select, textarea {
  min-height: 48px;
  color: var(--crv-ink);
  background: #fff;
  border: 1px solid #cbd7e5 !important;
  border-radius: 12px !important;
}
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus {
  border-color: var(--crv-green-600) !important;
  box-shadow: 0 0 0 4px rgba(12,151,100,.13) !important;
  outline: none;
}
.table-wrap { border-color: var(--crv-line) !important; border-radius: 18px !important; }
th { background: #edf3f9 !important; color: #31445b !important; }
th, td { border-color: #e7edf4 !important; }

/* Paginas editoriais sem hero */
body > .section:first-of-type { padding-top: 48px; }
body > .section:first-of-type > .wrap > h1:first-child {
  margin-top: 0;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.section .cd-freshness-inline {
  color: var(--crv-muted) !important;
  max-width: 880px;
}

/* Rodape */
.footer,
body > footer:not(.footer) {
  margin-top: 0 !important;
  padding: 30px 0 !important;
  color: #c5d2e2 !important;
  background: var(--crv-navy-950) !important;
  border: 0 !important;
}
.footer a,
body > footer:not(.footer) a { color: #fff !important; }

@media (max-width: 860px) {
  .topbar > .wrap,
  .topbar .wrap.nav {
    min-height: 0;
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .topbar .nav,
  .topbar .links {
    width: 100%;
    padding-bottom: 4px;
  }
  .hero { padding: 52px 0 58px !important; }
  .top { padding-bottom: 52px !important; }
  .hero h1, .top h1 { font-size: clamp(38px, 11vw, 54px) !important; }
  .home139-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .section .carousel > .item {
    min-width: calc((100% - 16px) / 2) !important;
    max-width: calc((100% - 16px) / 2) !important;
  }
  body .f1float {
    left: 84px !important;
    right: 84px !important;
    max-width: none !important;
  }
  body.f1dock-visible {
    padding-bottom: 116px !important;
  }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 24px, 1120px) !important; }
  .topbar .brand { font-size: 15px; }
  .topbar .nav a, .topbar .links a { min-height: 36px; padding: 7px 9px !important; }
  .hero { padding: 42px 0 50px !important; }
  .hero h1, .top h1 { font-size: 39px !important; }
  .actions .btn, .hero-actions .btn { width: 100%; }
  .card, .box { border-radius: 18px !important; }
  .home139-grid { grid-template-columns: 1fr !important; }
  .section .carousel > .item {
    min-width: 86vw !important;
    max-width: 86vw !important;
  }
  body .f1float {
    left: 10px !important;
    right: 10px !important;
    bottom: 78px !important;
    width: auto !important;
    max-width: none !important;
    align-items: stretch !important;
    flex-direction: column;
    gap: 8px !important;
  }
  body.f1dock-visible {
    padding-bottom: 188px !important;
  }
  body .f1float > div:first-child { min-width: 0; }
  body .f1float > div:last-child { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
