
/* =========================================
   ★ 모바일 및 태블릿 화면 완벽 숨김 처리
   PC 전용
   ========================================= */
@media (max-width: 1024px) {
    #uh-header { display: none !important; }
    #sub-visual-wrap { display: none !important; }
    #sub-nav-bar { display: none !important; }
}

/* =========================================
   1. 웹빌더 숨은 여백 강제 제거 & 초기화
   ========================================= */
.section.block:not(.msection):first-of-type .section-inner::before {
    display: none !important;
    height: 0 !important;
}

.item-inner.code {
    padding: 0 !important;
}

* {
    font-family: 'Noto Sans KR', 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* =========================================
   2. HEADER
   ========================================= */
#uh-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    background-color: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

#uh-header ul {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* 스크롤 / 메뉴 오버 상태 */
#uh-header.active,
#uh-header.scrolled {
    background-color: #ffffff !important;
    border-bottom: 1px solid #eeeeee !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.uh-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    height: 80px;
    padding: 0 20px !important;
    position: relative;
    z-index: 101;
}

/* =========================================
   ★ BROWNSTONE LOGO
   스크롤 전 : WHITE
   스크롤 후 : ORIGINAL
   ========================================= */
.uh-logo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.uh-logo a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    position: relative;
}

.uh-logo-img {
    display: block !important;
    width: auto !important;
    height: 32px !important;
    max-width: none !important;
    object-fit: contain;
    object-position: left center;
    opacity: 1 !important;
    visibility: visible !important;
    filter: brightness(0) invert(1);
    -webkit-filter: brightness(0) invert(1);
    transition: filter 0.4s ease, -webkit-filter 0.4s ease;
}

/* 스크롤 이후 = 원본 로고 */
#uh-header.active .uh-logo-img,
#uh-header.scrolled .uh-logo-img {
    filter: none !important;
    -webkit-filter: none !important;
}

/* =========================================
   GNB
   ========================================= */
.uh-gnb-wrap {
    flex: 0 0 auto;
    height: 100%;
    display: flex;
}

.uh-gnb {
    display: flex;
    height: 100%;
    gap: 90px !important;
}

.uh-gnb > li {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.uh-gnb > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: 3px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    transition: color 0.3s;
}

#uh-header.active .uh-gnb > li > a,
#uh-header.scrolled .uh-gnb > li > a {
    color: #333333;
}

/* 브라운스톤 샴페인 골드 */
.uh-gnb > li:hover > a {
    color: #B8A078 !important;
}

/* =========================================
   SUB MENU
   ========================================= */
.uh-sub-menu {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    min-width: 130px;
    text-align: center;
    padding: 25px 0 !important;
    display: none;
    z-index: 102;
}

.uh-sub-menu li {
    margin-bottom: 0 !important;
    height: auto !important;
}

.uh-sub-menu li a {
    font-size: 14px;
    color: #555555 !important;
    font-weight: 500;
    display: block !important;
    padding: 11px 0 !important;
    transition: all 0.2s;
}

.uh-sub-menu li a:hover {
    color: #B8A078 !important;
    font-weight: 700;
}

/* 서브 메뉴 전체 배경 */
.uh-header-bg {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: 255px;
    background-color: #ffffff;
    border-top: 1px solid #f2f2f2;
    border-bottom: 1px solid #e5e5e5;
    display: none;
    z-index: 100;
}

/* =========================================
   HEADER RIGHT UTIL
   ========================================= */
.uh-utils {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    transition: color 0.3s;
}

#uh-header.active .uh-utils,
#uh-header.scrolled .uh-utils {
    color: #333333;
}

.uh-util-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: inherit;
}

.uh-util-item:hover {
    color: #B8A078 !important;
}

.uh-util-icon {
    width: 20px;
    height: 20px;
}

.uh-util-text-sm {
    font-size: 15px;
    font-weight: 600;
    margin-top: 2px;
}

.uh-util-divider {
    width: 1px;
    height: 14px;
    background-color: rgba(255,255,255,0.4);
}

#uh-header.active .uh-util-divider,
#uh-header.scrolled .uh-util-divider {
    background-color: #cccccc;
}

.uh-util-text-lg {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* =========================================
   3. SUB VISUAL
   ========================================= */
#sub-visual-wrap {
    position: relative;
    width: 100%;
    height: 380px;
    background-color: #1D1D1B;
    background-image: url('../assets/images/sub/common/section-cover.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================
   BROWNSTONE STYLE DARK DIM
   ========================================= */
#sub-visual-wrap .sub-dim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(20,20,18,0.76) 0%, rgba(20,20,18,0.56) 35%, rgba(20,20,18,0.28) 70%, rgba(20,20,18,0.18) 100%);
    z-index: 2;
}

/* =========================================
   SUB VISUAL INNER
   ========================================= */
#sub-visual-wrap .sub-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 80px;
    position: relative;
    z-index: 10;
    text-align: left;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 22px;
}

