#header
{
  height: 143px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

  #responsive_menu
  {
    display: none;
  }
  
  #logo
  {
    margin-top: 50px;
    margin-left: 115px;
    float: left;
  }

  #logo img
  {
    max-width: 260px; 
  }

  #nav
  {
    margin-top: 60px;
    /*margin-right: 18px;*/
    float: right;
    font-weight: 400;
    font-size: 14.49px;
    letter-spacing: 0.9px;
  }
  
  @media (max-width: 1185px)
  {
    #nav
    {
      font-size: 15px;
    }
  }

    #nav > a
    {
      display: block;
      float: left;
      padding: 3px 7px;
      text-transform: uppercase;
      color: #333;
      border-radius: 5px;
      border: 2px solid rgba(0,0,0,0);
      margin-right: 6px;
    }

    #nav > a:last-child
    {
      margin-right: 22px;
    }
    
    @media (max-width: 1185px)
    {
      #nav > a:last-child
      {
        margin-right: 0;
      }
    }

    #nav > a:hover
    {
      background-color: #f0eae4;
      border-color: #f0eae4;
    }

    #nav > a.selected
    {
      border-radius: 5px;
      border-color: #e0d5c8;
      background-color: transparent;
    }

  #header-subnav
  {
    clear: both;
    overflow: hidden;
    position: relative;
  }

  #fullheaderimg_alpha_gradient
  {
    display: none;
  }

  #header-subnav #header-image-container
  {
    display: none;
  }

  #fullheaderimg
  {
    display: block;
    position: absolute; 
    z-index: -1; 
    width: 100%; 
    height: 220px;
    top: 70px; 
    overflow: hidden;
  }

    #fullheaderimg_img
    {
      width: 100%;
    }

    #fullheaderimg_topcover
    {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 5
    }

    #fullheaderimg_photo,
    #fullheaderimg_canvas
    {
      position: absolute;
      top: 38px;
      left: 50%;
      margin-left: calc(232px - 384px + 20vw);
      height: 182px;
      width: 375px;
      z-index: 2;
    }

  @media (max-width: 950px)
  {
    #header-subnav #header-image-container
    {
      display: block;
    }

    #fullheaderimg
    {
      display: none;
    }
  }


  @media (min-width: 1300px)
  {
    #fullheaderimg
    {
      top: calc(147px - 6vw);
      height: calc(142px + 6vw);
    }

    #fullheaderimg_canvas
    {
      top: calc(75px + 6vw - 115px);
    }
  }

  @media (min-width: 1920px)
  {
    #fullheaderimg
    {
      width: 1920px;
      left: 50%;
      margin-left: -960px;
      top: 32px;
      height: 257px;
    }

    #fullheaderimg_canvas
    {
      top: 75px;
      margin-left: 232px;
    }

    #fullheaderimg_alpha_gradient
    {
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to right, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 15%,rgba(255,255,255,0) 85%,rgba(255,255,255,1) 100%);
    }
  }

  #header-subnav
  {
    overflow: visible;
  }

  #header-image
  {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
  }

  #header-subnav-inside
  {
    height: 38px;
    line-height: 38px;
    padding: 41px 0;
    padding-top: 89px;
    padding-bottom: 20px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
  }

  #subnav
  {
    font-size: 15px;
    letter-spacing: 0.9px;
    position: absolute;
    z-index: 100;
  }

  body.js #subnav
  {
    visibility: hidden;
  }

    #subnav-connect
    {
      display: none;
      position: absolute;
    }

    #subnav-connect_top
    {
      border-left: 2px solid #e0d5c8;
    }

    #subnav-connect_bottom
    {
      border-left: 2px solid #e0d5c8;
      border-bottom: 2px solid #e0d5c8;
    }

    body.template-careers #subnav-connect_top, body.template-careers_item #subnav-connect_top
    {
      border-left: 0;
      border-right: 2px solid #e0d5c8;
    }

    body.template-careers #subnav-connect_bottom, body.template-careers_item #subnav-connect_bottom
    {
      border-left: 0 !important;
      border-right: 2px solid #cfc5b9;
      border-bottom: 2px solid #cfc5b9;
    }

    #subnav > a
    {
      display: block;
      float: left;
      text-transform: uppercase;
      color: #fff;
      padding: 0 5px;
      border-radius: 5px;
      border: 2px solid rgba(0,0,0,0);
      margin-right: 6px;
      background-color: rgba(95,95,95,0.6);
    }

    #subnav > a:last-child
    {
      margin-right: 12px;
    }

    #subnav > a.selected
    {
      color: #000;
      background-color: #b2daf3 !important;
      border-color: #b2daf3 !important;
    }

    #subnav > a:hover
    {
      border-color: #b2daf3 !important;
    }



