/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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;
    font-family:   Arial,Helvetica;
    font-weight: 400;
}

body { padding: 0; margin: 0; -webkit-font-smoothing: antialiased !important; }

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * 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
   ========================================================================== */



header { position: fixed; top:-300px;  }
header h1 { font-size: 14px; }

.section { width: 100%; position: relative; margin: 0; padding: 0; display: block; }
.grey { background-color: #f1f1f1; padding: 70px 0; box-shadow: -1px -1px 3px #888; }
.white { background-color: #ffffff; }
.green { background-color: #68a23a;  padding: 70px 0; }

.footer { background-color: #333;  padding: 50px 0; color: white !important ; background-image: url('../img/back-shape.png'); background-repeat: no-repeat; background-position: right bottom}

.section .content { width: 90%; max-width: 1200px; margin: 0 auto; }
.section .content .logoHolder { float: left; text-align: left; width: 40%; padding: 25px 0 25px }
.section .content .contactHolder { float: right; text-align: right; width: 40%;padding: 25px 0 25px }
.section .content .contactHolder .icon { width: 30px; margin: 0 1px; }
.header { background-image: url('../img/back-shape.png'); background-repeat: no-repeat; background-position: right bottom }
.section .content .contactHolder p.phone 

   { 
    margin: 16px 0 0 0;
    padding: 0;
    font-size: 25px;
    background-image: url('../img/phone-icon.png');
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: 10px 7px;
    width: 208px;
    float: right;
    font-weight: 700;
   }


.navigation { background-color: #68a23a; border-bottom: 5px solid #477127; text-align: center; }
.navigation a { display: inline-block; padding: 15px 30px; color: white; font-size: 15px; text-decoration: none; transition:all .3s; -webkit-transition:all .3s;     font-family:  Lato, Helvetica, Arial; }
.navigation a:hover { background-color: #477127 }
.navigation a.active { background-color: #477127 }
.scrollable { position: relative; background-image: url('../img/back-green.jpg'); background-repeat: no-repeat; background-size: cover;  }
.scrollable h1 { font-weight: 100; color: white; font-size: 40px; width: 70%; margin: 0 auto; padding: 200px 0 200px 0; font-family: Play, Lato, Helvetica, Arial; text-align: center; text-shadow:1px 1px 10px #000; }
.section h2 { width: 100%; text-align: center; padding: 0px 0 50px 0; color: #555; font-size: 25px; font-family: Play, Lato, Helvetica, Arial; font-weight: normal; margin: 0 auto; }
.green h2 { color: white; }
.scrollable1 { background-image: url('../img/header-back.jpg'); background-repeat: no-repeat; background-size: cover; }
.scrollable1 p.quote { color: white; font-size: 25px; width: 70%; margin: 0 auto; padding: 70px 0 20px 0; font-family: Play, Lato, Helvetica, Arial; text-align: center; text-shadow:1px 1px 10px #000; }
.scrollable1 p.name { color: white; font-size: 18px; font-style: italic; width: 70%; margin: 0 auto; padding: 0px 0 70px 0; font-family: Play, Lato, Helvetica, Arial; text-align: center; text-shadow:1px 1px 10px #000; }

.logoHolder { text-align: left; }
.logoHolder p { font-family: Play, Lato, Helvetica; padding: 0; margin: 0; font-size: 12px; color:#999; text-align: center; width: 200px; }


.section .lineItem  { width: 23%; margin: 0 1%; display: inline-block; float: left; text-align: center;  }
.clients .lineItem  { width: 18%; margin: 0 1%; display: inline-block; float: left; text-align: center;  }
.section .projectItem  { width: 22%; margin: 0 5.5%; display: inline-block; float: left; text-align: center; color: white  }
.section .projectItem img { position: relative; width: 100%; margin-bottom: 20px; }
.section .lineItem img { width: 80%; opacity: 0.5 }
.section a.findOutMore { color: white; font-family: Play, Lato, Helvetica, Arial; background-color: #68a23a; text-decoration: none; padding: 7px 15px; font-size: 16px; transition:all .3s; -webkit-transition:all .3s; }
.section a.findOutMore:hover { background-color: #000; color: #ffffff }
.grid-50 {  width:50%; display: inline-block; float: left; }
.grid-50 .innerContent { width: 90%; padding: 50px 10% 50px 0; text-align: justify; }
.grid-50 .innerContentRight { width: 90%; padding: 60px 0% 20px 10% }
.grid-50 .imgHolder { display: block; width: 100%; height: 100%; position: relative; background-repeat: no-repeat; background-size: cover; background-position: center; }

.section h3 { width: 100%;  text-align: center;   color: #68a23a; font-size: 25px; font-family: Play, Lato, Helvetica, Arial; font-weight: normal; padding: 0; margin: 0 0 15px 0;  }

.green a.findOutMore { background-color: #ef7614; }
.green a.findOutMore:hover {  }
.clientsGrid { padding: 50px 0 50px 0; }
.clientsGrid .item { float: left; display: inline-block; width: 25%; margin: 0 3% 30px 3%; text-align: center; }
.clientsGrid .item img { width: 100%; }

.casesGrid .item { float: left; display: inline-block; width: 44%; margin: 0 3% 30px 3%; text-align: center;   }
.casesGrid .item .titleLine { font-family: Play, Lato, Helvetica, Arial; font-size: 22px; width: 100%; display: block; position: relative; clip: both;   padding: 15px 0 15px 0;  }
.casesGrid .item .thumbsLine { width: 100%; position: relative; clip: both; padding: 15px 0 15px 0; }

.casesGrid .item img.mainImg { position: relative; width: 100%; }
.casesGrid .item .thumbsLine img { width: 25%; margin: 0 10px; position: relative; }
a.enPolicyBtn { position: fixed; top:-15px; left: 40%; background-color: white; box-shadow: 0px 0px 3px #ccc; border-radius: 3px; padding: 25px 10px 10px 45px; text-align: left; color: #555; font-size: 12px; text-decoration: none; z-index: 99999999999; background-image: url('../img/leaf.png'); background-repeat: no-repeat; background-size: 40px; background-position: 5px 20px; transition: all .3s; -webkit-transition: all .3s;  }
a.enPolicyBtn:hover { top:-10px; color:#000; }
.accridetationsImg { float: right; width: 700px; }

footer { background-color: black; text-align: center; color: #666; padding: 10px 0; font-size: 12px; font-family: Play, Lato, Helvetica; }
footer a { color:#666; text-decoration:underline; }

.casesGrid .moreInfo { clear: both; width: 100%; position: relative;margin: 10px 0 20px 0; color: #222;
    font-size: 1em;
    line-height: 1.4;
    font-family: Lato, Helvetica, Arial;
    font-weight: 400; }

   .casesGrid .moreInfo .moreBtn { width: 120px; border-radius: 10px; text-align: center; padding: 5px 0; color: white; background-color: #666; margin: 0 auto; cursor: pointer; font-size: 12px; }

   .casesGrid .moreInfo .closeBtn { width: 60px; border-radius: 10px; display: none; text-align: center; padding: 5px 0; color: white; background-color: #666; margin: 0 auto; cursor: pointer; font-size: 12px; }

.casesGrid .moreInfo .copy { position: relative; transition: all .5; display: none;  -webkit-transition: all .5; padding: 10px 0 10px 0; width: 100%; text-align: left; }

@media screen and (max-width: 1025px) {

.scrollable p {   padding: 150px 0 150px 0;  } 
.scrollable {  background-position: center -100px;}
.accridetationsImg { float: right; width: 500px; }




}


@media screen and (max-width: 767px) {


    .logoHolder p { width:100%; text-align: center; }
    a.enPolicyBtn { left: 0;}
    .accridetationsImg { float: none; width: 100%; margin: 0px 0 20px 0 }

    .casesGrid .item { float: none; display: block; width: 100%; margin: 0 0 30px 0; }

    .clientsGrid .item  { float: none; width: 100%; margin: 0 0 30px 0; }

    .scrollable p {   padding: 100px 0 100px 0;  } 
    .scrollable {  background-position: center 0px;}
    .section .content .logoHolder {
    float: none;
    text-align: center;
    width: 100%;
    padding: 45px 0 15px;
    }

    .section .content .contactHolder {
    float: none;
    text-align: center;
    width: 100%;
    padding: 25px 0 15px;
     }

    .section .content .contactHolder p.phone {
    margin: 16px 0 0 0;
    padding: 0;
    font-size: 25px;
    background-image: url('../img/phone-icon.png');
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: 15% 7px;
    width: 100%;
    float: none;
    font-weight: 700;
     }

     .navigation a { display: block; text-align: left; }

     .section .lineItem { float: none; width: 100%; margin: 20px auto; }

     .section .lineItem img { width: 100%; }

     .grid-50 { float: none; width: 100%; }

     .section .projectItem { float: none; width: 100%; margin: 0;     padding-bottom: 30px; }

     .grid-50 .innerContentRight { width: 90%; padding: 60px 0% 20px 0px }

}



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

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

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

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    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 only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@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:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

    img {
        max-width: 100% !important;
    }

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

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


.overlay-head { display: none; position: absolute; width: 100%; height: 100%; background-image: url('../img/cleaning.png'); background-repeat: no-repeat; background-size: cover; top: 0; left: 0; }

 .overlay-head h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

 .overlay-head h1 a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
 }

