/* ============================================================
   OVERLAY MOBILE
   ============================================================ */
.overlay-m {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.overlay-m.active {
    display: block;
    opacity: 1;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
    /* position: fixed;
    top: 0;
    left: 0;
    right: 0; */
    position: relative;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(224, 162, 66, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0;
}

.site-header.affix {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(6, 6, 6, 0.98);
    box-shadow: 0 2px 32px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(224, 162, 66, 0.25);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* ============================================================
   LOGO
   ============================================================ */
.site-header__logo {
    display: flex;
}

.site-header__logo img {
    width: 100%;
    max-width: 240px;
}

/* ============================================================
   NAV — UNIFIED (Desktop inline / Mobile drawer)
   ============================================================ */

/* Mobile-only elements hidden on desktop */
.site-header__nav-head,
.site-header__nav-footer {
    display: none;
}

.site-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-header__menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.site-header__item {
    position: relative;
}

.site-header__link {
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.1px;
    position: relative;
}

.site-header__link::after {
    /* content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #e0a242;
    border-radius: 2px;
    transition: width 0.3s ease; */

    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    /* mặc định ẩn */
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(234, 179, 8, 0.2) 15%,
            rgba(234, 179, 8, 0.7) 35%,
            #EAB308 50%,
            rgba(234, 179, 8, 0.7) 65%,
            rgba(234, 179, 8, 0.2) 85%,
            transparent 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* .site-header__link:hover::after,
.site-header__link.active::after {

} */

.site-header__item:hover>.site-header__link,
.site-header__item.active>.site-header__link {
    color: #e0a242;
}

.site-header__item.active>.site-header__link::after,
.site-header__item:hover>.site-header__link::after,
.site-header__link.active::after {
    width: 120%;
}

.site-header__chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.site-header__item.has-dropdown:hover>.site-header__link .site-header__chevron {
    transform: rotate(180deg);
}

/* ============================================================
   DROPDOWN LEVEL 2
   ============================================================ */
.site-header__dropdown {
    display: none;
    position: absolute;
    top: calc(100%);
    left: 0;
    background: #1a1a1a;
    border: 1px solid rgba(224, 162, 66, 0.2);
    border-radius: 10px;
    min-width: 220px;
    list-style: none;
    padding: 8px 0;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(224, 162, 66, 0.05);
    animation: dropdownFadeIn 0.2s ease forwards;
    z-index: 100;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-header__item.has-dropdown:hover>.site-header__dropdown {
    display: block;
}

/* .site-header__dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #1a1a1a;
    border-top: 1px solid rgba(224, 162, 66, 0.2);
    border-left: 1px solid rgba(224, 162, 66, 0.2);
    transform: rotate(45deg);
} */

.site-header__dropdown-item {
    position: relative;
}

.site-header__dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 8px;
}

.site-header__dropdown-link:hover {
    color: #e0a242;
    background: rgba(224, 162, 66, 0.08);
    padding-left: 24px;
}

.site-header__chevron-right {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.6;
}

/* ============================================================
   SUBMENU LEVEL 3
   ============================================================ */
.site-header__submenu {
    display: none;
    position: absolute;
    top: -8px;
    left: calc(100% + 4px);
    background: #1e1e1e;
    border: 1px solid rgba(224, 162, 66, 0.2);
    border-radius: 10px;
    min-width: 200px;
    list-style: none;
    padding: 8px 0;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    animation: dropdownFadeIn 0.2s ease forwards;
    z-index: 101;
}

.site-header__dropdown-item.has-submenu:hover>.site-header__submenu {
    display: block;
}

.site-header__submenu li a {
    display: block;
    padding: 9px 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header__submenu li a:hover {
    color: #e0a242;
    background: rgba(224, 162, 66, 0.08);
    padding-left: 24px;
}

/* ============================================================
   HEADER ACTIONS
   ============================================================ */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Search Button */
.site-header__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header__search-btn svg {
    width: 17px;
    height: 17px;
}

.site-header__search-btn:hover {
    background: rgba(224, 162, 66, 0.15);
    border-color: #e0a242;
    color: #e0a242;
    transform: scale(1.05);
}

/* Newsletter Button */
.site-header__newsletter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #e0a242;
    border: 1.5px solid #e0a242;
    border-radius: 8px;
    color: #000;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.site-header__newsletter-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.site-header__newsletter-btn:hover {
    background: #e0a242;
    color: #000;
    box-shadow: 0 4px 24px rgba(224, 162, 66, 0.2);
    transform: translateY(-1px);
}

.site-header__newsletter-btn.w-100 {
    width: 100%;
    justify-content: center;
    font-size: 14px;
    padding: 12px 20px;
}

/* Hamburger */
.site-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.site-header__hamburger:hover {
    background: rgba(224, 162, 66, 0.1);
    border-color: #e0a242;
}

.site-header__hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   NAV DRAWER — Mobile header & footer (hidden on desktop)
   ============================================================ */
.site-header__nav-head {
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(224, 162, 66, 0.2);
    flex-shrink: 0;
}

.site-header__nav-head .site-header__logo img {
    max-width: 150px;
}

.site-header__nav-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.site-header__nav-close svg {
    width: 18px;
    height: 18px;
}

.site-header__nav-close:hover {
    background: rgba(224, 162, 66, 0.15);
    border-color: #e0a242;
    color: #e0a242;
}

.site-header__nav-footer {
    padding: 16px 20px 24px;
    border-top: 1px solid rgba(224, 162, 66, 0.2);
    flex-shrink: 0;
}

/* Mobile accordion toggle button */
.nav-toggle-btn {
    display: none;
    width: 40px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: auto;
}

.nav-toggle-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.nav-toggle-btn.open svg {
    transform: rotate(180deg);
}

.nav-toggle-btn:hover {
    color: #e0a242;
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.search-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.search-overlay__box {
    position: relative;
    z-index: 1;
    width: min(720px, 92vw);
    margin-top: 80px;
}

.search-overlay__form {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1.5px solid #e0a242;
    border-radius: 12px;
    padding: 4px 12px 4px 20px;
    box-shadow: 0 4px 24px rgba(224, 162, 66, 0.2);
    gap: 12px;
}

.search-overlay__icon {
    width: 20px;
    height: 20px;
    color: #e0a242;
    flex-shrink: 0;
}

.search-overlay__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    padding: 14px 0;
}

.search-overlay__input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.search-overlay__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.search-overlay__close svg {
    width: 16px;
    height: 16px;
}

.search-overlay__close:hover {
    background: rgba(224, 162, 66, 0.15);
    border-color: #e0a242;
    color: #e0a242;
}

/* ============================================================
   NEWSLETTER MODAL
   ============================================================ */
.newsletter-modal {
    position: fixed;
    inset: 0;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.newsletter-modal.active {
    opacity: 1;
    pointer-events: all;
}

.newsletter-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.newsletter-modal__box {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    background: #141414;
    border: 1px solid rgba(224, 162, 66, 0.25);
    border-radius: 20px;
    padding: 30px 36px 25px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(224, 162, 66, 0.08);
    animation: modalSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.newsletter-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-modal__close svg {
    width: 15px;
    height: 15px;
}

.newsletter-modal__close:hover {
    background: rgba(224, 162, 66, 0.15);
    border-color: #e0a242;
    color: #e0a242;
}

.newsletter-modal__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.newsletter-modal__icon svg {
    width: 55px;
    height: 55px;
}

.newsletter-modal__title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.newsletter-modal__desc {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.newsletter-modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.newsletter-modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.newsletter-modal__field label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.newsletter-modal__field input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-modal__field input:focus {
    border-color: #e0a242;
    background: rgba(224, 162, 66, 0.05);
    box-shadow: 0 0 0 3px rgba(224, 162, 66, 0.12);
}

.newsletter-modal__field input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.newsletter-modal__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    background: #e0a242;
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 4px;
}

.newsletter-modal__submit svg {
    width: 16px;
    height: 16px;
}

.newsletter-modal__submit:hover {
    background: #c8882e;
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(224, 162, 66, 0.2);
}

/* ============================================================
   RESPONSIVE — TABLET & MOBILE (≤ 992px): Nav becomes drawer
   ============================================================ */
@media (max-width: 992px) {

    /* Nav becomes a fixed right-side drawer */
    .site-header__nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: #000;
        border-left: 1px solid rgba(224, 162, 66, 0.2);
        z-index: 1999;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .site-header__nav.active {
        left: 0;
    }

    /* Show mobile-only elements */
    .site-header__nav-head {
        display: flex;
    }

    .site-header__nav-footer {
        display: block;
    }

    .nav-toggle-btn {
        display: flex;
    }

    /* Menu list becomes vertical */
    .site-header__menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
        flex: 1;
    }

    .site-header__item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .site-header__link {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 0;
        white-space: normal;
        justify-content: space-between;
    }

    .site-header__link::after {
        display: none;
    }

    .site-header__item:hover>.site-header__link,
    .site-header__item.active>.site-header__link {
        color: #e0a242;
        background: rgba(224, 162, 66, 0.06);
    }

    /* Dropdown: accordion instead of hover flyout */
    .site-header__dropdown {
        position: static;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        animation: none;
        padding: 0;
        min-width: 0;
        display: none;
    }

    .site-header__dropdown::before {
        display: none;
    }

    .site-header__item.has-dropdown:hover>.site-header__dropdown {
        display: none;
        /* disable hover on mobile */
    }

    .site-header__item.has-dropdown.open>.site-header__dropdown {
        display: block;
    }

    .site-header__dropdown-link {
        padding: 11px 20px 11px 36px;
        font-size: 13.5px;
        color: rgba(255, 255, 255, 0.6);
    }

    .site-header__dropdown-link:hover {
        padding-left: 44px;
    }

    /* Submenu: also accordion */
    .site-header__submenu {
        position: static;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        animation: none;
        padding: 0;
        min-width: 0;
        display: none;
    }

    .site-header__dropdown-item.has-submenu:hover>.site-header__submenu {
        display: none;
        /* disable hover on mobile */
    }

    .site-header__dropdown-item.has-submenu.open>.site-header__submenu {
        display: block;
    }

    .site-header__submenu li a {
        padding: 10px 20px 10px 52px;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.5);
    }

    .site-header__submenu li a:hover {
        padding-left: 58px;
    }

    /* Show hamburger, hide newsletter text */
    .site-header__actions .site-header__newsletter-btn span {
        display: none;
    }

    .site-header__newsletter-btn {
        padding: 8px 10px;
    }

    .site-header__hamburger {
        display: flex;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

    .site-header__actions .site-header__newsletter-btn {
        display: none;
    }

    .site-header__actions {
        gap: 8px;
    }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 575px)
   ============================================================ */
@media (max-width: 575px) {

    .newsletter-modal__box {
        padding: 28px 20px 24px;
    }
}

/* ============================================================
   RESPONSIVE — EXTRA SMALL (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
    .newsletter-modal__title {
        font-size: 19px;
    }
}