﻿html {
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
}

nav {
    font-family: "Roboto", sans-serif;
}
h2 {
    margin-top: 0;
}
h1, h3, h4 {
    margin: 0;
}

.hide {
    display:none;
}

main,header {
    font-family: "PT Sans", Helvetica,Arial,Verdana,sans-serif;
}

main a {
    color: #007e00;
}

main #splash a{
    color:inherit;
}

    main>div:nth-child(1){
        font-size: 1em;
    }

main p, main li {
    line-height: 1.7em;
}

.current a {
    color: #74b900;
}



#tagline {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    font-style: italic;
    font-weight: bold;
    margin-top: 8%;
    padding-left: 3%;
    width: 50%;
}

header .phone a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-family: 'Open Sans';
}

nav a, .noUnderline {
    text-decoration: none;
    color: #fff;
}

main hr {
    width: 100%;
    background-color: #007e00;
    height: 1px;
}

.hide {
    display: none !important;
}

nav ul, footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.pageTitleWrapper {
    background: #f7f7f7;
}

    .pageTitleWrapper .content {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content:space-around;
    }

    .pageTitleWrapper h1 {
        font-family: 'Roboto', sans-serif;
        line-height: 1.4em;
    }

.twoColumn {
    display: flex;
    flex-wrap:wrap;
    justify-content:space-between;
}

#splash img {
    max-width: 100%;
}

#map-container {
    padding: 56.25% 0 0 0;
    height: 0;
    position: relative;
    margin-bottom: 5%;
}

#map-canvas {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
}

.icon {
    color: #007e00;
    font-size: 1.3em;
    display:none;
}

#blogSummary {

}

.grid-sizer,
.grid-item {
    width: 100%;
}

#blogSummary img, #blogDetail img {
    max-width: 100%;
    margin-bottom: 2%;
}

    #blogSummary > div {
        margin-bottom: 3%;
        background: #f7f7f7;
    }

    #blogSummary div.tags {
       margin:2% 0;
       font-size: .8em;
    }

        #blogSummary div.tags span {
            margin-right:3%;
        }

        #blogSummary div.tags a {
            color: #75767d;
        }

        #blogSummary .blurb {
            line-height: 1.5em;
        }

#blogDetail {
    margin-bottom: 5%;
}

#blogDetail ul {
    padding-left:0;
    list-style:inside;
}

.breadcrumbs {
    color: #75767d;
}

    .grid-item .tags a,
    .breadcrumbs a, #startingPoints a {
        color: #75767d;
        text-decoration: none;
    }


.sidebar a {
    color: #75767d;
    text-decoration: none;
}

.locationsSidebar>div {
    margin-bottom: 5%;
}

.locationsSidebar .cityNav a {
    color: #75767d;
    text-decoration: none;
    font-weight: bold;
}

.locationsSidebar .cityPhone a, .news a {
    text-decoration: none;
}

.news img {
    width: 100%;
    max-width: 100%;
}

.grid-item h3 > a {
    text-decoration: none;
    color: #333;
}

.grid-item .blurbWrapper {
    padding: 0 3% 2% 3%;
}

.sidebar>div {
    margin: 5% 2%;
    line-height: 1em;
}

.sidebar .title {
    margin-top: 0;
}


.breadcrumbs a:hover,
    .sidebar a:hover {
        color: #007e00;
        text-decoration:underline;
    }

footer {
    background: #1a1c20;
    color: #fff;
    font-family: 'Open Sans';
}

footer>div {
    display:flex;
    flex-wrap:wrap;
    line-height: 1.5em;
}

footer a {
    color:inherit;
}

.socialIcons img {
    width: 35px;
}

.cardContainer {
    display: flex;
    flex-wrap: wrap;
}

.card {
    border: 5px double #333;
    padding: 2%;
    margin: 2%;
    text-align: center;
    font-weight: bold;
    color: #212f3d;
    width: 100%;
}

.card a {
    text-decoration:none;
    font-style:normal;
}

.card>div:first-child {
    font-size:1.4em;
}

.card .phone {
    margin-top: 3%;
    margin-bottom:3%;
}

#singleLocation .locationDetailContainer,
#singleLocation .contactInfo {
    display: flex;
    flex-wrap: wrap;
}

#singleLocation img {
    max-width:100%;
}

#locationContactFrm {
    margin: 5% 0;
}

#locationContactFrm button:disabled {
    background: #666;
}

#locationContactFrm > div {
    margin-top: 5%;
    width: 98%;
}

#locationContactFrm>div>* {
    width: 100%;
}


#locationContactFrm label:after {
    content: " *"
}

    #locationContactFrm input, #locationContactFrm textarea {
        padding: 1%;
        margin-top: 1%;
        color: #8b8d94;
        border-radius: 4px;
        border-color: rgba(51, 51, 51, 0.12);
    }

        #locationContactFrm textarea {
            resize: none;
        }

        #locationContactFrm button {
            padding: 1%;
            color: #fff;
            font-size: 1.3em;
            background: #007e00;
            border: none;
            border-radius: 4px;
            width: 50%;
        }

