/* =========================================================
   COMMON NAVIGATION
   - Hero 위: 옅은 반투명 네이비(이미지는 비치고 메뉴는 선명)
   - Hero 통과 후: 진한 반투명 네이비
   - PC / Mobile 공통
   ========================================================= */

.desktop-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 3000;
    height: 78px;
    display: flex;
    align-items: center;
    padding: 0 2.4rem;
    color: #fff;

    /*
     * 처음부터 완전 투명하게 두지 않고 적당히 불투명한 네이비 유리막을 사용합니다.
     * 헤더 이미지는 충분히 비치면서 흰색 로고/메뉴의 대비를 확보합니다.
     */
    background: rgba(10, 6, 37, .76) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 3px 16px rgba(0, 0, 0, .08);
    -webkit-backdrop-filter: blur(7px) saturate(112%);
    backdrop-filter: blur(7px) saturate(112%);

    transition:
            background-color .28s ease,
            border-color .28s ease,
            box-shadow .28s ease,
            backdrop-filter .28s ease;
}

/* 밝은 헤더 이미지에서도 메뉴가 또렷하게 보이도록 대비를 조금 강화 */
.desktop-nav:not(.is-scrolled) .header-menu a {
    color: rgba(255, 255, 255, .96);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.desktop-nav:not(.is-scrolled) .header-logo img {
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .18));
}

/* Hero 영역을 벗어난 뒤 */
body .desktop-nav.is-scrolled {
    background: rgba(10, 6, 37, .97) !important;
    border-bottom-color: rgba(255, 255, 255, .10);
    box-shadow: 0 7px 24px rgba(0, 0, 0, .12);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    backdrop-filter: blur(12px) saturate(120%);
}

.header-logo {
    width: 178px;
    min-width: 178px;
    height: 78px;
    display: flex;
    align-items: center;
    margin-right: auto;
}

.header-logo img {
    width: 164px;
    max-height: 50px;
    object-fit: contain;
    object-position: left center;
}

.header-menu {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-menu li {
    height: 100%;
}

.header-menu a {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, .88);
    font-size: .9rem;
    font-weight: 710;
    letter-spacing: -.02em;
    white-space: nowrap;
    transition: color .2s ease, text-shadow .28s ease;
}

.header-menu a::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ps-gold), transparent);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.header-menu a:hover,
.header-menu a.active {
    color: #fff;
}

.header-menu a:hover::after,
.header-menu a.active::after {
    transform: scaleX(1);
}

.header-call {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 1.65rem;
    padding: 0 16px;
    color: #100a39;
    background: linear-gradient(135deg, #eadab8, #b99350);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 850;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
}

.header-call:hover {
    color: #100a39;
    transform: translateY(-1px);
}

.mobile-topbar {
    display: none;
}

.mobile-sidebar,
.sidebar-backdrop {
    display: none;
}

@media (max-width: 1220px) and (min-width: 992px) {
    .desktop-nav {
        padding: 0 1rem;
    }

    .header-logo {
        width: 144px;
        min-width: 144px;
    }

    .header-logo img {
        width: 136px;
    }

    .header-menu {
        gap: .72rem;
    }

    .header-menu a {
        font-size: .82rem;
    }

    .header-call {
        margin-left: .75rem;
        padding: 0 12px;
        font-size: .75rem;
    }
}

@media (max-width: 991.98px) {
    .desktop-nav {
        display: none;
    }

    .mobile-topbar {
        position: fixed;
        inset: 0 0 auto 0;
        z-index: 3000;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 14px 0 18px;
        color: #fff;

        /* 모바일도 완전 투명 대신 불투명도를 높인 네이비 유리막 */
        background: rgba(10, 6, 37, .82) !important;
        border-bottom: 1px solid rgba(255, 255, 255, .16);
        box-shadow: 0 3px 14px rgba(0, 0, 0, .08);
        -webkit-backdrop-filter: blur(7px) saturate(112%);
        backdrop-filter: blur(7px) saturate(112%);

        transition:
                background-color .28s ease,
                border-color .28s ease,
                box-shadow .28s ease,
                backdrop-filter .28s ease;
    }

    /* Hero 영역을 벗어난 뒤 */
    body .mobile-topbar.is-scrolled {
        background: rgba(10, 6, 37, .98) !important;
        border-bottom-color: rgba(255, 255, 255, .09);
        box-shadow: 0 5px 18px rgba(0, 0, 0, .11);
        -webkit-backdrop-filter: blur(12px) saturate(120%);
        backdrop-filter: blur(12px) saturate(120%);
    }

    .mobile-logo {
        width: 150px;
        height: 70px;
        display: flex;
        align-items: center;
    }

    .mobile-logo img {
        width: 142px;
        max-height: 42px;
        object-fit: contain;
        object-position: left center;
        filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .18));
    }

    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-call {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0 10px;
        color: #100a39;
        background: #d7bd86;
        border-radius: 9px;
        font-size: .72rem;
        font-weight: 850;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        background: rgba(8, 5, 31, .26);
        border: 1px solid rgba(255, 255, 255, .30);
        border-radius: 10px;
        text-shadow: 0 1px 3px rgba(0, 0, 0, .18);
    }

    .mobile-topbar.is-scrolled .menu-toggle {
        background: transparent;
    }

    .mobile-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 4001;
        width: min(310px, 86vw);
        height: 100dvh;
        display: block;
        padding: 88px 20px 28px;
        overflow-y: auto;
        transform: translateX(100%);
        color: #fff;
        background: linear-gradient(180deg, #17112f, #08051f);
        border-left: 1px solid rgba(255, 255, 255, .09);
        box-shadow: -20px 0 50px rgba(0, 0, 0, .3);
        transition: transform .3s ease;
    }

    .mobile-sidebar.is-open {
        transform: translateX(0);
    }

    .mobile-menu {
        display: grid;
        gap: 5px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-menu a {
        display: block;
        padding: 13px 12px;
        color: rgba(255, 255, 255, .76);
        border-radius: 10px;
        font-size: .96rem;
        font-weight: 730;
    }

    .mobile-menu a:hover,
    .mobile-menu a.active {
        color: #fff;
        background: rgba(255, 255, 255, .08);
    }

    .mobile-sidebar__close {
        position: absolute;
        top: 16px;
        right: 15px;
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, .19);
        border-radius: 10px;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 4000;
        display: block;
        opacity: 0;
        visibility: hidden;
        background: rgba(0, 0, 0, .54);
        backdrop-filter: blur(3px);
        transition: opacity .25s ease, visibility .25s ease;
    }

    .sidebar-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 390px) {
    .mobile-topbar {
        padding-left: 13px;
        padding-right: 9px;
    }

    .mobile-logo {
        width: 128px;
    }

    .mobile-logo img {
        width: 124px;
    }

    .mobile-call {
        padding: 0 8px;
        font-size: .67rem;
    }
}
