@use "../abstracts/abstracts_all" as *;

/*  Header
=============================*/
header {
  position: fixed;
  top: 30px;
  right: 0px;
  width: 100%;
  padding: 10px 0;
  z-index: 9998;
  @include transition(0.3s linear all);
  &.move {
    top: 0;
    background-color: $black_color;
  }
  .container {
    position: relative;
    min-height: 70px;
  }
  .navbar-brand {
    margin: 0;
    z-index: 999;
    padding: 0;
    height: 70px;
    img {
      height: 100%;
    }
  }
  .btns {
    z-index: 999;
    .link {
      margin: 0;
      i {
        display: none;
      }
    }
    .menu-btn {
      display: none;
    }
  }
}
.navbar {
  padding: 0px;
  margin: 0px;
  margin-top: -70px;
  min-height: 70px;
  .container {
    min-height: auto;
  }
  ul.navbar-nav {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 0;
    padding-inline-end: 165px;
    @include flex(row, flex-end, center);

    li {
      display: inline-block;

      a {
        position: relative;
        display: block;
        padding: 0 12px;
        margin: 0;
        font-size: 14px;
        font-weight: $weight_reg;
        font-weight: $weight_bold;
        text-transform: uppercase;
        color: #fff;
        text-align: center;
        line-height: 40px;
        letter-spacing: 1px;
        &.active,
        &:hover {
          color: $main_color;
        }
      }
    }
  }
}

@include mediaquery(max, desktop) {
  header {
    top: 0;
    background-color: $black_color;
    padding: 0;
    .btns {
      .menu-btn {
        display: inline-block;
        margin: 0;
      }
    }
  }
  .navbar {
    margin: 0;
    background-color: $black_color;
    height: 100%;
    max-height: 440px;
    min-height: auto;
    overflow: hidden;
    overflow-y: auto;
    border-top: 1px solid #fff3;
    ul.navbar-nav {
      display: block;
      text-align: start;
      padding: 10px;
      li {
        display: block;
        a {
          text-align: start;
          display: inline-block;
          margin: 0;
          &.active,
          &:hover {
            color: $second_color;
          }
        }
      }
    }
  }
}
@include mediaquery(max, tablet) {
  header {
    .navbar-brand {
      margin: 15px 0;
      height: 40px;
    }
    .btns {
      .link {
        padding: 0;
        width: 40px;
        height: 40px;
        line-height: 40px;
        i {
          line-height: 40px;
          color: #fff;
          font-size: 16px;
          display: block;
        }
        span {
          display: none;
        }
      }
    }
  }
}
