@use "vars";

header {
  background-color: white;
  color: var(--gold);
  top: 0;
  position: sticky;
  font-family: Kavoon, serif;
  border-bottom: 1px solid #ddd;
  letter-spacing: 1px;
  z-index: 999;

  .superheader {
    background-color: var(--gold);
    color: black;
    min-height: 2rem;
  }

  .header-row {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

  }

  .header-right {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    .hamb {
      margin-left: 2rem;
    }
    .actions {
      margin-left: 2rem;

      display: flex;
      flex-direction: row;
      justify-content: flex-end;
      align-items: center;
      gap: 0.5rem;
      @include vars.above-mobile {
        margin-left: 0;
      }
    }
  }

  .header-nav {
    display: flex;
    margin: 0;
    padding: 0;
    font-size: 1.25rem;
    font-weight: normal;
    @include vars.tablet-up {
      font-size: 1.5rem;
    }
  }

  ul.header-nav > {
    li {
      a {
        color: var(--gold);
        text-decoration: none;
      }
      margin-right: 1rem;
      @include vars.tablet-up {
        margin-right: 2rem;
      }
    }
  }

  ul.header-nav, ul.mobile-nav {
    li {
      a {
        color: var(--gold);
        text-decoration: none;
      }
    }
  }




  .hamb {
    padding: 10px;
  }

  /* Style label tag */

  .hamb-line {

    background: black;
    display: block;
    height: 2px;
    position: relative;
    width: 24px;

  }

  /* Style span tag */

  .hamb-line::before,
  .hamb-line::after {
    background: black;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
  }

  .hamb-line::before {
    top: 0.5rem;
  }

  .hamb-line::after {
    top: -0.5rem;
  }

  .side-menu {
    display: none;
  }

  /* Toggle menu icon */
  .side-menu:checked ~ nav {
    max-height: 100vh;
  }

  .side-menu:checked ~ .hamb .hamb-line {
    background: transparent;
  }

  .side-menu:checked ~ .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top: 0;
  }

  .side-menu:checked ~ .hamb .hamb-line::after {
    transform: rotate(45deg);
    top: 0;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    right: 0;
    background-color: white;
    max-height: 0;
    transition: max-height .5s ease-out;
    overflow: hidden;

    .mobile-menu-search-row {
      display: flex;
      flex-direction: row;
      justify-content: flex-end;
      gap: 0.25rem;
      align-items: center;
      .mobile-menu-search {
        width: 75%;
      }
    }

    ul.mobile-nav {
      padding-right: 1rem;
      padding-bottom: 1rem;

      & > li {
        text-align: right;
        margin-right: 1.25rem;
        margin-bottom: 1em;
      }
    }
  }

  .side-menu:checked ~ .mobile-menu {
    max-height: none;
    height: 100vh;
  }
  img.logo {
    width: auto;
    height: 3rem;
    @include vars.above-mobile {
      height: 4rem;
    }
  }
}

.superheader-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;

  .superheader-callout {
    padding: 0.5em;
    font-size: 1rem;
    background-color: white;
    margin-right: 2rem;
    font-weight: bolder;
    font-style: italic;
    color: #666;
  }


}