/* =========================================================
   HEADER - FILIPE ASSIS | DEV
========================================================= */

/* Fonte da Header */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");


/* =========================================================
   HEADER
========================================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  width: 100%;
  height: var(--header-height, 90px);

  background: transparent;
  border-bottom: 1px solid transparent;

  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}


/* =========================================================
   HEADER APÓS ROLAR A PÁGINA
========================================================= */

.header.is-scrolled {
  background-color: #080808;
  border-bottom-color: #1d1d1d;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.32),
    0 18px 50px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   GARANTE A FONTE NA HEADER
========================================================= */

.header a,
.header button,
.header span {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}


/* =========================================================
   NAV
========================================================= */

.nav {
  height: 100%;
  min-height: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 36px;
}


/* =========================================================
   MARCA
========================================================= */

.brand {
  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand__logo {
  display: block;

  width: 155px;
  height: auto;

  object-fit: contain;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.brand:hover .brand__logo {
  opacity: 0.82;
  transform: translateY(-1px);
}


/* =========================================================
   MENU
========================================================= */

.nav__menu {
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 26px;
}

.nav__list {
  display: flex;
  align-items: center;

  gap: 30px;
}

.nav__link {
  position: relative;

  display: inline-flex;
  align-items: center;

  padding: 42px 0;

  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;

  color: #ffffff;
  text-decoration: none;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.nav__link:hover {
  opacity: 0.72;
}

.nav__link::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 30px;

  width: 0;
  height: 1px;

  background: #ffffff;

  transition: width 0.25s ease;
}

.nav__link:hover::after {
  width: 100%;
}


/* =========================================================
   REDES SOCIAIS
========================================================= */

.nav__social {
  flex-shrink: 0;

  display: flex;
  align-items: center;

  gap: 12px;
}

.social-btn {
  width: 46px;
  height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #343434;
  border-radius: 50%;

  background: transparent;

  color: #ffffff;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.social-btn svg {
  width: 19px;
  height: 19px;
}

.social-btn:hover {
  background: #ffffff;
  color: #080808;
  border-color: #ffffff;

  transform: translateY(-2px);
}


/* =========================================================
   SELETOR DE IDIOMA
========================================================= */

.language-switcher {
  flex-shrink: 0;

  height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  padding: 0 13px;

  border: 1px solid #343434;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.015);
}

.language-switcher__link {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 100%;

  padding: 0 2px;

  font-size: 11px;
  font-weight: 600;
  line-height: 1;

  letter-spacing: 0.08em;

  color: #6f6f6f;
  text-decoration: none;

  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.language-switcher__link:hover {
  color: #ffffff;
}

.language-switcher__link.is-active {
  color: #ffffff;
}


/* ponto vermelho do idioma ativo */

.language-switcher__link.is-active::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 7px;

  width: 4px;
  height: 4px;

  border-radius: 50%;

  background: #ff3342;

  transform: translateX(-50%);
}

.language-switcher__separator {
  font-size: 11px;
  font-weight: 400;

  color: #3d3d3d;

  user-select: none;
}


/* =========================================================
   HAMBURGER
========================================================= */

.nav__toggle {
  display: none;

  width: 46px;
  height: 46px;

  flex-shrink: 0;

  border: 0;

  background: transparent;

  cursor: pointer;
}

.nav__toggle span {
  display: block;

  width: 24px;
  height: 1px;

  margin: 6px auto;

  background: #ffffff;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.nav__toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   TELAS INTERMEDIÁRIAS
========================================================= */

@media (max-width: 1160px) {

  .nav {
    gap: 22px;
  }

  .brand {
    width: 125px;
  }

  .brand__logo {
    width: 140px;
  }

  .nav__menu {
    gap: 18px;
  }

  .nav__list {
    gap: 20px;
  }

  .nav__link {
    font-size: 14px;
  }

  .social-btn {
    width: 42px;
    height: 42px;
  }

  .language-switcher {
    height: 42px;
    padding: 0 10px;
    gap: 6px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 940px) {

  .nav {
    height: var(--header-height, 90px);
    min-height: var(--header-height, 90px);
  }

  .brand {
    width: 108px;
    align-items: center;
  }

  .brand__logo {
    width: 120px;
  }

  .brand__name {
    font-size: 11px;
  }


  /* HAMBURGER */

  .nav__toggle {
    display: block;
  }


  /* MENU */

  .nav__menu {
    position: absolute;

    top: var(--header-height, 90px);
    left: 0;

    width: 100%;

    padding: 26px 16px 30px;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 24px;

    background: #0a0a0a;

    border-top: 1px solid #1d1d1d;
    border-bottom: 1px solid #1d1d1d;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    pointer-events: none;

    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }

  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
  }


  /* LINKS */

  .nav__list {
    width: 100%;

    flex-direction: column;
    align-items: stretch;

    gap: 0;
  }

  .nav__list li {
    width: 100%;
  }

  .nav__link {
    width: 100%;

    padding: 15px 0;

    font-size: 16px;
    font-weight: 500;

    color: #ffffff;

    border-bottom: 1px solid #1d1d1d;
  }

  .nav__link::after {
    display: none;
  }


  /* REDES SOCIAIS */

  .nav__social {
    justify-content: flex-start;
  }


  /* IDIOMAS */

  .language-switcher {
    width: fit-content;

    height: 42px;

    justify-content: flex-start;

    padding: 0 13px;

    background: transparent;
  }

  .language-switcher__link {
    font-size: 11px;
  }

}


/* =========================================================
   MOBILE PEQUENO
========================================================= */

@media (max-width: 480px) {

  .nav {
    height: var(--header-height, 84px);
    min-height: var(--header-height, 84px);
  }

  .brand {
    width: 96px;
  }

  .brand__logo {
    width: 105px;
  }

  .brand__name {
    font-size: 10px;
  }

  .nav__menu {
    top: var(--header-height, 84px);
  }

  .social-btn {
    width: 44px;
    height: 44px;
  }

  .social-btn svg {
    width: 18px;
    height: 18px;
  }

  .language-switcher {
    height: 44px;
  }

}