﻿/*================================ Top Navigation ===============================================*/

.scroll {
  display: flex;
  position: fixed;

}

.menu-mobile {
  display: none !important;
}

nav {
    display: flex;
    position: absolute;
    height: var(--nav-height);
    top: 0;
    width: 100vw;
    z-index: 100;
    background-color: var(--bg-color);
  }

  nav#navigation .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 0;
  }

  
  nav#navigation .menu {
    display: flex;
    height: 2.9rem;
  }
  
  nav#navigation .menu ul {
    display: inherit;

  }

  nav#navigation .menu span {
    display: inherit;

    margin-top: 1rem;

    background-color: var(--btn-color);
    width: 2.75rem;
    border: 0.2rem solid var(--btn-color);
    border-radius: .3rem;

    transform: scaleX();
  }

  nav#navigation li:hover span {
    width: 100%;
    transition: width 200ms
  }
  
  #navigation li {
    display: flex;
    justify-items: center;
  }

  #navigation ul li {
    display: inline;
    padding-left: 6rem;
  }

  #navigation ul li:last-child {
    padding-left: 6rem;
  }
  
  #navigation ul li a{
    font-size: 1.6rem;
    line-height: 2.9rem;
    text-decoration: none;
    color: var(--nav-default-color);  
  }

  #navigation ul li a:hover{
    color: var(--btn-color);
  }
  
  #navigation .menu a.button.active {
    display: flex;
    position: relative;
    font-size: 1.8rem;
    line-height: 2.9rem;
    bottom: 1rem;
    height: 5rem;
    width: 25rem;
    margin-left: 6rem;
  }
  
  
  nav#navigation .open-menu,
  nav#navigation .close-menu,
  nav#navigation .button {
    display: none;
  }

  nav#navigation .button .active {
    display: flex;
  }


  @media screen and (max-width: 1670px) and (min-width: 1090px) {

  nav {
    height: 10rem;
  }
  
  #navigation .logo img{
    display: flex;
    max-width: 80%;
  }

  #navigation ul li {
      padding-left: 3rem;
  }

  #navigation ul li:last-child {
      padding-left: 3rem;
  }

  #navigation ul li a{
    font-size: 1.6rem;
    line-height: 2.6rem;
    text-decoration: none;
    color: var(--nav-default-color);  
  }

  #navigation .menu a.button.active {
    font-size: 1.6rem;
    line-height: 2.9rem;
    margin-left: 4.5rem;
    padding: 2rem .4rem;
    bottom: .5rem;
    margin-left: 4.0rem;
    height: 3rem;
    margin-left: 3.0rem;
    width: 20rem;
  }
}

@media (max-width: 1090px) {

  .scroll {
    display: flex;
    position: fixed !important;
  }

  nav {
    display: flex;
    position: absolute;
    height: 10rem;
    top: 0;
    width: 100vw;
    z-index: 100;
    background-color: var(--bg-color);
  }

  .menu-desktop {
    display: none !important;
  }
  
  .menu-mobile, 
  .open-menu {
    display: flex !important;
    justify-content: space-between;
  }

  #navigation .logo img{
    display: flex;
    max-width: 60%;
  }

  #navigation .menu-mobile button {
    border-width: 0;
   }

  #navigation .menu-mobile .open-menu svg {
   border-width: 0;
   background-color: var(--bg-color);
   cursor: pointer;
  }

  nav#navigation {
    position: relative;
  }

  .menu-expanded {
    background-color: #3E4C76;
    display: flexbox;
    position: fixed;
    width: 60vw;
    height: 120rem;
    right: 0;
    top: 0;
  }

  nav#navigation .close-menu {
    padding: 2.82rem 2rem 0 0;
    display: block;
    float: right;

    border-width: 0;
    background-color: #3E4C76;

    cursor: pointer;
  }


  .menu-expanded ul {
    padding: 10rem 2.1rem 0 4.4rem;
    text-align: left;
  }
  
  nav#navigation .menu-expanded li a{
    display: block;
    color: var(--ft-paragraph-color);
    opacity: 0.8;
  }

  .menu-active {
    display: none;
  }

  .menu-expanded .social-links {
    display: flex;
    padding: 2.8rem 0 0 4.4rem;
}

.menu-expanded .social-links a {
  display: flex;
  margin-right: 1.5rem;
}

}

@media (max-width: 600px) {

  
  #navigation .logo img{
    display: flex;
    max-width: 50%;
  }
}