/* ============================================
   bs-global-nav.css
   Global header, navigation, sidebar, footer
   ============================================ */


/* ---- Link Styles ---- */
.remove-link-styling a:hover {
    color: inherit;
    text-decoration: none;
}


/* ---- Logo ---- */
.nav_logo {
    margin-right: 10px;
}


/* ---- Navigation Header ---- */
.nav-header {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 40px;
    justify-content: space-between;
}

nav .nav-title {
    justify-content: center;
    margin-left: 8px;
    list-style: none;
}

    nav .nav-title a {
        text-transform: uppercase;
        text-decoration: none;
    }

    nav .nav-title.active {
        font-weight: bold;
        margin-left: 8px;
        border-bottom: 3px solid;
        box-sizing: border-box;
        padding: 0;
        list-style: none;
        text-transform: uppercase;
    }

        nav .nav-title.active a {
            font-weight: bold;
        }

        nav .nav-title.active:hover a {
            text-decoration: none;
        }


/* ---- Theme: Dark (default) ---- */
.nav-header,
.bg-navbar-header {
    background-color: #141414;
}

header b a {
    color: #000;
    text-decoration: none;
}

    header b a:hover {
        color: #ec1c24;
        text-decoration: none;
    }

nav .nav-title,
nav .nav-title a {
    color: #ffffff;
}

    nav .nav-title.active,
    nav .nav-title.active a {
        color: #ad974f;
    }


/* ---- Theme: Light ---- */
.me-light .nav-header,
.me-light .bg-navbar-header {
    background-color: #F9FAFB;
}

.me-light nav .nav-title,
.me-light nav .nav-title a,
.me-light nav .nav-title.active,
.me-light nav .nav-title.active a {
    color: #28a745;
}


/* ---- Top Nav List ---- */
nav ul.topnav {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding-left: 0;
    font-size: .8rem;
}


/* ---- User Controls ---- */
nav .user-controls {
    display: inline;
    flex-wrap: wrap;
    align-items: center;
}

    nav .user-controls img {
        width: 24px;
        height: 24px;
        margin: 0 6px;
    }

    nav .user-controls .form-control:valid,
    nav .user-controls .form-control:invalid {
        background-image: none !important;
    }

.login,
.logout {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    color: #fff;
    background-color: #ad974f;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .login:hover,
    .logout:hover {
        color: #e4e4e4;
        background-color: #9b8540;
    }


/* ---- Main Navigation ---- */
.bg-main-nav {
    background-color: #faf9f7;
}

.me-light .bg-main-nav {
    background-color: #fff;
}

.main-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

nav ul {
    margin: 0;
    padding: 0;
}


/* ---- Nav Header (inner) ---- */
.nav_mob-header {
    height: 60px;
    display: flex;
    justify-content: center;
}

.nav_header {
    background-color: #F9FAFB;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 40px;
    justify-content: center;
}


/* ---- Nav Items ---- */
.nav-item {
    display: block;
    list-style: none;
    font-size: .8rem;
    cursor: pointer;
}

.nav-item-list {
    font-size: 1.1rem;
    padding: 1rem;
    transition: .15s all;
    cursor: pointer;
}

#navDesktop .nav-item-list.active {
    background-color: #ad974f;
    color: #fff;
}

.me-light #navDesktop .nav-item-list.active {
    background-color: #4AB563;
    color: #fff;
}

ul.nav_item-secondary li {
    display: block;
    font-size: 1rem;
    line-height: 170%;
    transition: .15s all;
    cursor: pointer;
}

    ul.nav_item-secondary li a {
        color: inherit;
        text-decoration: none;
        cursor: pointer;
    }

        ul.nav_item-secondary li a:hover {
            color: #9b7806;
        }

#mainNav,
#commercialProducts {
    transition: .8s all;
}


/* ---- Search Bar ---- */
.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #28a745;
}

