/*! HTML5 Boilerplate v7.2.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.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;
}

/*
 * 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;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

img {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #313131;
}

.mobile-only {
  display: none!important;
}

.desktop-only {
  display: block!important;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Roboto Slab', sans-serif;
  color: #313131;
  font-weight: 400;
}

p:last-of-type {
  margin-bottom: 0;
}

.btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  padding: 13px 35px;
  max-width: 100%;
  border-radius: 23px;
  text-shadow: rgba(0,0,0,1) 1px 1px 0;
}

.btn.btn-style-1 {
  background-color: #f36626;
  color: #fff;
}

.btn.btn-style-1:hover {
  background-color: #CB4509;
}

.btn.btn-style-2 {
  background-color: #268da5;
  color: #fff;
}

.btn.btn-style-2:hover {
  background-color: #067C98;
}

.btn.btn-style-3 {
  background-color: #f6926f;
  color: #fff;
}

.btn.btn-style-3:hover {
  background-color: #D56A45;
}

.form-control {
  border: 1px solid #e2e2e2;
  background-color: #fff;
  border-radius: 5px;
  padding: 7px 13px;
  height: auto;
}

.section-header {
  color: #313131;
  font-weight: 400;
  font-size: 36px;
}

.section-header.with-divider {
  position: relative;
  padding-top: 40px;
}

header#main-header .logo-container img {
  max-height: 127px;
}

header#main-header .mid-header {
  position: relative;
  background-color: #fff;
}

header#main-header .mid-header .logo-container {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -o-transform: translateY(-50%);
}

header#main-header .mid-header .logo-container a {
  display: block;
}

header#main-header .mid-header .header-cta-container {
  font-size: 18px;
  text-align: center;
  margin-top: 20px;
}

#headline-section {
  position: relative;
  background-image: url(../img/ater-damage-hero.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}

#headline-section > .container {
  position: relative;
  z-index: 1;
}

#headline-section * {
  color: #fff;
  text-shadow: rgba(0,0,0,1) 1px 1px 0;
}

.btn-container .btn {
  width: 250px;
  max-width: 100%;
}

.btn-container .separator {
  width: 75px;
  text-align: center;
  margin-top: 12px;
  font-size: 18px;
}

#headline-section .headline-text .line-1 {
  font-size: 48px;
  margin-bottom: 25px;
  width: 790px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#headline-section .headline-text .line-2 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 30px;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  width: 770px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.btn-container {
  display: flex;
  width: 605px;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

#headline-section .btn-container {
  margin-top: 45px;
}

.btn-container .btn-1-container {
  padding-right: 15px;
}

.btn-container .btn-2-container {
  padding-left: 15px;
}

#headline-section .headline-text .line-4 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

#why-choose-us-section {
  background-color: #fff;
}

#why-choose-us-section .text-content {
  position: relative;
}

.wcu-list {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.wcu-list .wcu-entry {
  max-width: 33.33%;
  flex: 0 0 33.33%;
  -ms-flex: 0 0 33.33%;
  padding-left: 15px;
  padding-right: 15px;
  text-align: center;
}

.wcu-list .wcu-entry .wcu-content {
  width: 280px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.wcu-list .wcu-entry .wcu-content .wcu-img {
  margin-bottom: 25px;
}

.wcu-list .wcu-entry .wcu-content .wcu-img img {
  height: 72px;
  width: auto;
}

.wcu-list .wcu-entry .wcu-content .wcu-info .header {
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 18px;
}

.accreditation-list {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: auto;
  margin-left: auto;
  margin-top: 60px;
  width: 571px;
  max-width: 100%;
}

.accreditation-list .accreditation-entry {
  padding-left: 30px;
  padding-right: 30px;
}

.accreditation-list .accreditation-entry img {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -o-transform: translateY(-50%);
}

#testimonial-form-section {
  background-image: url(../img/water-damage-hero.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  border-top: 8px solid #254899;
}

#testimonial-form-section:after {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(46,46,46,0.82);
}

#testimonial-form-section > .container {
  position: relative;
  z-index: 1;
}

#testimonial-form-section * {
  color: #fff;
}

#testimonial-form-section .btn-container {
  display: block;
}

#form-info .btn-container .btn {
  width: 250px;
}

.testimonials-content .testimonial-entry {
  margin-bottom: 30px;
}

.testimonials-content .testimonial-entry:last-of-type {
  margin-bottom: 0;
}

.testimonials-content .testimonial-entry .testimonial-desc {
  margin-bottom: 10px;
  font-size: 16px;
}

.testimonials-content .testimonial-entry .testimonial-meta {
  display: flex;
}

.testimonials-content .testimonial-entry .testimonial-meta .author-desc .name {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.testimonials-content .testimonial-entry .testimonial-meta .author-desc {
  padding-right: 50px;
}

.testimonials-content .testimonial-entry .testimonial-meta .author-desc .city {
  font-size: 14px;
}

#testimonial-form-section .form-container {
  background-color: #122042;
  max-width: 45%;
  flex: 0 0 45%;
  -ms-flex: 0 0 45%;
}

#testimonial-form-section .testimonials-container {
  max-width: 55%;
  flex: 0 0 55%;
  -ms-flex: 0 0 55%;
}

#testimonial-form-section .form-container form .form-control {
  color: #313131;
}

#testimonial-form-section .contact-form {
  width: 350px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#testimonial-form-section .contact-form .btn {
  width: 100%;
}

#testimonial-form-section .intro-container {
  font-size: 18px;
}

.wwd-list {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  width: 900px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.wwd-list .wwd-entry {
  max-width: 100%;
  flex: 0 0 100%;
  -ms-flex: 0 0 100%;
  margin-bottom: 60px;
}

.wwd-list .wwd-entry:last-child {
  margin-bottom: 0;
}

.wwd-list .wwd-entry .wwd-content {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.wwd-list .wwd-entry .wwd-content .wwd-img {
  max-width: 345px;
  flex: 0 0 345px;
  -ms-flex: 0 0 345px;
  padding-left: 15px;
  padding-right: 15px;
}

.wwd-list .wwd-entry .wwd-content .wwd-img img {
  border-radius: 10px;
}

.wwd-list .wwd-entry .wwd-content .wwd-details {
  max-width: calc(100% - 345px);
  flex: 0 0 calc(100% - 345px);
  -ms-flex: 0 0 calc(100% - 345px);
  padding-left: 15px;
  padding-right: 15px;
}

.wwd-list .wwd-entry .wwd-content .wwd-details .wwd-header {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 20px;
}

#cta-section-1 {
  background-color: #122042;
}

.cta-section {
  text-align: center;
  font-size: 18px;
}

.cta-section * {
  color: #fff;
}

.cta-section .cta-img {
  margin-bottom: 15px;
}

.cta-section .cta-desc {
  font-size: 36px;
  margin: 0;
}

#map-section .content {
  height: 300px;
  background-color: #fafafa;
  font-size: 30px;
}

footer#footer-main {
  background-color: #122042;
  margin-bottom: 76px;
}

footer#footer-main * {
  color: #fff;
}

footer#footer-main .footer-content {
  text-align: center;
}

footer#footer-main .footer-content .footer-logo {
  margin-bottom: 15px;
}

.footer-info .info-entry {
  margin-bottom: 10px;
}

.footer-info {
  width: 500px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.privacy-policy-content {
  font-size: 12px;
}

.copyright-content {
  font-size: 12px;
  text-align: right;
}

#floating-cta {
  background-color: #122042;
  position: fixed;
  bottom: 0;
  width: 100%;
  padding-top: 15px;
  padding-bottom: 15px;
  z-index: 1;
}

#floating-cta * {
  color: #fff;
}

#privacy-policy-section {
  background-color: #f2f2f2;
}

#thank-you-section {
  background-color: #f2f2f2;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
* 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: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media (min-width: 1200px) {
  .container {
    max-width: 990px;
  }
}

@media (max-width: 1199px) {
  header#main-header .mid-header .header-cta-container {
      font-size: 16px;
      margin-top: 24px;
  }
}

@media (max-width: 991px) {
  #headline-section .headline-text .line-1 {
      font-size: 42px;
  }

  #headline-section .headline-text .line-2 {
      font-size: 20px;
  }

  .btn-container {
      margin-top: 30px;
      margin-bottom: 30px;
      width: 530px;
  }

  #headline-section .headline-text .line-4 {
      font-size: 22px;
  }

  .section-header {
      font-size: 30px;
  }

  .btn {
      font-size: 16px;
      width: 250px;
      padding: 11px 16px;
  }

  #cta-section {
      padding-top: 1.5rem!important;
      padding-bottom: 1.5rem!important;
  }
}

@media (max-width: 767px) {
  header#main-header {
      padding-top: 15px;
      padding-bottom: 15px;
  }

  header#main-header .mid-header .logo-container {
      text-align: center;
  }

  header#main-header .mid-header .header-cta-container {
      width: 100%;
      text-align: center!important;
      margin-top: 20px;
  }

  #headline-section .headline-text .line-1 {
      font-size: 36px;
      margin-bottom: 15px;
  }

  .btn-container {
      display: block;
      margin-top: 20px;
      margin-bottom: 20px;
  }

  .btn-container .btn-1-container {
      padding-right: 0;
      text-align: center;
      margin-bottom: 15px;
  }

  .btn-container .btn-2-container {
      text-align: center;
      padding-left: 0;
  }

  #headline-section .headline-text .line-2 {
      font-size: 18px;
      margin-bottom: 20px;
  }

  #headline-section .headline-text .line-4 {
      font-size: 18px;
  }

  .section-header {
      font-size: 26px;
  }

  #why-choose-us-section .text-content img.family-image {
      position: relative;
      display: block;
      margin-left: auto;
      margin-right: auto;
  }

  #why-choose-us-section .text-content {
      padding-bottom: 0!important;
  }

  #testimonial-form-section .form-container {
      margin-bottom: 40px;
  }

  #testimonial-form-section .contact-form button[type="submit"] {
      width: 100%;
  }

  #testimonial-form-section .form-container .btn-container .btn {
      width: 300px;
  }

  #thank-you-section .thank-you-content h2 {
      font-size: 28px;
  }

  .mobile-only {
    display: block!important;
  }

  .desktop-only {
    display: none!important;
  }

  .btn-container .separator {
      display: none;
  }

  #headline-section .btn-container {
      margin-top: 30px;
  }

  #headline-section {
      padding-top: 10px!important;
      padding-bottom: 10px!important;
  }

  #headline-section .headline-text.headline-content {
      padding-bottom: 0!important;
  }

  .wcu-list .wcu-entry {
      max-width: 100%;
      flex: 0 0 100%;
      -ms-flex: 0 0 100%;
      margin-bottom: 30px;
  }

  .wcu-list .wcu-entry:last-child {
      margin-bottom: 0;
  }

  .accreditation-list .accreditation-entry {
      max-width: 100%;
      flex: 0 0 100%;
      -ms-flex: 0 0 100%;
      text-align: center;
      margin-bottom: 30px;
  }

  .accreditation-list .accreditation-entry:last-child {
      margin-bottom: 0;
  }

  #testimonial-form-section .testimonials-container, #testimonial-form-section .form-container {
      max-width: 100%;
      flex: 0 0 100%;
      -ms-flex: 0 0 100%;
  }

  #testimonial-form-section .form-container #form-info {
      padding-top: 10px!important;
      padding-bottom: 10px!important;
      padding-left: 10px!important;
      padding-right: 10px!important;
  }

  .wwd-list .wwd-entry .wwd-content .wwd-img, .wwd-list .wwd-entry .wwd-content .wwd-details {
      max-width: 100%;
      flex: 0 0 100%;
      -ms-flex: 0 0 100%;
  }

  .wwd-list .wwd-entry .wwd-content .wwd-img {
      margin-bottom: 30px;
  }

  .wwd-list .wwd-entry .wwd-content {
      width: 345px;
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
  }

  .cta-section .cta-desc {
      font-size: 26px;
  }

  .cta-section {
      font-size: 16px;
  }

  #floating-cta .btn-container {
      margin-top: 0;
      margin-bottom: 0;
  }

  footer#footer-main {
      margin-bottom: 125px;
  }

  .privacy-policy-content, .copyright-content {
      text-align: center;
  }

  .privacy-policy-content {
      margin-bottom: 20px;
  }
}

@media (max-wdth: 575px) {
  #headline-section .headline-text .line-1 {
      font-size: 30px;
  }

  header#main-header .logo-container img {
      max-height: 55px;
  }

  #headline-section .headline-text .line-2 {
      font-size: 16px;
  }

  #headline-section .headline-text .line-4 {
      font-size: 16px;
  }

  .section-header {
      font-size: 24px;
  }

  .section-header.with-divider {
      padding-top: 35px;
  }

  #testimonial-form-section .form-container {
      margin-bottom: 0;
  }
}

@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: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    -webkit-box-shadow: none !important;
    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;
  }
}

