/*
    Safezip Theme is based on the Responsee CSS Framework's "Prospera" template.
    This stylesheet essentially just overrides styles from the template/
*/


/* Containers */
.section {
    padding: 3vw 1.25rem;
}
    body.has-hero-image article header.section {
        padding: 2vw 1.25rem 0 1.25rem ;
    }

.background-secondary { /* on home page */
    background-color: #F5F5F5;
    padding: 25px 0;
    margin-bottom: 40px;
}

/* Sloping backgrounds */
.wedge {
    min-height: 7vw;
    position: relative;
    z-index: 1;
}
    .wedge:after {
        background: inherit;
        position: absolute;
        left: 0;
        right: 0;
        z-index: -1;
        content: '';
        display: block;
        height: 100%;
        transform: skewY(1.5deg);
    }
    .wedge-bottom:after { /* Article Head */
        bottom: 0;
        transform-origin: 0%;
    }
    .wedge-top:after { /* Testimonials Section */
        top: 0;
        transform-origin: 100%;
    }
#hero-image {
    /*background-image: url(''); injected via hook in functions.php */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 60vh;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
    #hero-image:before {
        /*background: rgba(73, 191, 76, 0.8);*/
        background: #49BF4C;
        position: absolute;
        left: 0;
        right: 0;
        z-index: -1;
        content: '';
        display: block;
        height: 11%;
        transform: skewY(1.5deg);
        top: 0px;
        transform-origin: 100%;
    }
    #hero-image:after {
        background: white;
        position: absolute;
        left: 0;
        right: 0;
        z-index: -1;
        content: '';
        display: block;
        height: 11%;
        transform: skewY(1.5deg);
        bottom: 0;
        transform-origin: 0%;
    }


/* Typography */
.article-content, .articles-list {
    padding: 2.5rem 0;
}
    body.has-hero-image .article-content,
    body.has-hero-image .articles-list {
        padding-top: 0; /* Bring content up a bit */
    }

main article h1, main article h2, main article h3, main article h4, main article h5, main article h6 {
    color: #003C50;
}
.home-headline {
    font-size: 2.4rem;
    letter-spacing: -1.0px;
    font-weight: 300;
    margin-bottom: 2.2rem;
}
main article h2:not(:first-child) { margin-top: 1.7rem; }
main article p {
    margin: 1rem 0;
    font-size: 1rem;
    line-height: 1.6rem;
}
main article blockquote {
    margin: 2rem 0;
    border-left: 4px solid #49BF4C;
    padding-left: 75px;
    font-family: Georgia, Times, "Times New Roman", serif;

}
    main article blockquote:before {
        left: -55px; /* quote mark */
    }


.tall-footer p {
    margin: 1rem 0;
}
.footer-divider { border-top: 1px dotted rgba(255, 255, 255, 0.35); margin: 1rem 0; }
@media screen and (min-width:769px) { .footer-divider { display: none; } }

/* Carousel Styles */
.highlight-dark {
    background-color: rgba(0, 38, 51, 0.7);
    display: inline-block;
    padding: 6px 12px;
}
.highlight-light {
    background-color: rgba(255, 255, 255, 0.7);
    display: inline-block;
    padding: 6px 12px;
    max-width: 600px;
}
.shadow-light-text { text-shadow: 1px 1px 1px rgba(0, 38, 51, 0.7); }
.shadow-dark-text { text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5); }
#slider-services-list {
    margin: 20px 0;
    list-style-type: none;
    color: white;
    background-color: rgba(0, 38, 51, 0.3);
    padding: 15px 20px;
}
    #slider-services-list li {
        padding-bottom: 8px;
    }
        #slider-services-list li i {
            color: #49BF4C;
            display: inline-block;
            margin-right: 12px;
        }



/* Lists - general */
main article ul {
    margin: 1rem 30px;
    list-style-type: none;
}
    main article li {
        font-size: 1rem;
        position: relative; /* for abs pos of bullets in content:*/
    }
    main article ul li:before {
        content: '\0025cf'; /* bullet. See http://www.amp-what.com */
        color: #49BF4C;
        position: absolute;
        left: -20px;
    }
main article ol {
    margin: 1rem 30px;
}
main article ol li {
    padding-left: 5px;
}


.no-top-margin {
    margin-top: 0 !important;
}


/* Links */
.background-dark a, .background-dark a:link, .background-dark a:visited {
    color: #BDCDD3;
}
.background-dark a:hover {
    color: #F7F9F9;
}
article .background-white a, article .background-white a:link, article .background-white a:visited,
.link-color {
    color: #267D9A;
}
    article .background-white a:hover,
    .link-color:hover {
        color: #2E99BC;
        /*text-decoration: underline;*/
    }
