
html { 
	width: 100%;
	height: 100%;
  font-family: 'Lato';
  font-size: 16px;
  font-weight: 300;
  color: black;
}
body {
  display: block;
  position: relative;
  margin: 0px auto;
  padding: 0px;
  background: white;
  min-width: 320px;
  max-width: 1440px;
  height: auto;
  /*-webkit-box-shadow: 0 0 10px 5px rgba(0,0,0,0.3);
  box-shadow: 0 0 10px 5px rgba(0,0,0,0.3);*/
}
h1 {
  font-weight: 300;
  text-align: center;
  font-size: 1rem;
}
h2 {
  font-weight: 400;
  font-size: 1rem;
}
h3 {
  font-weight: 400;
  font-size: 0.7rem;
  margin: 0;
}
p {
  color: black;
}
a {
  text-decoration: none;
  color: inherit;
}

/* NAV MENU ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
.header {
  overflow: hidden;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  position: fixed;
  top: 0px;
  width: 100%;
  max-width: 1440px;
  box-sizing: border-box;
  padding: 60px 10%;
  background-color: white;
  z-index: 9000;
}
#header_logo {
  width: 25vw;
  cursor: pointer;
}
#menuBtn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 40px;
}
.menuBar {
  height: 4px;
  background-color: black;
  margin: 10% 0;
  border-radius: 2px;
}

/* MENU *********************************************************/
#menu {
  display: none;
  opacity: 0;
  position: fixed;
  top: 0px;
  right: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  z-index: 8999;
}
#menu_flex {
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0px;
  right: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}
.menu_item {
  color: white;
  font-family: Lato;
  font-weight: 300;
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  cursor: pointer;
}

/*NEWS RIBBON*/
#news_ribbon {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  height: 38px;
  margin: 84px 0 0;
}
.ribbon_wrapper {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.bluebar {
  position: absolute;
  display: block;
  background: #03a9d6;
  width: 100%;
  height: 70%;
}
#news_ribbon img {
  display: inline-block;
  max-height: 38px;
  padding: 0 15px;
}
#news_ribbon p {
  display: inline-block;
  white-space: nowrap;
  font-weight: 400;
  margin: 0;
  padding: 0 15px;
}

/* SECTIONS ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
.section {
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0px 10%;
}
.tile_holder {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  text-align: left;
}

/* SECTION 1 ********************************************************/
#section1 {
  /*padding-top: 156px;*/
  width: 100%;
}
/*#heading_copy {
  font-weight: 400;
  margin-top: 140px
}*/
.hero {
  display: block;
  position: relative;
  margin: 160px 0 0;
}
.hero img {
  display: block;
}
#main_hero {
  width: 100%;
}
#s1tile_holder {
  margin: 90px 0;
}
.s1tile {
  width: 33%;
  min-width: 250px;
  box-sizing: border-box;
  padding: 0px 20px 0px 0px;
  line-height: 1.76;
}
.s1tile h2 {
  margin: 0px 0px 40px;
}

/* SECTION 2 ********************************************************/
#section2 {
  background: #f2f2f2;
  text-align: center;
}
#section2 h1 {
  margin: 60px 0;
}
#section2 p {
  margin: 0px;
}
#s2tile_holder {
  margin-bottom: 100px;
}
.s2tile {
  position: relative;
  width: 32%;
  padding-top: 32%;
  box-sizing: border-box;
  min-width: 200px;
  z-index: 0;
}
.caption {
  position: absolute;
  bottom: 0px;
  padding: 25px;
  /*opacity: 0;*/
}
.caption p {
  color: white;
}
.details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  top: 0px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 1em;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  user-select: none;
}
.details h2 {
  color: white;
  margin: 0px;
  text-align: center;
}
.details p {
  color: white;
  text-align: center;
  padding: 10px 0;
  /*font-size: 0.9em;*/
}
.detailsCTA {
  text-align: center;
  padding: 20px 0px;
  border: 2px solid white;
  border-radius: 4px;
  width: 60%;
  margin: 20px auto 0px;
  color: white;
  font-size: 16px;
  cursor: pointer;
}
.detailsCTA:hover {
  color: black;
  background: rgba(255,255,255,1);
}
#s2tile1, #s2tile2, #s2tile3 {
  background: center center no-repeat;
  background-size: cover;
}