/* =========================================
   GOLD LINE
   ========================================= */
#sub-visual-wrap .sub-inner::before {
    content: '';
    display: block;
    width: 2px;
    height: 58px;
    background-color: #B8A078;
    flex-shrink: 0;
    opacity: 0;
    animation: fadeUpSub 1s ease-out forwards 0.1s;
}

/* =========================================
   TEXT GROUP
   ========================================= */
#sub-visual-wrap .sub-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* =========================================
   ENGLISH TITLE
   ========================================= */
#sub-visual-wrap .sub-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    letter-spacing: 6px;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeUpSub 1s ease-out forwards 0.2s;
}

/* =========================================
   KOREAN TITLE
   ========================================= */
#sub-visual-wrap .sub-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 52px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -2px;
    line-height: 1.15;
    margin-bottom: 0;
    opacity: 0;
    animation: fadeUpSub 1s ease-out forwards 0.4s;
}

@keyframes fadeUpSub {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =========================================
   4. SUB NAVIGATION
   BROWNSTONE STYLE
   ========================================= */
#sub-nav-bar {
    width: 100%;
    height: 60px;
    background-color: #1D1D1B;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sub-nav-inner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================
   HOME BUTTON
   ========================================= */
.sub-nav-home {
    width: 60px;
    height: 100%;
    background-color: #B8A078;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: background-color 0.3s;
}

.sub-nav-home:hover {
    background-color: #9C865F;
}

.sub-nav-home svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

/* =========================================
   SUB NAV MENU
   ========================================= */
.sub-nav-menu {
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
}

.sub-nav-menu li {
    height: 100%;
}

.sub-nav-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 45px;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255,255,255,0.48);
    position: relative;
    transition: color 0.3s;
}

.sub-nav-menu li a:hover {
    color: rgba(255,255,255,0.9);
}

.sub-nav-menu li.active a {
    color: #ffffff;
    font-weight: 600;
}

