/* ============================================
   SS TRADE — Shared Navbar & Language Picker
   ============================================ */

#siteNav {
    background: #ff6b35;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 80px;
}

.nav-inner {
    max-width: 1700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 2rem;
}

/* Logo — image + text */
.nav-logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin-right: -8px;
}

/* Nav Links */
#siteNavMenu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

#siteNavMenu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.7rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

#siteNavMenu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

#siteNavMenu a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* ===========================
   Language Toggle Button
   =========================== */
#langToggleBtn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 22px;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: 0.5px;
    line-height: 1;
    flex-shrink: 0;
}

#langToggleBtn:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
}

#langToggleBtn:active {
    transform: scale(0.95);
}

#langToggleBtn .lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
}

/* ===========================
   Language Dropdown
   =========================== */
.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    overflow: hidden;
    z-index: 1001;
    min-width: 90px;
}

.lang-dropdown.open {
    display: block;
}

.lang-dropdown-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.9rem;
    border: none;
    background: transparent;
    color: #222;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.lang-dropdown-option:hover {
    background: #f0f0f0;
}

.lang-dropdown-option .lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

/* ===========================
   Mobile Toggle Button
   =========================== */
#siteNavToggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
}

/* ===========================
   Mobile (≤768px)
   =========================== */
@media (max-width: 768px) {
    body {
        padding-top: 70px !important;
    }

    #siteNav {
        padding: 0 0.75rem;
        height: 70px;
    }

    .nav-inner {
        gap: 0.4rem;
    }

    .nav-logo {
        font-size: 1rem;
        letter-spacing: 1px;
        flex: 1;
        min-width: 0;
    }

    .nav-logo span {
        font-size: 1.1rem !important;
        margin-left: -8px !important;
    }

    .nav-logo-img {
        height: 50px;
    }

    #siteNavMenu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #ff6b35;
        flex-direction: column;
        padding: 0.5rem 0;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        z-index: 999;
    }

    #siteNavMenu.show {
        display: flex;
    }

    #siteNavMenu li {
        width: 100%;
    }

    #siteNavMenu a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.9rem 1rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 0.9rem;
    }

    #siteNavMenu a:hover,
    #siteNavMenu a.active {
        background: rgba(255,255,255,0.12);
    }

    #siteNavToggle {
        display: block;
        padding: 0.4rem;
        font-size: 1.3rem;
    }

    #langToggleBtn {
        margin-left: auto;
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
    }
}

/* Footer mobile overrides (shared across pages) */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 1rem 1.5rem;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        font-size: 0.8rem;
    }
    .footer-bottom p {
        line-height: 1.8;
    }
}
