/* ============================================================================================== 
This copyright notice must be kept untouched in the stylesheet at all times.
The original version of this stylesheet and the associated (x)html 
is available at http://www.script-tutorials.com/bootstrap-one-page-template-with-parallax-effect/
Copyright (c) Script Tutorials. All rights reserved.
This stylesheet and the associated (x)html may be modified in any way to fit your requirements.
================================================================================================= */

/* general styles */

html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
    width: 100%;
}

/* end off canvas css */
body {
    padding-top: 0px;
    font-size: 1.25rem;
    font-weight: 300;
    font-family: 'Sora', sans-serif;
    color: #10390e;

}

.h4,
h4 {

    font-weight: 600;
}

strong {
    font-weight: 700;
}

.fixed-top {
    background-color: rgba(16, 54, 4, .7);
    background-size: cover;
    /* Resize the background image to cover the entire container */

}

.fixed-top p {
    margin-bottom: 0;
}

.lead {
    font-size: 1rem;
    font-weight: normal;
}

.bg-dark {
    background-color: rgba(16, 54, 4, .8) !important;
    box-shadow: 1px 1px 3px rgb(0 0 0 / 30%);
    font-family: 'Sora', sans-serif !important;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    color: rgba(255, 255, 255, .75);
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.nav-underline .nav-link {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: .875rem;
    color: #6c757d;
}

.nav-underline .nav-link:hover {
    color: #007bff;
}

.nav-underline .active {
    font-weight: 500;
    color: #343a40;
}

.text-white-50 {
    color: rgba(255, 255, 255, .5);
}


/* end off canvas css */

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 1);
    text-align: center;

}

.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .show>.nav-link {
    color: rgba(255, 255, 255, .75);
}

a.navbar-brand {
    font-family: 'DM Serif Display', serif !important;
    font-size: 4vw;
    color: #fff;
    margin-right: 0;
    text-shadow: 0px 1px 3px rgb(0 0 0 / 80%);

}


/* Set the border color */
.custom-toggler.navbar-toggler {}

/* Setting the stroke to green using rgb values (0, 128, 0) */

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
    z-index: 9;
    background-color: #306d9f;
    border-radius: 4px;
}

.sticky a.navbar-brand {
    font-size: 2vw;
    transition-duration: .2s;
}

.sticky .navbar-expand-xl .navbar-nav .nav-link {}

.navbar-dark .navbar-toggler {
    color: transparent;
    border-color: none;
}



.phonelink a {
    font-size: 24px;
    text-decoration: none;
}

.phone {
    font-size: 1.5em;
    color: #fff;
    text-decoration: none;
    padding-top: .3125rem;
    padding-bottom: .3125rem;
}


.phone:hover {
    color: #fff;
}

.sticky .phone {
    font-size: 1em;
}

/* padded section */
.pad-section {
    padding: 50px 0;
}

.pad-section img {
    width: 100%;
}

/* vertical-centered text */
.text-vcenter {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

.text-vcenter h1 {
    font-size: 4.5em;
    margin: 0;
    padding: 0;
    color: #fff;
    text-shadow: 1px 1px 4px rgb(0, 0, 0);
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
}

.panel-title {
    font-size: 3em;
    margin: 0;
    padding: 0;
    color: #fff;
    text-shadow: 1px 1px 4px rgb(0, 0, 0);
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    text-align: center;
}

.panel-title-ns {
    font-size: 3em;
    margin: 0;
    padding: 0;
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    text-align: center;
}

.grad {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .9));
    border: solid .5em #005e30;
    border-radius: 8px;
}


/* form */
form {
    font-size: 1rem;
}

form textarea,
form input {
    width: 100%;
}


textarea,
.input-xlarge {
    padding: 12px;
}

/* carousel */
.text-CSS {
    font-size: 55px;
    color: #003861 !important;
    padding-top: 240px;
    padding-left: 110px;
}

.carousel-caption h5 {
    font-size: 5vw;
    font-weight: 700;
    text-shadow: 0px 1px 3px rgb(0 0 0 / 80%);
}

.carousel-inner p {
    text-shadow: 0px 1px 3px rgb(0 0 0 / 80%);
    font-size: 1.5em;
}

.carousel {
    top: 0;
    position: fixed;
    width: 100%;
}

.carousel-caption {
    z-index: 10;
    color: #fff;
    text-align: center;
    top: 40%;
    bottom: auto;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
}

.carousel-item a {
    color: #fff;
}

.carousel-indicators {
    bottom: 20%;
}

