:root {
    --barim-primary: #E5BA73;     /* 메인: 격조 높은 예술적 옐로우/골드 */
    --barim-primary-dark: #C59B4E;/* 딥 골드 브라운 */
    --barim-dark: #1A1C1E;        /* 미드나잇 차콜 */
    --barim-light: #F9F9F6;       /* 아이보리 톤 화이트 */
    --barim-gray: #6C7278;        /* 슬레이트 그레이 */
    --barim-border: #EAEAEA;
}

body {
    font-family: 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif;
    background-color: #ffffff;
    color: var(--barim-dark);
    overflow-x: hidden;
    letter-spacing: -0.03em;
}

.serif-font {
    font-family: 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif;
}

/* -----------------------------------------
   [헤더/내비게이션] 공식 로고(logo.png) 매핑
   ----------------------------------------- */
.navbar {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--barim-border);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}
.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
}
/* 로고 이미지 해상도 및 높이 최적화 */
.navbar-brand img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.navbar-nav .nav-link {
    color: var(--barim-dark);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 20px;
    padding: 8px 0;
    position: relative;
    letter-spacing: -0.5px;
    transition: color 0.25s ease;
}
.navbar-nav .nav-link:hover {
    color: var(--barim-primary-dark);
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background-color: var(--barim-primary-dark);
    transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* 모바일 우측 오프캔버스 메뉴 */
.offcanvas-end {
    width: 300px;
    background-color: var(--barim-light);
    border-left: 1px solid var(--barim-border);
}
.offcanvas-header .mobile-logo {
    height: 32px;
    width: auto;
}
.offcanvas-body .nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 14px 20px;
    color: var(--barim-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    transition: all 0.25s;
    margin-bottom: 6px;
}
.offcanvas-body .nav-link:hover {
    background-color: #ffffff;
    color: var(--barim-primary-dark);
    padding-left: 28px;
}

/* -----------------------------------------
   [히어로 캐러셀 섹션] 전통 민화의 상업적 전환
   ----------------------------------------- */
.hero-carousel .carousel-item {
    min-height: 720px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 100px 0;
}
.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(14, 15, 17, 0.95) 30%, rgba(26, 28, 30, 0.75) 100%);
    z-index: 1;
}
.hero-carousel .carousel-container {
    position: relative;
    z-index: 2;
}
.hero-badge {
    background-color: rgba(229, 186, 115, 0.2);
    color: var(--barim-primary);
    border: 1px solid rgba(229, 186, 115, 0.4);
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-block;
    border-radius: 8px;
}
.hero-title {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.25;
    color: #ffffff;
}
.hero-title span {
    color: var(--barim-primary);
}
.hero-desc {
    font-size: 1.2rem;
    color: #E5E7EB;
    font-weight: 300;
    line-height: 1.75;
}
.btn-gold {
    background-color: var(--barim-primary);
    color: var(--barim-dark);
    font-weight: 700;
    border: 1px solid var(--barim-primary);
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background-color: var(--barim-primary-dark);
    border-color: var(--barim-primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

/* 체크리스트 박스 가시성 레이아웃 */
.hero-check-box {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}
.hero-check-box:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--barim-primary) !important;
}
.hero-check-item {
    color: #ffffff !important;
    font-size: 1.0rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero-check-item i {
    color: var(--barim-primary) !important;
    font-size: 1.2rem;
}

/* 캐러셀 인디케이터 커스텀 */
.carousel-indicators [data-bs-target] {
    width: 12px; height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255,255,255,0.4);
}
.carousel-indicators .active {
    background-color: var(--barim-primary);
    width: 32px;
    border-radius: 6px;
}

/* -----------------------------------------
   [공통 구조] 섹션 가이드라인
   ----------------------------------------- */
.section-padding { padding: 100px 0; }
.section-title {
    font-weight: 900;
    font-size: 2.4rem;
    color: var(--barim-dark);
    letter-spacing: -1px;
}
.section-title span {
    color: var(--barim-primary-dark);
}
.section-subtitle {
    color: var(--barim-gray);
    font-size: 1.15rem;
    margin-top: 10px;
}

/* -----------------------------------------
   [민화 큐레이션] 도상학 상징 카드 구조
   ----------------------------------------- */
.asset-card {
    border: 1px solid var(--barim-border);
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}
.asset-card:hover {
    transform: translateY(-8px);
    border-color: var(--barim-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}
.asset-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    background-color: var(--barim-light);
}
.asset-img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.asset-card:hover .asset-img-wrapper img {
    transform: scale(1.05);
}
.symbol-badge {
    position: absolute;
    top: 20px; left: 20px;
    z-index: 2;
    background-color: rgba(26, 28, 30, 0.85);
    color: var(--barim-primary);
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(225,225,225,0.1);
}

/* -----------------------------------------
   [목업 시뮬레이션 섹션]
   ----------------------------------------- */
.mockup-display-box {
    border: 1px solid var(--barim-border);
    border-radius: 32px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 30px 60px rgba(0,0,0,0.04);
}
.mockup-img-pane {
    background-color: #F3F4F6;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.mockup-img-pane img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 65%;
}
.mockup-copy { word-break: keep-all; }