@media (max-width: 1280px) 
{
  #header
  {
    width: auto;
  }

  #logo
  {
    margin-left: calc(100vw - 1165px);
  }
}

@media (max-width: 1185px)
{

  #header
  {
    height: 159px;
  }

  #header-subnav #subnav
  {
    right: 25px !important;
  }

  #logo
  {
    float: none;
    text-align: center;  
    margin-top: 25px;
    margin-left: 0;
  } 

  #fullheaderimg
  {
    top: 110px;
  } 

  #nav
  {
    margin-top: 25px;
    float: none;
    text-align: center;
  }

  #nav a
  {
    float: none;
    display: inline-block;
  }
  
/*
  #logo
  {
    margin-top: 50px;
    margin-left: 20px;
  }

  #nav_container
  {
    position: absolute;
    left: 288px;
    width: calc(100vw - 295px);
    text-align: center;
  }

  #nav
  {
    float:none;
    font-size: 15px;
    display: inline-block;
    margin-right: 9px;
  }

  #nav a
  {
    padding: 3px 8px;
    margin-right: 4px;
  }

  #nav a:last-child
  {
    margin-right: 0;
  }
*/

}

@media (max-width: 950px)
{
  #header
  {
    z-index: 10;
    height: auto;
    min-height: 108px;
  }

  #header_top
  {
    position: relative;
  }

  #logo
  {
    margin-top: 0;
    padding: 35px 0;
    float: none;
    text-align: center;
    margin-left: 0;
    line-height: 1em;
  }

  #logo img
  {
    max-width: 60vw !important;
  }

  #responsive_menu
  {
    display: block;
    z-index: 99;
    position: absolute;
    top: 50%;
    margin-top: -32px;
  }

  #responsive_menu img
  {
    padding: 20px;
    width: 24px;
  }
  
  #nav_container
  {
    line-height: 1.5em;
    width: auto;
    position: static;
  }

  #nav
  {
    margin-top: 0;
    margin-right: 0;
    display: none;
  }

  #nav a
  {
    margin: 10px;
    float: none;
    text-align: left;
    display: block;
  }

  #nav a:first-child
  {
    margin-top: 0;
  }

  #nav a:last-child
  {
    margin-right: 10px !important;
  }

  #header-subnav-inside
  {
    padding: 0 !important;
    height: auto;

  }

  #subnav
  {
    float: none;
    position: static;
    line-height: 1.5em;
    font-size: 16px;
    padding: 10px 0;
    padding-bottom: 6px;
  }

  #subnav a
  {
    float: none;
    display: block;

    margin: 4px 10px;
    padding: 2px 10px;
  }

  #subnav a:first-child
  {
    margin-top: 0;
  }

  #subnav a:last-child
  {
    margin-bottom: 0;
  }

  #header-subnav
  {
    background: none;
    margin-top: -25px;
  }

  #header-subnav #header-image-container
  {
    overflow: hidden;
    position: relative;
    height: 220px;
  }

  #header-subnav #header-image,
  #header-subnav #header-image_topcover
  {
    height: 268px !important;
    width: auto !important;
    position: absolute !important;
    top: 0;
    right: 0;
  }

  #header-subnav #header-image_topcover
  {
    z-index: 5;
  }

  #header-subnav #header-image_canvas
  {
    position: absolute;
    top: 38px;
    left: 50%;
    margin-left: calc(50vw - 450px);
    height: 182px;
    width: 375px;
    z-index: 2;
  }

  #header-subnav #subnav
  {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0 !important;
    width: 100%;
  }

  #header-subnav #header-image
  {
    position: static;
    display: block;
  }

  #header-subnav #header-subnav-inside
  {   
    padding-bottom: 0 !important;
  }

  #header-subnav #subnav > a
  {
    background-color: rgba(95,95,125,0.4);
  }

  #header-subnav.subnav-4-items #header-image-container
  {
    height: 268px;
  }

  #header-subnav.subnav-3-items #header-image-container
  {
    height: 234px;
  }

  #header-subnav.subnav-2-items #subnav
  {
    bottom: 12px;
  }

  #header-subnav #subnav > a:last-child
  {
    margin-right: 10px;
  }

}

@media (max-width: 550px)
{
  #header-subnav #header-image,
  #header-subnav #header-image_topcover
  {
    right: -125px;
  }

  #header-subnav #header-image_canvas
  {
    margin-left: -188px;
  }
}

