

/*==============================================================================
= BASE
==============================================================================*/

html, body, header, nav, div, a, img {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/*==============================================================================
= DESKTOP HEADER
==============================================================================*/

.mobile-header {
    display: none;
}

.desktop-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 20px 40px;
    width: 100%;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 15px;
    flex: 1;
}

.nav-left {
    justify-content: flex-end;
    margin-right: 40px;
}

.nav-right {
    justify-content: flex-start;
    margin-left: 40px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transform: translateY(15px);
}

.logo img {
    height: 130px;
}

/*==============================================================================
= DESKTOP LINKS
==============================================================================*/

.desktop-header a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #7b7978;
    padding: 0 8px;
}

.desktop-header a:hover {
    color: #e5a40f;
}

/*==============================================================================
= DESKTOP DROPDOWNS
==============================================================================*/

.has-sub {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #490000;
    border-radius: 10px;
    flex-direction: column;
    padding: 8px 0;
    z-index: 999;
}

@media (hover: hover) {
    .has-sub:hover .sub-menu {
        display: flex;
    }
}

.sub-menu a {
    padding: 10px 15px;
    color: #fff;
}

.sub-menu a:hover {
    color: #e5a40f;
}

/*==============================================================================
= TABLET
==============================================================================*/

@media (max-width: 1024px) and (min-width: 769px) {
    .desktop-header {
        gap: 20px;
        padding: 20px;
    }

    .logo img {
        height: 90px;
    }

    .desktop-header a {
        font-size: 14px;
        padding: 0 5px;
    }
}

/*==============================================================================
= MOBILE
==============================================================================*/

@media (max-width: 768px) {

    .desktop-header {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    /* MOBILE BAR */
    .mobile-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    .mobile-bar .logo img {
        height: 70px;
        transform: none;
    }

    .hamburger {
        font-size: 28px;
        cursor: pointer;
        color: #e5a40f;
    }

    /* MOBILE OVERLAY */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #1e1d22;
        z-index: 9999;
        flex-direction: column;
        padding: 20px 30px;
        overflow-y: auto;
    }

    .mobile-overlay.active {
        display: flex;
    }

    /* OVERLAY TOP BAR */
    .mobile-overlay-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
    }

    .mobile-overlay-bar .logo img {
        height: 70px;
        transform: none;
    }

    .close-btn {
        font-size: 28px;
        cursor: pointer;
        color: #e5a40f;
    }

    /* MOBILE NAV */
    .mobile-nav {
        display: flex;
        flex-direction: column;
        width: 220px;
        align-self: center;
        gap: 0;
    }

    .mobile-nav a {
        text-decoration: none;
        color: #ffffff;
        padding: 6px 0;
        display: block;
        font-size: 16px;
        font-weight: 600;
        text-transform: uppercase;
        -webkit-tap-highlight-color: transparent;
    }

    @media (hover: hover) {
        .mobile-nav a:hover {
            color: #e5a40f;
        }
    }

    /* MOBILE HAS-SUB */
    .mobile-nav .has-sub {
        position: relative;
        width: 100%;
        display: block;
    }

    .mobile-nav .has-sub > a {
        width: calc(100% - 42px);
    }

    /* ARROW BOX */
    .mobile-nav .has-sub::before {
        content: "▼";
        position: absolute;
        right: 0;
        top: 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        font-size: 9px;
        background-color: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 4px;
        color: #ffffff;
        z-index: 20;
        transition: all 0.2s ease;
    }

    .mobile-nav .has-sub.open::before {
        background-color: #e5a40f;
        border-color: #e5a40f;
        color: #1e1d22;
        content: "▲";
    }

    .mobile-nav .has-sub.open > a {
        color: #e5a40f;
    }

    /* HOME LINK NO ARROW */
    .mobile-nav > div:first-child::before {
        display: none;
    }

    .mobile-nav > div:first-child > a {
        width: 100%;
    }

    /* MOBILE SUBMENU DRAWER */
    .mobile-nav .sub-menu {
        display: none;
        position: relative;
        width: 100%;
        margin-top: 8px;
        background: rgba(134,128,124,0.1);
        border-radius: 6px;
        padding: 8px 15px;
        flex-direction: column;
    }

    .mobile-nav .has-sub.open .sub-menu {
        display: flex;
        flex-direction: column;
    }

    .mobile-nav .sub-menu a {
        padding: 6px 0;
        width: 100%;
        color: #ffffff;
    }
    
    .mobile-nav .has-sub:hover .sub-menu {
        display: none;
    }
    
}