/* ============================================
   EMA BACKFEE - HEADER STYLES
   ============================================ */

/* Variables */
:root {
    --header-bg: #000000;
    --header-border: #222;
    --gold-logo: #f2cc07;
    --gold-btn: #b3a25d;
    --gold-hover: #d4af37;
    --text-white: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
    --header-height: 80px;
}

/* Base Reset for Header Only */
.site-header * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
}

.site-header {
    background-color: var(--header-bg);
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.container {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo img {
    height: 50px;
    display: block;
}

/* Desktop Menu */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu ul li {
    position: relative;
    padding: 20px 0;
}

.nav-menu ul li a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu ul li a:hover {
    color: var(--gold-logo);
}

/* Dropdown Menu */
.nav-menu .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #111;
    min-width: 220px;
    padding: 10px 0;
    border-top: 2px solid var(--gold-logo);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease-out;
    list-style: none;
    display: block !important; /* Ensure it stays in vertical list */
}

.nav-menu ul li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown li {
    padding: 0;
}

.nav-menu .dropdown li a {
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-white);
    display: block;
    width: 100%;
}

.nav-menu .dropdown li a:hover {
    background-color: #1a1a1a;
    color: var(--gold-logo);
    padding-left: 25px;
}

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    cursor: pointer;
    font-weight: 600;
    position: relative;
    padding: 20px 0;
}

.flag {
    width: 18px;
    height: auto;
    border-radius: 2px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #111;
    list-style: none;
    min-width: 140px;
    display: none;
    border: 1px solid #333;
    padding: 8px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.lang-switcher:hover .lang-dropdown {
    display: block;
}

.lang-dropdown li a {
    color: var(--text-white);
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    font-size: 13.5px;
    transition: background 0.2s;
}

.lang-dropdown li a:hover {
    background-color: #222;
    color: var(--gold-logo);
}

/* Contact Button */
.btn-contact {
    background-color: var(--gold-btn);
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.btn-contact:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(179, 162, 93, 0.4);
}

/* ============================================
   MOBILE MENU & HAMBURGER
   ============================================ */

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 35px;
    height: 35px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    width: 100%;
    transition: all 0.3s;
}

.mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: #111;
    z-index: 9998;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding-bottom: 50px;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-list {
    list-style: none;
    padding: 20px 0;
}

.mobile-item {
    border-bottom: 1px solid #222;
}

.mobile-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 24px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    background: none;
    border: none;
    text-align: left;
}

.mobile-item.has-dropdown .mobile-link i {
    transition: transform 0.3s;
}

.mobile-item.has-dropdown.is-open .mobile-link i {
    transform: rotate(180deg);
}

.mobile-dropdown {
    display: none;
    background-color: #0d0d0d;
    list-style: none;
    padding: 5px 0 15px 0;
}

.mobile-dropdown li a {
    display: block;
    padding: 10px 40px;
    color: #ccc;
    text-decoration: none;
    font-size: 14.5px;
}

.mobile-lang-switcher {
    padding: 20px 24px;
    display: flex;
    gap: 15px;
}

.mobile-lang-switcher a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    text-decoration: none;
    font-size: 14px;
}

.mobile-lang-switcher a.active {
    color: var(--gold-logo);
    font-weight: 600;
}

.btn-contact-mobile {
    margin: 10px 24px;
    display: block;
    background: var(--gold-btn);
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

/* Overlay */
.mobile-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.mobile-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Icon */
.fa-chevron-down {
    font-size: 10px;
    margin-left: 5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    .lang-switcher, .btn-contact {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
}