/*
Theme Name: Kwartiernoord
Theme URI: http://example.com/kwartiernoord
Author: Paznos
Author URI: http://example.com
Description: A custom WordPress theme built with Bootstrap v5 and WPBakery compatibility.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kwartiernoord
*/

/* ==========================================================================
   1. Fonts
   ========================================================================== */
@font-face {
    font-family: 'Oswald';
    src: url('fonts/Oswald/static/Oswald-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Oswald';
    src: url('fonts/Oswald/static/Oswald-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* ==========================================================================
   2. Variables
   ========================================================================== */
:root {
    --primary-font: 'Open Sans', Arial, Helvetica, sans-serif;
    --secondary-font: 'Oswald', Arial, Helvetica, sans-serif;
    --bs-primary-bg: #18181d;
    --bs-secondary-bg: #fefefe;

    --bs-primary: #81d742;
    --bs-secondary: #008080;
    --bs-primary-rgb: 129, 215, 66;
    --bs-secondary-rgb: 0, 128, 128;

    --bs-border-radius: 0;
    --bs-border-radius-lg: 0;
}

/* ==========================================================================
   3. Base Styles
   ========================================================================== */
body {
    padding-top: 56px;
    background-color: var(--bs-primary-bg);
    font-family: var(--primary-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--bs-secondary-bg);
    line-height: 1.9em;

    &.admin-bar #page {
        padding-top: 32px;
        nav.navbar {
            top: 32px;
        }
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--secondary-font);
    display: block;
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 2em;
    text-transform: uppercase;
    letter-spacing: 10px;
    font-weight: normal;
    color: var(--bs-secondary-bg);
}

h1 { font-size: 26px; }
h2 { font-size: 24px; }
h3 { font-size: 17px; }

/* ==========================================================================
   4. Navigation & Navbar
   ========================================================================== */
.navbar {
    background-color: var(--bs-primary-bg) !important;

    .custom-logo {
        max-height: 100px;
        width: auto;
        transition: opacity 0.3s ease;
    }

    &:hover .custom-logo {
        opacity: 0.8;
    }
}

#primary-menu {
    & > li > a {
        text-transform: uppercase;
        letter-spacing: 2px;
        font-family: 'Oswald', sans-serif;
        font-size: 11px;
        font-weight: 600;
        color: var(--bs-secondary-bg);
        text-decoration: none;
        padding: 25px 0 25px 20px;

        &:hover {
            color: var(--bs-primary);
        }
    }

    .nav-link {
        display: inline-block;
    }
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #81d742;
    --bs-btn-border-color: #81d742;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #74c23b;
    --bs-btn-hover-border-color: #6eb938;
    --bs-btn-focus-shadow-rgb: 129, 215, 66;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #6eb938;
    --bs-btn-active-border-color: #67ad35;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #81d742;
    --bs-btn-disabled-border-color: #81d742;
    
    border-radius: 0;
    text-transform: uppercase;
    font-family: var(--secondary-font);
    font-weight: 500;
    letter-spacing: 1px;
}

.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #008080;
    --bs-btn-border-color: #008080;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #007373;
    --bs-btn-hover-border-color: #006666;
    --bs-btn-focus-shadow-rgb: 0, 128, 128;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #006666;
    --bs-btn-active-border-color: #005959;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #008080;
    --bs-btn-disabled-border-color: #008080;

    border-radius: 0;
    text-transform: uppercase;
    font-family: var(--secondary-font);
    font-weight: 500;
    letter-spacing: 1px;
}

.btn-offer {
    a {
        display: inline-block;
        border: 1px solid var(--bs-primary) !important;
        background-image: none !important;
        font-size: 14px !important;
        letter-spacing: 1px;
        background-color: var(--bs-primary-bg) !important;
        color: var(--bs-primary) !important;
        font-weight: 500;
        border-radius: 0px !important;
        text-transform: uppercase;

        &:hover {
            background-color: var(--bs-primary) !important;
            color: var(--bs-primary-bg) !important;
            transition: all 0.3s ease;
        }
    }
}

