/* header_nav.css */
/* #HEADER, NAV */
/* https://www.youtube.com/watch?v=8QKOaTYvYUA */

/* MOBILE FIRST */

.nav-toggle-label {
    position: absolute;
    top: 0;
    left: 0;
    margin-left: 1em;
    height: 100%;
    display: flex;
    align-items: center;
}

header {
    position: fixed;
    text-align: center;
    width: 100%;
    box-shadow: 0px 12px 12px rgba(155, 155, 155, 0);
    z-index: 950;
}

.mode_selector {
    position: absolute;
    top: 0;
    right: 0;
    margin-right: 1em;
    height: 100%;
    display: flex;
    align-items: center;
}

div.header_logo {
  display:inline-block;
  width: clamp(180px, 100%, 280px);
  margin: 10px 0 5px 50px;
}


nav.header_nav {
    position: absolute;
    text-align: left;
    top: 100%;
    left: 0;
    width: 100%;
    transform: scale(1, 0);
    transform-origin: top;
    transition: transform 400ms ease-in-out;
    z-index: 951;
}

nav.header_nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--nav_bg_light);
}

nav.header_nav li {
    margin-bottom: .1em;
    margin-left: .1em;
    padding: 0;
}

nav.header_nav a {
    display: block;
    margin: 0;
    padding: 10px 1.25vw;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-toggle {
    display: none;
}

.nav-toggle:checked~nav {
    transform: scale(1, 1);
}

.nav-toggle:checked~nav a {
    opacity: 1;
    transition: opacity 250ms ease-in-out 250ms;
}



.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    position: relative;
    height: 3px;
    width: 1.5em;
    border-radius: 2px;
    background: var(--link_color);
    transition: background ease-in-out 250ms;
}

.nav-toggle-label:hover span,
.nav-toggle-label:hover span::before,
.nav-toggle-label:hover span::after {
    background: var(--link_color_hover);
    transition: background ease-in-out 250ms;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    position: absolute;
    content: '';
}

.nav-toggle-label span::before {
    bottom: 7px;
}

.nav-toggle-label span::after {
    top: 7px;
}

/* LARGER THAN MOBILE */

@media screen and (min-width: 760px) {

  .nav-toggle-label {
      display: none;
  }

  header {
      display: grid;
      grid-template-columns: 1fr 1fr 2fr 4fr 1fr 1fr;
      box-shadow: 0px 12px 12px rgba(255, 255, 255, 0.0);
  }

  .mode_selector {
      grid-column: 6/7;
      border: dashed 0px #f0c;
  }
  div.header_logo {
      grid-column: 2/3;
  }

nav.header_nav {
        all: unset;
        grid-column: 4/5;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        border: dashed 0px #f0c;
    }
    nav.header_nav ul {
        display: flex;
        justify-content: flex-end;
        border: dashed 0px #60f;
    }
    nav.header_nav li {
        margin-left: 1em;
        margin-bottom: 0;
    }
    nav.header_nav a {
        position: relative;
        white-space: nowrap;
    }

    nav.header_nav a::before {
        position: absolute;
        top: -0.5em;
        left: 0;
        right: 0;
        content: '';
        display: block;
        height: 5px;
        background: #090;
        border-radius: 2px;
        transform: scale(0, 1);
        transition: transform ease-in-out 250ms;
    }
    nav.header_nav a:hover::before {
        transform: scale(1, 1);
        transition: transform ease-in-out 250ms;
    }
}