/*=============== HEADER ===============*/
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-bgcolor-opacity-light);
  /* box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3); */
  z-index: var(--z-fixed);
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);

}

.nav__logo,
.nav__burger,
.nav__close {
  color: var(--black-color);
  transform: scale(1);
  transition: .7s ease-in-out;
}

.nav__burger:hover,
.nav__close:hover {
  color: var(--primary-color);
  transform: scale(1.1);
  transition: .7s ease-in-out;
}

.nav__logo__img {
  width: 35px;
  height: auto;
  margin-right: 5px;
}

.nav__logo p { font-weight: 600 !important; }
.nav__logo p span { color: var(--primary-color); }

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-size: 1.2rem;
  font-weight: var(--font-semi-bold);
  color: var(--black-color);
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger,
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all .5s ease-in-out;
}

.nav__close {
  opacity: 0;

}

.nav__link {
  color: var(--black-color);
  background-color: transparent;
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: .5s ease-in-out;
}

.nav__link:hover {
  color: var(--primary-color);
}

.nav__link__active {
  color: var(--primary-color) !important;
}

.nav__link__elements {
  display: flex;
  gap: 5px;
  align-items: center;
}

/* Navigation for mobile devices */
@media screen and (max-width: 800px) {
  .container { padding: 0; }
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    /* background-color: var(--primary-bgcolor-submenu); */
    height: 0;
    overflow: auto;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: all 1s ease-in-out;
    z-index: 9999;
  }

  .nav__menu::-webkit-scrollbar {
    width: 0;
  }

  .nav__list {
    background-color: rgba(255,255,255,0.95);
    padding-top: 1rem;
    height: 100%;
  }
}

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  height: calc(100vh - 3.5rem);
  pointer-events: initial;
  visibility: visible;

}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}

.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: .6s ease-in-out;
}

.dropdown__link,
.dropdown__sublink {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: var(--black-color);
  background-color: var(--primary-bgcolor-submenu);
  display: flex;
  min-width: 235px;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: all .5s ease-in-out;
}

.dropdown__link i,
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover,
.dropdown__sublink:hover {
  background-color: var(--secondary-bgcolor-submenu);
  color: var(--primary-color);
}

.dropdown__menu,
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: all .5s ease-in-out;
}

/* Show dropdown menu & submenu */
/* .dropdown__item:hover .dropdown__menu, */
.dropdown__subitem:hover > .dropdown__submenu {
  max-height: 1000px;
  transition: all .5s ease-in-out;
}

.dropdown__menu__active {
  max-height: 1000px;
  transition: all .5s ease-in-out;
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: var(--secondary-bgcolor-submenu);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 800px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }

  .nav__toggle {
    display: none;
  }

  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }

  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }
  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item,
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu,
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all .6s ease-in-out;
  }

  .dropdown__link,
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: .5rem;
  }

  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    visibility: visible;
    transition: all .6s;
  }
  
  /* Show dropdown submenu */
  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    visibility: visible;
    transition: all .6s;
  }

}  
