/* ------------------- GENERAL NAV STYLES ------------------- */
#siteHeader {
  font-family: Lato, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  width: 100%;
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
}

#siteHeader a {
  text-decoration: none;
  color: rgb(28, 28, 28);
}

#siteHeader ul {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-right: 20px;
}

#siteHeader li {
  position: relative;
}

#headerContaner {
  position:fixed; 
  width: 100%; 
  z-index:100;
  top:0;
  left:0;
  height:56;
}

#desktopNavContainer {
  display: table;
  min-width: 100%;
  table-layout: fixed;
  left: 0;
  padding-left: 36px;
  position: fixed;
  top: 0;
  -webkit-transition: opacity .5s, padding-left .125s;
  transition: opacity .5s, padding-left .125s;
  white-space: nowrap;
  width: 100%;
  z-index: 20;
}

#desktopNav {
  display: table-cell;
  text-align: right;
  vertical-align: middle;
  padding: 10px 0;
}

#desktopNav li {
    display: inline-block;
    max-width: 300px;
    overflow: visible;
    position: relative;
    text-align: left;
    -webkit-transition: opacity 0ms .3s;
    transition: opacity 0ms .3s;
    vertical-align: middle;
    white-space: nowrap;
    padding: 9px 13px;
}

#desktopNav li.sub {
    padding: 0 0;
}


#desktopNav li a {
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    white-space: nowrap;
    display: inline-block;
    max-width: 240px;
    position: relative;
    vertical-align: top;
    text-overflow: ellipsis;
    cursor: pointer;
    overflow: hidden;
}

#desktopNav li a.active {
  font-weight: 700;
}

/* Desktop submenu hidden by default */
#siteHeader li ul {
  display: none;
  position: absolute;
  background: #073763;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 0;
  border-radius: 2px;
  left: -28px;
  overflow-y: auto;
  padding: 8px 0;
  width: 240px;
  flex-direction: column;
}

.submenu-caret {
  cursor: pointer;
  display: inline-block;
  margin-left: 3px;
  outline: none;
  overflow: hidden;
  vertical-align: top;
}

/* Caret next to submenu items */
.submenu-caret svg {
  stroke: rgb(28,28,28); /* desktop default */
  transition: transform 0.3s;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  height: 12px;
  -webkit-transform: scale(2);
  transform: scale(2);
  vertical-align: middle;
  width: 12px;
}

/* Rotate caret when open */
.nav-item.has-submenu.open > .submenu-caret svg {
  transform: rotate(180deg);
}

/* Submenu links */
#siteHeader li ul li a {
  display: block;
  padding: 8px 16px;
  color: white;
}

/* Hide mobile nav on desktop */
@media (min-width: 768px) {
    #hamburger {
        display: none;
    }
}

/* ------------------- MOBILE STYLES ------------------- */
@media (max-width: 767px) {

  /* hide desktop nav */
  #desktopNavContainer {
    display: none !important;
  }

  /* shift siteHeader to right to make room for hamburger */
  #siteHeader {
    padding-left: 36px;
  }

  /* Hamburger icon */
  #hamburger {
    color: white;
    cursor: pointer;
    height: 55px;
    outline: none;
    padding: 16px 12px;
    width: 48px;
    position: absolute;
    top: 0;
    left: 0;
  }

  #hamburger svg {
    transition: transform .45s 
cubic-bezier(.4, 0, .2, 1), -webkit-transform .45s 
cubic-bezier(.4, 0, .2, 1);
    height: 24px;
    width: 24px;
  }

  #hamburger svg path {
    stroke: rgb(28,28,28);
    transition: stroke 0.3s;
  }

  body.menu-open #hamburger svg path {
    stroke: white;
  }

  /* Mobile nav container */
  #mobileNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    padding: 56px 20px 20px 40px;
    background-color: white;
    overflow-y: auto;
    display: none;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 240ms ease, opacity 240ms ease;
    z-index: 9999;
  }

  body.menu-open #mobileNav {
    display: block !important;
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  #mobileNav ul li {
    padding: 10px 0;
  }

  #mobileNav ul li ul {
    display: none;
    padding-left: 16px;
  }

  #siteHeader #mobileNav li.top a {
    color: rgba(0, 0, 0, 0.8) !important;
    font-weight: 300;
  }

  #siteHeader #mobileNav li.top a.active {
    color: rgba(0, 0, 0, 0.8) !important;
    font-weight: 700 !important;
  }

  /* Submenu links */
  #siteHeader #mobileNav li ul li a {
    padding: 0 20px;
  }

  #siteHeader #mobileNav svg g path {
    stroke: white !important;
  }

  #siteHeader li ul {
    position: inherit;
  }

  /* Close button */
  #mobileMenuClose {
    font-size: 28px;
    cursor: pointer;
    position: absolute;
    top: 8px;
    left: 16px;
    z-index: 10000;
  }

  /* Caret rotation if needed */
  .open > ul {
    display: block !important;
  }
}

/* ------------------- DESKTOP HOVER ------------------- */


/* Logo */
#siteHeader .logo img {
  display: inline-block;
    max-height: 56px;
    max-width: 225px;
    padding: 8px 4px 8px 12px;
    vertical-align: middle;
}

.logoContainer {
    display: table-cell;
    font-size: 24px;
    height: 56px;
    max-width: 380px;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

@media (min-width: 768px) {
  #siteHeader li:hover > ul {
    display: block;
  }

  .logoContainer {
    padding-left: 16px;
  }
}






