/* Importando as fontes */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700;800&family=Montserrat:wght@700;800&family=League+Spartan&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Adicionando overflow-x: hidden ao body para garantir que não haja scroll horizontal */
body {
    overflow-x: hidden;
}


header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--cor-principal);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding-left: 20px;
    padding-right: 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center; /* ALINHA TODOS NO CENTRO VERTICAL */
  background-color: #ffffff;
  padding: 10px 30px; /* Aumentei um pouco pra ficar mais elegante */
  border-radius: 50px;
  width: 80%;
  margin: 10px auto;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 50px; /* Altura fixa para alinhar tudo melhor */
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%; /* Garante que ocupe a altura da navbar */
}

.logo img {
  width: 100%;
  max-width: 170px;
  max-height: 80px; /* Importante: limita a altura dentro da navbar */
  padding: 10px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  height: 100%; /* Mesmo esquema para alinhar os links */
}

.nav-links li {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
}

.nav-links a {
  color: #eb5200;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 800; /* EXTRA BOLD */
  font-size: 16px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffc60b;
}


.entrar {
    background-color: #ffc60b; /* Cor secundária */
    color: #eb5200; /* Cor principal */
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'League Spartan', sans-serif;
    font-weight: 700; /* BOLD */
}

.entrar:hover {
    background-color: #ffffff;
    color: #eb5200;
}

/* Estilos para o menu mobile */
.mobile-menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-icon span {
    background-color: #000000;
    height: 3px;
    width: 25px;
    margin: 4px;
    transition: 0.3s;
}

/* Responsividade */
@media (max-width: 1200px) {
    .navbar {
        width: 100%;
        margin-top: 5px;
    }

    .nav-links {
        position: fixed; /* Aqui controla a barra lateral */
        right: 0;
        top: 0;
        background-color: #eb5200;
        height: 100vh;
        margin-top: 125px;
        width: 100vw; /* Alterado para 100vw */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100vw); /* Alterado para 100vw */
        transition: transform 0.5s ease-in;
        z-index: 9999; 
    }

    .nav-links a {
        color: #ffffff; /* Branco */
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .mobile-menu-icon {
        display: flex;
    }
}



/* Navbar Inferior (Menu Base de Navegação) */
#navbarContainer {
  display: none; /* Será exibido em telas menores */
  position: fixed;
  bottom: 0;
  width: 100%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  z-index: 1001;
}

#navbar {
  width: 100%;
  height: 50px;
  background-color: rgba(250, 250, 250, 0.952);
  border: 1px solid #a3a3a3;
  position: absolute;
  bottom: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#navbar.hidden {
  opacity: 0;
  transform: translateY(100%);
}

/* Menu Wrapper */
#menuWrapper {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

/* Elementos do Menu Inferior */
.menuElement {
  opacity: 0.6;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menuElement:hover {
  opacity: 1;
}

.menu1-fundo,
.menu2-fundo,
.menu3-fundo {
  display: flex;
  padding: 8px;
  border-radius: 50%;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu1-fundo.clicked,
.menu2-fundo.clicked,
.menu3-fundo.clicked {
  transform: translateY(-20px);
  background-color: rgb(143, 143, 143);
}

/* Efeito nos Ícones ao Hover */
.menuElement img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.menuElement:hover img {
  transform: scale(1.3) translateY(-2px);
}

/* Responsividade para o Navbar Inferior */
@media screen and (max-width: 1200px) {
  .centralizarMenu {
    max-width: 100%;
  }

  #navbarContainer {
    display: block; /* Exibir o navbar inferior em telas menores */
  }
}
