/* Estilos base do header */
header {
  background-color: var(--dark-bg);
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  border-bottom: none; /* Remover qualquer borda inferior */
  font-size: 0; /* Elimina espaços em branco */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  will-change: transform, opacity, background-color, height;
  backface-visibility: hidden;
}

/* Estado visível explícito para o header */
header.visible {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}

/* Garantir que o container do header esteja bem posicionado */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: height 0.3s ease;
  width: 100%;
  font-size: 1rem; /* Restaura o tamanho da fonte */
  max-width: 100%;
  position: relative; /* Importante para posicionamento absoluto do botão mobile */
}

/* Prevenir qualquer espaço em branco ou textos indesejados */
header::after, 
header::before {
  display: none;
  content: none;
}

/* Garantir que não haja conteúdo vazando */
header * {
  margin: 0;
  padding: 0;
}

/* Logo */
.logo {
  width: 150px;
  transition: width 0.3s ease;
}

.logo-container {
  padding: 8px 12px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  height: 100%;
  transition: padding 0.3s ease;
}

/* Navegação */
nav ul {
  display: flex;
  list-style: none;
  height: 100%;
  align-items: center;
}

nav ul li {
  margin-left: 30px;
  height: 100%;
  display: flex;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Efeito de sublinhado no hover */
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

/* Botão CTA no header */
.btn.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: fit-content;
}

/* Estilos específicos para o botão do menu mobile */
.mobile-menu {
  background: transparent;
  border: none;
  font-size: 28px;
  padding: 0;
  cursor: pointer;
  color: var(--white);
  z-index: 1001;
  display: none;
}

/* Responsividade para o menu mobile */
@media (max-width: 768px) {
  .mobile-menu {
    display: flex;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
  }
}

/* Responsividade básica - estados estão em header-state.css */
@media (max-width: 992px) {
  nav ul li {
    margin-left: 20px;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  
  .mobile-menu {
    display: flex;
    align-items: center;
  }
} 