#splash {
    position:relative;
}

    #splash > div {
        color: #fff;
        background: rgba(49, 49, 49, 0.5);
        position: absolute;
        padding: 2%;
    }



#home h2 {
    text-align:center;
    font-weight: normal;
}

#locationContactFrm .statusMessage p {
    line-height: 1.2em;
    margin: 0;
}

#locationContactFrm .statusMessage.success {
    color: #148400;
    margin-bottom: 5%;
    padding: 3%;
    background: #d4edda;
    width: 95%;
}

#locationContactFrm .statusMessage.fail {
    color: #840000;
    margin-bottom: 5%;
    padding: 3%;
    background: #f8d7da;
    width: 95%;
}

#startingPoints_wrapper {
    margin-top:2%;
}

#startingPoints {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}


footer .title {
    font-weight: bold;
}


#alert {
    width: 90%;
    margin: 2% auto;
    text-align: center;
    color: #e23838;
}

    #alert a {
        color: #e23838;
        text-decoration: underline;
    }

@media(max-width: 1199px) {
    .desktop, .breadcrumbs {
        display: none;
    }

    #mastheadContainer {
        position: fixed;
        width: 100%;
        background: #fff;
        z-index: 1;
        top: 0;
        padding: 1% 0;
        filter: drop-shadow(0 5px 5px #000);
    }

   header .phone>div{
       text-decoration:underline;
       font-weight: bold;
   }

    header .phone a {
        font-size: 1.4em;
    }

    #mobileNavContainer {
        background: #fff;
        position: fixed;
        top: 0;
        width: 85vw;
        height: 100vh;
        z-index: 1;
        overflow-y: scroll;
    }

        #masthead>div:nth-child(1){
            width:80%;
        }

        #masthead .logoWrapper {
            width: 60%;
           margin: 0 auto;
        }



    #headerWrapper_mobile {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    #hamburger {
        width: 30px;
    }

    #hamburger hr {
        width: 60%;
        background: #000;
        margin: 10% auto;
        height: 2px;
    }

    #hamburger_cancel {
        margin-left: 2%;
        margin-bottom: 2%;
        font-size: 1.5em;
        display: inline;
        font-weight: 700;
    }

    #mobileLogoWrapper>div {
        margin-right:13%;
    }

    #mobileLogoWrapper .logoWrapper {
        display:flex;
        justify-content:center;
    }

    #headerWrapper_mobile .phone {
        font-size: 1.5em;
        text-align: center;
    }

    #mobileNav {
        margin:5% 2% 0 2%;
    }

    #mobileNav > ul > li {
        padding: 2%;
        border-bottom: 1px solid #ddd;
        font-weight: bold;
    }

    .expando>div {
        display: flex;
        justify-content: space-between;
    }

    .subNavExpando {
        color: #ddd;
    }

    #mobileNav li ul {
        margin-left: 6%;
        font-weight: normal;
    }

        #mobileNav li ul li {
            border: none;
            padding: 2% 0;
        }

    #mobileNav a {
        color: #000;
    }

    #mobileNav ul.subNav > li a {
        color: #000;
    }

    #mobileNav .current a,
    #mobileNav ul.subNav>li.current a {
        color: #007e00;
    }

    #headerWrapper_mobile>div:nth-child(2){
        width:90%;
    }

    #mobileNavContainer.mobile_show {
        left: 0;
    }

    #mobileNavContainer.mobile_hide {
        left: -85vw;
    }

    #headerWrapper_mobile.mobile_show {
        left: 0;
    }

    #headerWrapper_mobile.mobile_hide {
        left: -100vw;
    }

    .slow {
        transition: left .4s ease 0s;
    }

    .pageTitleWrapper {
        padding: 3% 2%;
    }

        .pageTitleWrapper h1 {
            font-size: 1.3em;
        }

    #mobileShim {
        margin-top: 51%;
    }

    #splash > div {
        width: 40%;
        max-width: 200px;
        position: absolute;
        top: 2%;
        left: 1%;
    }

    #splash h2 {
        line-height: 1.3em;
        font-size: 1em;
        font-weight: normal;
    }

    #splash p {
        display: none;
    }

    .content main {
        padding: 0 2%;
        margin-top: 5%;
    }

    .twoColumn>div:nth-child(1){
        width:100%;
    }

    #startingPoints > div {
        width: 100%;
        margin-bottom:5%;
    }

    .news {
        width: 120%;
        height: 350px;
    }

    #singleLocation .contactInfo {
        flex-direction:column;

    }

    #singleLocation .contactInfo > div {
        margin: 2% auto;
        text-align:center;
    }


        #bailCalculator input, #bailCalculator select {
            padding: 2%;
        }

    #singleLocation .locationDetailContainer h2 {
        text-align: center;
    }

        #bailCalculator form > div {
            display: flex;
            flex-direction: column;
            flex-wrap: wrap;
            margin-bottom: 5%;
        }

        #bailCalculator label {
            margin-bottom: 3%;
            font-weight: bold;
        }

        #bailCalculator #calcTotal {
            display: flex;
            justify-content: space-between;
            font-weight: bold;
        }

    .sidebar {
        width: 100%;
        margin-top: 5%;
    }

    footer {
        padding: 5%;
    }


    footer > div > div {
        width: 100%;
    }

        footer .content > div {
            margin-bottom: 10%;
        }

}



