/* =============================================
   근영방수 - 헤더 CSS
   PC 메가메뉴 + 모바일 드로어 메뉴
   ============================================= */

/* ========== CSS Variables ========== */
:root {
    --header-height: 80px;
    --header-height-mobile: 64px;
    --banner-height: 48px;
    --primary-blue: #0047AB;
    --primary-blue-dark: #003580;
    --yellow: #FFD100;
    --white: #FFFFFF;
    --black: #1a1a1a;
    --gray-light: #F8F8F8;
    --gray-medium: #E5E5E5;
    --gray-dark: #666666;
}

/* ========================================
   TOP BANNER
======================================== */
.top-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
    height: var(--banner-height);
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    transition: transform 0.3s ease;
}

.top-banner.hidden {
    transform: translateY(-100%);
}

.top-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.top-banner-icon {
    font-size: 1.25rem;
}

.top-banner-text {
    color: rgba(255, 255, 255, 0.95);
}

.top-banner-text strong {
    color: var(--yellow);
    font-weight: 700;
}

.top-banner-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--yellow);
    color: var(--black);
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.top-banner-phone:hover {
    background: var(--white);
    transform: scale(1.02);
}

.top-banner-close {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    position: absolute;
    right: 1.5rem;
}

.top-banner-close:hover {
    color: var(--white);
}

.top-banner-close .close-icon {
    font-size: 1rem;
    font-weight: 700;
}

/* ========================================
   HEADER BASE
======================================== */
.header {
    position: fixed;
    top: var(--banner-height);
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1001;
    border-bottom: 2px solid var(--gray-medium);
    transition: top 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
}

.header.banner-hidden {
    top: 0;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ========================================
   HEADER CONTAINER
======================================== */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   LOGO
======================================== */
.header-logo {
    flex-shrink: 0;
}

.header-logo a {
    display: flex;
    align-items: center;
    /* gap: 0.75rem; */
    text-decoration: none;
}

.header-logo img {
    height: 56px;
    width: auto;
    transition: height 0.3s ease;
}

.header-logo-text {
    font-family: 'Gmarket Sans', 'Pretendard';
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-blue);
    transition: font-size 0.3s ease;
}

/* ========================================
   NAVIGATION (PC)
======================================== */
.header-nav {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    justify-content: center;
}

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

.nav-item {
    position: static;
    height: 100%;
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1.75rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-item.active > .nav-link {
    color: var(--primary-blue);
}

.nav-item:hover > .nav-link::after,
.nav-item.active > .nav-link::after {
    transform: translateX(-50%) scale(1);
}

/* 모바일 화살표 - PC에서 숨김 */
.nav-arrow {
    display: none;
}

/* ========================================
   MEGA MENU (PC)
======================================== */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 3px solid var(--primary-blue);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.nav-item:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.05s;
}

.page-loading .mega-menu {
    display: none !important;
}

.mega-menu-inner {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 320px;
}

/* Mega Menu Banner (좌측) */
.mega-menu-banner {
    width: 300px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--primary-blue) 0%, #002d6b 100%);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mega-banner-content {
    color: var(--white);
}

.mega-banner-badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
}

.mega-banner-content strong {
    display: block;
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.mega-banner-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.mega-banner-btn {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mega-banner-btn:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Mega Menu Content (우측) */
.mega-menu-content {
    flex: 1;
    display: flex;
    padding: 2rem 2.5rem;
    gap: 2rem;
    background: var(--white);
}

.mega-menu-column {
    flex: 1;
    min-width: 200px;
}

.mega-menu-title {
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-medium);
}

.mega-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu-list li {
    list-style: none;
    margin-bottom: 0.125rem;
}

.mega-menu-list a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 0.75rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mega-menu-list a:hover,
.mega-menu-list a.active {
    background: #F0F7FF;
}

.mega-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mega-menu-list a:hover .mega-icon {
    background: var(--primary-blue);
    transform: scale(1.05);
}

.mega-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.mega-text strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
    transition: color 0.2s ease;
}

.mega-menu-list a:hover .mega-text strong {
    color: var(--primary-blue);
}

.mega-text small {
    font-size: 0.75rem;
    color: #888888;
    line-height: 1.3;
}

/* ========================================
   HEADER RIGHT
======================================== */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--yellow);
    color: var(--black);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.header-cta:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.3);
}

.header-cta-icon {
    font-size: 1rem;
}

