/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

body *{
  box-sizing: border-box;
  padding:0;
  margin: 0;
  border: 0;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
:root{
  --blue: #4b9ed5;
  --vblue: #008fc1;
  --org: #e06d38;
  --blkblk: #211f20;
  --dkg:#4a4d56;
  --w8: 82.5%;
  --w6: 63.5%;
}

body{
 margin:0;
}

p, li{
  font: 300 .95em/1.45em "Open Sans", arial, sans;
}

h1,h2,h3,h4,h5,a{
  font-family: "Montserrat", arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.03em;
}

img{
  align-self: center;
  width: 100%;
  //flex: 1 1 auto;
}

header {
  position: relative;
  width: 100%;
  height: 75vh; /* Full viewport height */
  overflow: hidden;
  padding:0;
}

.team header{
  position: static;
  height: auto
}

.services header{
  background: #333 url(../img/charette.jpg) no-repeat;
  background-size: cover;
}

header hgroup{
  position: absolute;
  top:50%;
  min-width: 50%;
  background: rgba(75, 158, 213, .8);
  padding: .5em 4em;
}

header hgroup h1{
  font-size: 4em;
  color: white;
  line-height: 1em;
  //border: 1px solid red;

}


header .videowrap{
  bottom: 0;
  height: 100%;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  background: url(../img/thumb.jpg) no-repeat;
  background-size: cover;
}

.videowrap object{
  display: block;
  height: 56.25vw;
  left: 50%;
  min-height: 100%;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 100vw;
}

.videowrap embed{
  width: 100%;
  height: 100%;
}


header nav, header nav ul, footer nav, footer nav ul{
  display: flex;
  margin-top:0;
}

nav{
  position: relative;
  top: 0;
  z-index: 10;
  padding: 1rem 2rem;
  background: transparent;
  justify-content: space-between;
  padding: 1em 0 ;
  width: 100%;
  transition: all .5s ease;
}

header nav.scrolled {
  position: fixed;
  background: rgba(0, 0, 0, .2);
}

nav ul{
  width: 60%;
  justify-content: flex-end;
  align-items: center;
}

nav li{
  list-style: none;
  text-align: center;
  margin: 0 1%;
  padding: 5px 0 0 0;
  font-size: .85vw;
  //border:1px solid red;
}

nav li a{
  text-decoration: none;
  text-transform: uppercase;
  padding: .75em 1.25em;
  letter-spacing: 2px;
  color: white; /*var(--black)*/;
  text-shadow: 0 0 5px rgb(0,0,0);
}


footer{
  padding: 1em 9%;
  min-height: 50vh;
}



.widetop{
  margin-bottom: 1em;
  width: 100%;
}

.h80{
  min-height: 80vh;
}

.underhero hgroup{
  padding: 2.5em 9%;
}

.underhero h1{
  color: var(--blue);
  font-size: 1.25em;
}

.underhero h2{
  font-size: 1.75em;
}


.centered-head{
  width: var(--w6);
  margin: 0 auto;
  padding: 6em 0 8em 0;
  text-align: center;
  position: relative;
}

.team .centered-head{
  width: var(--w8);
  padding: 0 0 8em 0;
}

.centered-head > h1{
  color: var(--blue);
  max-width: 600px;
  position: relative;
  background: white;
  margin: .5em auto;
  line-height: 1.3em;
}

.team .centered-head > h1{
  font-size: 4em;
  margin-bottom: 1em;
}

.services .centered-head{
  position: relative;
}


.centered-head > p{
  //width: var(--w6);
  margin:0 auto;
  font-size: 1.25rem;
}

/*.centered-head > p:before{
  content:" ";
  display: block;
  width: 100%;
  /*! min-width: 120%;
  height: 2em;
  position: absolute;
  margin: 0 auto;
  background: white;
  z-index:-1;
  left: 50%;
  transform: translateX(-50%);

}*/

.centered-head::before{
  content:" ";
  position: absolute;
  display: block;
  width: 100%;
  height: 1em;
  border-bottom: 1px solid var(--blue);
  top:7em;
  left: 0;
  z-index:-2;
}

.services .centered-head > p{
  margin-bottom: 3em;
}

.services .centered-head > div{
  text-align: left;
}

.services .centered-head div h2{
  line-height: 1em;
  margin-bottom: .5em;
}

.services .centered-head div h2, .services .centered-head strong{
  color: var(--blue);
  font-weight: bold;
}



.services ul li{
  line-height: 1.2em;
  margin-bottom: .5em;
}

.topicon{
  width: 175px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);

}

.dark_bg{
  background: #333;
}

.revtype{
  color: white;
}

.stacklist{
  color: #ddd;
  padding: 6em 9%;
  display: flex;
  flex-wrap: wrap;
}

.stacklist h2{
  font-size: 1.1rem;
}