.site-search .was-validated .form-control:valid,
.site-search .form-control.is-valid,
.site-search .form-control,
.site-search .form-control:focus {
    padding: .375rem .75rem !important;
    font-size: .9rem !important;
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
    border: 1px solid #dee2e6;
    height: 38px;
    margin: 0 !important;
}

.site-search .search-btn {
    background-color: #000;
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s;
}

.sidebar-search-btn:focus,
.sidebar-search-btn:active {
    font-family: 'Font Awesome 5 Pro';
    font-weight: 900;
    color: #fff;
    outline: none;
    box-shadow: none;
}

    .site-search .search-btn:hover {
        background-color: #222;
    }

    .site-search .search-btn .fa-search {
        font-size: 0.85rem;
        pointer-events: none;
    }

.site-search .input-group-append {
    margin-left: 0;
}

.site-search .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}


/* ---- CTA Buttons ---- */
.cta-btn {
    font-size: 1rem;
    text-transform: uppercase;
    padding: 1rem;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

    .cta-btn:hover {
        text-decoration: none;
        color: inherit;
        cursor: pointer;
    }

.cta-btn-wtb {
    transition: 0.15s all;
    color: white;
    background-color: #ad974f;
    box-shadow: 0 0 0 #ad974f;
}

.cta-btn-green,
.me-light .cta-btn-wtb {
    transition: .15s all;
    color: white;
    background-color: #4AB563;
}

    .cta-btn-green:hover,
    .me-light .cta-btn-wtb:hover {
        color: white;
        background-color: #389a4f;
    }


/* ---- Visibility ---- */
.opacity-0 {
    opacity: 0;
    height: 0;
    visibility: hidden;
}

.opacity-1 {
    opacity: 1;
    height: auto;
    transition: 0.30s linear opacity;
    visibility: visible;
}

.nav-menu-desktop {
    height: 0px;
}


/* ---- Tabs ---- */
.tab-underlined {
    border-bottom: 3px solid;
    box-sizing: border-box;
    padding: 0;
}


/* ---- Mobile Menu ---- */
.mobile-menu {
    font-size: 13px;
}

.navbar-toggler {
    cursor: pointer;
    border: 0;
}

    .navbar-toggler span {
        display: block;
        width: 25px;
        height: 3px;
        margin-top: .2rem;
        background-color: #fff;
        margin-bottom: 5px;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

        .navbar-toggler span.navbar-toggler-icon-2 {
            width: 20px;
        }

    .navbar-toggler.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .navbar-toggler.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggler.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


/* ---- Main Content ---- */
.main-content {
    flex: 1;
}

#navbarSupportedContent {
    display: none;
}


/* ============================================
   SIDEBAR — mobile navigation
   ============================================ */

/* Backdrop overlay */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .sidebar-backdrop.active {
        display: block;
        opacity: 1;
    }

/* Sidebar shell */
.sidebar {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1e1e1e;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9999;
    overflow: hidden;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.4);
    }

/* Sidebar header strip */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 14px 20px;
    background-color: #141414;
    flex-shrink: 0;
    border-bottom: 1px solid #2e2e2e;
}

.sidebar-logo img {
    height: 30px;
    width: auto;
    display: block;
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    position: static; /* override old absolute positioning */
    top: auto;
    right: auto;
}

    .close-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ad974f;
    }

/* Sidebar search */
.sidebar-search {
    padding: 12px 16px;
    background-color: #141414;
    flex-shrink: 0;
    border-bottom: 1px solid #2e2e2e;
}

    .sidebar-search .input-group {
        flex-wrap: nowrap;
        border-radius: 6px;
        overflow: hidden;
        border: 1px solid #333;
    }

    .sidebar-search .form-control {
        background-color: #2a2a2a;
        color: #f0f0f0;
        border: none;
        border-radius: 0;
        height: 40px;
        font-size: 0.875rem;
        padding: 0 14px !important;
        box-shadow: none;
    }

        .sidebar-search .form-control::placeholder {
            color: #777;
        }

        .sidebar-search .form-control:focus {
            background-color: #2a2a2a;
            color: #f0f0f0;
            box-shadow: none;
            border: none;
        }

        .sidebar-search .was-validated .form-control:valid,
        .sidebar-search .form-control.is-valid {
            border-color: transparent;
            background-image: none;
            padding: 0 14px !important;
        }

    .sidebar-search .input-group-append {
        margin: 0;
        flex-shrink: 0;
    }