/* 선택 메뉴 GOLD LINE */
.sub-nav-menu li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #B8A078;
}


        /* =========================================
           ★ PC 화면 숨김 처리 (1025px 이상에서 안 보임)
           ========================================= */
        @media (min-width: 1025px) {
            #mobile-sub-wrap, #mSubHeader, .m-sub-tab-wrap { display: none !important; }
        }

        /* =========================================
           1. 모바일 서브 초기화
           ========================================= */
        #mobile-sub-wrap *, #mSubHeader * {
            font-family: 'Noto Sans KR', sans-serif;
            box-sizing: border-box;
            margin: 0; padding: 0;
            list-style: none !important;
            text-decoration: none;
            letter-spacing: -0.5px;
            -webkit-tap-highlight-color: transparent;
        }

        #mobile-sub-wrap {
            position: relative;
            width: 100%;
            background-color: #F7F6F3; /* 브라운스톤 서브 배경톤 */
            display: flex;
            flex-direction: column;
            align-items: center;
            overflow: hidden;
        }

        /* =========================================
           2. 상단 헤더
           ========================================= */
        #mSubHeader {
            position: fixed !important;
            top: 0 !important; left: 0 !important;
            width: 100% !important;
            height: 66px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            z-index: 2147483000 !important;
            background-color: transparent;
            background-image: linear-gradient(to bottom, rgba(20, 19, 17, 0.7) 0%, transparent 100%);
            transition: background-color 0.3s ease, border-bottom 0.3s ease, background-image 0.3s ease;
        }

        #mSubHeader.scrolled {
            background-image: none;
            background-color: #fff;
            border-bottom: 1px solid #ECE9E3;
            box-shadow: 0 2px 12px rgba(0,0,0,.04);
        }

        /* ★ 브라운스톤 로고 사이즈 및 필터 적용 */
        #mSubHeader .m-sub-logo a {
            display: flex;
            align-items: center;
            height: 27px; 
            position: relative;
        }
        #mSubHeader .m-sub-logo img {
            height: 100%;
            width: auto;
            max-width: 180px;
            object-fit: contain;
        }
        #mSubHeader .m-sub-logo .logo-off { display: block; filter: brightness(0) invert(1); -webkit-filter: brightness(0) invert(1); }
        #mSubHeader .m-sub-logo .logo-on { display: none; }
        
        #mSubHeader.scrolled .m-sub-logo .logo-off { display: none; }
        #mSubHeader.scrolled .m-sub-logo .logo-on { 
            display: block; 
            filter: none !important; -webkit-filter: none !important; /* 브라운스톤 기본 로고 컬러 유지 */
        }

        #mSubHeader .m-sub-utils {
            display: flex;
            align-items: center;
            gap: 16px;
        }
        #mSubHeader .m-sub-util-btn {
            background: none; border: none;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
        }
        #mSubHeader .m-sub-util-btn svg {
            width: 23px; height: 23px;
            stroke: #fff;
            transition: stroke 0.3s ease;
        }
        #mSubHeader.scrolled .m-sub-util-btn svg {
            stroke: #2A2824; /* 스크롤 시 다크브라운 톤 */
        }

        /* =========================================
           3. 서브 비주얼 영역 (이미지 배경)
           ========================================= */
        #mobile-sub-wrap .m-sub-visual {
            position: relative;
            width: 100%;
            height: 280px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
            background-color: #1D1D1B;
            /* 브라운스톤 서브 비주얼 배경 이미지 (필요시 주소 변경) */
            background-image: url('../assets/images/sub/common/section-cover.png');
            background-size: cover;
            background-position: center;
        }

        #mobile-sub-wrap .m-sub-dim {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: linear-gradient(to top, rgba(20, 19, 17, 0.6) 0%, rgba(20, 19, 17, 0.2) 60%, transparent 100%);
            z-index: 2;
        }

        #mobile-sub-wrap .m-sub-inner {
            position: relative;
            z-index: 10;
            text-align: left;
            padding: 30px 28px 0 28px;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        /* 세로 구분선 (브라운스톤 골드 포인트) */
        #mobile-sub-wrap .m-sub-inner::before {
            content: '';
            position: absolute;
            left: 28px;
            top: 36px;
            width: 2px;
            height: 52px;
            background-color: #B8A078; /* 브라운스톤 시그니처 골드 */
            margin-bottom: 0;
            opacity: 0;
            animation: mFadeUpSub 0.8s ease-out forwards 0.1s;
        }

        @keyframes mFadeUpSub {
            0%   { opacity: 0; transform: translateY(12px); }
            100% { opacity: 1; transform: translateY(0); }
        }

        #mobile-sub-wrap .m-sub-desc {
            font-family: 'Montserrat', sans-serif;
            font-size: 11px;
            font-weight: 600;
            color: #D2C2A4; /* 텍스트 골드 */
            letter-spacing: 3px;
            margin-bottom: 10px;
            padding-left: 14px;
            opacity: 0;
            animation: mFadeUpSub 0.8s ease-out forwards 0.2s;
        }

        #mobile-sub-wrap .m-sub-title {
            font-size: 32px;
            font-weight: 700;
            color: #fff;
            letter-spacing: -1.5px;
            padding-left: 14px;
            opacity: 0;
            animation: mFadeUpSub 0.8s ease-out forwards 0.4s;
            text-shadow: 0 4px 16px rgba(0,0,0,0.5);
        }

        /* =========================================
           4. 하단 서브 탭 (3개 항목, 1열 3개)
           ========================================= */
        .m-sub-tab-wrap {
            width: calc(100% - 40px);
            max-width: 600px;
            background-color: #fff;
            box-shadow: 0 10px 25px rgba(0,0,0,0.04);
            position: relative;
            z-index: 20;
            margin: -35px auto 40px auto !important;
            border-radius: 4px;
            overflow: hidden;
            border: 1px solid #EFECE7;
        }

        .m-sub-tabs {
            display: flex;
            flex-wrap: nowrap;
            width: 100%;
            margin: 0; padding: 0;
        }

        .m-sub-tabs li {
            width: 33.3333% !important;
            flex: 0 0 33.3333% !important;
            max-width: 33.3333% !important;
            box-sizing: border-box;
            margin: 0; padding: 0;
        }

        .m-sub-tabs li a {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            width: 100%;
            height: 55px;
            font-size: 14px;
            font-weight: 500;
            color: #716C64;
            background-color: #fff;
            border-right: 1px solid #EFECE7;
            transition: all 0.2s ease;
            box-sizing: border-box;
            padding: 0 5px;
            word-break: keep-all;
            line-height: 1.2;
        }

        .m-sub-tabs li:last-child a { border-right: none; }

        /* 활성 탭 — 브라운스톤 골드 */
        .m-sub-tabs li.active a {
            background-color: #B8A078;
            color: #fff;
            font-weight: 700;
            border-color: #B8A078;
        }
    

    @media (min-width: 1025px) {
        #mSubMenuDim, #mSubSideMenu { display: none !important; }
    }

    #mSubMenuDim, #mSubSideMenu {
        font-family: 'Noto Sans KR', sans-serif;
        box-sizing: border-box;
    }
    #mSubSideMenu * {
        box-sizing: border-box; margin: 0; padding: 0;
        list-style: none !important; text-decoration: none;
        letter-spacing: -0.5px; -webkit-tap-highlight-color: transparent;
    }

    #mSubMenuDim {
        position: fixed !important; top: 0 !important; left: 0 !important;
        width: 100vw !important; height: 100vh !important;
        background: rgba(0,0,0,0.62) !important;
        z-index: 2147483001 !important;
        opacity: 0; pointer-events: none;
        transition: opacity 0.3s ease;
    }
    #mSubMenuDim.open { opacity: 1; pointer-events: auto; }

    #mSubSideMenu {
        position: fixed !important; top: 0 !important; right: -100%;
        width: 86% !important; max-width: 360px !important;
        height: 100vh !important;
        background: #fff !important;
        z-index: 2147483002 !important;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        display: flex; flex-direction: column; overflow-y: auto;
    }
    #mSubSideMenu.open { right: 0 !important; }

    #mSubSideMenu .m-sub-side-header {
        display: flex; justify-content: space-between; align-items: center;
        height: 72px; padding: 0 22px; border-bottom: 1px solid #EEEAE4; flex-shrink: 0;
    }
    /* ★ 브라운스톤 로고 원본 컬러 유지 */
    #mSubSideMenu .m-sub-side-header a {
        display: flex; align-items: center; height: 24px; position: relative;
    }
    #mSubSideMenu .m-sub-side-header img {
        height: 100%; width: auto; max-width: 180px; object-fit: contain;
        filter: none !important; -webkit-filter: none !important;
    }

    #mSubSideMenu .m-sub-btn-close {
        background: none; border: none; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
    }
    #mSubSideMenu .m-sub-btn-close svg { width: 27px; height: 27px; stroke: #2A2824; }

    #mSubSideMenu .m-sub-gnb { padding: 10px 22px 40px; }
    #mSubSideMenu .m-sub-gnb > li { border-bottom: 1px solid #EFECE7; }
    
    #mSubSideMenu .m-sub-depth1 {
        display: block; width: 100%; padding: 21px 0;
        font-size: 18px; font-weight: 600; color: #302E2A;
        text-align: left; background: none; border: none; cursor: pointer; position: relative;
        font-family: 'Noto Sans KR', sans-serif;
    }
    #mSubSideMenu .m-sub-depth1::after {
        content: '+'; position: absolute; right: 3px; top: 50%; transform: translateY(-50%);
        font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 300; color: #AAA49A; pointer-events: none;
    }
    #mSubSideMenu .m-sub-gnb > li.active .m-sub-depth1::after { content: '−'; color: #B8A078; }

    #mSubSideMenu .m-sub-depth2 {
        display: none !important; background-color: #F7F6F3; padding: 8px 0 15px 18px; border-top: 1px solid #F0EDE7; width: 100%;
    }
    #mSubSideMenu .m-sub-depth2 li { margin-bottom: 9px; }
    #mSubSideMenu .m-sub-depth2 li:last-child { margin-bottom: 0; }
    #mSubSideMenu .m-sub-depth2 a {
        display: block; font-size: 14px; font-weight: 400; color: #716C64; padding: 6px 0;
        font-family: 'Noto Sans KR', sans-serif;
    }
    
    /* ★ 활성화 시 브라운스톤 골드 컬러 */
    #mSubSideMenu .m-sub-depth2 a:active,
    #mSubSideMenu .m-sub-depth2 a:hover { color: #B8A078; font-weight: 600; }
    #mSubSideMenu .m-sub-gnb > li.active .m-sub-depth2 { display: block !important; }
    #mSubSideMenu .m-sub-gnb > li.active .m-sub-depth1 { color: #B8A078; }

    /* 서브 사이드 메뉴 하단 전화번호 영역 추가 */
    #mSubSideMenu .m-sub-side-foot { margin-top: auto; padding: 28px 22px 32px; background: #252421; }
    #mSubSideMenu .m-sub-side-foot span { display: block; font-family: 'Montserrat', sans-serif; font-size: 9px; font-weight: 500; letter-spacing: 2.5px; color: #B8A078; margin-bottom: 9px; }
    #mSubSideMenu .m-sub-side-foot strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 600; letter-spacing: 0.5px; color: #fff; }

.m-sub-tabs{display:grid!important;grid-template-columns:repeat(var(--brown-tab-columns,3),minmax(0,1fr))!important}.m-sub-tabs li{width:auto!important;max-width:none!important;min-width:0;}