.listleft{
  display: flex;
  flex-wrap: nowrap;
  margin-bottom: 5em;
  margin-right: 2em;
  justify-content: space-evenly;
  align-content: center;
  width: 45%;
}

.services .listleft{
  width: 100%;
}

.listleft img.half{
  padding: 0 5% 2em 0;
  align-self: self-start;
  width: 30%;
  min-width: 150px;
}

.services .listleft img.half{
  align-self:flex-start;
  justify-self: center;
  padding: 0 5vw;
}

.listleft ul{
  margin-left: 1em;
}

.services .listleft p{
  margin:1.5em 0;
}
.sellbox{
  padding: 6em 0;
  background: #ccc;
  min-height: 65vh;
  background: url(../img/sell-bg.jpg) no-repeat;
  background-size: cover;
}

.team .sellbox{
  background-image: url(../img/justice-bw.jpg);
}

.services .sellbox{
  background-image: url(../img/justice-bw-l.jpg);
}

.sellbox h1{
  background-color: var(--blue);
  padding: .25em 0 .2em 1em;
  margin-bottom: .5em;
  color: white;
}

.sellbox p{
  margin-left: 3em;
  margin-bottom: 3em;
  width: 80%;
  font-size: 1.2em;
  color: white;

}

.sellbox > .lean_right{
  width: 50%;
  margin-left: 50%;
}

.sellbox > .lean_left{
  width: 60%;
}

h2.blueback{
  background: var(--blue);
}

.bigbutton{
  text-transform: uppercase;
  text-decoration:none;
  font: 1.25em;
  font-weight: 700;
  letter-spacing: 2px;
  border: 2px solid var(--vblue);
  padding: 1em 2em;
  margin: 3em;
  color: var(--blue);
  background: #eee;
}


.bigbutton:hover{
  background-color: var(--blue);
  border-color: white;
  color: white;
  text-shadow: 0 0 10px rgba(0,100, 255, .9);
  box-shadow: 0 0 10px rgba(0,100, 255, .9);
  transition: all .35s;
}

.stacker{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: var(--w8);
  margin:0 auto;

}

.half{
  width: 46%;
}

.qtr{
  width: 20%;
  margin: 1% 1em;

}

.services .qtr{
  width: 25%;
  margin-right: 10%;
  align-self:self-start;

}

.services .qtr3{

}

.s6{
  width: 60%;
  margin: 0 auto;
  display: block;
}

h1.left_blue_head{
  padding: 1.5em 0 1.5em 10%;
  color: var(--blue);
  font-size: 2.5em;
  //border: 1px solid red;
}

.qtr h2{
  font-size: 1.25em;
  text-align: center;
  margin: .5em 0;
  color: var(--blue);
  /*! text-decoration: underline; */
}

.qtr p{
  text-align: center;
}

.member{
  margin-bottom: 2em;
}

.member hgroup h1, .member hgroup h2, .member hgroup h3{
  text-align: left;
  margin:0;
}

.member hgroup h2{
  margin-top:1em;
  color: var(--blkblk);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  font-size: .75em;

}

.member hgroup h1{
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  line-height: .85em;
  color: var(--blue);
}

.member hgroup h3{
  text-decoration: none;
  font-size: .6em;
  font-weight: 600;
  margin-top: .5em;
  line-height: .75erm;
  color: var(--dkg);
}

footer{
  padding-top: 7em;
  background: #2B8CBC;
  background: linear-gradient(180deg,rgba(43, 140, 188, 1) 0%, rgba(1, 103, 152, 1) 100%);
}

footer nav li{
  display: flex;
  align-items: center;
}

nav li a:hover{
  background: rgba(150,150,150, .5);
  transition: all .35s;
  text-shadow: 0 0 10px rgba(0,100, 255, .9);
  box-shadow: 0 0 10px rgba(0,100, 255, .9);
  border-radius: 5px;

}

footer p{
  color: white;
  text-align: right;
}

.contactbtn{
  padding:1em 2.25em;
  background: var(--dkg);
}