.sidebar-search-btn {
    background-color: #ad974f;
    color: #fff;
    border: none;
    border-radius: 0;
    width: 44px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    cursor: pointer;
}

    .sidebar-search-btn:hover,
    .sidebar-search-btn:focus {
        background-color: #9b8540;
        color: #fff;
        outline: none;
    }

    .sidebar-search-btn .fa-search {
        font-size: 0.8rem;
        pointer-events: none;
    }

/* Scrollable nav list */
.sidebar-nav {
    list-style: none;
    padding: 0px;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3a3a3a #1e1e1e;
}

    .sidebar-nav::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar-nav::-webkit-scrollbar-track {
        background: #1e1e1e;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background-color: #3a3a3a;
        border-radius: 4px;
    }

/* Top-level nav item */
.sidebar-nav-item {
    border-bottom: 1px solid #2a2a2a;
}

/* Top-level button */
.sidebar-nav-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 1rem;
    font-weight: 500;
    padding: 16px 20px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.01em;
}

    .sidebar-nav-btn:hover {
        background-color: #272727;
        color: #ad974f;
    }

.sidebar-nav-item.active > .sidebar-nav-btn {
    color: #ad974f;
    background-color: #272727;
}

/* Chevron icon */
.sidebar-chevron {
    font-size: 0.75rem;
    color: #888;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.15s;
    flex-shrink: 0;
    margin-left: 8px;
}

.sidebar-nav-item.active > .sidebar-nav-btn .sidebar-chevron {
    transform: rotate(90deg);
    color: #ad974f;
}

/* Submenu — accordion via max-height */
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #252525;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-nav-item.active > .sidebar-submenu {
    max-height: 2000px; /* large enough for any submenu */
}

/* Submenu links */
.sidebar-submenu li {
    padding: 0;
    color: #ccc;
}

    .sidebar-submenu li a {
        display: block;
        padding: 9px 20px 9px 28px;
        color: #ccc;
        text-decoration: none;
        font-size: 0.9rem;
        line-height: 1.4;
        border-left: 3px solid transparent;
        transition: color 0.15s, border-color 0.15s, background 0.15s;
    }

        .sidebar-submenu li a:hover {
            color: #ad974f;
            border-left-color: #ad974f;
            background-color: #2e2e2e;
        }

/* Submenu section headers */
.sidebar-submenu-header {
    padding: 10px 20px 4px 20px !important;
    font-size: 0.7rem !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666 !important;
    margin-top: 4px;
    border-left: none !important;
    background: none !important;
}

    .sidebar-submenu-header a {
        display: inline !important;
        padding: 0 !important;
        color: #888 !important;
        font-size: inherit !important;
        border-left: none !important;
        background: none !important;
        letter-spacing: inherit;
        text-transform: inherit;
        font-weight: inherit;
    }

        .sidebar-submenu-header a:hover {
            color: #ad974f !important;
            border-left: none !important;
            background: none !important;
        }

/* Divider between first submenu item and header */
.sidebar-submenu li:first-child.sidebar-submenu-header {
    margin-top: 8px;
}

/* Padding buffer at bottom of submenu */
.sidebar-submenu li:last-child a {
    padding-bottom: 14px;
}


/* ---- Sidebar sticky footer ---- */
.sidebar-footer {
    flex-shrink: 0;
    border-top: 1px solid #2e2e2e;
    background-color: #141414;
}

