/* ============================================================
   main.css — comproimovelcomdivida.com.br
   Paleta: Branco hero | Azul-marinho #0D1B2A | Dourado #B8962E
   Tipografia: Inter
   ============================================================ */

:root {
  --navy:    #0D1B2A;
  --navy2:   #162032;
  --gold:    #B8962E;
  --gold2:   #D4A843;
  --white:   #FFFFFF;
  --gray50:  #F8F9FA;
  --gray100: #F1F3F5;
  --gray200: #E9ECEF;
  --gray400: #ADB5BD;
  --gray600: #6C757D;
  --gray800: #343A40;
  --red:     #C0392B;
  --font:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:  8px;
  --radius-lg: 12px;
  --shadow:  0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.12), 0 8px 32px rgba(0,0,0,.08);
  --transition: .18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray200);
  height: 64px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-logo {
  font-size: 16px;
  color: var(--navy);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.nav-logo strong { font-weight: 700; }
.logo-dot { color: var(--gold); font-size: 13px; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--gray600);
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--navy); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

.btn-outline-nav {
  padding: 7px 16px;
  border: 1px solid var(--gray200);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray800);
  transition: all var(--transition);
}
.btn-outline-nav:hover { border-color: var(--navy); color: var(--navy); }

.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition);
}
.btn-whatsapp:hover { background: var(--navy2); }
.btn-whatsapp .ti { font-size: 16px; color: #25D366; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--navy);
}

/* ============================================================
   HERO
============================================================ */
.hero {
  background: var(--white);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--gray200);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-badge .ti { font-size: 14px; }

.hero-title {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--gold); }

.hero-sub {
  font-size: 17px;
  color: var(--gray600);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-corretor {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray50);
  border: 1px solid var(--gray200);
  border-radius: var(--radius-lg);
  max-width: 340px;
}
.corretor-foto {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--navy);
}
.hero-corretor div { display: flex; flex-direction: column; }
.hero-corretor strong { font-size: 13px; font-weight: 600; color: var(--navy); }
.hero-corretor span { font-size: 11px; color: var(--gray600); }

/* Search Card */
.search-card {
  background: var(--white);
  border: 1px solid var(--gray200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray200);
}
.stab {
  flex: 1;
  padding: 13px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray600);
  background: var(--gray50);
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.stab.active {
  background: var(--white);
  color: var(--navy);
  border-bottom-color: var(--gold);
  font-weight: 600;
}
.stab:hover:not(.active) { background: var(--gray100); }

.tab-panel { display: none; padding: 20px; }
.tab-panel.active { display: block; }

.field-group { margin-bottom: 14px; }
.field-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray600);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}
.field-group input,
.field-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray800);
  font-family: var(--font);
  transition: border-color var(--transition);
  background: var(--white);
}
.field-group input:focus,
.field-group select:focus {
  outline: none;
  border-color: var(--navy);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-buscar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  margin-top: 4px;
}
.btn-buscar:hover { background: var(--gold2); }
.btn-buscar .ti { font-size: 16px; }

.tab-intro { font-size: 14px; color: var(--gray600); margin-bottom: 16px; line-height: 1.5; }
.tab-note { font-size: 12px; color: var(--gray400); text-align: center; margin-top: 10px; }
.tab-note a { color: var(--gold); }

/* ============================================================
   STATS BAR
============================================================ */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray200);
  padding: 20px 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}
.stat-item strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.stat-item.accent strong { color: var(--gold); }
.stat-item span { font-size: 12px; color: var(--gray600); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.stat-sep { width: 1px; height: 40px; background: var(--gray200); }

/* ============================================================
   SECTIONS — base
============================================================ */
.section { padding: 72px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
}
.link-ver-todos {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: opacity var(--transition);
}
.link-ver-todos:hover { opacity: .75; }

.text-center { text-align: center; }

/* ============================================================
   IMÓVEIS GRID
============================================================ */
.imoveis-section { background: var(--gray50); }

.imoveis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.imovel-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray200);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.imovel-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-img-wrap {
  display: block;
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--gray200);
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.imovel-card:hover .card-img-wrap img { transform: scale(1.04); }

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray100);
  color: var(--gray400);
  font-size: 40px;
}

