/* header.css - Identidade LearnTECH Career */

.site-header {
  position: fixed; /* Fixado no topo para navegação constante */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 25, 41, 0.75); /* Fundo translúcido */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.2); /* Borda laranja sutil */
  padding: 12px 0;
  transition: all 0.4s ease;
  animation: headerEntry 0.8s ease forwards;
}

@keyframes headerEntry {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 15px;
}

/* --- LOGO --- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-text {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
}

.brand-text .highlight {
  color: #f97316; /* Laranja principal do Career */
}

.brand-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* --- BUSCA (Estilo Tools) --- */
.header-actions {
  flex: 1;
  max-width: 600px; /* Largura otimizada para Desktop */
  margin: 0 20px;
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
}

#search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.7rem 1rem 0.7rem 2.8rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

#search-input:focus {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.05);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
  outline: none;
}

/* --- MENU E LINKS --- */
.header-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f97316;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}
/* Garante que o botão comece escondido no Desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 5px;
}
/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    padding: 0 1.5rem;
  }

  .header-top {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }

  .header-actions {
    order: 3;
    max-width: 100%;
    margin: 15px 0 5px 0;
  }

  .header-menu {
    display: none; /* Controlado via JS */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 41, 0.95);
    flex-direction: column;
    padding: 1rem;
    gap: 5px;
  }
 

  .header-menu.open {
    display: flex;
  }
}
/* Compensação para o Header Fixed */
.home-section {
  padding-top: 100px; /* Ajuste este valor conforme a altura do seu header */
}

@media (max-width: 768px) {
  .home-section {
    padding-top: 160px; /* Espaço extra no mobile para a barra de busca que quebra linha */
  }
}
