/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Arimo', sans-serif;
  overflow-x: hidden;
}

/* HEADER */
header {
  width: 100%;
  height: 80px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: fixed;
  z-index: 99999;
}

header {
  transition: transform 0.3s ease;
}

header.hide {
  transform: translateY(-100%);
}


header img:hover {
  cursor: pointer;
}

/* MENU DESKTOP */
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #00478A;
  font-size: 16px;
  font-weight: 500;
  position: relative;
}

/* HOVER */
nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #38bdf8;
  left: 0;
  bottom: -6px;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: #38bdf8;
}

/* HAMBURGUER */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #00478A;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* MOBILE */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #ffffff;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding-top: 40px;

    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  nav ul.active {
    display: flex;
    transform: translateX(0);
  }

  nav ul.active li a {
    font-size: 18px;
    color: #00478A;
  }

  nav ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #38bdf8;
    left: 0;
    bottom: -6px;
    transition: width 0.3s ease;
  }

  nav ul li a:hover::after {
    width: 100%;
  }

  nav ul li a:hover {
    color: #00478A;
  }
}
