/* ==========================================================================
   1. 기본 리셋 및 프리미엄 폰트 설정 (PC & 공통 마스터)
   ========================================================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

/* 💻 이중 스크롤 현상 및 좌측 미세 여백 버그 원천 차단 */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important; /* 브라우저 기본 스크롤만 허용 */
}

body { 
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; 
    color: #222; 
    line-height: 1.8; 
    background-color: #fafafa; 
    letter-spacing: -0.02em;
    word-break: keep-all;
    padding-bottom: 0 !important;
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 30px; width: 100%; box-sizing: border-box; }
section { padding: 140px 0; width: 100%; box-sizing: border-box; display: block; clear: both; } 
.text-center { text-align: center; }

/* 💻 상단 내비게이션 바 (PC 버전 전용 고정 레이어) */
header { background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(10px); width: 100%; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo { font-size: 20px; font-weight: 800; color: #0f1a24; letter-spacing: 0.04em; white-space: nowrap; }
.nav-menu { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-item { font-weight: 500; font-size: 15px; color: #666; transition: color 0.3s; white-space: nowrap; cursor: pointer; }
.nav-item:hover { color: #0f1a24; font-weight: 600; }

/* 💻 PC 화면 모바일 전용 디자인 요소 완전 격리 은폐 */
.menu-toggle-btn { display: none; }
.mobile-sidebar { display: none; }
.sidebar-overlay { display: none; }
.mobile-quick-contact { display: none !important; }
.submenu-list { display: none; }

/* 프리미엄 메인 히어로 섹션 */
.hero-section { 
    background: linear-gradient(rgba(15, 26, 36, 0.75), rgba(15, 26, 36, 0.85)), url('../assets/hero-bg.jpg') no-repeat center/cover; 
    color: #fff; 
    padding: 200px 0; 
    text-align: center; 
    width: 100%;
    margin: 0 !important;
}
.hero-title { font-size: 46px; font-weight: 700; line-height: 1.4; margin-bottom: 30px; }
.hero-subtitle { font-size: 18px; font-weight: 300; margin-bottom: 50px; color: #ccc; letter-spacing: 0.05em; }
.btn-primary { 
    display: inline-block; 
    background: #b89453; 
    color: #fff; 
    padding: 18px 45px; 
    font-weight: 600; 
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.3s; 
}
.btn-primary:hover { background: #9c7a3c; }

/* 본문 레이아웃 컴포넌트 프레임 */
.section-title { font-size: 34px; font-weight: 700; color: #0f1a24; margin-bottom: 25px; position: relative; }
.section-subtitle { font-size: 15px; color: #888; margin-bottom: 90px; letter-spacing: 0.1em; text-transform: uppercase; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 50px; width: 100%; }
.card { background: #fff; padding: 50px 40px; border: 1px solid #eaeaea; transition: all 0.4s ease; box-sizing: border-box; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.04); }
.card-title { font-size: 20px; font-weight: 600; margin-bottom: 25px; color: #0f1a24; }
.card-desc { font-size: 15px; color: #555; line-height: 1.8; }

.narrative-block { max-width: 800px; margin: 0 auto 80px auto; padding-bottom: 40px; width: 100%; box-sizing: border-box; }
.narrative-title { font-size: 22px; font-weight: 700; color: #0f1a24; margin-bottom: 20px; }
.narrative-text { font-size: 16px; color: #444; line-height: 1.9; text-align: justify; }
.highlight-section { display: block; width: 100%; height: auto !important; clear: both; }

/* 🏢 하단 푸터 영역 마스터 구조 보장 */
footer { 
    display: block !important;
    clear: both !important;
    position: relative !important;
    background: #0f1a24 !important; 
    color: #8a959e !important; 
    padding: 70px 0 !important; 
    font-size: 13px !important; 
    border-top: 1px solid #1a2a3a !important; 
    letter-spacing: 0.02em !important; 
    width: 100% !important; 
    z-index: 999 !important;
}
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-info p { margin-bottom: 10px; }
.footer-brand { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 15px; }
.footer-right { text-align: right; line-height: 2; }

/* 🎯 조립식 헤더 연동용 드롭다운 메커니즘 패치 */
.nav-item.dropdown { position: relative; }
.dropdown-trigger { display: inline-block; padding-right: 5px; }
.dropdown-content { 
    display: none; position: absolute; top: 100%; right: -100px; background-color: #fff; 
    min-width: 650px; box-shadow: 0px 15px 40px rgba(0,0,0,0.1); border: 1px solid #eee; padding: 30px; 
}
.dropdown-grid { display: flex; gap: 30px; }
.dropdown-column { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.dropdown-column h3 { font-size: 13px; color: #b89453; font-weight: 700; border-bottom: 1px solid #f0f0f0; padding-bottom: 8px; margin-bottom: 5px; }
.dropdown-column a { color: #555; font-size: 14px; transition: color 0.2s; padding: 2px 0; }
.dropdown-column a:hover { color: #0f1a24; font-weight: 600; }
.nav-item.dropdown:hover .dropdown-content { display: block; }


/* ==========================================================================
   2. 이미지 중앙 통제 레이어 (팁 및 로케이션 반응형 일체화)
   ========================================================================== */
.tip-signature-images, .location-signature-images {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 50px 0;
    width: 100%;
}
.tip-signature-images .sig-img-box, .location-signature-images .loc-img-box {
    flex: 1;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* 🎯 공통 시그니처 그래픽 자산 경로 일치 마감 */
.tip-signature-images .img-1 { background-image: url('../images/tip_showcase_01.jpg'); }
.tip-signature-images .img-2 { background-image: url('../images/tip_showcase_02.jpg'); }
.location-signature-images .img-1 { background-image: url('../images/location_showcase_01.jpg'); }
.location-signature-images .img-2 { background-image: url('../images/location_showcase_02.jpg'); }
.location-signature-images .img-3 { background-image: url('../images/location_showcase_03.jpg'); }


/* ==========================================================================
   3. 모바일 반응형 완벽 가둠 루프 (850px 이하 스크린 통합 제어)
   ========================================================================== */
@media screen and (max-width: 850px) {
    section { padding: 70px 0 !important; }
    body { padding-bottom: 60px !important; } 

    .pc-menu { display: none !important; }
    .nav-container { height: 70px !important; padding: 0 20px !important; display: flex !important; justify-content: space-between !important; align-items: center !important; }
    .logo { font-size: 18px !important; }

    /* 📱 모바일 햄버거 토글 버튼 가동 */
    .menu-toggle-btn {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 22px !important;
        height: 15px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        z-index: 1001 !important;
    }
    .menu-toggle-btn span { display: block !important; width: 100% !important; height: 2px !important; background-color: #0f1a24 !important; }

    /* 📱 슬라이드 방식 사이드바 물리 인프라 */
    .mobile-sidebar {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        background-color: #fff !important;
        z-index: 2000 !important;
        box-shadow: 5px 0 20px rgba(0,0,0,0.1) !important;
        flex-direction: column !important;
        
        /* 초기에 왼쪽 화면 밖으로 완벽 은폐 */
        transform: translateX(-280px) !important;
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }
    /* 스크립트에 의해 active 붙었을 때 화면 안으로 진입 */
    .mobile-sidebar.active { 
        transform: translateX(0) !important; 
    }
    
    .sidebar-overlay { 
        position: fixed !important; 
        top: 0 !important; 
        left: 0 !important; 
        width: 100% !important; 
        height: 100% !important; 
        background: rgba(0, 0, 0, 0.4) !important; 
        z-index: 1999 !important; 
        display: block !important;
        
        /* 초기 상태 완전히 가림 */
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
    }
    /* 스크립트에 의해 active 붙었을 때 흐릿하게 나타남 */
    .sidebar-overlay.active { 
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .sidebar-header { display: flex !important; justify-content: space-between !important; align-items: center !important; padding: 20px !important; border-bottom: 1px solid #f0f0f0 !important; flex-shrink: 0 !important; }
    .sidebar-title { font-size: 15px !important; font-weight: 800; color: #0f1a24 !important; }
    .sidebar-close-btn { font-size: 28px !important; background: transparent !important; border: none !important; color: #888 !important; cursor: pointer; line-height: 1; }
    
    .sidebar-body { flex: 1 !important; overflow-y: auto !important; padding: 20px 0 80px 0 !important; -webkit-overflow-scrolling: touch !important; }
    .mobile-nav-list { display: flex; flex-direction: column; }
    .mobile-nav-item { display: block !important; padding: 14px 25px !important; font-size: 14px !important; font-weight: 500 !important; color: #333 !important; border-bottom: 1px solid #fafafa !important; }

    /* 📱 아코디언 컴포넌트 렌더링 */
    .accordion-item { border-bottom: 1px solid #f0f0f0; }
    .accordion-trigger {
        width: 100% !important; display: flex !important; justify-content: space-between !important; align-items: center !important;
        padding: 14px 25px !important; background: none !important; border: none !important; font-size: 14px !important;
        font-weight: 600 !important; color: #b89453 !important; cursor: pointer !important; text-align: left !important;
    }
    .accordion-trigger .arrow-down { display: inline-block !important; font-size: 10px !important; transition: transform 0.3s !important; }
    
    /* 스크립트에 오픈 스위치 켜졌을 때 ▼ 화살표 회전 */
    .accordion-trigger.open .arrow-down { transform: rotate(180deg) !important; }

    .submenu-list { 
        list-style: none !important; 
        background-color: #fcfcfc !important; 
        padding: 0 !important; 
        display: none !important; /* 초기 은폐 */
    }
    /* 스크립트에 의해 토글 켜질 때 펼침 */
    .submenu-list.active { 
        display: block !important; 
        padding: 5px 0 !important;
    }
    .submenu-list a { display: block !important; padding: 10px 40px !important; font-size: 13px !important; color: #666 !important; }

    /* 📱 하단 고정 스티키 하이퍼 콜 링크 */
    .mobile-quick-contact {
        display: block !important; position: fixed !important; bottom: 0 !important; left: 0 !important;
        width: 100% !important; height: 60px !important; background-color: #0f1a24 !important; z-index: 1500 !important; 
    }
    .btn-call { display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; height: 100% !important; color: #fff !important; font-size: 15px !important; font-weight: 600 !important; }

    /* 히어로 및 레이아웃 요소 리셋 */
    .hero-section { padding: 100px 0 !important; }
    .hero-title { font-size: 26px !important; line-height: 1.4 !important; }
    .hero-subtitle { font-size: 14px !important; margin-bottom: 35px !important; }
    .btn-primary { padding: 15px 35px !important; font-size: 13px !important; }
    
    .grid-3 { display: flex !important; flex-direction: column !important; gap: 25px !important; }
    .grid-3 .card { width: 100% !important; padding: 35px 25px !important; }

    /* 시그니처 갤러리 요소 수직 정렬 강제 치환 */
    .tip-signature-images, .location-signature-images { flex-direction: column !important; gap: 15px !important; margin: 30px 0 !important; }
    .tip-signature-images .sig-img-box { height: 230px !important; }
    .location-signature-images .loc-img-box { height: 210px !important; }
}