/* ValorTabela — Design System responsivo, leve e focado em leitura financeira e conversão */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --ink: #0f172a;
  --ink-muted: #475569;
  --border: #e2e8f0;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --amber: #f59e0b;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none !important;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--slate-900), var(--emerald-dark));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
  background: var(--surface-alt);
  color: var(--ink);
  text-decoration: none;
}

.main-nav a.nav-cta {
  background: var(--emerald-dark);
  color: #fff;
}

.main-nav a.nav-cta:hover {
  background: var(--emerald);
  color: #022c22;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

/* Hero & Sections */
.hero {
  background: radial-gradient(circle at top right, #064e3b 0%, var(--slate-950) 65%);
  color: #f8fafc;
  padding: 46px 0 54px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-lead {
  color: #cbd5e1;
  font-size: 1.08rem;
  max-width: 720px;
  margin: 0 0 24px;
}

.search-box-wrap { position: relative; max-width: 740px; }

.search-bar {
  display: flex;
  gap: 10px;
  background: #fff;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.35);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--ink);
  border-radius: 8px;
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  z-index: 30;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}

.search-results.open { display: block; }

.search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--surface-alt); text-decoration: none; }

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip-link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 500;
}
.chip-link:hover { background: rgba(16, 185, 129, 0.25); color: #fff; text-decoration: none; }

.section { padding: 36px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0 0 4px; font-size: 1.5rem; }
.section-head p { margin: 0; color: var(--ink-muted); }

/* Cards & Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.vehicle-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.vehicle-card:hover { transform: translateY(-2px); border-color: var(--emerald); }

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--surface-alt);
  color: var(--ink-muted);
}

.badge-hot { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-moto { background: #eff6ff; color: #1d4ed8; }
.badge-ev { background: #f0fdf4; color: #15803d; }

.vehicle-title { margin: 0; font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.vehicle-version { font-size: 0.85rem; color: var(--ink-muted); margin: 0; }
.vehicle-price { font-size: 1.4rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.vehicle-meta { font-size: 0.82rem; color: var(--ink-muted); display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 10px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn-primary { background: var(--slate-900); color: #fff; }
.btn-emerald { background: var(--emerald); color: #022c22; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--ink); }
.btn-light-outline { background: transparent; border: 1px solid rgba(255,255,255,0.28); color: #f8fafc; }
.btn-lg { padding: 13px 22px; font-size: 1rem; }

/* Breadcrumb & Page Banner */
.page-banner { background: var(--surface); border-bottom: 1px solid var(--border); padding: 26px 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 10px; }
.page-banner h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.2; }
.page-banner p { margin: 0; color: var(--ink-muted); max-width: 780px; }

/* Vehicle Detail Layout */
.fipe-hero-grid { display: grid; grid-template-columns: 1.1fr 1.3fr; gap: 22px; align-items: stretch; }
.price-box-big { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin: 6px 0; }

.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.kpi-pill { background: var(--surface-alt); border-radius: 10px; padding: 10px 12px; }
.kpi-pill small { display: block; color: var(--ink-muted); font-size: 0.76rem; }
.kpi-pill strong { font-size: 0.96rem; }
.fipe-chart-svg { width: 100%; height: auto; display: block; }

/* Real Engine White-Label Widget */
.bridge-card {
  background: linear-gradient(160deg, var(--slate-950) 0%, #0f172a 70%, #064e3b 100%);
  color: #f1f5f9;
  border-radius: 16px;
  padding: 26px;
  margin: 26px 0;
  border: 1px solid #1e293b;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.22);
}

.bridge-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.bridge-eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; color: #34d399; margin-bottom: 6px; }
.bridge-header h2 { margin: 0 0 6px; font-size: 1.45rem; color: #fff; }
.bridge-sub { margin: 0; color: #cbd5e1; font-size: 0.94rem; max-width: 760px; }

.bridge-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.bridge-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.bridge-controls-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.bridge-field { display: flex; flex-direction: column; gap: 5px; }
.bridge-field span { font-size: 0.78rem; color: #94a3b8; font-weight: 600; }
.bridge-field input, .bridge-field select {
  background: var(--slate-800);
  color: #fff;
  border: 1px solid #334155;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

.re-alert {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.re-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.re-opp-card {
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.re-opp-top {
  border-color: rgba(16, 185, 129, 0.7);
  background: rgba(6, 78, 59, 0.34);
}

.re-opp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.re-opp-rank { font-size: 0.8rem; font-weight: 800; color: #34d399; }
.re-opp-score {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.re-opp-sub { font-size: 0.82rem; color: #94a3b8; }

.re-opp-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(2, 6, 23, 0.55);
  border-radius: 10px;
  padding: 10px;
}
.re-opp-kpis small { display: block; font-size: 0.72rem; color: #94a3b8; }
.re-opp-kpis strong { display: block; font-size: 1.08rem; color: #fff; }
.re-opp-kpis span { font-size: 0.74rem; color: #cbd5e1; }

.re-opp-list {
  margin: 0;
  padding-left: 16px;
  font-size: 0.83rem;
  color: #cbd5e1;
  display: grid;
  gap: 5px;
}

.re-unlock-btn { width: 100%; font-size: 0.88rem; padding: 11px 12px; }

.text-emerald { color: #34d399; }
.text-gold { color: #fbbf24; }
.text-danger { color: #f87171; }
.text-ok { color: #059669; }

.bridge-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.bridge-note { font-size: 0.84rem; color: #cbd5e1; max-width: 660px; }

/* Lead Modal */
.vt-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.vt-modal-backdrop[hidden] { display: none; }
.vt-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}
.vt-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Forms & Tables */
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.84rem; font-weight: 700; color: var(--ink); }
.field input, .field select {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 0.96rem;
  background: #fff;
  color: var(--ink);
}

.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data-table th, table.data-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
table.data-table th { background: var(--surface-alt); font-weight: 700; color: var(--ink); }
table.data-table tr:hover td { background: #f8fafc; }

/* Filter pills */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.filter-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
}
.filter-pill.active, .filter-pill:hover {
  background: var(--slate-900);
  color: #fff;
  border-color: var(--slate-900);
  text-decoration: none;
}

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.faq-item h3 { margin: 0 0 6px; font-size: 1.02rem; }
.faq-item p { margin: 0; color: var(--ink-muted); font-size: 0.94rem; }

/* AdSense Container */
.ad-slot { margin: 20px 0; min-height: 90px; text-align: center; }

/* Footer */
.site-footer { background: var(--slate-950); color: #cbd5e1; padding: 42px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand { color: #fff !important; margin-bottom: 10px; }
.footer-desc { font-size: 0.88rem; color: #94a3b8; margin: 0 0 10px; }
.footer-meta { font-size: 0.84rem; color: #6ee7b7; margin: 0; }
.footer-col h3 { color: #fff; font-size: 0.95rem; margin: 0 0 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 0.88rem; }
.footer-col a { color: #cbd5e1; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 28px; padding-top: 18px; font-size: 0.82rem; color: #94a3b8; }

@media (max-width: 1020px) {
  .bridge-controls-5, .re-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .grid-4, .bridge-controls, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fipe-hero-grid, .grid-3, .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .grid-4, .grid-2, .bridge-controls, .bridge-controls-5, .re-cards-grid, .footer-grid, .kpi-row {
    grid-template-columns: 1fr;
  }
  .search-bar { flex-direction: column; }
}
