* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  text-decoration: none;
  scroll-behavior: smooth;
  
}

:root{
  --headerH: 70px;
}



body{
    background-color: var(--ink);
}

body::before { /*Isso é para colocar esse overlay de ruido no site*/
	content: "";
	position: fixed;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
	opacity: 0.04;
	pointer-events: none;
	z-index: 9999;
}
.header-box{
  height: var(--headerH);
  width: 100vw;
}

/* HEADER */
.header-container {
  background-color: var(--ink);
  color: var(--stone);
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--headerH);
  z-index: 1000;
  display: flex;
  /* Centraliza o conteúdo do header */
  justify-content: center;
  /* Sombra para separar do conteúdo */
}

.logo-nav {
  background-color: var(--storm);
  padding: 5px;
  border-radius: 5px;
  height: 50px;
  margin: auto;
  margin-left: 10px;
  margin-right: 10px;
  /* Tamanho fixo para não distorcer */
  width: auto;
  object-fit: contain;
}

.logo-nav-div {
  align-self: center;
}


.header-nav-items {
  width: 100%;
  max-width: 800px;
  /* Um pouco mais largo para respirar */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Distribui os itens igualmente */
  padding: 0 10px;
}


.header-nav-items a {
  /* Flex-grow permite que o botão cresça suavemente sem width: 200% */
  flex: 1;
  text-align: center;
  color: aliceblue;
  margin: 0 5px;
  padding: 15px 0;
  border-radius: 10px;
  background-color: var(--moss);
  box-shadow: 0px 3px 0px var(--storm);
  /* Transições suaves */
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
  /* Impede que o texto quebre */
  font-weight: bold;
}

.header-nav-items a:hover {
  background-color: var(--ochre);
  box-shadow: 0px 5px 0px var(--moss);
  color: black;
  flex-grow: 2;
  /* Aumenta o tamanho relativo do botão suavemente */
  transform: translateY(-2px);
}

.header-nav-items a:active {
  box-shadow: 0px 0px 0px var(--color-quinary);
  transform: translateY(5px);
}

/* Estilo das barras do ícone hambúrguer  */
.menu-mobile-icon {
  display: none;
  /* Escondido por padrão no desktop */
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  position: absolute;
  right: 20px;
  top: 15px;
  transition: 0.3s;
}

.menu-mobile-icon:hover {
  gap: 0px;
}

.menu-mobile-icon:hover .bar {
  height: 7px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--dust);
  transition: 0.3s;
}



/* Regras para telas de celular/tablet */
@media (max-width: 450px) {
  .menu-mobile-icon {
    display: flex;
    /* Mostra o ícone no celular */
  }

  .header-nav-items {
    display: none;
    /* Esconde a lista original */
    flex-direction: column;
    position: absolute;
    top: var(--headerH);
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    height: auto;
    padding: 20px 0;
    
  }

  /* Classe que o JS vai ativar para mostrar o menu */
  .header-nav-items.active {
    display: flex;
    
  }

  .header-nav-items a {
    width: 90%;
    margin: 10px auto;
    flex: none;
    
    /* Remove o crescimento automático para empilhar melhor */
  }

  .logo-nav-div {
    align-self: center;
    width: 100%;
    
  }
}