/* ═══════════════════════════════════════════════════════════════
   BASE — Reset, variáveis, tipografia, scrollbar, footer
   ═══════════════════════════════════════════════════════════════ */
:root {
  --cor-cidade: #0ea5e9;
  --cor-cidade-escura: #1e40af;
  --cor-cidade-suave: #e0f2fe;
  --bg-principal: #f8fafc;
  --bg-card: #ffffff;
  --texto-principal: #1e293b;
  --texto-secundario: #475569;
  --borda-suave: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--bg-principal);
  color: var(--texto-principal);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 3px auto;
  padding: 0 20px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cor-cidade), var(--cor-cidade-escura));
  border-radius: 10px;
  border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--cor-cidade-escura), var(--cor-cidade));
}

/* ─── FOOTER ─── */
footer {
  text-align: center;
  margin-top: 40px;
  padding: 25px;
  color: #64748b;
  font-size: 13px;
  border-top: 1px solid var(--borda-suave);
}

/* ─── BOTÃO VOLTAR AO TOPO ─── */
#back-to-top {
  position: fixed;
  bottom: 80px;
  right: 30px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cor-cidade-escura), var(--cor-cidade));
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9998;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 14px 36px rgba(14, 165, 233, 0.6);
  border-color: rgba(255, 255, 255, 0.6);
}