/* ==========================================================================
   대성금재 공식 플랫폼 전역 공통 헤더(Header) - 하이엔드 정밀 반응형 아키텍처
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 1. 글로벌 헤더 및 내비게이션 바 기본 레이아웃
   ────────────────────────────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4.5rem;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.05);
}

.navbar {
    position: relative;
    z-index: 1101;
    margin: 0 auto;
    height: 100%;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    font-family: 'Jost', sans-serif !important;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 2.25rem;
    width: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease;
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 2. 우측 버튼 그룹 및 유저 세션 존
   ────────────────────────────────────────────────────────────────────────── */
.nav-right-buttons {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 1.25rem;
    z-index: 1102;
}

.join {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.header-join-img {
    width: 1.75rem;
    height: 1.75rem;
    display: block;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.header-join-img:hover {
    transform: scale(1.08);
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 3. 글로벌 햄버거 토글 아이콘 연출 기법
   ────────────────────────────────────────────────────────────────────────── */
.right-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.right-menu-icon label {
    width: 1.75rem;
    height: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    margin: 0;
}

.right-menu-icon span {
    display: block;
    width: 100%;
    height: 0.125rem;
    background: #fff;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

#menu-toggle:checked ~ .navbar .right-menu-icon span:nth-child(1) {
    transform: translateY(0.5625rem) rotate(45deg);
}

#menu-toggle:checked ~ .navbar .right-menu-icon span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked ~ .navbar .right-menu-icon span:nth-child(3) {
    transform: translateY(-0.5625rem) rotate(-45deg);
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 4. 풀스크린 사이드 메인 내비게이션 레이어
   ────────────────────────────────────────────────────────────────────────── */
.side_menu {
    position: fixed;
    inset: 0;
    background: #000000;
    color: #ffffff;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#menu-toggle:checked ~ .side_menu {
    opacity: 1;
    visibility: visible;
}

.side_logo {
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
}

.side_logo img {
    height: 1.625rem;
}

.side_menu_menu {
    max-width: 87.5rem;
    margin: 13.75rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6.25rem;
    text-align: left;
    padding: 0 2rem;
    box-sizing: border-box;
}

.menu_group {
    margin-bottom: 2.5rem;
}

.menu_title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    letter-spacing: 0.04em;
}

.menu_group a {
    display: block;
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0.75rem 0;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.menu_group a:hover {
    color: #bca47b;
    text-decoration: underline;
}



/* ==========================================================================
   BREAKPOINT INTERFACE BREAKDOWN
   ========================================================================== */

/* ── 1. 와이드 와이드 모니터 대역 (Min 1440px) ── */
@media (min-width: 1440px) {
    .navbar {
        padding: 0 3.5rem;
    }
    .side_menu_menu {
        max-width: 1400px;
        gap: 6.25rem;
    }
}

/* ── 2. 슬림형 데스크톱 및 랩톱 패널 (1024px ~ 1439px) ── */
@media (max-width: 1439px) and (min-width: 1024px) {
    .side_menu_menu {
        max-width: 1200px;
        gap: 4rem;
        margin-top: 12rem;
    }
    .menu_title {
        font-size: 1.15rem;
    }
    .menu_group a {
        font-size: 1rem;
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .navbar {
        padding: 0 2rem;
    }

    .side_menu_menu {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        margin-top: 10rem;
    }

    .menu_title {
        font-size: 1.1rem;
    }

    .menu_group a {
        font-size: 0.95rem;
    }

    .side_sns {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 6rem !important;
        padding-bottom: 4rem !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 3rem;
    }
}

@media (max-width: 767px) {
    .site-header {
        height: 4rem;
    }
    .navbar {
        padding: 0 1.5rem;
    }
    .logo a {
        font-size: 1.3rem;
    }
    .nav-right-buttons {
        gap: 1rem;
    }
    .header-join-img {
        width: 1.8rem;
        height: 1.8rem;
    }
    .side_menu_menu {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
        margin-top: 8rem;
        padding: 0 1.5rem;
    }
    .menu_title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .menu_group a {
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }
    .side_sns {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 5rem !important;
        padding-bottom: 3.5rem !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2.5rem;
    }
    .side_sns img {
        width: 1.75rem;
    }
}

@media (max-width: 479px) {
    .navbar {
        padding: 0 1.25rem;
    }
    .logo a {
        font-size: 1.15rem !important;
        letter-spacing: 0.05em !important;
    }
    .logo img, .header-logo-img, .side_logo img {
        height: 1.6rem !important;
        width: auto !important;
        object-fit: contain !important;
    }
    .join {
        display: none;
    }
    .nav-right-buttons {
        gap: 0.75rem;
    }
    .header-join-img {
        width: 1.6rem;
        height: 1.6rem;
    }

    .right-menu-icon label {
        width: 1.3rem;
        height: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    #menu-toggle:checked ~ .navbar .right-menu-icon span:nth-child(1) {
        transform: translateY(0.4375rem) rotate(45deg) !important;
    }

    #menu-toggle:checked ~ .navbar .right-menu-icon span:nth-child(2) {
        opacity: 0 !important;
    }

    #menu-toggle:checked ~ .navbar .right-menu-icon span:nth-child(3) {
        transform: translateY(-0.4375rem) rotate(-45deg) !important;
    }

    .right-menu-icon label span {
        position: static;
        left: auto;
        top: auto;
        transform: none;
    }

    .side_menu {
        display: block !important;
        background: #000000 !important;
    }

    .side_menu_menu {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin-top: 5rem !important;
        padding: 0 1.5rem !important;
    }

    .menu_group {
        margin-bottom: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 0.2rem 0;
    }

    .menu_title_toggle {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        cursor: pointer !important;
        margin-bottom: 0 !important;
        padding: 1.1rem 0 !important;
        border-bottom: none !important;
    }

    .menu_title_toggle::after {
        content: "＋" !important;
        font-size: 1.1rem !important;
        font-weight: 400;
        color: #ffffff;
        transition: transform 0.3s ease !important;
    }

    .menu_group.active .menu_title_toggle::after {
        content: "－" !important;
    }

    .menu_group a {
        display: none !important;
        font-size: 0.95rem !important;
        font-weight: 500;
        margin: 0 !important;
        padding: 0.65rem 0 0.65rem 0.2rem !important;
        color: rgba(255, 255, 255, 0.65) !important;
    }

    .menu_group.active a {
        display: block !important;
    }

    .menu_group.active a:last-child {
        padding-bottom: 1.1rem !important;
    }

    .side_sns {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 3.5rem !important;
        padding: 1.5rem 0 4rem 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2.2rem !important;
        background: transparent !important;
    }

    .side_sns a {
        display: inline-flex !important;
    }

    .side_sns img {
        width: 1.5rem !important;
        height: 1.5rem !important;
        display: block !important;
    }
}