/* masonry grids */

.background {
    align-items: center;
    display: flex;
    flex-direction: column;

    justify-content: center;

}

.nix {

    box-sizing: border-box;
    display: flex;
    flex-flow: column wrap;
    height: 80vh;
    margin-bottom: 5vh;
    text-align: center;
    text-transform: uppercase;
    width: 90vw;
}

.grids {
    align-items: center;
    background: white;
    background-size: cover;
    background-repeat: no-repeat;
    box-sizing: border-box;
    color: white;
    display: flex;
    flex-grow: 0;
    font-family: sans-serif;
    font-size: 30px;
    font-weight: bold;
    height: 50%;
    justify-content: center;
    outline: 5px solid white;
    text-shadow: 0 0 5px black;
    cursor: pointer;
}

.grids:nth-child(6n - 5) {
    height: 25%;
}

.grids:nth-child(6n-4) {
    height: 75%;
}

.grids:nth-child(6n-3) {
    height: 50%;
}

.grids:nth-child(6n-2) {
    height: 50%;
}

.grids:nth-child(6n-1) {
    height: 66.666%;
}

.grids:nth-child(6n) {
    height: 33.333%;
}


/* gallery styles */
.gallery {
    width: 80%;
    height: 90vh;
    max-width: 1600px;
    max-height: 800px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.gallery-image {
    width: 30%;
    height: calc(50% - 20px);
    min-width: 300px;
    min-height: 200px;
    margin: 10px;
    overflow: hidden;
    cursor: pointer;
    background-repeat: no-repeat;
}

.image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .1s;
}

/* popup */

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 80%;
    max-width: 1600px;
    height: 90vh;
    max-height: 800px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    transition: .5s;
    opacity: 0;
}

.popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.popup.active .close-btn,
.popup.active .image-name,
.popup.active .index,
.popup.active .large-image,
.popup.active .arrow-btn {
    opacity: 1;
    transition: opacity .5s;
    transition-delay: .5s;
}

.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #000;
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-weight: 300;
}

.image-name {
    opacity: 0;
    display: none;
}

.close-btn {
    opacity: 0;
    position: absolute;
    top: 15px;
    right: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f00;
    cursor: pointer;
}

.close-btn:hover {
    background: #00ff33;
}

.arrow-btn {
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
}

.left-arrow,
.right-arrow {
    position: absolute;
    top: 50%;
    bottom: 0;
    z-index: 1;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    text-align: center;
    border: 0;
    opacity: .5;
    transition: opacity .15s ease;
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
}

.right-arrow:focus,
.right-arrow:hover,
.left-arrow:focus,
.left-arrow:hover {
    color: #fff;
    text-decoration: none;
    outline: 0;
    opacity: .9;
}

.right-arrow {
    right: 0;
}

.left-arrow {
    left: 0;
}

.arrow-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.index {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 80px;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.4);
    opacity: 0;
    display: none;
}

.large-image {
    margin-top: 5%;
    width: 80%;
    height: 80%;
    object-fit: contain;
    opacity: 0;
}

.review {
    width: 100%;
    /* margin: 0 12px; */
    color: black;
    text-align: center;
    background: rgba(255,255,255,.6);
    padding: 12px;
    font-size: 14px;
}

/* end gallery */


/* additional sections */

.serving {
    max-width: 100%;
    padding-top: 1em;
}

#install {
    background-color: #306d9f;
    color: #ffffff;
    background-image: linear-gradient(180deg, #106cb4 0%, #ffffff 80%);
    color: #114638;
    border-top: 4px solid white;
    border-bottom: 4px solid white;
    padding-top: 10%;

}

.common {
    font-size: 5vw;
    font-weight: 700;
    text-shadow: 0px 1px 3px rgb(0 0 0 / 80%);
}

#home {
    /*background: url(images/sprinkler.jpg) no-repeat center center fixed; */
    display: table;
    height: 100%;
    position: fixed;
    width: 100%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    z-index: -1;
}

#about {
    background: linear-gradient(180deg, #106cb4 0%, #ffffff 80%);
}

.glyphicon svg {
    color: gray !important;
}

#services {
    background-color: #306d9f;
    color: #ffffff;
    background-image: linear-gradient(180deg, #106cb4 0%, #ffffff 80%);
    color: #000;
    border-top: 4px solid white;
    border-bottom: 4px solid white;
    margin-top: 67%;
}

#services .glyphicon {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    margin-bottom: 10px;
}

#services img:hover {
    opacity: 0.6;
    transition-duration: 1s;
    cursor: pointer;
}