/* SECTION 3 ********************************************************/
#s3h1 {
  padding-top:  60px;
}
.more_clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  box-sizing: border-box;
  background: white;
  padding: 50px 0 100px;
  max-width: 900px;
  margin: 0 auto;
}
.more_clients img {
  box-sizing: border-box;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  padding: 20px;
  display: inline-block;
  max-width: 180px;
}
#ss_nav {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;
}
#ss_nav > * {
  cursor: pointer;
}
.right, .left {
  display: inline-block;
  border: solid black;
  border-width: 0 2px 2px 0;
  width: 12px;
  height: 12px;
}
.right {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}
.left {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}
#awards {
  display: block;
  margin: 70px 0;
  overflow: hidden;
  white-space: nowrap;
}
#award_wrapper {
  display: block;
  position: relative;
  width: 100%;
}
.award {
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  width: 25%;
  white-space: normal;
  min-height: 180px;
  vertical-align:top;
}
#awards img {
  box-sizing: border-box;
  display: block;
  position: relative;
  max-width: 190px;
  min-height: 100px;
  max-height: 100px;
  margin: 0 auto 30px;
}
.award h1 {
  position: relative;
  display: block;
  margin: 0 auto;
  max-width: 140px;
  font-size: 0.8rem;
}

/* BLUE FOOTER ********************************************************/
#blue_footer {
  background: #03a9d6;
  padding: 60px;
}
#blue_footer h1 {
  margin: 0 0 24px;
}
#blue_footer h2 {
  margin: 0;
}
.cta {
  box-sizing: border-box;
  border: 2px solid white;
  padding: 18px;
  color: white;
  width: 50%;
  min-width: 190px;
  max-width: 280px;
  margin: 0 auto;
  text-align: center;
  font-size: 30px;
  cursor: pointer;
  border-radius: 4px;
  background: #03a9d6;
}
.hover{
  background: white;
  color: #28264b;
}

/* FOOTER ***********************************************************/
#footer {
  padding-top: 100px;
  box-sizing: border-box;
}
#col1 {
  display: inline-block;
  width: 50%;
}
#col1 h1 {
  text-align: left;
  margin: 0 0 20px;
  cursor: pointer;
}
#badges {
  display: flex;
  justify-content: space-around;
}
#badges img {
  box-sizing: border-box;
  max-height: 80px;
}
#col2 {
  float: right;
  width: 50%;
}
#col2 h1 {
  text-align: right;
  margin: 0 0 20px;
}
#social {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 84px;
}
.social_btn img {
  margin: 15px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  vertical-align: bottom
}
#inBtn img {
  margin-right: 0;
}

/* COOKIES ***********************************************************/
.cookies {
  display: flex;
  position: fixed;
  bottom: 0px;
  background: #4a4a4a;
  padding: 30px 10%;
  color: white;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  box-sizing: border-box;
}
.cookies h1 {
  display: inline-block;
  text-align: left;
  font-size: .7rem;
}
.cookies a {
  text-decoration: underline;
}
#agree_btn {
  position: relative;
  display: inline-block;
  padding: 1em 90px;
  border: 1px solid white;
  color: white;
  font-size: .7rem;
  margin: 0 0 0 30px;
  cursor: pointer;
}
#agree_btn:hover {
  background: white;
  color: #4a4a4a;
}

/* SCREEN SIZES ***********************************************************/
@media only screen and (min-width: 1400px) {
  html {
    font-size: 24px; /*MAX FONT SIZE*/
  }
  .section {
    padding: 0px 133px;
  }
  .header {
    padding: 60px 133px;
  }
  .details {
    padding: 2em;
  }
  .cookies {
    padding: 30px 133px;
  }
}