.sidebar-footer-cta {
    display: flex;
    gap: 0;
}

    .sidebar-footer-cta .cta-btn {
        flex: 1;
        font-size: 0.8rem;
        padding: 16px 8px;
        letter-spacing: 0.04em;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-footer-cta .cta-btn-light {
        color: #f0f0f0;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
        background-color: transparent;
        transition: background 0.15s, color 0.15s;
    }

        .sidebar-footer-cta .cta-btn-light:hover {
            background-color: #2a2a2a;
            color: #ad974f;
            box-shadow: inset 0 0 0 1px #ad974f;
        }

    .sidebar-footer-cta .cta-btn-wtb {
        background-color: #ad974f;
        color: #fff;
    }

        .sidebar-footer-cta .cta-btn-wtb:hover {
            background-color: #9b8540;
            color: #fff;
        }

.sidebar-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #2a2a2a;
}

.sidebar-footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

    .sidebar-footer-social .social-icon {
        width: 20px;
        height: 20px;
        filter: brightness(0) invert(0.5);
        transition: filter 0.2s, transform 0.2s;
    }

        .sidebar-footer-social .social-icon:hover {
            filter: brightness(0) saturate(100%) invert(68%) sepia(30%) saturate(600%) hue-rotate(5deg) brightness(95%);
            transform: scale(1.15);
        }

.sidebar-footer .login,
.sidebar-footer .logout {
    font-size: 0.78rem;
    padding: 6px 14px;
    white-space: nowrap;
}


/* ============================================
   Footer
   ============================================ */

footer .footer-item {
    line-height: 160%;
    color: white;
}

    footer .footer-item li {
        color: white;
    }

footer .footer-logo {
    display: flex;
}

    footer .footer-logo img {
        width: auto;
        max-width: 280px;
        margin: 1rem 0 0 0;
        height: auto;
    }

footer .footer-item ul {
    list-style-type: none;
    line-height: 160%;
    color: white;
}

footer h5.menu-title {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

footer .copyright-text {
    margin-top: 0.4rem;
    margin-left: 1rem;
}

.footer-logo-container {
    display: flex;
    justify-content: center;
}

.socials-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: center;
    margin-top: 1.5rem;
}

.socials-text {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 3px;
}