/* ========================================
   MOBILE MENU TOGGLE (햄버거 버튼)
======================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1005;
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ========================================
   HEADER SPACER
======================================== */
.header-spacer {
    height: calc(var(--banner-height) + var(--header-height));
}

.header-spacer.banner-hidden {
    height: var(--header-height);
}

/* ========================================
   MOBILE OVERLAY
======================================== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ========================================
   MOBILE NAV CTA (모바일 메뉴 하단)
======================================== */
.mobile-nav-cta {
    display: none;
    padding: 1.5rem 1.25rem;
    background: var(--gray-light);
    border-top: 1px solid var(--gray-medium);
    margin-top: auto;
}

.mobile-nav-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: background 0.3s ease;
}

.mobile-nav-phone:active {
    background: var(--primary-blue-dark);
}

.mobile-nav-phone svg {
    width: 20px;
    height: 20px;
}

.mobile-nav-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem;
    background: var(--white);
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-contact:active {
    background: var(--primary-blue);
    color: var(--white);
}

.mobile-nav-hours {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin-top: 1rem;
}

/* ========================================
   BODY SCROLL LOCK
======================================== */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ========================================
   ========================================
   RESPONSIVE - TABLET & MOBILE (1200px 이하)
   ========================================
======================================== */
@media (max-width: 1200px) {
    
    /* ===== 1. 상단 배너 모바일에서 숨김 ===== */
    .top-banner {
        display: none !important;
    }
    
    .header {
        top: 0;
        height: var(--header-height-mobile);
    }
    
    .header-spacer {
        height: var(--header-height-mobile);
    }
    
    .header-spacer.banner-hidden {
        height: var(--header-height-mobile);
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .header-logo img {
        height: 44px;
    }
    
    .header-logo-text {
        font-size: 1.4rem;
    }
    
    /* ===== 2. 햄버거 버튼 표시 ===== */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* ===== 헤더 CTA 조정 ===== */
    .header-cta {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .header-cta-text {
        display: none;
    }
    
    /* ===== 모바일 네비게이션 드로어 ===== */
    .header-nav {
        position: fixed;
        top: var(--header-height-mobile);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - var(--header-height-mobile));
        height: calc(100dvh - var(--header-height-mobile));
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        -webkit-overflow-scrolling: touch;
    }
    
    .header-nav.active {
        transform: translateX(0);
    }
    .mega-menu{
    	width:100%;
    }    /* 모바일에서 숨길 메뉴 */
    .mobile-hide {
        display: none !important;
    }
    
    
    /* ===== Nav List ===== */
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        gap: 0;
        width: 100%;
        padding: 0;
    }
    
    .nav-item {
        width: 100%;
        height: auto;
        flex-direction: column;
    }
    
    /* ===== Nav Link (1depth 메뉴) ===== */
    .nav-link {
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        font-weight: 700;
        height: auto;
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        border-bottom: 1px solid var(--gray-medium);
        background: var(--gray-light);
        color: var(--black);
    }
    
    .nav-link::after {
        display: none;
    }

    /* ===== 어코디언 chevron ===== */
    .nav-item.has-mega > .nav-link {
        justify-content: space-between;
        align-items: center;
    }

    .nav-item.has-mega > .nav-link::after {
        /* 데스크탑 파란 점 완전 리셋 */
        position: static;
        left: auto;
        bottom: auto;
        background: none;
        border-radius: 0;
        /* chevron 화살표 */
        content: '';
        display: inline-block;
        width: 10px;
        height: 10px;
        border: none;
        border-right: 2px solid rgba(0, 0, 0, 0.25);
        border-bottom: 2px solid rgba(0, 0, 0, 0.25);
        transform: rotate(45deg) translateY(-2px);
        transition: transform 0.25s ease, border-color 0.25s ease;
        margin-right: 0.25rem;
        flex-shrink: 0;
    }

    .nav-item.has-mega.accordion-open > .nav-link {
        background: var(--white);
        color: var(--primary-blue, #0047AB);
        border-bottom-color: transparent;
    }

    .nav-item.has-mega.accordion-open > .nav-link::after {
        background: none;
        border-right-color: var(--primary-blue, #0047AB);
        border-bottom-color: var(--primary-blue, #0047AB);
        transform: rotate(-135deg) translateY(-2px);
    }

    /* 접힌 상태 nav-link 터치 피드백 */
    .nav-item.has-mega > .nav-link:active {
        background: #f5f5f5;
    }

    .nav-arrow {
        display: none !important;
    }

    /* ===== 3. 메가메뉴 - 어코디언 (접힘/펼침) ===== */
    .mega-menu {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border-top: none !important;
        background: var(--white);
        pointer-events: auto !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item.has-mega.accordion-open > .mega-menu {
        max-height: 1000px;
        overflow: visible;
        border-top: 2px solid var(--primary-blue, #0047AB);
    }
    
    .mega-menu-inner {
        flex-direction: column;
        min-height: auto;
    }
    
    /* 배너 숨김 */
    .mega-menu-banner {
        display: none !important;
    }
    
    /* ===== 4. 서브메뉴 좌측 정렬 ===== */
    .mega-menu-content {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    
    .mega-menu-column {
        min-width: 100%;
    }
    
    /* 카테고리 타이틀 */
    .mega-menu-title {
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--primary-blue);
        padding: 0.75rem 1.25rem 0.5rem 1.5rem;
        margin: 0;
        border-bottom: none;
        background: transparent;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .mega-menu-list {
        padding: 0;
        margin: 0;
    }
    
    .mega-menu-list li {
        margin: 0;
        list-style: none;
    }
    
    /* 서브메뉴 링크 - 좌측 정렬 */
    .mega-menu-list a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        padding: 0.75rem 1.25rem 0.75rem 2rem;
        gap: 0.75rem;
        background: var(--white);
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        min-height: 50px;
        transition: background 0.2s ease;
    }
    
    .mega-menu-list li:last-child a {
        border-bottom: none;
    }
    
    .mega-menu-list a:hover,
    .mega-menu-list a:active {
        background: #f0f7ff;
    }
    
    /* 아이콘 */
    .mega-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        background: var(--gray-light);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .mega-menu-list a:hover .mega-icon {
        background: var(--gray-light);
        transform: none;
    }
    
    /* 텍스트 - 좌측 정렬 */
    .mega-text {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.125rem;
        text-align: left;
    }
    
    .mega-text strong {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--black);
        text-align: left;
    }
    
    .mega-text small {
        font-size: 0.7rem;
        color: var(--gray-dark);
        text-align: left;
        line-height: 1.3;
    }
    
    /* ===== 하단 CTA 표시 ===== */
    .mobile-nav-cta {
        display: block;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (768px 이하)
======================================== */
@media (max-width: 768px) {
    :root {
        --header-height-mobile: 60px;
    }
    
    .header-container {
        padding: 0 0.875rem;
    }
    
    .header-logo img {
        height: 38px;
    }
    
    .header-logo-text {
        font-size: 1.25rem;
    }
    
    .header-cta {
        padding: 0.5rem 0.625rem;
    }
    
    .nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        min-height: 50px;
    }
    
    .mega-menu-title {
        padding: 0.625rem 1rem 0.375rem 1.25rem;
        font-size: 0.65rem;
    }
    
    .mega-menu-list a {
        padding: 0.625rem 1rem 0.625rem 1.5rem;
        min-height: 46px;
        gap: 0.625rem;
    }
    
    .mega-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    .mega-text strong {
        font-size: 0.85rem;
    }
    
    .mega-text small {
        font-size: 0.65rem;
    }
    
    .mobile-nav-cta {
        padding: 1.25rem 1rem;
    }
    
    .mobile-nav-phone {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .mobile-nav-phone svg {
        width: 18px;
        height: 18px;
    }
    
    .mobile-nav-contact {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .mobile-nav-hours {
        font-size: 0.75rem;
        margin-top: 0.875rem;
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (480px 이하)
======================================== */
@media (max-width: 480px) {
    :root {
        --header-height-mobile: 56px;
    }
    
    .header-container {
        padding: 0 0.75rem;
    }
    
    .header-logo img {
        height: 34px;
    }
    
    .header-logo-text {
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .hamburger {
        width: 22px;
    }
    
    .hamburger::before,
    .hamburger::after {
        width: 22px;
    }
    
    .nav-link {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
        min-height: 46px;
    }
    
    .mega-menu-list a {
        padding: 0.5rem 0.875rem 0.5rem 1.25rem;
        min-height: 42px;
    }
    
    .mega-icon {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }
    
    .mega-text strong {
        font-size: 0.8rem;
    }
    
    .mega-text small {
        font-size: 0.6rem;
    }
    
    .mobile-nav-cta {
        padding: 1rem 0.875rem;
    }
    
    .mobile-nav-phone {
        padding: 0.75rem;
        font-size: 0.95rem;
        gap: 0.375rem;
    }
    
    .mobile-nav-contact {
        padding: 0.625rem;
        font-size: 0.85rem;
    }
}

/* ========================================
   LANDSCAPE MODE (가로 모드)
======================================== */
@media (max-width: 1200px) and (orientation: landscape) and (max-height: 500px) {
    .header-nav {
        padding-bottom: 0;
    }
    
    .nav-link {
        padding: 0.625rem 1rem;
        min-height: 42px;
        font-size: 0.9rem;
    }
    
    .mega-menu-title {
        padding: 0.5rem 1rem 0.25rem 1.25rem;
    }
    
    .mega-menu-list a {
        padding: 0.5rem 1rem 0.5rem 1.5rem;
        min-height: 38px;
    }
    
    .mega-icon {
        width: 26px;
        height: 26px;
    }
    
    .mega-text strong {
        font-size: 0.8rem;
    }
    
    .mega-text small {
        display: none;
    }
    
    .mobile-nav-cta {
        padding: 0.75rem 1rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .mobile-nav-phone,
    .mobile-nav-contact {
        flex: 1;
        min-width: 140px;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
    .mobile-nav-hours {
        width: 100%;
        margin-top: 0.5rem;
        font-size: 0.7rem;
    }
}

/* ========================================
   SAFE AREA (노치 대응)
======================================== */
@supports (padding: max(0px)) {
    @media (max-width: 1200px) {
        .header-nav {
            padding-bottom: env(safe-area-inset-bottom);
        }
        
        .mobile-nav-cta {
            padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
        }
    }
}

/* ========================================
   ========================================
   DESKTOP ONLY (1201px 이상) - PC 메가메뉴 복원
   ========================================
======================================== */
@media (min-width: 1201px) {
    /* 네비게이션 기본 상태 */
    .header-nav {
        display: flex !important;
        position: static;
        background: transparent;
        transform: none;
        padding: 0;
        overflow: visible;
        height: 100%;
        width: auto;
        flex-direction: row;
    }
    
    .nav-list {
        flex-direction: row;
        height: 100%;
        padding: 0;
    }
    
    .nav-item {
        height: 100%;
        flex-direction: row;
    }
    
    .nav-link {
        background: transparent;
        border-bottom: none;
        padding: 0 1.75rem;
        min-height: auto;
        height: 100%;
        font-size: 1.05rem;
    }
    
    .nav-link::after {
        display: block;
    }
    
    /* 햄버거 버튼 숨김 */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    /* 하단 CTA 숨김 */
    .mobile-nav-cta {
        display: none !important;
    }
    
    /* 오버레이 숨김 */
    .mobile-menu-overlay {
        display: none !important;
    }
    
    /* 헤더 CTA 복원 */
    .header-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .header-cta-text {
        display: inline;
    }
    
    /* ===== PC 메가메뉴 복원 ===== */
    .mega-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
        border-top: 3px solid var(--primary-blue) !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
    }
    
    .nav-item:hover > .mega-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
    
    .mega-menu-inner {
        flex-direction: row;
        min-height: 320px;
    }
    
    /* 배너 표시 */
    .mega-menu-banner {
        display: flex !important;
    }
    
    /* 메가메뉴 콘텐츠 복원 */
    .mega-menu-content {
        flex-direction: row;
        padding: 2rem 2.5rem;
        gap: 2rem;
    }
    
    .mega-menu-column {
        flex: 1;
        min-width: 200px;
    }
    
    .mega-menu-title {
        font-size: 0.8rem;
        padding: 0 0 0.75rem 0;
        margin-bottom: 0.75rem;
        border-bottom: 2px solid var(--gray-medium);
        background: transparent;
    }
    
    .mega-menu-list a {
        padding: 0.625rem 0.75rem;
        border-radius: 8px;
        border-bottom: none;
        min-height: auto;
    }
    
    .mega-menu-list a:hover {
        background: #F0F7FF;
    }
    
    .mega-menu-list a:hover .mega-icon {
        background: var(--primary-blue);
        transform: scale(1.05);
    }
    
    .mega-icon {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
        border-radius: 8px;
    }
    
    .mega-text strong {
        font-size: 0.95rem;
        font-weight: 600;
    }
    
    .mega-text small {
        font-size: 0.75rem;
    }
}