/* -----------------------------------------
   [푸터 영역] 트렌디 & 완벽 균등 3분할 비율 고정
   ----------------------------------------- */
.barim-modern-footer {
    background-color: #0E0F11 !important;
    position: relative;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #C59B4E 0%, #E5BA73 50%, #0E0F11 100%) 1;
    padding-top: 80px;
    padding-bottom: 40px;
}
.barim-footer-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}
.barim-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background-color: var(--barim-primary);
}
.barim-footer-desc {
    color: #9EA4AA !important;
    font-size: 0.92rem;
    line-height: 1.75;
    font-weight: 300;
}
.footer-link-list li {
    margin-bottom: 12px;
}
.barim-footer-link {
    color: #A0A6AC !important;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
}
.barim-footer-link:hover {
    color: var(--barim-primary) !important;
    transform: translateX(4px);
}
.barim-footer-contact {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
}
.bottom-copyright-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 60px;
    padding-top: 30px;
    color: #7A8086 !important;
    font-size: 0.88rem;
}


/* ==========================================================================
   [모바일 해상도 최적화 CSS]
   - 슬라이더 세로 크기 일성 유지
   - 모바일 텍스트 깨짐 및 비율 이질감 방지
   ========================================================================== */

/* 태블릿 및 모바일 기기 공통 (991.98px 이하) */
@media (max-width: 991.98px) {
    /* 1. 히어로 슬라이더 세로 크기 고정 및 레이아웃 최적화 */
    .hero-carousel .carousel-item {
        min-height: 580px; /* 모든 슬라이드 동일 세로 높이 유지 */
        height: 650px;
        padding: 60px 0 40px;
    }

    .hero-carousel .carousel-container {
        height: 100%;
        display: flex;
        align-items: center;
    }

    /* 2. 메인 비주얼 텍스트 크기 조정 */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        word-break: keep-all; /* 단어 단위 줄바꿈으로 자연스러운 텍스트 배치 */
    }

    .hero-desc {
        font-size: 0.95rem;
        line-height: 1.6;
        word-break: keep-all;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    /* 3. 체크리스트 박스 간격 축소 */
    .hero-check-item {
        font-size: 0.88rem;
    }

    .hero-check-box {
        padding: 10px 14px !important;
    }

    /* 4. 본문 공통 섹션 패딩 조정 */
    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
        word-break: keep-all;
    }

    .section-subtitle {
        font-size: 0.95rem;
        word-break: keep-all;
    }

    /* 5. 큐레이션 카드 이미지 높이 정율화 */
    .asset-img-wrapper {
        height: 220px;
    }

    /* 6. 목업 디스플레이 박스 높이 조정 */
    .mockup-display-box {
        max-width: 440px;
        margin: 0 auto;
    }
}

/* 초소형 모바일 기기 (575.98px 이하) */
@media (max-width: 575.98px) {
    /* 1. 슬라이더 컴팩트 높이 설정 */
    .hero-carousel .carousel-item {
        min-height: 580px;
        height: 580px;
        padding: 40px 0 30px;
    }

    /* 2. 소형 화면 타이포그래피 최적화 */
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-desc {
        font-size: 0.88rem;
        margin-bottom: 1.5rem !important;
    }

    /* 3. 모바일 버튼 세로 정렬 및 패딩 최적화 */
    .hero-carousel .btn-lg {
        width: 100%;
        padding: 12px 20px !important;
        font-size: 0.95rem;
        text-align: center;
    }

    /* 4. 모바일 인디케이터 위치 및 크기 정밀 조정 */
    .carousel-indicators {
        margin-bottom: 0.5rem;
    }

    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    .carousel-indicators .active {
        width: 20px;
    }
}
/* 모바일 가로 흔들림 방지: AOS 애니메이션 시작 위치가 화면 밖으로 밀려 가로 스크롤이 생기는 문제 (2026-11-15) */
html { overflow-x: hidden; }
@supports (overflow-x: clip) { html { overflow-x: clip; } }

/* 모바일: 히어로 높이를 내용에 맞추고 슬라이드 점과 겹치지 않게, 요금표 단어 단위 줄바꿈 */
@media (max-width: 991.98px) {
    .hero-carousel .carousel-item { height: auto; min-height: 580px; padding-bottom: 72px; }
    .hero-check-item { word-break: keep-all; }
    .fee-page table th, .fee-page table td { word-break: keep-all; white-space: normal; }
    .fee-page .fee-badges { flex-wrap: wrap; justify-content: center; border-radius: 16px !important; row-gap: 6px; }
    .fee-page .fee-badges > span { white-space: nowrap; }
    .fee-page .fee-badges > .opacity-25 { display: none; }
}

/* 목업 소개 버튼: 소형 화면에서 한 줄 유지 */
@media (max-width: 575.98px) {
    .mockup-cta { padding-left: 1.75rem !important; padding-right: 1.75rem !important; white-space: nowrap; }
}
