/* 
* Hyp3mob.com - Menu Moderno e Responsivo
* Este arquivo contém os estilos específicos para o novo menu do site
* Desenvolvido para garantir uma experiência visual moderna e atrativa
*/

/* Variáveis de cores do menu */
:root {
  --menu-bg: rgba(255, 255, 255, 0.95);
  --menu-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --menu-hover: #0056b3;
  --menu-active: #0056b3;
  --menu-text: #333;
  --menu-border: rgba(0, 0, 0, 0.08);
  --menu-mobile-bg: #0072ce;
  --menu-mobile-text: #fff;
}

/* Estilos do cabeçalho e menu */
.cabecalho {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--menu-bg);
  box-shadow: var(--menu-shadow);
  transition: all 0.3s ease;
  padding: 15px 0;
}

.cabecalho.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  transition: all 0.3s ease;
}

.cabecalho.scrolled .logo img {
  height: 40px;
}

/* Navegação principal */
.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.menu-item {
  position: relative;
  margin: 0 5px;
}

.menu-item a {
  display: block;
  padding: 10px 15px;
  color: var(--menu-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  border-radius: 6px;
  position: relative;
}

.menu-item a:not(.botao)::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--menu-active);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.menu-item a:hover::after,
.menu-item a.active::after {
  width: 70%;
}

.menu-item a:hover {
  color: var(--menu-hover);
}

.menu-item a.active {
  color: var(--menu-active);
}

/* Botão no menu */
.menu-item a.botao {
  padding: 10px 20px;
  margin-left: 10px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 114, 206, 0.2);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.menu-item a.botao:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 114, 206, 0.3);
}

/* Menu mobile */
.menu-mobile {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
}

.menu-mobile span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-mobile.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-mobile.active span:nth-child(2) {
  opacity: 0;
}

.menu-mobile.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Dropdown para submenus */
.menu-item-dropdown {
  position: relative;
}

.menu-item-dropdown > a::before {
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.menu-item-dropdown:hover > a::before {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  padding: 10px 0;
  z-index: 100;
}

.menu-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 8px 20px;
  color: var(--menu-text);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(0, 114, 206, 0.05);
  color: var(--menu-hover);
  padding-left: 25px;
}

/* Responsividade do menu */
@media (max-width: 992px) {
  .menu-mobile {
    display: flex;
  }
  
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 30px;
    transition: all 0.4s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }
  
  .menu.active {
    right: 0;
  }
  
  .menu-item {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid var(--menu-border);
  }
  
  .menu-item:last-child {
    border-bottom: none;
  }
  
  .menu-item a {
    padding: 15px 0;
    width: 100%;
  }
  
  .menu-item a.botao {
    margin: 15px 0 0;
    text-align: center;
    width: 100%;
  }
  
  .menu-item a:not(.botao)::after {
    display: none;
  }
  
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .menu-item-dropdown.active .dropdown-menu {
    max-height: 500px;
  }
  
  .menu-item-dropdown > a::before {
    float: right;
  }
}

/* Animações do menu */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cabecalho {
  animation: fadeInDown 0.5s ease forwards;
}

/* Estilos para o overlay do menu mobile */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Indicador de página atual */
.menu-item a.current {
  color: var(--menu-active);
  font-weight: 600;
}

.menu-item a.current::after {
  width: 70%;
}

/* Efeitos de hover avançados */
.menu-item a:not(.botao):hover {
  background-color: rgba(0, 114, 206, 0.05);
}

/* Melhorias de acessibilidade */
.menu-item a:focus {
  outline: 2px solid rgba(0, 114, 206, 0.5);
  outline-offset: 2px;
}

/* Ajustes para telas muito pequenas */
@media (max-width: 380px) {
  .logo img {
    height: 35px;
  }
  
  .cabecalho {
    padding: 12px 0;
  }
  
  .menu {
    width: 250px;
  }
}
