/* =======================================================
   🧭 Layout global e espaçamento
   Mantém o estilo minimalista leve
======================================================= */

/* Compensação para navbar fixa */
body {
  padding-top: 60px;                 /* mobile */
  background-color: #f8f9fa;
  color: #212529;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
}

@media (min-width: 992px) {
  body {
    padding-top: 70px;               /* desktop */
  }
}

/* Conteúdo principal
   ✅ NÃO adiciona padding-top global aqui,
   porque o body já compensa a navbar fixed-top */
#conteudo-principal {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ✅ Wrapper do banner na home:
   garante que ele encoste na navbar */
.banner-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ✅ Evita 1px de folga do img inline */
.banner-abuba-img {
  display: block;
}

/* Headers de página (páginas internas sim podem ter espaço) */
.page-header {
  padding: 2.5rem 0 1.25rem;
}

/* Páginas de autenticação (login/registro) */
.card.shadow-sm.mt-5 {
  margin-top: 4rem !important;
}

/* Centralização de formulários */
.container[style*="max-width:520px"] {
  padding-top: 2rem;
}

/* Alerts no topo */
.alert:first-child {
  margin-top: 4.5rem;
}

/* Ajuste de containers principais */
.container > .mt-5:first-child,
.container-fluid > .mt-5:first-child {
  margin-top: 1rem !important;
}

/* Grid spacing */
.container .row.g-4 {
  padding-top: 0.5rem;
}

/* Navbar fixa com sombra leve */
.navbar.fixed-top {
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
  background-color: rgba(255,255,255,0.9);
}

/* Navbar dark override (quando usada com bg-success etc.) */
.navbar-dark.fixed-top {
  background-color: rgba(25,135,84,0.95) !important;
  backdrop-filter: blur(4px);
}

/* Pequeno ajuste de espaçamento em mobile */
@media (max-width: 576px) {
  .alert:first-child {
    margin-top: 3.5rem;
  }
}

/* Foco acessível nos cards da home (teclado) */
.home-card:focus-within {
  outline: 3px solid rgba(25, 135, 84, 0.35);
  outline-offset: 3px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