@media(min-width: 1200px) {

    .mobile {
        display: none;
    }

    #masthead {
        display: flex;
        justify-content: space-between;
    }

    header .phone>div {
        font-size: 1.1em;
        font-weight:bold;
        margin-top:5%;
    }

    header .phone a {
        font-size: 2.2em;
        line-height: 1em;
    }

    .desktopNav {
        background: #000;
        color: #fff;
    }

   header nav ul {
        font-weight: bold;
        display: flex;
        justify-content: space-between;
        font-size: 1em;
    }


    header nav>ul>li {
        position: relative;
    }

        header nav li:before {
            content: " ";
            border-right: 1px solid #fff;
        }

    header nav a {
        margin-left: 20px;
        display:inline-block;
        padding: 10px 0;
    }

    header nav li.first:before {
        border: none;
    }
    header nav li.first > a {
        margin-left: 0;
    }

    .logoWrapper {
        display: flex;
        width: 35%;
    }

    #splash > div {
        width: 420px;
        position: absolute;
        top: 8px;
        left: 10px;
    }

    #splash p {
        font-size: 1.3em;
        line-height: 1.4em;
    }

    ul.subNav {
        display:flex;
        flex-direction:column;
        box-shadow: 0 0 4px rgba(0,0,0,.2);
        box-sizing:border-box;
        position:absolute;
        width:220px;
        z-index: 2;
    }

    ul.subNav>li {
       padding: 1% 1%;
       background: #fff;
    }

    .subNav>li a {
        color: #000;
    }

    .subNav > li.current,
    .subNav > li:hover {
        background: #E6F3E6;
    }
    .subNav > li.current a {
        color: #007e00;
    }

    nav ul li ul {
        visibility:hidden;
    }

    nav ul li:hover > ul,
    nav ul li ul:hover {
        visibility: visible;
    }

    main {
        margin-top: 5%;
    }

    #notice {
        background: #007e00;
        color: #fff;
        padding: .3% 0;
        text-align: right;
        font-weight: bold;
        font-family: 'Roboto', sans-serif;
    }

    #notice a {
        color: inherit
    }

    #notice .content>span {
        margin-left: 3%;
    }

    .content {
        max-width: 1200px;
        margin: 0 auto;
    }

    #masthead>div {
        margin-top: 1%;
    }

    .pageTitleWrapper {
        padding: 1% 0;
    }

        .pageTitleWrapper h1 {
            font-size: 1.8em;
        }

    .twoColumn>div:nth-child(1) {
        width: 70%;
    }

    main .sidebar {
        display: initial;
        width: 25%;
        font-size: 1.2em;
    }

    .breadcrumbs ol{
        list-style-type:none;
        padding:0;
        display:flex;
        flex-direction:row;
    }

    .breadcrumbs li {
        white-space:nowrap;
    }

    .breadcrumbs li span {
        margin: 0 10px;
    }

    #startingPoints > div {
        width: 20%;
        padding:2%;
    }

    .grid-sizer,
    .grid-item {
        width: 48%;
    }

    footer li {
        margin-top:3%;
    }

    footer>div>div {
        margin-top: 3%;
        width:20%;
        padding-right: 5%;
    }

    #locationContainer>div:nth-child(1) {
        width:100%;
    }

        #locationContainer > div:nth-child(2) {
            width:100%;
        }

    .card {
        width: 24%;
    }

    .sidebar a {
        font-size: .75em;
    }



        #singleLocation .contactInfo > div {
            width: 30%;
        }

    #singleLocation .locationDetailContainer, #singleLocation .contactInfo {
        justify-content: space-between;
    }

        #singleLocation .locationDetailContainer > div {
            width: 48%;
        }

        #singleLocation .contactInfo {
            margin-top:5%;
        }

        #singleLocation .contactInfo > div {
            width: 30%;
        }

    #bailCalculator {
        width:40%;
        margin: 0 auto;
    }

    #bailCalculator input, #bailCalculator select {
        padding: 2%;
    }

    #bailCalculator form>div {
        display:flex;
        flex-direction:column;
        flex-wrap:wrap;
        margin-bottom:5%;
    }

        #bailCalculator label {
            margin-bottom: 3%;
            font-weight:bold;
        }
        #bailCalculator #calcTotal {
            display:flex;
            justify-content:space-between;
            font-weight: bold;
        }

    .news {
        width: 640px;
    }
}