
:root {
  --side-pad: 36px;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Sans-serif;
  color: #333;
  font-size: 16px;
}
header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1000;
  /* background-color: #222; */
  color: white;
  position: absolute;
  width: 100%;
  top: 0;
  transition: background-color 0.5s ease;
}
header > div {
  padding: 0 var(--side-pad);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}
header h1 {
  margin: 0;
  padding: 18px 0;
}
header h1 a {
  display: block;
  width: 96px;
  height: 96px;
  text-indent: -9999px;
  background: url(../images/logo.jpg) left center no-repeat;
  background-size: 96px 96px;
}
header .nav-toggle {
  position: absolute;
  right: var(--side-pad);
  top: 66px;
  transform: translateY(-10px);
  font-size: 20px;
  color: white;
  display: none;
}
header.static {
  background-color: white;
}
header.static a:link,
header.static a:visited {
  color: black;
}
header.static a.active,
header.static a:hover,
header.static a:active {
  color: rgba(48, 49, 51, 0.5);
}
nav {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  align-items: stretch;
}
header a:link,
header a:visited {
  color: white;
  text-decoration: none;
}
nav a.active,
header a:hover,
header a:active {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}
nav ul li {
  /* display: inline-block; */
  margin: 0 20px;
}
nav ul li a {
  display: block;
}
nav div.nav-sm {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  padding-left: 40px;
  margin-left: 20px;
}
nav div.nav-sm a {
  margin: 0 10px;
  font-size: 18px;
}
nav div.nav-sm a:first-child {
  margin-left: 0;
}
nav div.nav-sm a:last-child {
  margin-right: 0;
}
div.hero {
  padding: 132px var(--side-pad) 0;
  min-height: 600px;
  text-align: center;
  display: flex;
  align-items: center;
  position: relative;
  font-size: 36px;
  line-height: 1.5;
  font-style: italic;
  color: white;
  height: 100vh;
  box-sizing: border-box;
}
div.hero > div {
  padding: 50px 0;
  width: 100%;
  position: relative;
  z-index: 500;
}
.hero-video {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  max-width: 100%; /* added */
}
div.content {
  background-color: white;
  min-height: 500px;
}

@media screen and (max-width: 959px) {
  header nav {
    display: none;
  }
  header.bg {
    background-color: white;
  }
  header .nav-toggle {
    display: inline-block;
  }
  header {
    border-bottom: none;
    position: fixed;
  }
  header > div {
    display: block;
  }
  header.show {
    padding-bottom: 50px;
  }
  header.show nav {
    display: block;
  }
  header.show,
  header.bg {
    background-color: white;
  }
  header.show a:link,
  header.show a:visited,
  header.bg a:link,
  header.bg a:visited {
    color: black;
  }
  header.show a.active,
  header.show a:hover,
  header.show a:active,
  header.bg a.active,
  header.bg a:hover,
  header.bg a:active {
    color: rgba(48, 49, 51, 0.5);
  }
  header.show nav {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
  }
  nav ul {
    display: block;
  }
  nav ul li {
    display: block;
    margin: 0 0 10px;
  }
  nav div.nav-sm {
    display: block;
    padding: 0;
    margin: 20px 0 0;
  }
  nav div.nav-sm a {
    margin: 0 5px;
    font-size: 32px;
  }
  .hero-video {
    display: none;
  }
  div.hero {
    min-height: 300px;
    background: url(../images/bg.png) no-repeat;
    background-size: cover;
    font-size: 30px;
  }
  div.hero br {
    display: none;
  }
}