/* ==========================================================================
   6. Search Form
   ========================================================================== */
.search-form {
    display: flex;
    width: 100%;

    .screen-reader-text {
        display: none;
    }

    label {
        flex-grow: 1;
        margin-bottom: 0;
    }

    .search-field {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #dee2e6;
        border-radius: 0;
        font-family: var(--primary-font);
        font-size: 14px;
        outline: none;
        color: #333;

        &:focus {
            border-color: var(--bs-primary);
        }
    }

    .search-submit {
        background-color: var(--bs-primary);
        border: 1px solid var(--bs-primary);
        color: #fff;
        padding: 0 30px;
        text-transform: uppercase;
        font-family: var(--secondary-font);
        font-weight: 500;
        letter-spacing: 1px;
        cursor: pointer;
        transition: all 0.3s ease;

        &:hover {
            background-color: #74c23b;
            border-color: #74c23b;
        }
    }
}

/* ==========================================================================
   7. Components
   ========================================================================== */

/* Iconbox Styling */
.iconbox-wrapper {
    margin-bottom: 25px;
    color: var(--bs-primary-bg);

    .card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;

        &.position-relative:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
            cursor: pointer;

            .btn-primary {
                color: var(--bs-primary);
                border-bottom-color: var(--bs-primary-bg);
            }
        }
    }

    .card-body {
        background-color: var(--bs-secondary-bg);
    }

    .card-img-top {
        height: 200px;
        object-fit: cover;
    }

    .card-title {
        letter-spacing: 0;
    }

    .card-subtitle{
        text-transform: none;
        letter-spacing: 2px;
    }

    .btn-primary {
        display: inline-block;
        text-align: left;
        background-color: transparent;
        font-family: var(--secondary-font);
        letter-spacing: 1px;
        font-size: 16px;
        color: var(--bs-primary-bg);
        font-weight: 500;
        text-transform: uppercase;
        border: none;
        border-bottom: 2px solid var(--bs-primary);
        position: relative;
        padding-left: 0px;
        z-index: 2;

        &:hover {
            color: var(--bs-primary);
            border-bottom-color: var(--bs-primary-bg);
        }
    }
}

/* Member Styling */
.member-wrapper {
    .member-name {
        letter-spacing: 2px;
        margin: 0px;
        top: 0px;
        font-size: 20px;
    }

    .member-job {
        letter-spacing: 2px;
        font-size: 13px;
        font-weight: 500;
        color: #999;
        margin-bottom: 20px;
        border-bottom: 2px solid var(--bs-primary);
    }
}

/* Menu Item Card Styling */
.menu-item-card {
    h4 {
        letter-spacing: 0;
        text-transform: none;
    }
    .small, .text-muted {
        font-size: 13px;
        color: var(--bs-secondary-bg) !important;
    }
}

/* ==========================================================================
   8. Page Builder & WPBakery Overrides
   ========================================================================== */

