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

img {
  display: block;
}

input, button, textarea, select {
  font: inherit;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  color: #231f20;
  background-color: black;
  line-height: 1.5;
  font-family: Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; /* Fix for MacOS Chrome, Safari */
}

a {
  transition: color 0.2s;
}

a, a:active, a:visited {
  color: #3b6fcd;
}

a:hover {
  color: #6c6c6c;
}

h2 {
  font-size: 2.5rem;
}

@media all and (max-width: 400px) {
  h2 {
    font-size: 2rem;
  }
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 0.375rem;
}

.site-header {
  background-color: white;
  padding: 1.5rem 6.75%;
  display: -webkit-flex;
  display: flex;
  justify-content: space-between;
  align-items: center;
  -webkit-justify-content: space-between;
  -webkit-align-items: center;
}

#top-logo {
  width: 85%;
  max-width: 350px;
}

.site-header nav ul {
  list-style-type: none;
  font-size: 1.2rem;
  font-weight: 500;
  width: 100%;
  display: -webkit-flex;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  -webkit-justify-content: flex-end;
  -webkit-align-items: center;
}

.site-header nav li {
  margin-left: 1.875rem;
  white-space: pre;
}

.site-header nav a {
  color: #231f20;
  text-decoration: none;
}

.site-header nav a:visited {
  color: #231f20;
}

.site-header nav a:hover, .site-header nav a:active {
  color: #ffcb05;
}

.site-header li.nav-contact {
  padding: 0.5em 0.833333333em;
  background-color: #ffcb05;
  border-radius: 0.75rem;
  display: initial;
}

.site-header li.nav-contact a {
  color: #353535;
}

.site-header li.nav-contact a:hover, .site-header li.nav-contact a:active {
  color: white;
}

#contact-icon {
  width: 16%;
  max-width: 50px;
  min-width: 30px;
  display: none;
  margin-left: 50px;
}

#contact-icon img {
  width: 100%;
  padding: 0.15rem;
  border: 2px solid #353535;
  border-radius: 0.5rem;
}

@media all and (max-width: 739px) {
  .site-header li {
    display: none;
  }
}

@media all and (max-width: 495px) {
  .site-header {
    padding: 1.5rem 4%;
  }

  .site-header li.nav-contact {
    display: none;
  }

  #contact-icon {
    display: block;
  }
}

main {
  display: block; /* Fix for IE11 */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero1 {
  background-image: linear-gradient(
      to bottom,
      rgba(60, 60, 60, 0.25),
      rgba(60, 60, 60, 0.25)
    ),
    url('images/hero1_dp_sm.jpg');
  background-position: top;
  background-repeat: no-repeat;
  padding: 6.75%;
  text-shadow: 0.25em 0.25em 0.15em #222222;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: space-around;
  -webkit-align-items: center;
  -webkit-justify-content: space-around;
}

.hero1 img {
  width: 40%;
  max-width: 300px;
  margin-left: 3rem;
  opacity: 0.3;
}

.hero1 p {
  font-size: 3rem;
  color: #ffcb05;
  font-weight: bold;
  margin-bottom: 0.75em;
  line-height: 1.25;
}

.hero1 p:last-child {
  margin-bottom: 0;
}

@media all and (max-width: 645px) {
  .hero1 {
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
  }

  .hero1 p {
    text-align: center;
  }

  .hero1 img {
    width: 65%;
    margin-left: 0;
    margin-top: 2rem;
  }
}

@media all and (max-width: 425px) {
  .hero1 p {
    font-size: 2.5rem;
  }
}

@media all and (min-width: 500px) {
  .hero1 {
    background-image: linear-gradient(
        to bottom,
        rgba(60, 60, 60, 0.25),
        rgba(60, 60, 60, 0.25)
      ),
      url('images/hero1_dp_full.jpg');
  }
}

.blurb {
  background-color: white;
  padding: 6.75%;
}

.blurb p {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.8;
  text-align: center;
}

@media all and (max-width: 565px) {
  .blurb p {
    font-size: 1.5rem;
  }
}

#expertise {
  background-color: #322e2f;
  padding: 6.75% 6.75% calc(6.75% - 3.515625rem);
}

#expertise h2 {
  color: white;
  text-align: center;
  margin-bottom: 6.75%;
}

.highlight-yellow {
  color: #ffcb05;
}

#expertise .flex {
  margin-left: -3.515625rem;
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  -webkit-flex-wrap: wrap;
  -webkit-justify-content: space-around;
}

#expertise section {
  position: relative;
  background-color: white;
  border-radius: 1.875rem;
  padding: 3.515625rem;
  margin-bottom: 3.515625rem;
  margin-left: 3.515625rem;
  width: 40%;
  min-width: 340px;
  max-width: 500px;
  flex-grow: 1;
  -webkit-flex-grow: 1;
}

