@import "shims/reset.css";
@import "fonts/raleway/index.css";

html {
  font-family: "Raleway";
  font-size: 11pt;
  font-weight: 400;
  color: #808080;
  background-color: white;
  scroll-behavior: smooth;
}

/* Maximum content width inside containers, for large
 * screens. */
body > header > .wrapper,
main > section > h3,
main > section > p,
main > section > .video-wrapper p,
main > section > header > *,
form,
body > footer > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Layout, header */
body {
  /* Compensation for top menu */
  margin-top: 5rem;
}
a.anchor {
  /* Compensation for top menu when clicking anchor links */
  display: block;
  position: relative;
  top: -6rem;
  visibility: hidden;
}
body > header {
  height: 6rem;
  display: flex;
  flex-direction: row;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background-color: rgba(255, 255, 255, 1);
  padding: 0 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
body > header > .wrapper {
  flex: auto;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
body > header .brand {
  flex: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
}

body > header .brand h1 {
  height: 4.5rem;
  width: 13rem;
  text-indent: -9999px;
  background-image: url(./images/Stream_logo.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
}
body > header nav {
  flex: none;
  display: flex;
  flex-direction: row;
  align-items: center;
}
body > header nav a {
  padding: 0.5rem;
  color: #4d4d4d;
  text-decoration: none;
  letter-spacing: 0.1rem;
  border-bottom: 3px solid transparent;
  border-bottom-color: transparent;
  transition: border-bottom-color 0.3s ease-out;
}
body > header nav a:hover,
body > header nav a:active {
  border-bottom-color: #36f4e1;
}

/* Links with underline effect */
body > header nav a,
.social a,
footer a {
  border-bottom: 3px solid transparent;
  transition: border-bottom-color 0.3s ease-out;
}
body > header nav a:hover,
.social a:hover,
footer a:hover {
  border-bottom-color: #36f4e1;
}

body > footer {
  background-color: #e6e6e6;
  padding: 3rem;
  line-height: 1.25em;
}

/* Hero Video*/
section#about > div {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
section#about > div h2 {
  padding: 0 2rem 1rem;
  text-transform: none;
  letter-spacing: unset;
  font-weight: bold;
  font-size: 3rem;
  line-height: 1.1em;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.75);
}
.video-wrapper div:nth-child(1) {
  z-index: 1;
  font-size: 1.2rem;
  line-height: 1.6rem;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.75);
  font-weight: bold;
}
section#about > div p {
  margin: 3rem 0;
}
section#about > div a {
  padding: 1rem 1.5rem;
  background-color: #36f4e1;
  border-radius: 30px;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 600;
}
section#about > div div a:hover {
  background-color: #fff;
  color: #000;
}
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000;
}

/* Hero blocks */
main#home > section > header {
  background-color: #3c3c3b;
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  margin: -3rem -3rem 2rem -3rem;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* Small header in hero block */
main#home > section > header h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.3em;
  font-weight: bold;
  color: #36f4e1;
  text-transform: uppercase;
}

/* Statement paragraph in hero block */
main#home > section > header p {
  color: white;
  text-transform: none;
  letter-spacing: unset;
  font-weight: bold;
  font-size: 2.25rem;
  line-height: 1.1em;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.75);
}
/* main#home > section#about > header {
  padding: 8rem 2rem 1rem 2rem;
} */

/* Normal section blocks */
main#home > section {
  text-align: center;
  /*Removed padding for video width */
}
main#home > section#history,
main#home > section#process,
main#home > section#connect {
  padding: 3rem;
}
main#home > section > h3 {
  font-size: 1.333rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}
main#home > section#about p {
  padding: 0 2rem 3rem;
}

/* Icon before some home sections */
main#home > section#about > h3:before,
main#home > section#history > h3:before,
main#home > section#process > h3:before {
  display: block;
  content: "";
  margin: 1rem auto 2rem auto;
  width: 5rem;
  height: 5rem;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

main#home > section#about > h3:before {
  background-image: url(./images/icon-suitcase.svg);
  /*margin top of icon to even space*/
  margin-top: 4rem;
}
main#home > section#history > h3:before {
  background-image: url(./images/icon-puzzle.svg);
}
main#home > section#process > h3:before {
  background-image: url(./images/icon-gear.svg);
}