.edit-item-link { font-size: 0.9rem; }
.site-phone-number { font-size: 1rem; }
/* For testimonials */
a.pill-button-link {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 10rem;
    display: inline-block;
    padding: 0 10px;
}
    a.pill-button-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: #fff;
        color: #fff;
    }

 /* Inline on same line as text */
a.link-more-info {
    display: inline-block;
    margin-left: 10px;
}
    a.link-more-info:after {
        content: "\f006";
        font-family: mfg;
        font-size: 0.8rem;
        margin-left: 0.625rem;
        transition: all 0.20s linear 0s;
        -o-transition: all 0.20s linear 0s;
        -ms-transition: all 0.20s linear 0s;
        -moz-transition: all 0.20s linear 0s;
        -webkit-transition: all 0.20s linear 0s;
    }
    a.link-more-info:hover:after {
        margin-left: 0.825rem;
    }


/* Categories navigation on archive. Could be <span> or <a> */
.category-nav-link {
    display: inline-block;
    margin: 0 8px;
    padding: 7px 14px;
    font-size: .95rem;
}
    span.category-nav-link {
        color: #333; /* Active */
    }
    a.category-nav-link {
        background: #49BF4C;
        color: white !important;
        border: 1px solid #49BF4C;
        border-radius: 1px;
    }
        a.category-nav-link:hover {
            background: rgba(73, 191, 76, 0.9);
        }


/* Site telephone number */
.top-bar-contact a[href^="tel:"] {
    color: #002633;
}
    .top-bar-contact a[href^="tel:"]:before {
        content: "\260e"; /* phone icon */
        color: #49BF4C;
        margin-right: 0.5em;
    }
a#phone-link-device {
    background: #1C3849;
    height: 60px;
    width: 60px;
    position: absolute;
    top: 0;
    right: 0;
    text-align: center;
    overflow: hidden;
}
#phone-link-device i {
    font-size: 2rem;
    line-height: 60px;
    color: white;
}


    /* Site logo and home link */
a#logo-wide { display: none; }
a#logo-narrow {
    position: absolute;
    top: 4px;
    transform: translateX(50%);
}
    #logo-narrow img {
        width: auto;
        height: 51px;
    }
@media screen and (min-width:768px) {

    a#logo-narrow, a#phone-link-device { display: none; }
    a#logo-wide {
        display: block;
        width: 280px;
        height: auto;
    }
        a#logo-wide img {
            border:0;
            display:block;
            width:100%;
            max-width:280px;
            height:auto;
        }
}

/* Archive Pages */
article.listing {
    box-sizing: border-box;
    /*border: 4px solid #ccc;*/
    margin: 12px;
    display: inline-block;
    width: 100%;
    max-width: 440px;
    height: 180px;
    float: left;
    overflow: hidden;
    /* Image provided in template */
    background-repeat: no-repeat;
    background-size: cover;
    position: relative; /* for overlay */
}
article.listing h3 {
    text-align: right;
    color: white;
    padding: 15px 10px 10px 10px;
}
article.listing .heading {
    position: relative;
    top: -10px;
    z-index: 1;
}
    article.listing .heading:before {
        background: rgba(0, 38, 51, 0.7);
        position: absolute;
        left: 0;
        right: 0;
        z-index: -1;
        content: '';
        display: block;
        height: 100%;
        transform: skewY(1.5deg);
    }

.overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    background-color: rgba(0, 140, 186, 0.6);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: .5s ease;
}
article.listing:hover .overlay {
    bottom: 0;
    height: 100%;
}

