@import url('bootstrap.css');
@import url('template.css');

/* reset template to use variable colors */
:root {
    --canvas-color: white;
    --theme-color1: #55595d;
    --theme-color2: #F9C535;
    --link-color: var(--theme-color2);
    --link-hover-color: var(--theme-color1);
}

body {
    background-image: url(abstract-attractive-backdrop-988872.jpg);
    background-attachment: fixed;
    font-size: 18px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,.75);
    z-index: -1;
}

.header-top { background-image: url(stucco.png); }

.main-nav-bar,
.main-nav,
.main-nav .dropdown-menu,
.customNavigation a,
.welcome-details a,
.footer-section,
.service-item-content a { background-color: var(--theme-color1); }

.hiring-tab .nav-tabs li a,
.hiring-tab .nav-tabs li.active a:hover { color: var(--theme-color1); }

.btn,
.banner-caption,
.service-right a:hover,
.customNavigation a:hover,
.product-item a.read-more:hover,
.welcome-details a:hover,
.service-item-content a:hover { background-color: var(--theme-color2); }

.header-top .phone strong,
.product-item i::before,
.footer-section a:hover { color: var(--theme-color2); }

.main-contact-form input[type=submit] { border-color: var(--theme-color2); }
/* end reset to variable colors */

.header-top {
    position: relative;
    display: flex;
    align-items: center;
}

.header-top > div:not(:nth-of-type(1)) {
    flex: 1;
    margin-left: 2em;
}

.mobile-button {
    background-color: var(--theme-color1);
    position: absolute;
    top: 1.5em;
    right: 0;
    margin: 0;
    border: 0;
    width: 40px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
}

.mobile-button i {
    font-size: 25px;
    color: rgba(255,255,255, .8);
}

@media screen and (max-width: 500px) {
    .mobile-button { top: 4.5em; }
}

.main-nav li.current { background-color: var(--theme-color2); }

.main-nav li.current a { color: #333; }

.main-nav nav ul ul ul.dropdown-menu {
    top: 0;
    left: 100%;
}

.dropdown-menu { font-size: 16px; }

#slideshow { margin-bottom: 30px; }

.section-content {
    margin-bottom: 30px;
    margin-left: -30px;
    margin-right: -30px;
}

.page, .sidebar {
    background-color: var(--canvas-color);
    padding: 30px;
}

.sidebar:not(:first-child) { padding-top: 0; }

.sidebar ul { padding-left: 1em; }

header a, .marquee a { color: inherit; }

.section-content a { color: var(--link-color); }

.section-content a:hover,
.section-content a:focus { color: var(--link-hover-color); }

header a:hover,
header a:focus,
.marquee a:hover,
.marquee a:focus { color: var(--theme-color2); }

.section-content #sb_quotebook blockquote {
    padding: 5px 10px;
    margin: 20px 0;
    font-size: inherit;
    border-left: 2px solid #eeeeee;
}

.section-content form label { font-weight: 400; }

.marquee {
    margin: 0 -15px 30px -15px;
    padding: 15px;
    overflow: hidden;
    background-color: var(--canvas-color);
}

#title {
    font-size: 2rem;
    color: var(--theme-color2);
    font-weight: 600;
}

.slogan { text-transform: uppercase; }

#account_menu {
    position: absolute;
    right: 10px;
    bottom: 5px;
}

#PhotoBox {
    aspect-ratio: 3 / 1;
    margin-bottom: 20px;
}

h1 { font-size: 2.25rem; }

h2 {
    color: var(--theme-color2);
    font-size: 2rem;
}

.sidebar h1 { font-size: 2.143rem; }

.sidebar h2 { font-size: 1.714rem; }

.sidebar h3 { font-size: 1.286rem; }

.sidebar h4 { font-size: 1rem; }

footer {
    padding-bottom: 30px;
    color: rgba(255, 255, 255, .5);
}

footer .container {
    padding: 40px 40px 20px;
    background: var(--theme-color1);
}

footer .address { margin-bottom: 20px; }

footer h4 {
    color: white;
    margin-bottom: 10px;
}

footer .copyright {
    border-top: thin solid rgba(0,0,0,.2);
    padding: 20px 0;
}

footer ul {
    list-style: none;
    text-align: right;
}

footer ul > li { display: inline-block; }

footer ul a {
    display: block;
    color: rgba(255, 255, 255, .5);
    padding-right: 20px;
}

footer a:hover, footer a:focus { color: var(--theme-color2); }

#toTop { background-color: var(--theme-color2); }

@media screen and (min-width: 767px) {
    header .site_contact {
        display: flex;
        text-align: left;
        justify-content: flex-end;
    }
}

@media screen and (max-width: 767px) {
    header .site_contact {
        display: block;
        text-align: right;
    }

    header .site_contact_cell { display: inline; }
}

@media screen and (max-width: 500px) {
    .header-top > div:not(:nth-of-type(1)) { margin-left: 0; }

    header .site_contact {
        display: flex;
        text-align: left;
    }
}

@media screen and (max-width: 767px)  {
    .header-top { display: block; }

    .main-nav {
        position: fixed;
        top: 0;
        left: -300px;
        z-index: 100;
        width: 300px;
        height: 100%;
        background: #27272C;
        transition: all 0.5s;
    }

    .main-nav.open { left: 0px; }

    .overlay {
        background-color: rgba(0,0,0,0.7);
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        transition: opacity .5s;
        z-index: -1;
        opacity: 0;
        width: 100%;
    }

    .overlay.open {
        z-index: 5;
        opacity: 1;
    }

    .menu-close {
        position: absolute;
        right: 0;
        top: 0;
        color: #fff;
        padding: 10px;
        font-size: 16px;
        cursor: pointer;
    }

    .main-nav .navbar ul {
        margin: 35px 20px;
        width: 260px;
    }

    .main-nav .navbar ul > li {
        border-bottom: thin solid rgba(255, 255, 255, 0.1);
        display: list-item;
        list-style-type: none;
    }

    .main-nav .navbar ul > li > a {
        padding: 10px;
        font-weight: normal;
    }

    .section-content {
        margin-right: -15px;
        margin-left: -15px;
    }

    .section-content > div {
        padding-left: 0;
        padding-right: 0;
    }

    footer .copyright > div:not(:first-child) { margin-top: 20px; }
}

/* workaround for iOS Safari position:fixed + background-size:cover bug (https://stackoverflow.com/questions/24154666) */
@supports (-webkit-touch-callout: none) {
	body { background-attachment: scroll; }
}
