@charset "utf-8";

.cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-5);
  margin: 0 var(--space-3);
  border: 1px solid var(--laranja-principal);
  border-radius: var(--space-2);
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.95), rgba(30, 30, 30, 0.85));
  margin-top: var(--space-6);
  backdrop-filter: blur(5px);
}

.cabecalho--logo {
  font-size: var(--font-xxl);
  text-transform: uppercase;
  color: var(--branco);
  font-family: var(--font-heading);
  text-decoration: none;
  letter-spacing: 2px;
  font-weight: 700;
}

.point--color {
  color: var(--laranja-principal);
}

/* menu hamgurguer */
.menu-toggle {
  display: flex;
  margin-left: auto;
  flex-direction: column;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px;
}

.menu-toggle .bar {
  width: 25px;
  height: 2px;
  background-color: var(--branco);
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav--list {
  margin-top: var(--space-3);
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.95), rgba(30, 30, 30, 0.85));
  border-radius: var(--space-1);
  backdrop-filter: blur(5px);
  overflow: hidden;
  transition: height 0.4s ease-in-out;
  z-index: 1000;
  gap: var(--space-7);
}

.nav--list li {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.nav--list.active {
  height: calc(100vh - 60px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav--list.active li {
  opacity: 1;
}

.nav--list__links {
  color: var(--branco);
  font-size: var(--font-md);
  text-decoration: none;
  position: relative;
}

.nav--list__links::after {
  position: absolute;
  content: '';
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--laranja-principal);
  transition: width 0.3s ease;
}

.nav--list__links:hover::after,
.nav--list__links:focus::after {
  width: 100%;
}

.nav--list {
  overflow: hidden;
}

/* TABLET */
@media (min-width: 768px) {
  .cabecalho--logo {
    font-size: 3.6rem;
  }

  .nav--list__links {
    font-size: 1.8rem;
  }

  .menu-toggle {
    display: none;
  }

  .cabecalho--nav {
    display: flex;
  }

  .nav--list {
    gap: 5rem;
    overflow: visible;
    /* para não cortar o ::after */
  }


  .nav--list {
    position: static;
    height: auto;
    flex-direction: row;
    justify-content: flex-end;
    gap: var(--space-5);
    margin-top: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .nav--list li {
    opacity: 1;
  }
}

@media (min-width: 1024px) {
  .cabecalho--logo {
    font-size: var(--medium-large);
  }

  .nav--list__links {
    font-size: var(--font-md);
  }

  .nav--list {
    gap: var(--space-9);
  }
}