/* Contact form*/
main#home > section#connect h3 {
  margin-bottom: 3rem;
}
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 14px 28px;
}
form label:nth-child(3) {
  grid-column: 1 / -1;
}
form > label > input {
  width: 100%;
  border: none;
  background-color: #f0f0f0;
}
form > label > textarea {
  height: 250px;
  width: 100%;
  border: none;
  background-color: #f0f0f0;
  font-family: "Raleway";
}
input[type="text"],
textarea {
  padding: 1rem 0 1rem 1rem;
}
main#home > section#connect button {
  grid-column: 3 / -3;
  align-self: center;
  justify-self: end;
  background-color: #666;
  color: #fff;
  font-weight: 700;
  padding: 0.7rem;
  border-radius: 22px;
  border: none;
  width: 150px;
}
main#home > section#connect button:hover {
  background-color: #36f4e1;
  color: #000;
  cursor: pointer;
}

footer .social {
  display: flex;
  flex-direction: row;
}

footer .social a {
  width: 3rem;
  height: 3rem;
  margin: 0.5rem 1rem 0.5rem 0;
  display: block;
  overflow: hidden;
  text-indent: -9999px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.65;
}

.social a.linkedin {
  background-image: url(./images/linkedin.svg);
}
.social a.twitter {
  background-image: url(./images/twitter.svg);
  width: 42px;
}

/* General typography */
main section p {
  margin-bottom: 1.5rem;
  line-height: 2rem;
  font-size: 1.1em;
}

strong {
  font-weight: bold;
}

a {
  color: #333;
  text-decoration: none;
}

/* Home page: Hero blocks etc */
main#home #about header {
  background-image: url(./images/bg-industry.jpg);
}
main#home #history header {
  background-image: url(./images/bg-tree.jpg);
}
main#home #process header {
  background-image: url(./images/bg-flow.jpg);
}

/* Hide the google recaptcha badge */
.grecaptcha-badge {
  visibility: hidden;
}

/* Medium screens and smaller */
@media (max-width: 820px) {
  /* Smaller top bar, logo */

  .nav-links {
    position: absolute;
    right: 0px;
    height: 100vh;
    top: 0vh;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 100%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    opacity: 0;
    z-index: 88;
  }
  .nav-links a {
    color: #000;
    font-weight: bold;
    opacity: 0;
    list-style: none;
    border-bottom: 3px solid #000;
    margin: -210px 0 -200px 35px;
    max-width: 70%;
    padding: 20px 0;
  }

  .burger {
    display: block;
    z-index: 99;
  }
  .burger div {
    width: 25px;
    height: 3px;
    background-color: #36f4e1;
    margin: 5px;
    transition: all 0.3s ease;
  }
  .nav-active {
    transform: translateX(12%);
    opacity: 1;
  }
  @keyframes navLinkFade {
    from {
      opacity: 0;
      transform: translateX(50px);
    }

    to {
      opacity: 1;
      transform: translateX(0px);
    }
  }
  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .toggle .line2 {
    opacity: 0;
  }
  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  a.anchor {
    top: -5rem;
  }
  body > header {
    height: 5rem;
  }
  body > header .brand h1 {
    height: 3rem;
    width: 10rem;
  }

  main#home > section > header p,
  main#home > section#about > div h2 {
    font-size: 2rem;
  }

  main#home > section > h3:before {
    width: 3.5rem !important;
    height: 3.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  form {
    grid-template-columns: 1fr;
  }

  main#home > section#connect button {
    width: 100%;
    grid-column: 1 / -1;
  }

  .video-container {
    left: -50rem;
  }
  video {
    height: 100vh;
  }
}

/* Timy screen */
@media (max-width: 540px) {
  body {
    /* Compensation for top menu */
    margin-top: 5rem;
  }

  body > header .brand h1 {
    background-image: url(./images/Stream-sm-logo.svg);
  }
  body > header nav a {
    padding: 0.3rem;
    letter-spacing: 0.1rem;
    font-size: 0.9rem;
  }
  main#home > section#about > header {
    padding: 4rem 2rem 1rem 2rem;
  }

  .video-container {
    left: -57rem;
  }
  video {
    height: auto;
  }
}
/* TODO: Links */