.card-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tag-urgente    { background: var(--red); }
.tag-inventario { background: #6C3483; }
.tag-iptu       { background: #1A5276; }
.tag-condominio { background: #784212; }
.tag-usucapiao  { background: #1E8449; }
.tag-financiamento { background: #922B21; }

.card-fotos-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.5);
  color: var(--white);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
}

.card-body { padding: 14px 16px; }
.card-tipo { font-size: 12px; color: var(--gray600); margin-bottom: 4px; }
.card-cidade .ti { font-size: 11px; vertical-align: -1px; }
.card-area { font-size: 12px; color: var(--gray400); margin-bottom: 10px; }

.card-valores { display: flex; flex-direction: column; gap: 6px; }
.card-valores .label { display: block; font-size: 10px; color: var(--gray400); text-transform: uppercase; letter-spacing: .04em; }
.valor-principal { display: block; font-size: 20px; font-weight: 700; color: var(--navy); }
.valor-obs { display: block; font-size: 10px; color: var(--gray400); }
.divida-est { font-size: 12px; color: var(--red); display: flex; align-items: center; gap: 4px; }
.divida-est .ti { font-size: 13px; }

.card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--gray100);
  font-size: 11px;
  color: var(--gray400);
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--gray50);
}
.card-footer .ti { color: var(--navy); font-size: 13px; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray400);
}
.empty-state .ti { font-size: 48px; display: block; margin-bottom: 12px; }

/* ============================================================
   PROCESSO
============================================================ */
.processo-section {
  background: var(--navy);
}
.processo-section h2 {
  color: var(--white);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 48px;
  letter-spacing: -.01em;
}
.processo-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.processo-item {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}
.proc-num {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: rgba(184,150,46,.4);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.processo-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}
.processo-item p { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.6; }
.processo-arrow {
  color: rgba(184,150,46,.4);
  font-size: 20px;
  padding-top: 42px;
  flex-shrink: 0;
}

/* ============================================================
   CTAs DUPLOS
============================================================ */
.cta-section { background: var(--gray50); }

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cta-card {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.cta-vendedor {
  background: var(--white);
  border: 1px solid var(--gray200);
}
.cta-investidor {
  background: var(--navy);
  border: 2px solid var(--gold);
}

.cta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.cta-vendedor .cta-label { color: var(--gold); }
.cta-investidor .cta-label { color: var(--gold); }

.cta-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}
.cta-vendedor h3 { color: var(--navy); }
.cta-investidor h3 { color: var(--white); }

.cta-card p { font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
.cta-vendedor p { color: var(--gray600); }
.cta-investidor p { color: rgba(255,255,255,.65); }

.btn-cta-light {
  display: inline-block;
  padding: 12px 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background var(--transition);
}
.btn-cta-light:hover { background: var(--navy2); }

.btn-cta-gold {
  display: inline-block;
  padding: 12px 24px;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background var(--transition);
}
.btn-cta-gold:hover { background: var(--gold2); }

/* ============================================================
   SELOS
============================================================ */
.selos-section {
  background: var(--white);
  padding: 36px 0;
  border-top: 1px solid var(--gray200);
  border-bottom: 1px solid var(--gray200);
}
.selos-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}
.selo-item span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gray400);
  text-transform: uppercase;
}

/* ============================================================
   BLOG
============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-hover); }
.blog-card-body { padding: 20px; }
.blog-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: 8px;
}
.blog-card h3 { font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.4; margin-bottom: 10px; }
.blog-card h3 a:hover { color: var(--gold); }
.blog-resumo { font-size: 13px; color: var(--gray600); line-height: 1.55; margin-bottom: 14px; }
.blog-ler { font-size: 12px; font-weight: 600; color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo {
  display: inline-block;
  color: var(--white);
  font-size: 16px;
  margin-bottom: 12px;
}
.footer-logo strong { color: var(--gold); font-weight: 700; }
.footer-about p { font-size: 13px; line-height: 1.65; margin-bottom: 12px; }
.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #25D366;
}
.footer-wa .ti { font-size: 16px; }
.footer-wa-num { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 4px; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold); }
.footer-col p { font-size: 13px; margin-bottom: 6px; }
.footer-col strong { color: var(--white); font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom-inner p { font-size: 11px; color: rgba(255,255,255,.35); }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { font-size: 11px; color: rgba(255,255,255,.4); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVO
============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 34px; }
  .imoveis-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-grid { grid-template-columns: 1fr; }
  .processo-grid { flex-direction: column; gap: 24px; }
  .processo-arrow { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray200);
    padding: 16px 24px;
    gap: 12px;
    z-index: 99;
  }
  .hero-title { font-size: 28px; }
  .imoveis-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-wrap: wrap; gap: 12px; }
  .stat-sep { display: none; }
  .stat-item { padding: 0 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .selos-row { gap: 24px; }
  .field-row { grid-template-columns: 1fr; }
}
