/* TSF Custom Overrides - The Service Factory */

/* === FULL SCREEN BACKGROUND === */
body.site {
    background-image: url("/images/bg_street.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    min-height: 100vh;
}

/* === HEADER === */
#sp-header {
    background-color: #106BB3 !important;
    box-shadow: 0 0 6px 0 rgba(0,0,0,0.42);
}
#sp-header .logo img {
    max-height: 65px;
}
#sp-header .sp-megamenu-parent > li > a {
    color: #ffffff !important;
    font-family: "Open Sans", sans-serif;
    font-size: 10pt;
    line-height: 60px;
}
#sp-header .sp-megamenu-parent > li > a:hover,
#sp-header .sp-megamenu-parent > li.active > a {
    background-color: rgba(0,0,0,0.1) !important;
}

/* Hide the offcanvas hamburger on desktop */
@media (min-width: 992px) {
    #offcanvas-toggler {
        display: none !important;
    }
}

/* === DIENSTEN SUB-MENU BAR === */
#sp-diensten-bar {
    background-color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0;
    position: relative;
    z-index: 99;
}
#sp-diensten-bar .container-inner {
    display: flex;
    justify-content: flex-end;
}
#sp-diensten-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
}
#sp-diensten-bar ul li {
    display: inline-block;
}
#sp-diensten-bar ul li a {
    display: block;
    padding: 10px 20px;
    color: #333333 !important;
    font-family: "Open Sans", sans-serif;
    font-size: 10pt;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color 0.2s;
}
#sp-diensten-bar ul li a:hover,
#sp-diensten-bar ul li.active a {
    background-color: rgba(255,255,255,0.35);
    color: #106BB3 !important;
}
#sp-diensten-bar .sp-module {
    margin: 0;
    padding: 0;
}

/* === MAIN CONTENT BOX === */
#sp-main-body {
    background-color: transparent;
    padding: 25px;
    margin-top: 20px;
    border-radius: 0;
    box-shadow: none;
}
#sp-main-body .container {
    max-width: 960px;
}

/* === HOMEPAGE === */
.view-featured #sp-main-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}
.view-featured #sp-component {
    display: flex;
    align-items: center;
    justify-content: center;
}
.view-featured .page-header,
.view-featured h1,
.view-featured .blog items-row {
    display: none;
}
.view-featured .item-page,
.view-featured .blog {
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
}
.view-featured .item-page img,
.view-featured .blog img {
    max-width: 600px;
    width: 100%;
    height: auto;
}

/* === INNER PAGES === */
.com-content.view-article #sp-main-body,
.com-content.view-category #sp-main-body {
    background-color: rgba(255, 255, 255, 0.88);
    box-shadow: 1px 0 2px 0 rgba(0, 0, 0, 0.34);
}
.article-item,
.item-page {
    padding: 20px 25px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: "Open Sans", sans-serif !important;
    font-weight: 400;
}
h1 { font-size: 1.7em; }
h2 { font-size: 1.2em; }
h3 { font-size: 1.1em; }
body {
    color: #333333;
    font-family: Calibri, sans-serif;
    font-size: 12pt;
}
a, a:link, a:visited {
    color: #055189 !important;
    text-decoration: none;
}
a:hover, a:active {
    color: #106BB3 !important;
    text-decoration: underline;
}

/* === FOOTER — 20px black bar at bottom === */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
.body-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.body-innerwrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}
#sp-footer {
    background-color: #000000 !important;
    color: #ffffff;
    padding: 0;
    margin: 0;
    text-align: center;
    font-size: 10pt;
    flex-shrink: 0;
    height: auto;
}
#sp-footer1 {
    display: block !important;
    padding: 3px 0;
    margin: 0;
    min-height: 20px;
    line-height: 14px;
}
#sp-footer .container,
#sp-footer .container-inner {
    padding: 0;
    margin: 0;
}
#sp-footer .col-lg-12,
#sp-footer .sp-column {
    padding: 0;
    margin: 0;
}
#sp-footer a,
#sp-footer a:link,
#sp-footer a:visited {
    color: #ffffff !important;
    font-size: 9pt;
    text-decoration: none;
}
#sp-footer a:hover {
    text-decoration: underline;
}

/* Hide unused sections */
#sp-bottom,
#sp-top-bar {
    display: none;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    #sp-main-body {
        margin-top: 10px;
        padding: 15px;
    }
    .view-featured #sp-main-body {
        min-height: 50vh;
    }
    #sp-diensten-bar ul {
        flex-wrap: wrap;
    }
    #sp-diensten-bar ul li a {
        padding: 8px 15px;
        font-size: 11pt;
    }
}
@media (max-width: 767px) {
    #sp-header {
        background-color: #106BB3 !important;
    }
    #sp-header .logo img {
        max-height: 50px;
    }
    #sp-main-body {
        margin-top: 5px;
        padding: 10px;
    }
    .view-featured #sp-main-body {
        min-height: 40vh;
    }
    .view-featured .item-page img,
    .view-featured .blog img {
        max-width: 280px;
    }
    #sp-diensten-bar ul {
        flex-wrap: wrap;
    }
    #sp-diensten-bar ul li a {
        padding: 6px 10px;
        font-size: 10pt;
    }
}