header .contactbtn{
  padding:1em 2.25em;
  background: var(--blue);
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

.irm{
  position: relative;
  overflow: hidden;
  width: 13%;
  min-width: 175px;
  background: transparent url(../img/logo-light.png) no-repeat;
  background-size: contain;
  margin: 0 0 0 3%;
  z-index: 1;
  //border: 1px solid blue;

}

header nav.scrolled .irm{
  background: transparent url(../img/logo-dark.png) no-repeat;
  background-size: contain;
  //min-width: 175px;

}

.irm a{
  //border: 1px solid red;
  padding: 20% 0;
  display: block;
}

.irm span{
  display: block;
  position: absolute;
  top: -1000px;
  width: 100px;
}

footer .irm{
 background: transparent url(../img/logo-dark.png) no-repeat;
 background-size: contain;
 width: 25%;
 min-width: 275px;
 margin: 0 5% 0 0;
}

.blk{
  position: fixed;
  display: flex;
  background: rgba(0,0,0,.7);
  width: 100%;
  height: 100vh;
  top:-200vh;
  left:0;
  z-index: 1000;
  justify-content: center;
  align-items: center;
}


.modal{
  width: 80%;
  background: white;
  padding: 3em;  
}

input::placeholder, textarea::placeholder {
  font-family: helvetica, arial;
  font-size: .75em;
}

.modal input, .modal textarea{
  display: block;
  border: 1px solid #dfdfdf;
  border-radius: 5px;
  width: 100%;
  font: 400 1em "Montserrat",helvetica, arial;
  margin: 1em 0 0 0;
  padding: .5em; 
}

input[type="submit"]{
  font: 700 1em "Montserrat",helvetica, arial;
  width: 50%;
  background: var(--blue);
  color: white;
}

#closer{
  position: absolute;
  right:3vw;
  background: white;
  top:0;
  padding:.75em 1em;
  font: 700 2em "Montserrat",helvetica, arial;
  
}


/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 1100px) {
  header nav li{
    //display: none;
  }

  header nav ul{
    width: 100%;
    height: 100vh;
    position: absolute;
    top:-100vh;
    left:0;
    background: var(--blue);
    z-index: 400;
    transition: all .5s;
  }

  header nav.open ul{
    top:0;
    position: fixed;
    transition: all .25s linear;

  }
  
 

  .services .stacklist{
    display: block;
  }


  #opener{
    display:initial;
    position: absolute;
    top:10px;
    margin:0;
    right:0px;
    min-width: 100px;
    height: 100px;
    z-index: 500;
    padding:0;

  }

  #opener a{
    display: block;
    padding:0;
    cursor: pointer;
    width: 70px;
    height: 70px;

  }

  #opener a span{
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 1px;
    background: white;
    margin-top: 2vw;
    box-shadow: 0 0 3px black;
  }

  .open #opener a span:first-child{
    transform: translateY(47px) rotate(45deg);
    margin:0;
  }

  .open #opener a span:nth-last-child(2){
    display:none;
  }

  .open #opener a span:last-child{
    transform:translateY(44px) rotate(-45deg);
    margin:0;
  }

  header nav ul, header nav li{
    display: block;
    padding-top: 1em;
  }

  header nav li{
    width: 100%;
    height: calc(100vh/7);
    font-size: 5vw;
    //border: 1px solid red;
  }

  header nav li:first-child{
    margin-top: 2vh;
  }
  header nav li a:hover{
    background: none;
    box-shadow: none;
    opacity: .3;
  }

  header .contactbtn{
    padding:0;
  }

  footer nav{
    display: block;
  }
  
  footer nav ul{
    display: none;
  }

  footer li{
    margin:0 1% 0 0;
  }
  footer li a{
   //width: 100%;
    font-size: 1.5em;
    //border: 1px solid red;
  }
  
  footer p{
    text-align: left;
    font-size: .75em;
  }
  
  .qtr{
    width: 40%;
    min-width: 270px;
    margin-bottom: 6em;
  }

  .listleft{
    width: 100%;
  }

}

@media only screen and (max-width: 875px) {
  .underhero hgroup{
    margin-bottom:0;
  }
  .underhero .half{
    display: block;
    width: 100%;
  }

  .underhero img.half{
    margin-top: 3em;
  }
  .centered-head{
    padding-top: 5em;
  }
  
  .services .centered-head{
    width: var(--w8);
  }

  .listleft {
    display: block;
  }
  
  .services .qtr{
    margin-left:0;
  }
  

  .half{
    width: 100%;
  }

  .centered-head img.half{
    float: right;
    width: 15%;
  }
  
   .services .listleft img.half, .services .listleft img.qtr{
    padding: 0 20vw 2em;
    width: 100%;
  }
  


  

}

@media only screen and (max-width: 733px) {
  footer nav ul{
    display: none;
    margin-bottom: 5em;
  }
  footer .irm{
    margin:0 auto 1em auto;
  }
  footer nav ul li{
    font-size: 1em;
    justify-content: center;

  }

  .stacker{
    justify-content: center;
  }
  .sellbox .lean_right{
    width: 70%;
    margin-left: 30%;
  }

  .sellbox .lean_left{
    width: 80%;
    margin:0;
  }
  
  .services .qtr{
    display: none;
  }
  
  footer > p{
   text-align: center;
  }
  

}

@media only screen and (max-width: 500px) {
  header hgroup{
    padding-left: 1em;
    width: 100%;  
  }
  .sellbox{
    background-position: right;
    
  }
  .sellbox .lean_right, .sellbox .lean_left{
    width: 100%;
    margin:0;
  }
  
  
  footer > p > strong{
    display: block;
  }
}


@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