.display-table { display: table; width: 100%; }
.table-cell { display: table-cell; }
#gumnut { display: table; margin: auto; }
#gumnut .table-cell { vertical-align: middle; padding: 0 6px; line-height: 100%; }
@media screen and (min-width:769px) { #gumnut { margin: 0; float: right; } }

.excerpt {
    margin-top: 60px;
    color: white;
}
.excerpt .table-cell { vertical-align: top; }
.excerpt .table-cell:first-child { width: 30%; text-align: center; font-size: 40px; padding-top: 15px; /* arrow */ }
.excerpt .table-cell:last-child { padding: 5px 10px 5px 0; /* text */ }


/* Single post pages */
a.prev-link {}
    a.prev-link:before {
        content:"\f007"; /* icon-chevron_left */
        font-family: "mfg";
        padding-right: 12px;
    }
a.next-link {}
    a.next-link:after {
        content:"\f006"; /* icon-chevron_right */
        font-family: "mfg";
        padding-left: 12px;
    }

/* Forms */
.customform label[for] { display: inline-block; color: #1C3849; padding-top: 10px; }

.row-hp { position: relative; left: -300rem; display: none; } /* Conceal honeypot field */


/* AJAX Responses */
.ajax-error { color: #cc0000; }
.ajax-success { color: #00a300; }


/* Size alignments are mobile first. Queries match grid.css */
/*@media screen and (max-width:480px) {
  .size-960,.size-1140,.size-1280,.size-1520*/
.s-align-left { text-align: left; }
.s-align-center { text-align: center; }
.s-align-right { text-align: right; }
/* Medium m- Tablet*/
@media screen and (min-width:481px) {
    .m-align-left { text-align: left; }
    .m-align-center { text-align: center; }
    .m-align-right { text-align: right; }
}
/* Large l- Laptop*/
@media screen and (min-width:769px) {
    .l-align-left { text-align: left; }
    .l-align-center { text-align: center; }
    .l-align-right { text-align: right; }
}
/* Extra Large xl- Desktop */
@media screen and (min-width:1141px) {
    .xl-align-left { text-align: left; }
    .xl-align-center { text-align: center; }
    .xl-align-right { text-align: right; }
}
/* Super Large xxl- Television */
@media screen and (min-width:1367px) {
    .xxl-align-left { text-align: left; }
    .xxl-align-center { text-align: center; }
    .xxl-align-right { text-align: right; }
}


/* Responsive Images */
.responsive-images img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Editor styles */
figure.align-center.img-border img, /* See note below */
img.img-border {
    border: 1px solid #c0c0c0;
    padding: 8px;
}

figure.img-responsive img,
img.img-responsive { /* Companion is 'img-inline' */
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}
img.img-responsive { margin: 1rem 0; }

figure img.img-responsive { margin: 0;}

/* Image Alignment */
figure.align-left,
img.align-left {
    float: left;
    margin: 1rem 1rem 1rem 0;
}
figure.align-right,
img.align-right {
    float: right;
    margin: 1rem 0 1rem 1rem;
}
figure.align-center,
img.align-center {
    display: block;
    margin: 1rem auto;
}
@media screen and (min-width:769px) {
    /* Side indent full width images a little on
    wider screens */
    figure.img-responsive {
        margin: 1.6rem 50px;
    }
}


/* Captions */
figure {
    padding: 8px 8px 4px 8px;
}
figure:not(.align-center).img-inline {
    display: inline-block;
}
figure.img-border {
    border: 1px solid #c0c0c0;
}
/* Centered figure with a border requires shrink-to-fit
    which is not possible without adding more styles above
    the figure. A border will show as full width so just
    remove it in this case as looks weird for small images.
    Reapply a border just around the image itself - at top. */
figure.align-center {
    text-align: center; /* centers the img */
}
figure.align-center.img-border { border: none; }


figcaption {
    font: italic smaller sans-serif;
    padding: 6px 0 2px 0;
    text-align: center;
}

/* Home Page Slider and Client Banners */
#home-page-carousel .slide {
    height: 397px;
    overflow: hidden;
}
@media screen and (max-width:768px) {  #home-page-carousel .slide { height: 330px; } }
@media screen and (max-width:480px) {  #home-page-carousel .slide { height: 300px; } }
#home-page-carousel .slide img {
    display: block;
    width: auto;
    height: 100%;
}
#client-banners {}
#client-banners, #client-banners-button { max-width: 340px; margin: auto; }
#client-banners-button { cursor: pointer; transition: all ease 0.3s; padding: 4px 0;  }
#client-banners-button:hover { cursor: pointer; background-color: rgba(255, 255, 255, 0.05); }
#client-banners-button i {
    display: block;
    text-align: center;
}
#client-banners p:nth-child(n+3) { display: none; } /* Hide all but the first two */

/* Our Clients page - Banners [show_client_banners] */
#large-banners { border: 1px dotted grey; text-align: center; }
.large-banner { margin: 20px 10px; float: left; width: 100%; max-width: 440px; }
.large-banner img { width: 100%; border: 7px solid #efefef; }
.large-banner .caption {  text-align: center; padding-top: 8px; }


/* photo-frame lightbox */
.photo-frame-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 90px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}
.photo-frame-close {
    position: absolute;
    top: 0;
    right: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}
    .photo-frame-close:hover,
    .photo-frame-close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

.photo-frame-image {
    padding: 0 10px 30px 10px;
}
    .photo-frame-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border: 4px solid #6E7276;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    }
    @media screen and (min-width:769px) {
        /* Increase side padding for image */
        .photo-frame-image {
            padding: 0 50px 50px 50px;
        }
        .photo-frame-close {
            top: 15px;
            right: 47px;
        }
    }

/* Login Form [login_form] */
.authform * { box-sizing: border-box;  }
.authform { border: 3px solid white; padding: 0 20px; margin: 2em 0; }
.authform > div { max-width: 250px; margin: auto; }
.authform input { width: 100%; padding: 8px; font-size: 16px; }
.authform-row { margin: 1em 0; }
.authform-row > div { margin: 4px 0; }
.authform-row.actions-row { margin: 1.5em 0; }
.link-open-form { font-size: 14px; }
.authform-actions > span:last-child { float: right; margin-top: 0.3em; }