/* Row & Column Adjustments */
.vc_row {
    &.has-half-row-image {
        position: relative;
        overflow: hidden;
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        min-height: 400px;

        .container-fluid {
            position: relative;
            z-index: 2;
            padding: 0;
            width: 100%;
        }
    }

    .container .row,
    .container-fluid .row {
        margin-left: 0;
        margin-right: 0;
    }

    /* Gutter Controls */
    &.row-gutter-narrow {
        & > .container > .row,
        & > .container-fluid > .row {
            margin-left: -5px;
            margin-right: -5px;
        }

        .vc_column_container > .vc_column-inner {
            padding-left: 5px !important;
            padding-right: 5px !important;
        }
    }

    &.row-gutter-none {
        & > .container > .row,
        & > .container-fluid > .row {
            margin-left: 0;
            margin-right: 0;
        }

        .vc_column_container > .vc_column-inner {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
    }
}

.vc_row-half-row-image {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.half-row-image-left .vc_row-half-row-image { left: 0; }
.half-row-image-right .vc_row-half-row-image { right: 0; }

/* Equal Height Columns Fix */
.vc_row-o-equal-height {
    & > .container > .row,
    & > .container-fluid > .row {
        display: flex;
        flex-wrap: wrap;

        & > .vc_column_container {
            display: flex;
        }
    }

    .vc_column-inner,
    .wpb_wrapper {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        width: 100%;
    }

    .iconbox-wrapper {
        flex-grow: 1;
    }
}

/* WPBakery Elements */
.vc_tta-style-classic.vc_tta-tabs .vc_tta-panels {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    color: var(--bs-secondary-bg) !important;

    .text-muted {
        color: var(--bs-secondary-bg) !important;
    }
}

.vc_tta-tabs-list {
    li.vc_tta-tab {
        margin: 5px !important;

        a {
            background-color: var(--bs-primary-bg) !important;
            text-transform: uppercase;
            font-family: var(--secondary-font);
            color: var(--bs-secondary-bg) !important;
            border-radius: 0 !important;
            border: solid 2px rgba(255, 255, 255, .1) !important;
            letter-spacing: 2px;

            &::before, &::after {
                display: none !important;
            }
        }

        &.vc_active a {
            color: var(--bs-primary) !important;
            border: solid 2px var(--bs-primary) !important;
        }
    }
}

.vc_toggle {
    .vc_toggle_title h4 {
        letter-spacing: 0;
        font-size: 16px;
    }
}

div[data-vc-full-width="true"] {
    margin-bottom: 50px;

    .wpb_wrapper {
        padding-top: 20px;
    }
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer {
    font-size: 14px;
    line-height: 1.6;

    h4.widget-title {
        font-size: 16px;
        margin-bottom: 25px;
        color: var(--bs-primary);
        letter-spacing: 2px;
    }

    .widget {
        margin-bottom: 30px;
    }

    ul {
        list-style: none;
        padding: 0;
        margin: 0;

        li {
            margin-bottom: 10px;
        }
    }

    a {
        color: #fff;
        text-decoration: none;
        transition: color 0.3s ease;

        &:hover {
            color: var(--bs-primary);
        }
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* ==========================================================================
   10. Global / Utility Classes
   ========================================================================== */
.white {
    color: var(--bs-primary-bg);
    background-color: var(--bs-secondary-bg);

    h1, h2, h3, h4, h5, h6 {
        color: var(--bs-primary-bg);
    }
}

.hover-primary:hover {
    color: var(--bs-primary) !important;
}

.banner {
    padding: 5em;
}

.wpb_wrapper {
    padding: 0 1em 0 1em;
}

.bgfixed {
    .vc_row-half-row-image {
        background-size: contain;
        background-position: top;
    }
}

.block {
    padding: 20px;
    border: 5px solid var(--bs-primary-bg);

    strong {
        text-transform: uppercase;
        font-size: 20px;
    }
}

/* ==========================================================================
   11. Plugin-Specific Styles (Glightbox, etc.)
   ========================================================================== */
.gslide-title {
    display: none;
}

.gslide-desc {
    font-family: var(--secondary-font) !important;
    color: var(--bs-primary-bg) !important;
    font-size: 20px !important;
    text-transform: uppercase;
}

/* ==========================================================================
   12. Responsive / Media Queries
   ========================================================================== */

/* Desktop & Up */
@media (min-width: 992px) {
    #primary-menu .menu-item:not(:last-child)::after {
        content: " / ";
        color: var(--primary-color);
        padding: 0 2px 0 20px;
        display: inline-block;
    }

    .half-row-image-left > .container-fluid > .row > .vc_column_container {
        margin-left: 50%;
        width: 50%;
    }

    .half-row-image-right > .container-fluid > .row > .vc_column_container {
        margin-right: 50%;
        width: 50%;
    }
}

/* Tablet & Down */
@media (max-width: 991.98px) {
    #primary-menu .menu-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;

        &:last-child {
            border-bottom: none;
        }
    }

    #primary-menu > li > a {
        padding: 15px 20px;
        display: block;
    }

    .vc_row.has-half-row-image {
        display: block;
    }

    .vc_row-half-row-image {
        position: relative;
        width: 100%;
        height: 300px;
    }
}
