/* ============================================
   ELEITORANDO — Portal Público
   ============================================ */
:root {
  --navy-900: #08254A;
  --navy-800: #0D3565;
  --navy-700: #103C72;
  --navy-600: #15539E;
  --green-600: #149149;
  --green-500: #18A957;
  --green-100: #D6F3E2;
  --ink-900: #0E1E33;
  --ink-700: #2A3A55;
  --ink-500: #5C6B7E;
  --ink-300: #C5CFDC;
  --ink-200: #E4EAF2;
  --ink-100: #EAF0F8;
  --ink-50:  #F4F7FB;
  --white:   #FFFFFF;
  --shadow:    0 4px 12px rgba(8,37,74,.07);
  --shadow-lg: 0 12px 32px rgba(8,37,74,.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', -apple-system, system-ui, sans-serif;
  background: var(--white);
  color: var(--ink-900);
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3 { font-family: 'Sora', sans-serif; line-height: 1.2; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-900); }

.screen { display: none; min-height: 60vh; }
.screen.active { display: block; }

/* Container */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header — minimalista */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: white;
  border-bottom: 1px solid var(--ink-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand img { height: 80px; display: block; }
.login-link {
  padding: 8px 16px;
  background: var(--navy-700);
  color: white !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.login-link:hover { background: var(--navy-800); color: white !important; }

/* Hero — logo grande EM CIMA da frase */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: white;
  padding: 48px 24px 40px;
  text-align: center;
}
.hero-logo {
  display: block;
  margin: 0 auto 24px;
  width: 320px;
  max-width: 80vw;
  height: auto;
}
.hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  color: white;
  line-height: 1.25;
}
.hero-em { color: var(--green-500); }
.hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  margin-bottom: 28px;
}

.hero-search {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  background: white;
  border-radius: 100px;
  padding: 5px;
  box-shadow: var(--shadow-lg);
}
.hero-search input {
  flex: 1;
  padding: 12px 22px;
  border: none;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  outline: none;
  color: var(--ink-900);
}
.hero-search button {
  padding: 11px 24px;
  background: var(--navy-700);
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.hero-search button:hover { background: var(--navy-800); }

/* Chips compactos */
.hero-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-chip {
  padding: 6px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 13px;
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  white-space: nowrap;
  transition: all .15s;
}
.hero-chip:hover {
  background: white;
  color: var(--navy-700) !important;
  border-color: white;
}

/* Section title */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
}

/* Cabeçalho de resultados */
.resultados-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 20px;
}
.badge-results {
  background: var(--ink-100);
  color: var(--ink-700);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

/* Política grid */
.pol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 64px;
}
.pol-card {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  padding: 18px;
  display: block;
  color: inherit;
  transition: all .15s;
}
.pol-card:hover {
  border-color: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: inherit;
}
.pol-foto {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--ink-100) center/cover;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  color: var(--ink-500);
}
.pol-nome {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 2px;
  line-height: 1.3;
}
.pol-meta { font-size: 12px; color: var(--ink-500); }
.pol-meta strong { color: var(--ink-700); }
.pol-exer {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  background: var(--green-100);
  color: var(--green-600);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
}

/* FICHA pública */
.ficha-pub {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.f-header {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-200);
}
.f-foto {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--ink-100) center/cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: var(--ink-500);
  border: 4px solid white;
  box-shadow: var(--shadow);
}
.f-title h1 { font-size: 32px; font-weight: 700; margin-bottom: 4px; line-height: 1.15; }
.f-urna { font-size: 14px; color: var(--ink-500); font-style: italic; margin-bottom: 12px; }
.f-cargo {
  display: inline-block;
  background: var(--navy-700);
  color: white;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
}
.f-exer-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 6px 16px;
  background: var(--green-500);
  color: white;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
}

.f-block { margin-bottom: 32px; }
.f-block-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ink-500);
  font-weight: 700;
  margin-bottom: 12px;
}
.f-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.f-info {
  background: var(--ink-50);
  border-radius: 10px;
  padding: 14px 18px;
}
.f-info-lbl { font-size: 11px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.f-info-val { font-size: 15px; font-weight: 600; color: var(--ink-900); }

.f-bio { font-size: 16px; line-height: 1.65; color: var(--ink-700); }

.f-redes { display: flex; gap: 10px; flex-wrap: wrap; }
.f-rede {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--ink-300);
  border-radius: 100px;
  font-size: 13px;
  color: var(--ink-700);
  font-weight: 500;
}
.f-rede:hover { border-color: var(--navy-700); transform: translateY(-1px); }
.f-rede img { width: 18px; height: 18px; }

.f-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--ink-50);
  border-radius: 12px;
}
.btn-share, .btn-back {
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-share { background: var(--navy-700); color: white; }
.btn-share:hover { background: var(--navy-800); }
.btn-back {
  background: white;
  color: var(--ink-700);
  border: 1px solid var(--ink-300);
  text-decoration: none;
}
.btn-back:hover { border-color: var(--navy-700); }

.f-proposta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  color: white;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}
.f-proposta:hover { color: white; transform: translateY(-2px); }

/* Footer */
.footer {
  border-top: 1px solid var(--ink-200);
  padding: 40px 0;
  margin-top: 80px;
  text-align: center;
  color: var(--ink-500);
  font-size: 13px;
}
.footer small { color: var(--ink-400); }

/* Loading */
.loading { text-align: center; padding: 60px 20px; color: var(--ink-500); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--navy-900);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  animation: toastIn .25s ease;
}
@keyframes toastIn {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
