/* ==========================================================================
   1. 글로벌 스타일 및 초기화 (서체 통일)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #3a322d;
    background-color: #fbfaf8;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. 고정형 헤더 내비게이션 디자인
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: transparent;
    transition: all 0.4s ease;
}

header.scrolled {
    background-color: #ffffff;
    padding: 18px 8%;
    box-shadow: 0 1px 10px rgba(44, 37, 32, 0.03);
}

header .logo a {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: brightness(100);
}

header.scrolled .logo-img {
    filter: brightness(0.2);
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

header nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

header.scrolled nav ul li a {
    color: #3a322d;
}

header nav ul li a:hover,
header.scrolled nav ul li a:hover {
    color: #111111;
}

/* ==========================================================================
   3. 메인 히어로 대문 섹션
   ========================================================================== */
.hero-split-container {
    position: relative;
    width: 100%;
    height: 680px;
    display: flex;
    background-color: #111111;
}

.hero-bg-half {
    width: 50%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.hero-left {
    background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), url('사진/main1.jpg');
}

.hero-right {
    background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), url('사진/main2.jpg');
}

.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.btn {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 14px 45px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    background-color: transparent;
    transition: all 0.4s ease;
    animation: fadeIn 1.2s ease forwards;
}

.btn:hover {
    background-color: #ffffff;
    color: #3a322d;
    letter-spacing: 4px;
}

/* ==========================================================================
   4. 브랜드 스토리 섹션 (About)
   ========================================================================== */
.brand-story {
    padding: 140px 20px;
    background-color: #fbfaf8;
    text-align: center;
}

.story-container {
    max-width: 780px;
    margin: 0 auto;
}

.story-block {
    opacity: 0.9;
}

.story-welcome-text, 
.story-welcome-text-ko {
    font-size: 18px;
    letter-spacing: 2px;
    color: #8c8177;
    margin-bottom: 30px;
    font-weight: 500;
}

.story-paragraph {
    font-size: 14.5px;
    color: #554a42;
    margin-bottom: 22px;
    font-weight: 300;
    letter-spacing: -0.2px;
    word-break: keep-all;
    line-height: 2;
}

.story-paragraph strong {
    font-weight: 600;
    color: #111111;
}

.story-paragraph.highlight {
    color: #8c8177;
    margin-top: 35px;
    font-weight: 400;
}

.story-hr {
    width: 40px;
    height: 1px;
    background-color: #eae6e1;
    margin: 50px auto;
}

/* ==========================================================================
   5. 공간 갤러리 슬라이더 섹션 (Space - 세로형 사진 최적화 교정)
   ========================================================================== */
.rooms {
    background-color: #ffffff;
    padding: 40px 0 100px 0;
}

.room-section {
    max-width: 1200px;
    margin: 0 auto 90px auto;
    padding: 0 40px;
}

.room-section:last-child {
    margin-bottom: 0;
}

.gallery-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.slider-wrapper {
    display: flex;
    gap: 25px; /* 세로형 사진 간격을 좀 더 여유롭게 조정 */
    overflow-x: auto;
    width: 100%;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slide-item {
    flex: 0 0 calc(33.333% - 17px); /* 세 장씩 균등 분할 */
    scroll-snap-align: start;
    aspect-ratio: 3 / 4; /* 💡 기존 4/3(가로형)에서 3/4(세로형) 비율로 전면 수정 */
    overflow: hidden;
    background-color: #f7f7f7; /* 사진 로딩 전 빈 공간 베이스 컬러 */
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 세로 비율에 맞게 꽉 채움 */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-item:hover img {
    transform: scale(1.04);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 45px;
    height: 45px;
    font-size: 16px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #3a322d;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.slider-arrow:hover {
    background: #3a322d;
    color: #ffffff;
}

.btn-prev { left: -22px; }
.btn-next { right: -22px; }

/* ==========================================================================
   6. 푸터 (Footer)
   ========================================================================== */
.site-footer {
    background-color: #111111;
    color: #eeeeee;
    padding: 40px 20px 30px 20px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-brand .company-name {
    font-size: 15px;
    letter-spacing: 3px;
    color: #ffffff;
    font-weight: 400;
}

.footer-info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    font-size: 11px;
    color: #888888;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 15px;
    width: 100%;
    max-width: 850px;
}

/* ==========================================================================
   7. 애니메이션 및 반응형
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    /* 태블릿 환경에서는 2장씩 노출 */
    .slide-item { flex: 0 0 calc(50% - 12.5px); }
    .btn-prev { left: -10px; }
    .btn-next { right: -10px; }
}

@media (max-width: 768px) {
    header { padding: 15px 5%; }
    header.scrolled { padding: 12px 5%; }
    header nav ul { gap: 22px; }
    header nav ul li a { font-size: 12px; letter-spacing: 1px; }
    
    .brand-story { padding: 90px 20px; }
    .story-paragraph { font-size: 13.5px; }
    
    .room-section { padding: 0 20px; margin-bottom: 60px; }
    
    .hero-split-container { flex-direction: column; height: 500px; }
    .hero-bg-half { width: 100%; height: 50%; }
    
    /* 모바일 환경에서는 1장씩 강조 */
    .slide-item { flex: 0 0 100%; }
    .btn-prev { left: 0; }
    .btn-next { right: 0; }
    
    .site-footer { padding: 35px 20px 25px 20px; }
    .footer-info-grid { flex-direction: column; gap: 6px; align-items: center; padding-top: 12px; }
}