.social-icons {
    margin-top: .6rem;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icon {
    filter: invert(30%) brightness(75%) saturate(100%);
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.facebook:hover {
    filter: invert(17%) sepia(40%) saturate(4768%) hue-rotate(180deg) brightness(93%) contrast(91%);
    transform: scale(1.1);
}

.instagram:hover {
    filter: invert(34%) sepia(93%) saturate(4900%) hue-rotate(330deg) brightness(92%) contrast(97%);
    transform: scale(1.1);
}

.linkedin:hover {
    filter: invert(26%) sepia(52%) saturate(3162%) hue-rotate(190deg) brightness(91%) contrast(92%);
    transform: scale(1.1);
}

.youtube:hover {
    filter: brightness(0) saturate(100%) invert(15%) sepia(100%) saturate(3546%) hue-rotate(355deg) brightness(85%) contrast(131%);
    transform: scale(1.1);
}

footer li.submenu-header {
    margin-top: 1rem;
    margin-bottom: .3rem;
}

.footer li.submenu-header a {
    color: #ffffff;
}

    .footer li.submenu-header a:hover {
        color: #ad974f;
    }


/* ============================================
   Desktop nav dropdown
   ============================================ */

.nav-menu-desktop-show {
    height: auto;
    position: absolute;
    top: 120px;
    background: #fff;
    padding: 2rem;
    left: 18%;
    width: 64%;
    background-color: #F9FAFB;
    box-shadow: 12px 15px 20px 0px rgba(46, 61, 73, 0.15);
    z-index: 1000;
}

.nav-menu.nav-item-list li:hover {
    color: #ad974f;
    font-weight: 600;
}

.nav-cta {
    position: relative;
    display: inline-block;
}


/* ============================================
   Media Queries (largest to smallest)
   ============================================ */

@media (min-width: 992px) {
    .nav_logo-large {
        height: 48px;
        display: block;
        margin: -0.625rem 3rem 0 0;
    }

    .nav_logo-small {
        display: none;
    }

    .nav-menu-desktop-show {
        top: 120px;
        max-width: 956px;
    }

    #navbarSupportedContent {
        display: flex;
    }

    nav .nav-menu {
        font-size: 1rem;
        cursor: pointer;
        padding-left: 0 !important;
        list-style: none;
    }

    nav .input-group-append .btn {
        height: 30px;
        vertical-align: middle;
    }

    nav .form-control {
        height: 30px !important;
    }

    .main-nav {
        display: flex;
        flex-direction: row;
        height: 80px;
        align-items: center;
        margin-top: 0;
        margin-bottom: 0;
        padding-left: .5rem;
    }

    .cta-btn {
        display: inline-block;
        width: auto;
    }

    .footer .footer-item {
        width: 100%;
        line-height: 160%;
        color: white;
    }
}

@media (min-width: 768px) {
    .cta-btn-light {
        color: #000;
        box-shadow: inset 0 0 0 2px #0707073b;
        transition: background-color 0.3s, color 0.3s;
    }

        .cta-btn-light:hover,
        .cta-btn-wtb:hover {
            color: #ad974f;
            box-shadow: 0 0 0 #141414;
            background-color: #141414;
        }

    footer .footer-logo {
        justify-content: flex-end;
    }
}

@media (max-width: 991px) {
    .nav_logo-small {
        width: 100px;
        display: block;
        margin-right: 10px;
        float: right;
    }

    .nav_logo-large {
        display: none;
    }

    .main-nav {
        flex-direction: column;
    }

    .main-nav_buttons {
        margin-top: 10px;
    }

    .nav-menu-desktop-show {
        left: 14%;
        width: 72%;
        top: 100px;
    }

    /* Show sidebar on mobile */
    .sidebar {
        display: flex;
    }

    .navbar-brand {
        display: none;
    }

    .nav-menu {
        display: block;
    }

        .nav-menu .row {
            flex-direction: column;
            align-items: center;
        }

        .nav-menu .col-md-3,
        .nav-menu .col-md-6 {
            width: 100%;
            max-width: 100%;
            padding: 15px;
        }

        .nav-menu img {
            width: 100%;
            height: auto;
        }

    .nav-header {
        display: none;
    }

    .fa-angle-down {
        font-size: 1.2rem;
        float: right;
    }

    li.nav-item-list {
        font-size: .9rem;
        padding: 1rem;
        transition: .15s all;
        cursor: pointer;
    }

        li.nav-item-list span {
            font-size: 1.1rem;
        }

        li.nav-item-list:hover {
            color: #ad974f;
        }

        li.nav-item-list.active span {
            color: #ad974f;
            margin-bottom: 1rem;
        }
}

@media (max-width: 768px) {
    .cta-btn-light {
        margin-bottom: 0;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
    }

        .cta-btn-light:hover,
        .cta-btn-wtb:hover {
            box-shadow: 0 0 0 2px #141414;
            background-color: #141414;
            color: #ad974f;
        }

    .socials-container {
        align-items: center;
        margin-top: .5rem;
    }

    .socials-text {
        margin-bottom: 8px;
    }

    .social-icons {
        gap: 10px;
    }

    footer .row {
        flex-direction: column;
    }

    .footer-logo-container {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    footer .footer-logo {
        margin-top: 1.2rem;
        flex-direction: column;
    }

    .footer-logo,
    .copyright-text {
        align-items: center;
        text-align: center;
        margin-bottom: 1.2rem;
    }

    footer .copyright-text {
        margin-top: 0;
        margin-left: 0;
    }
}