#information {
    background: url(images/water-bg.jpg) no-repeat center center fixed;
    display: table;
    height: 800px;
    position: relative;
    width: 100%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#information .panel {
    opacity: 0.85;
}

#license {
    color: #fff;
    background: #3281be;
}


.featurette-heading {
    color: #114638;
}

.featurette .text-muted {
    color: #beea61 !important;
}

.google,
.facebook {
    font-size: 2.5em;
    color: #fff;
    text-decoration: none;
    padding: .3125rem;
}


.google:hover,
.facebook:hover {
    opacity: .5;
}

footer {
    padding: 20px 0;
    background: #072b11;
    font-size: 18px;
    color: #fff;
}

footer p {
    padding: 27px 0 0 0;
}


/* ********************************************* @media ******************************** */


@media (min-width: 1200px) {
    .navbar-expand-xl .navbar-nav .nav-link {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

@media (max-width: 1200px) {

    .offcanvas-collapse {
        position: fixed;
        top: 56px;
        /* Height of navbar */
        bottom: 0;
        left: 100%;
        width: 100%;
        padding-right: 1rem;
        padding-left: 1rem;
        overflow-y: auto;
        visibility: hidden;
        background-color: #343a40;
        transition: transform .3s ease-in-out, visibility .3s ease-in-out;
    }

    .offcanvas-collapse.open {
        visibility: visible;
        transform: translateX(-100%);
    }


    .navbar>.container,
    .navbar>.container-fluid,
    .navbar>.container-lg,
    .navbar>.container-md,
    .navbar>.container-sm,
    .navbar>.container-xl,
    .navbar>.container-xxl {
        display: flex;
        flex-wrap: inherit;
        align-items: center;
        justify-content: center;
    }

    .navbar-toggler-icon {
        display: inline-block;
        width: 1.5em;
        height: 1.5em;
        vertical-align: middle;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100%;
        top: .9em;
        position: fixed;
        right: .6em;
    }


}

@media (max-width: 996px) {

    .text-vcenter h1 {
        font-size: 3em;
    }

    .serving {
        max-width: 70%;
    }

    .phone {
        font-size: 2vw;
    }


}

@media (max-width: 769px) {
    .navbar-toggler-icon {
        top: 2.5em;
        right: .3em;
    }

    .offcanvas-collapse {
        padding-top: 1em;
    }
}


@media (max-width: 579px) {
    .offcanvas-collapse {
        top: 94px;
    }

    .phone {
        width: 100%;
        text-align: center;
    }


}

@media (max-width: 488px) {


    .nix {
        height: 25vh;
        margin-bottom: 0;
    }

    .popup {
        height: 44vh;
    }

    .grids {
        background-size: contain;
    }

    .grids:nth-child(6n - 5) {
        height: 50%;
    }

    .grids:nth-child(6n-4) {
        height: 50%;
    }

    .grids:nth-child(6n-3) {
        height: 50%;
    }

    .grids:nth-child(6n-2) {
        height: 50%;
    }

    .grids:nth-child(6n-1) {
        height: 50%;
    }

    .grids:nth-child(6n) {
        height: 50%;
    }

    #install {
        background-image: linear-gradient(180deg, #106cb4 0%, #ffffff 40%);
    }

    .offcanvas-collapse {
        top: 4em;
    }

    .bg-dark {
        background-color: rgba(16, 54, 4, 0) !important;
    }

    a.navbar-brand {
        font-family: 'DM Serif Display', serif !important;
        font-size: 7vw;
        color: #fff;
        margin-right: 0;
        text-shadow: 0px 1px 3px rgb(0 0 0 / 80%);
    }

    .phone {
        width: 100%;
        text-align: center;
    }

    .navbar-toggler-icon {
        top: 2.5em;
        right: .3em;
    }

    .sticky a.navbar-brand {
        font-size: 6vw;
        transition-duration: .2s;
    }

    .sticky .phone,
    .phone {
        font-size: 3vw;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .carousel-caption h5 {
        font-size: 8vw;
        font-weight: 700;
        text-shadow: 0px 1px 3px rgb(0 0 0 / 80%);
        padding-top: 3em;
    }

    .carousel-caption h5.serve {
        padding-top: 3em;
    }

    .carousel-indicators {
        bottom: 0;
    }

    footer p {
        font-size: .5em;
        margin-bottom: 0;
        text-align: left;
    }

    #license p.text-center {
        text-align: left !important;
        padding-left: 1em;
    }

}