.expert-icon {
  width: 100px;
  float: right;
}

#expertise h3 {
  clear: both;
  font-size: 1.4rem;
  margin-bottom: 0.75em;
}

#expertise ul {
  list-style-image: url('images/cbox.png');
}

#expertise li {
  margin: 0 0 0.5em 1.5em;
}

#expertise li:last-child {
  margin-bottom: 0;
}

@media all and (max-width: 460px) {
  #expertise section {
    min-width: 250px;
    margin-bottom: 5.83875%;
    padding: 12.2282609%;
  }

  .expert-icon {
    width: 35.0385424%;
  }
}

#about {
  background-color: white;
  padding: 6.75%;
}

#about h2 {
  margin-bottom: 1.75rem;
  text-align: center;
  color: #636363;
}

#about p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1em;
}

#about p:last-child {
  margin-bottom: 0;
}

@media all and (max-width: 610px) {
  #about p {
    text-align: center;
  }
}

@media all and (min-width: 800px) {
  #about .content {
    background-image: url('images/about_bg.jpg');
    background-position: left;
    background-repeat: no-repeat;
    background-size: 35%;
    padding-left: 41.75%;
  }

  #about h2 {
    text-align: left;
  }
}

.hero2 {
  background-color: #2c2c2c;
  padding: 6.75%;
  font-weight: 300;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  -webkit-flex-direction: column;
  -webkit-align-items: center;
  -webkit-justify-content: space-between;
}

.hero2 h2 {
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 1.75rem;
}

.hero2 img.bolt {
  margin: 0 auto 1.75rem auto;
  width: 3rem;
}

.hero2 p {
  font-size: 1.6rem;
  color: #f0f0f0;
  text-align: center;
}

@media all and (min-width: 800px) {
  .hero2 {
    background-image: linear-gradient(
                        rgba(40, 40, 40, 0.65),
                        rgba(40, 40, 40, 0.65)),
                      url('images/pipes.jpg');
    background-position: top;
    background-repeat: no-repeat;
  }
}

@media all and (max-width: 675px) {
  .hero2 header {
    order: 2;
    -webkit-order: 2;
  }

  .hero2 img.bolt {
    order: 1;
    -webkit-order: 1;
  }

  .hero2 p {
    order: 3;
    -webkit-order: 3;
  }
}

@media all and (max-width: 400px) {
  .hero2 p {
    font-size: 1.4rem;
  }
}

#contact {
  background-color: #fffdf5;
  padding: 6.75%;
}

#contact h2 {
  color: #525252;
  margin-bottom: 1.75rem;
  text-align: center;
}

#contact h3 {
  font-size: 1.17em;
}

#contact .content {
  display: -webkit-flex;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  -webkit-justify-content: space-between;
  -webkit-align-items: flex-start;
}

.contact-panel {
  width: 25%;
  margin-top: 2rem;
  margin-left: -2rem;
  border-right: 1px solid black;
  max-width: 450px;
  min-width: 400px;
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  align-content: flex-start;
  flex-grow: 1;
  -webkit-flex-wrap: wrap;
  -webkit-align-items: flex-start;
  -webkit-justify-content: space-between;
  -webkit-align-content: flex-start;
  -webkit-flex-grow: 1;
}

.contact-panel > * {
  margin-left: 2rem;
}

.contact-slide {
  font-size: 1.25rem;
  margin-bottom: 1.5em;
  width: 50%;
  min-width: 360px;
  flex-grow: 1;
  -webkit-flex-grow: 1;
}

.contact-slide section {
  margin-bottom: 1.5em;
  display: -webkit-flex;
  display: flex;
  align-items: flex-start;
  -webkit-align-items: flex-start;
}

.contact-slide section:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 1.44em;
  margin: 0 0.96em 0.4em 0;
}

.contact-slide dl > div {
  margin-bottom: 0.35em;
  display: -webkit-flex;
  display: flex;
  justify-content: space-between;
  -webkit-justify-content: space-between;
}

.contact-slide dl > div:last-child {
  margin-bottom: 0;
}

.contact-slide dt::after {
  content: ':';
  margin-right: 0.5em;
}

.contact-slide p.email {
  margin-bottom: 0.35em;
}

.contact-slide p.email:last-child {
  margin-bottom: 0;
}

#contact .social {
  margin-bottom: 1.5em;
  font-size: 1.25rem;
  width: 30%;
  flex-grow: 1;
  -webkit-flex-grow: 1;
}

#contact .social section {
  margin-bottom: 1em;
}

