/* =========================================
   HEADER E NAVEGAÇÃO
   ========================================= */
header {
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center !important;
  padding: 0 5%;
  background-color: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;

  /* Força texto branco no header independente do tema */
  color: white !important;
}

/* Links dentro do Header */
header a {
  color: white !important;
  font-size: 25px;
  font-family: "Poppins", sans-serif;
  font-weight: bolder;
  text-decoration: none;
  transition: color 0.3s;
}

.branding {
  display: flex;
  align-items: center;
  gap: 15px;
}

.branding img {
  width: 60px;
  height: auto;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  font-weight: 300;
  font-size: 16px;
}

/* Botão de Tema */
#btn-tema {
  background: transparent;
  border: none;
  color: white;
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.5rem;
  margin-left: 20px;
  transition: transform 0.2s;
}

#btn-tema:hover {
  transform: rotate(20deg);
  color: var(--secondary);
}

#btn-mobile {
  display: none;
  background: none;
  border: none;
  cursor: pointer;

  width: 32px;
  height: 24px;
  padding: 0;
  z-index: 1100;

  flex-direction: column;
  justify-content: space-between;
}

#btn-mobile div {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

#btn-mobile.active .line1 {
  transform: translateY(10.5px) rotate(45deg);
}

#btn-mobile.active .line2 {
  opacity: 0;
}

#btn-mobile.active .line3 {
  transform: translateY(-10.5px) rotate(-45deg);
}

@media (max-width: 810px) {
  header {
    padding: 0 20px;
  }

  nav ul {
    display: none;
  }

  #menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: fixed;
    width: 100%;
    top: 70px;
    right: -100%;
    bottom: 0;
    background-color: var(--header-bg);
    transition: 0.4s;
    z-index: 1000;
    margin: 0;
    padding: 0;
  }

  #menu.active {
    right: 0;
  }
  #btn-mobile {
    display: flex;
  }

  #menu {
    display: block;
    position: fixed;
    width: 100%;
    top: 70px;
    right: -100%;
    bottom: 0;
    background-color: var(--header-bg);
    transition: 0.4s;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
  }
  #menu.active {
    right: 0;
  }
}
