/* =========================================
   1. VARIÁVEIS E GLOBAIS
   ========================================= */
:root {
  --primary-color: #2c3e50; /* Cinza Carvão / Azul Noturno */
  --accent-color: #c5a059; /* Dourado Fosco */
  --light-bg: #f8f9fa;
}

body {
  font-family: "Lato", sans-serif;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Playfair Display", serif;
  color: var(--primary-color);
}

a {
  text-decoration: none;
}

/* =========================================
   2. COMPONENTES (BOTÕES E NAVBAR)
   ========================================= */
/* Navbar */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.nav-link {
  color: var(--primary-color);
  font-weight: 500;
  margin-left: 15px;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color);
}

/* Botões CTA */
.btn-cta {
  background-color: var(--accent-color);
  color: #fff;
  border-radius: 0;
  padding: 8px 25px;
  border: none;
  transition: all 0.3s;
}

.btn-cta:hover {
  background-color: #b08d4b;
  color: #fff;
}

.btn-whats {
  background-color: #25d366;
}

/* =========================================
   3. PÁGINA HOME (INDEX)
   ========================================= */
/* Hero Section */
.hero {
  /* Gradiente Azul Noturno sobre a imagem da Constituição */
  background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)), url('../images/const.png');
  background-size: cover;
  background-position: center;
  height: 85vh;
  display: flex;
  align-items: center;  
  color: #fff;
  background-attachment: fixed;
   /* Efeito Parallax */
}

.hero h1 {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero .lead {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 30px;
}

/* Cards de Áreas */
.area-card {
  border: none;
  background: #fff;
  padding: 30px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border-bottom: 3px solid transparent;
  height: 100%;
}

.area-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--accent-color);
}

.area-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

/* Sobre */
.ls-2 {
  letter-spacing: 2px;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 60px 0 20px;
}

footer h5 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

footer a {
  color: #ddd;
}

footer a:hover {
  color: var(--accent-color);
}

.hr-footer {
  border-color: rgba(255, 255, 255, 0.1);
}

/* =========================================
   4. SEÇÃO EQUIPE
   ========================================= */
.team-section {
  background-color: #fff;
}

.team-card {
  background: #fff;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.team-img-container {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.team-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.team-card:hover .team-img-container img {
  transform: scale(1.05);
}

.team-info {
  padding: 25px;
  text-align: center;
}

.team-role {
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.team-name {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.team-oab {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 15px;
  display: block;
}

.team-bio {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-links a {
  color: var(--primary-color);
  margin: 0 8px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--accent-color);
}

/* =========================================
   5. PÁGINA DE LOGIN (Exclusivo)
   ========================================= */
/* A classe .login-body deve ser aplicada no body da página login.php */
.login-body {
  background:
    linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)),
    url("../images/const.png");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: #fff;
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  border-top: 5px solid var(--accent-color);
  position: relative;
}

.brand-title {
  font-family: "Playfair Display", serif;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.form-control {
  border-radius: 0;
  padding: 12px;
  border: 1px solid #ddd;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

.btn-login {
  background-color: var(--primary-color);
  color: #fff;
  width: 100%;
  padding: 12px;
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
  border: none;
}

.btn-login:hover {
  background-color: var(--accent-color);
  color: #fff;
}

.toggle-link {
  color: #666;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
}

.toggle-link:hover {
  color: var(--accent-color);
}

.back-home {
  position: absolute;
  top: 20px;
  left: 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.back-home:hover {
  color: #fff;
}

#box-recuperar {
  display: none;
}

/* =========================================
   6. DASHBOARD / SISTEMA INTERNO
   ========================================= */

/* Layout Flex para Sidebar + Conteúdo */
.d-flex-wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
}

/* Sidebar (Menu Lateral) */
#sidebar-wrapper {
  min-width: 250px;
  max-width: 250px;
  background-color: var(--primary-color); /* Usa o azul noturno do site */
  color: #fff;
  min-height: 100vh;
  transition: all 0.3s;
}

.sidebar-heading {
  padding: 1.5rem 1.25rem;
  font-size: 1.2rem;
  font-family: "Playfair Display", serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.list-group-item-action {
  background-color: transparent;
  color: #ccc; /* Cinza claro para itens inativos */
  border: none;
  padding: 15px 20px;
  font-size: 0.95rem;
}

.list-group-item-action:hover,
.list-group-item-action.active {
  background-color: rgba(255, 255, 255, 0.05); /* Leve destaque */
  color: var(--accent-color); /* Dourado */
  border-left: 4px solid var(--accent-color); /* Tarja dourada na esquerda */
}

/* Conteúdo Principal */
#page-content-wrapper {
  width: 100%;
  background-color: #f4f6f9; /* Fundo cinza bem claro para descanso visual */
  padding: 20px;
}

/* Tabela de Clientes (Estilo da Foto) */
.table-custom {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.table-custom th {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #666;
  border-bottom: 2px solid #eee;
  padding: 15px;
}

.table-custom td {
  vertical-align: middle;
  padding: 15px;
  color: #333;
  font-size: 0.95rem;
}

.table-hover tbody tr:hover {
  background-color: #fafafa;
}

/* Badges (Etiquetas de Natureza) */
.badge-natureza {
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  min-width: 100px;
  display: inline-block;
  text-align: center;
}

/* Cores específicas baseadas na imagem */
.badge-civil {
  background-color: #17a2b8;
  color: #fff;
} /* Azul turquesa */
.badge-prev {
  background-color: #c0392b;
  color: #fff;
} /* Vermelho escuro */
.badge-trab {
  background-color: #f39c12;
  color: #fff;
} /* Laranja */

/* Barra de Busca Estilo Sistema */
.search-box-panel {
  background: #fff;
  padding: 20px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
  border-radius: 5px;
}

@media (max-width: 991px) {
    
  /* Ajuste da Seção Hero no Celular */
  .hero {
      height: auto !important; 
      min-height: 100vh; 
      
      padding-top: 120px; 
      padding-bottom: 60px;
  }

  .hero h1.display-4 {
      font-size: 2.2rem;
  }

  .hero .lead {
      font-size: 1rem;
      margin-bottom: 20px;
  }
}