@media only screen and (max-width: 1400px) {
  html {
    /*font-size: calc([minimum size] + ([maximum size] - [minimum size]) * ((100vw - [minimum viewport width]) / ([maximum viewport width] - [minimum viewport width])));*/
    font-size: calc(16px + 8 * ((100vw - 320px) / (1440-320) ));
  }
}

@media only screen and (max-width: 800px) {
  html {
    font-size: 20px;
  }

  .header {
    padding: 60px 2em;
  }
  #header_logo {
    width: 50vw;
  }
  #menuBtn {
    width: 6vw;
  }
  .menuBar {
    height: 3px;
    margin: 12% 0;
  }
  .section {
    padding: 0px 2em;
  }
  .tile_holder {
    justify-content: flex-start;

  }

  #news_ribbon {
    margin: 45px 0 0;
  }
  .bluebar {
    top: 4px;
    height: 60%;
  }
  #news_ribbon img {
    max-width: 80px;
  }
  #news_ribbon p {
    font-size: 14px;
  }

  /* SECTION 1 ********************************************************/
  #section1 {
    padding-top: 40px;
  }
  .hero {
    margin: 90px 0 0;
  }
  #s1tile_holder {
    margin: 0 0;
  }
  .s1tile {
    text-align: center;
    padding: 0px;
    min-width: 100%;
  }
  .s1tile h2 {
    margin: 0px;
  }
  .s1tile p {
    margin: 4px 0 40px;
  }

  /* SECTION 2 ********************************************************/
  #s2tile_holder {
    flex-direction: column;
  }
  .s2tile {
    position: relative;
    width: 100%;
    padding-top: 100%;
    margin-bottom: 243px;
  }
  .details {
    height: 200px;
    top: 100%;
    opacity: 1;
    border: 2px solid white;
    background: rgba(0,0,0,0);
    padding: 20px;
    justify-content: start;
  }
  .details h2 {
    display: none;
  }
  .details p {
    color: black; 
    text-align: center;
    padding: 0;
  }
  .detailsCTA {
    color: black;
    margin-top: 17px;
  }

  /* SECTION 3 ********************************************************/
  .more_clients {
    display: grid;
    grid-template-columns: repeat(2, 50%);
    grid-auto-rows: 1fr;
    align-items: center;
  }
  .more_clients img {
    max-width: 100%;
    padding: 10px;
    margin: 0 auto;
  }
  #awards {
    margin: 30px 0;
  }
  .award {
    margin: 0;
    width: 50%;
    min-height: 140px;
  }
  #awards img {
    padding: 0 30px;
    max-width: 100%;
    max-height: 1000px;
    min-height: 58px;
  }

  /* SECTION 4 ********************************************************/
  #section4 {
    padding: 40px;
  }
  .cta {
    font-size: 24px;
    width: 60%;
  }

  /* FOOTER ********************************************************/
  #footer {
    display: flex;
    flex-direction: column;
    padding-top: 50px;
  }
  #col1 {
    display: flex;
    justify-content: center;
    flex-direction: column;
    order: 1;
    width: 100%;
    /*margin: 0 auto 35px;*/
  }
  #col1 h1 {
    text-align: center;
  }
  #badges {
    justify-content: center;
    flex-direction: column;
  }
  #gbadge {
    width: 220px;
    margin: 0 auto;
    padding: 40px 0;
  }
  #badges img {
    margin: 0 auto 40px;
    width: 50%;
    padding: 0;
  }
  #col2 {
    order: 3;
    margin: 0 auto 54px;
    float: none;
    width: 100%;
  }
  #col2 h1 {
    text-align: center;
    margin: 0;
  }
  #social {
    order: 2;
    justify-content: center;
    padding-bottom: 50px;
  }
  #inBtn img {
    margin-right: 15px;
  }

/* COOKIES ********************************************************/
  .cookies {
    /*padding: 30px 10%;*/
    flex-wrap: wrap;
    justify-content: center;
    line-height: 24px;
  }
  #agree_btn {
    padding: 1em 4em;
    margin: 0;
  }
}



