/*! 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;
  }
  
  /*
   * 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;
  }
  
  /* In the solution code is a "Browser Upgrade Prompt" section, what's that about? */
  
  /* ==========================================================================
     Author's custom styles
     ========================================================================== */
  /********** GENERAL STYLES **********/
  
  html {
    font-size: 16px;
  }
  
  body {
    color: #e2e3ed;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
  }
  
  h2 
  h3,
  h4 {
    font-family: 'Poppins', sans-serif;    
  }
  
  h2 {
    font-weight: 500;
    font-size: 1.875em;
    margin: 0;
  }
  
  h3 {
    font-size: 1.125em;
    margin: 20px 0;
  }
  
  p {
    font-size: .875em;
    line-height: 1.285em;
  }
  
  a {
    color: #e2e3ed;
    text-decoration: none;
  }
  
  img {
    width: 100%;
  }
  
  figure {
    margin: 0;
  }
  
  address {
    font-style: normal;
   }
  
  .content-wrapper {
    width: 90%;
    margin: 50px 0;
  }
     
     /***** BASE HEADER- FOOTER STYLES *****/
    
     header,
     footer {
      display: flex;
      align-items: center;
      flex-flow: row wrap;
      justify-content: center;
      background-color: #202322;
     }
  
  /* HEADER STYLES */
  
  header {
    padding: 15px 0;
  }
  
  header .content-wrapper {
    display: flex;
    align-content: center;
    flex-flow: row wrap;
    justify-content: center;
    margin: 0;
  }
  
  header figure {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row wrap;
    width: 60%;
  }
  
  .header-divider {
    background: #3a3a3a; 
    height: 1px;
    width: 100%;
    margin: 10px 0 20px 0;
  }
  
  header nav {
    display: flex;
    align-content: center;
    flex-flow: row wrap;
    justify-content: space-around;
    font-weight: 700;
    width: 60%;
  }
  
  header nav ul {
    display: flex;
    justify-content: space-around;
    font-size: 1.125em;
    list-style: none;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    width: 100%;
  }
  
  /* FOOTER STYLES */
  
  footer {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  
  footer .content-wrapper {
    margin: 50px 0;
    width: 55%;
  }
  
  footer p {
    margin: 0;
  }
  
  footer .social-icons p i {
    font-size: 1.3125em;
  }
  
  footer .contact {
    margin-bottom: 50px;
  }
  
  footer .social-icons {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  
  footer .social-icons p {
    background-color: #527158;
    border-radius: 50%;
    height: 2.5em;
    width: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .copyright {
    margin: 20px 0;
  }
  
  /********** MOBILE STYLES **********/
   /***** HOMEPAGE *****/
  /* HERO STYLES */
  .hero-area {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    background: url('../img/hero-image.jpg') center no-repeat green;
    background-size: cover;
    min-height: 500px;
  }
  
  .hero-area h2 {
    font-size: 2.25em;
    font-family: 'Poppins', Helvetica, Arial, sans-serif; 
    font-weight: 500; 
    line-height: 1.2;
  }
  
  /* FORM STYLES */
  aside {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    background-color: #527158;
    padding: 20px 0 50px 0;
  }
  
  aside .content-wrapper {
    margin: 0;
  }
  
  aside h3 {
    margin: 10px 0;
  }
  
  aside p {
    margin: 5px 0 30px 0;
  }
  
  input[type=text] {
    box-sizing: border-box;
    width: 100%;
    color: #2a423a;
    font-style: italic;
    padding: 1em;
  }
   
  input[type=button] {
    width: 100%;
    padding: 20px 0;
    margin-top: 20px;
    background-color: #2a423a;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 1.125em;
    color: #e2e3ed;
    border: none;
    text-align: center;
    text-transform: uppercase;
  }
  
  /* FEATURES STYLES */
   .features {
    background: url('../img/features-image.jpg') center no-repeat #333;
    background-size: cover;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
   }
  
   .features h2 {
    margin-bottom: 60px;
   }
  
   .features article {
    width: 63%;
    margin: 30px 0;
   }
  
   .features i {
    font-size: 4em;
    margin-bottom: 40px;
   }
  
   .features-items {
    display: flex;
    align-items: center;
    flex-flow: row wrap;
    justify-content: center;
   }
  
   .features-items p {
    text-align: center;
   }
  
   .features p {
    margin: 0;
   }
  
   /* REVIEWS STYLES */
   .reviews {
    background-color: #2a423a;
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
   }
  
   .reviews .content-wrapper {
    margin: 40px 0;
   }
   .reviews h2 {
    margin-bottom: 40px;
    margin-top: 10px;
    line-height: 1;
   }
   .reviews h3 {
    width: 55%;
    margin: 20px 0;
   }
  
   /***** ABOUT PAGE STYLES *****/
  /* MISSION */
   .mission {
    display: flex;
    align-content: center;
    flex-flow: row wrap;
    justify-content: center;
    background-color: #527158;
   }
  
   .mission .content-wrapper h2,
   .contact-section .content-wrapper h2 {
    line-height: 1.1em;
   }
  
   /* MAP */
   .map-container {
    width: 100%;
    height: 0;
    margin: 0;
    padding-bottom: 125%;
    overflow: hidden;
    position: relative;
   }
  
   .map-container iframe {
    height: 100%;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
   }
  
   /* CONTACT */
   .contact-section {
    display: flex;
    align-content: center;
    flex-flow: row wrap;
    justify-content: center;
    background-color: #2a423a;
   }
  
   .contact-section h3 {
    margin: 0;
    padding: 10px 0;
   }
  
   .contact-content p {
    margin: 0;
   }
  
   /***** FAQ STYLES *****/
   .faq {
    display: flex;
    align-content: center;
    flex-flow: row wrap;
    justify-content: center;
    background: #527158;
    padding: 50px 0 30px 0;
   }
  
   .faq .content-wrapper {
    display: flex;
    align-content: center;
    flex-flow: row wrap;
    justify-content: center;
    margin: 0;
   }
  
   .faq h2 {
    line-height: 1;
    margin-bottom: 40px;
   }
  
   .faq-content {
    margin-bottom: 40px;
   }
  
   .faq-content h3 {
    line-height: 1.333;
    margin: 0;
   }
  
  /* ==========================================================================
     Helper classes
     ========================================================================== */
  
  /*
   * Hide visually and from screen readers
   */
  
  .hidden,
  [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: " ";
    display: table;
  }
  
  .clearfix::after {
    clear: both;
  }
  
  /* ==========================================================================
     EXAMPLE Media Queries for Responsive Design.
     These examples override the primary ('mobile first') styles.
     Modify as content requires.
     ========================================================================== */
  
  /********** TABLET STYLES **********/
  @media only screen and (min-width: 768px) {
  /***** GENERAL *****/  
    .content-wrapper {
      max-width: 640px;
    }
  
    h2 {
      font-size: 2.25em;
      line-height: 1.333;
    }
  
    h3 {
        font-size: 1.5em;
        line-height: 1.25;
    }
  
  /* HEADER */
    header {
      justify-content: center;
      padding: 30px 0;
    }
  
    header .content-wrapper {
      justify-content: space-between;
      padding: 0;
    }
  
    header nav {
      width: 25%;
    }
  
    .header-divider {
      display: none;
    }
  
    header figure {
      width: 38%;
    }
  /* FOOTER */
    footer .content-wrapper {
      width: 65%;
     }
     .footer-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 40px 0;
     }
  
     footer h3 {
      font-size: 1.5em;
     }
  
     footer .contact {
      margin-bottom: 0;
     }
  
     footer .copyright {
      width: 100%;
     }
  
     footer .social-icons {
      width: 12.5em;
      justify-content: space-between;
     }
  
     footer .social-icons p {
      height: 3em;
      width: 3em;
    }
  
  /***** HOMEPAGE *****/
  .hero-area h2 {
    font-size: 3em;
    line-height: 1;
    margin: 0;
  }
  
  /* FORM */
    aside .content-wrapper {
      display: flex;
      justify-content: space-between;
      flex-flow: row wrap;
      margin-top: 50px;
    }
  
    aside .content-wrapper .form-description, 
     aside .content-wrapper .form {
      width: 45%;
     }
  
     aside .content-wrapper .form-description h2, 
     aside .content-wrapper .form h3 {
      padding-bottom: 10px;
     }
  
     aside .form-description p {
      line-height: 1.4em;
      margin-top: 20px;
     }
  
     input[type=button] {
      padding: 5px 0;
      margin-top: 20px;
      font-size: 1.35em;
    }
    
     aside h3 {
      font-size: 1.5em;
     }
  
  /* FEATURES */
  /*** Def confused about flex-basis still **/
    .features h2 {
      font-size: 2.5em;
      margin-bottom: 15px;
    }
  
    .features-items {
      flex-basis: 80%;
      justify-content: center;
    } 
    
    .features article {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-basis: 35%;
      flex-flow: column wrap;
      margin: 10px 45px 30px 45px;
     }
  
     .features .features-item-description {
      width: 100%;
     }
  
     .features i {
      font-size: 4em;
      margin-bottom: 25px;
     }
  
  /* REVIEWS */
     .reviews .content-wrapper {
      margin: 100px 0;
     }
  
    .reviews h2 {
      font-size: 2.5em;
      width: 85%;
     }
  
     .reviews article {
      display: flex;
      justify-content: space-between;
     }
  
     .reviews article figure,
     .reviews article div {
      width: 49%;
    }
  
    .reviews h3 {
      width: 75%;
      margin: 0;
    }
  
  /***** ABOUT *****/
  /* MISSION */
    .mission .content-wrapper {
      padding: 30px 0;
    } 
    .mission-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
     }
  
    .mission .content-wrapper h2 {
      font-size: 2em;
      margin-bottom: 20px;
      width: 90%;
      word-spacing: .3em;
    }
  
    .mission-content p {
      line-height: 1.1em;
    }
  
     .mission-content p {
      width: 45%;
     }
  
  /* MAP */
     .map-container {
      padding-bottom: 45.5%;
     }
  
  /* CONTACT */
    .contact-section .content-wrapper {
      padding: 35px 0;
    }
  
    .contact-section .content-wrapper h2 {
      margin-bottom: 20px;
      width: 80%;
     }
  
     .contact-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
     }
  
     .contact-content h3 {
      font-size: 1.5em;
      margin: 10px 0;
     }
  
  /* FAQ */
  /*** Def confused about flex-basis still **/
     .faq .content-wrapper {
      margin: 50px 0;
      justify-content: space-between;
     }
  
     .faq-content {
      flex-basis: 45%;
      margin-bottom: 0;
     }
  
     .faq h2 {
      margin-bottom: 20px;
      width: 100%;
     }
  
     .faq h3,
     .faq p {
      font-size: .875em;
      line-height: 1.125;
     }
  
     .faq h3 {
      margin-top: 20px;
     }
  }
  
  /********** DESKTOP STYLES **********/
  @media only screen and (min-width: 1200px) {
  /***** GENERAL *****/
    .content-wrapper {
      max-width: 960px;
    }
  
    p {
      font-size: 1.125em;
    }
  
  /* HEADER */
    header {
      padding: 0;
    }
    header .content-wrapper {
      padding: 25px 0;
    }
  
    header figure {
      width: 30%;
    }
  
  /* FOOTER */
    footer h3 {
      font-size: 1.875em;
    }
  
    .footer-content {
      padding: 20px 50px;
    }
  
    footer .social-icons p {
      height: 2.5em;
      width: 2.5em;
    }
  
  /***** HOMEPAGE *****/
  /* HERO AREA */
    .hero-area h2 {
      font-size: 3.75em;                                                                      
      width: 75%;
    }
  
  /* FORM */
    aside .content-wrapper {
      justify-content: space-around;
    }
  
    aside .content-wrapper h3 {
      margin-bottom: 10px;
    }
  
    aside .content-wrapper .form-description,
    aside .content-wrapper .form {
      width: 35%;
    }
  
    aside .content-wrapper .form-description h3,
    aside .content-wrapper .form h3 {
      font-size: 1.875em;
      margin: 0;
    }
  
    .form-description p {
      line-height: 1em;
      margin: 10px 0;
    }
  
  /* FEATURES */
    .features h2 {
      line-height: 1em;
      width: 100%;
    }
  
    /* Why flex-basis here? */
    .features-items {
      margin-top: 30px;
    }
    
    .features article {
      flex-basis: 20%;
      margin: 30px 50px;
    }
  
    /* REVIEWS */
    .reviews h2 {
      font-size: 2.25em;
    }
    .reviews article {
      justify-content: flex-start;
    }
  
    .reviews h3 {
      font-size: 1.875em;
    }
  
    .reviews p {
      font-size: 1.125em;
    }
  
    .reviews .review-one {
      margin-left: 30px;
    }
  
    .reviews .review-one p {
      line-height: 1.4em;
    }
    
    .reviews article div {
      width: 42%;
    }
  
  /***** ABOUT *****/
  /* MISION */
    .mission .content-wrapper h2,
    .contact-section .content-wrapper h2 {
      font-size: 2.8em;
      word-spacing: .2em;
    }
  
    .mission-content {
      justify-content: space-between;
    }
  
  /* MAP */
  .map-container {
    padding-bottom: 30%;
   }
  
   /* CONTACT */
   .contact-section .content-wrapper h2 {
    font-size: 3em;
    margin: 0px;
    width: 100%;
   }
  
   .contact-content h3 {
    font-size: 1.875em;
   }
  
  /***** FAQ *****/
    .faq h2 {
      font-size: 3em;
      width: 100%;
    }
  
    .faq p {
      font-size: 1.125em;
      word-spacing: .2em;
    }
  }
  
  @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;
    }
  }
  
  