#contact .social section:last-child {
  margin-bottom: 0;
}

.social-link {
  display: -webkit-flex;
  display: flex;
  align-items: center;
  -webkit-align-items: center;
}

.social-link img {
  width: 1.44em;
  margin-right: 0.96em;
}

.contact-form {
  font-size: 1.25rem;
  width: 75%;
  margin-left: 5.83875%;
  flex-grow: 1;
  -webkit-flex-grow: 1;
}

.contact-form h3 {
  color: #345da8;
  font-size: 1.2em;
  margin-bottom: 0.5em;
  display: none;
}

.contact-form label {
  font-size: 1rem;
}

label .warning {
  display: none;
  font-size: 0.8em;
  color: red;
}

.contact-form input, .contact-form textarea {
  border: 2px solid #322e2f;
  border-radius: 0.3125rem;
  display: block;
  width: 100%;
  padding: 0.6em;
  margin: 0.25rem 0 1.25rem 0;
  resize: none;
}

.contact-form input.error, .contact-form textarea.error {
  border-color: red;
}

#form-flash {
  display: none;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.6em;
  color: #444444;
  text-align: center;
  border-radius: 0.3125rem;
  border-width: 2px;
  border-style: solid;
}

#form-flash.success {
  border-color: #e9c40c;
  background-color: #fcf7e0;
  display: block;
}

#form-flash.error {
  border-color: #f96b6b;
  background-color: #feebeb;
  display: block;
}

#submit-btn {
  border: 0;
  width: 100%;
  padding: 0.6rem;
  border-radius: 0.3125rem;
  background-color: #4a77b1;
  color: #fff;
  display: -webkit-flex;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-justify-content: center;
  -webkit-align-items: center;
}

#submit-btn[disabled] {
  background-color: #717171;
}

#submit-btn img {
  width: 1em;
  margin-left: 0.5em;
}

#contact .map {
  position: relative;
  width: 100%;
  height: 500px;
  margin-top: 6.75%;
}

#contact iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid black;
}

@media all and (max-width: 980px) {
  #contact .content {
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
  }

  .contact-panel {
    min-width: 250px;
    max-width: 10000px;
    border: 0;
    margin-top: 5.83875%;
    flex-wrap: nowrap;
    order: 2;
    -webkit-flex-wrap: nowrap;
    -webkit-order: 2;
  }

  .contact-slide {
    word-break: break-all;
  }

  .contact-form {
    margin: 0 auto;
    flex-shrink: 0;
    order: 1;
    -webkit-flex-shrink: 0;
    -webkit-order: 1;
  }

  #contact .map {
    margin-top: 0;
  }
}

@media all and (max-width: 700px) {
  .contact-panel {
    margin-top: 2rem;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
  }
}

@media all and (max-width: 565px) {  
  .contact-slide section {
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
  }

  .contact-slide dl > div {
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
  }

  #contact .map {
    height: 0;
    padding-bottom: 102.3070234%;
  }
}

@media all and (max-width: 400px) {
  .contact-slide {
    width: 100%;
    min-width: 1px;
  }
}

@media all and (max-width: 360px) {
  .contact-slide section header {
    width: 100%;
    flex-shrink: 0;
    -webkit-flex-shrink: 0;
  }
}

.assoc-logos {
  background-color: white;
  border-top: 2px solid #646464;
  padding: 6.75% 6.75% calc(6.75% - 2.5rem);
}

.assoc-logos .content {
  margin-left: -3.5rem;
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  align-content: flex-start;
  -webkit-flex-wrap: wrap;
  -webkit-align-items: center;
  -webkit-justify-content: space-around;
  -webkit-align-content: flex-start;
}

.assoc-logos img {
  margin: 0 0 3.5rem 3.5rem;
  flex-shrink: 0;
  -webkit-flex-shrink: 0;
}

@media all and (max-width: 400px) {
  .assoc-logos img {
    flex-shrink: 1;
    -webkit-flex-shrink: 1;
  }
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-container footer {
  padding: 6.75%;
  border-top: 0.375rem solid #ffcb05;
  background-color: #231f20;
  color: white;
}

.footer-logo {
  width: 90%;
  max-width: 350px;
  margin: 0 auto;
}

p.copy {
  margin: 2.5em auto 0;
  text-align: center;
}

.footer-container nav {
  text-align: center;
  margin-top: 2em;
}

.footer-container a, .footer-container a:active, .footer-container a:visited {
  text-decoration: none;
  color: #ffef90;
}

.footer-container a:hover {
  color: #6c6c6c;
}

@media all and (max-width: 430px) {
  p.copy {
    font-size: 0.8rem;
  }

  .footer-container nav {
    font-size: 0.8rem;
  }
}
