/* 기본 설정 및 변수 */
:root {
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Noto Sans KR', sans-serif;
    --color-bg: #f5f5f0; /* 따뜻한 미색 배경 */
    --color-text: #333333;
    --color-text-light: #666666;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 헤더 스타일 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
    color: white; /* 히어로 이미지 위에서는 흰색 텍스트 */
}

/* 스크롤 시 헤더 변경 클래스 (JS에서 제어) */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 100%;
}

.logo a {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 0.9;
    text-align: center;
    font-style: italic;
    font-weight: 500;
}

.nav-menu ul {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.nav-icons {
    display: flex;
    gap: 20px;
    font-size: 1.1rem;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* 메인 비주얼 (Hero) */
.hero {
    width: 100%;
    height: 100vh;
    /* 중요: 여기에 사용자가 가지고 있는 수영장 사진 경로를 넣으세요 */
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)),url('images/onone1.jpeg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* 콘텐츠 섹션 (이미지 2 느낌) */
.content-section {
    position: relative;
    background-color: var(--color-bg);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* 푸터 */
footer {
    background-color: #e8e8e4; /* 약간 더 짙은 베이지/그레이 */
    padding: 80px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 0.9;
    font-style: italic;
    margin-bottom: 40px;
    color: #333;
}

.footer-info p {
    margin: 5px 0;
    line-height: 1.6;
}

.footer-info strong {
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.copyright {
    margin-top: 30px;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

/* 반응형 (모바일) */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .nav-menu, .nav-icons {
        display: none; /* 모바일 메뉴 구현은 복잡해지므로 일단 숨김 처리 */
    }

    .mobile-menu-btn {
        display: block;
    }
}


/* =========================================
   Space Page Styles 
   ========================================= */

/* 서브 페이지 헤더 스타일 (흰 배경에 검은 글씨 강제 적용) */
header.sub-header {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
header.sub-header .logo a,
header.sub-header .nav-menu a,
header.sub-header .nav-icons {
    color: var(--color-text); /* 검은색 */
}

/* 페이지 타이틀 영역 */
.page-title-section {
    padding: 180px 20px 80px; /* 헤더 높이만큼 상단 여백 */
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.page-title-section h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 20px;
    font-style: italic;
}
.page-title-section p {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* 카테고리 섹션 공통 */
.space-category {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 카테고리 헤더 (번호, 제목, 설명) */
.category-header {
    text-align: center;
    margin-bottom: 60px;
}
.category-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: #999;
    margin-bottom: 10px;
}
.category-header h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 20px;
}
.category-header p {
    color: var(--color-text-light);
    line-height: 1.8;
    word-break: keep-all;
}

/* 이미지 그리드 시스템 (반응형 갤러리) */
.image-grid {
    display: grid;
    gap: 20px;
}
.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px; /* 아주 살짝 둥글게 */
    transition: transform 0.4s ease;
}
.image-grid .img-box {
    overflow: hidden;
    position: relative;
}
.image-grid .img-box:hover img {
    transform: scale(1.03); /* 마우스 올리면 살짝 확대 */
}

/* 타입 A: 큰거 하나 + 작은거 두개 (3장 배치) */
.type-a {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}
.type-a .full-width {
    grid-column: 1 / -1; /* 전체 너비 사용 */
    height: 500px; /* PC 기준 높이 */
}
.type-a .img-box:not(.full-width) {
    height: 400px;
}

/* 타입 B: 1:1 배치 (2장 배치) */
.type-b {
    grid-template-columns: 1fr 1fr;
}
.type-b .img-box {
    height: 600px; /* 세로로 긴 시원한 느낌 */
}

/* 타입 C: 갤러리형 (4장 배치) */
.type-c {
    grid-template-columns: repeat(2, 1fr);
}
.type-c .img-box {
    height: 400px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .page-title-section h1 { font-size: 2.5rem; }
    
    .type-a, .type-b, .type-c {
        grid-template-columns: 1fr; /* 모바일은 한 줄로 */
    }
    .type-a .full-width, 
    .type-a .img-box:not(.full-width),
    .type-b .img-box,
    .type-c .img-box {
        height: 300px; /* 모바일 높이 통일 */
    }
}

/* 스크롤 애니메이션 (페이드 인) */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Reservation Page Styles
   ========================================= */

/* 안내문 이미지 컨테이너 */
.guide-container {
    max-width: 800px; /* 텍스트 이미지라 너무 커지지 않게 제한 */
    margin: 0 auto;
    padding: 0 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 40px; /* 이미지 사이 간격 */
    align-items: center;
}

.guide-image-box {
    width: 100%;
    /* 이미지에 종이 질감이 있으므로 그림자를 줘서 배경과 분리 */
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
}

.guide-image-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* 예약하기 버튼 (CTA) 영역 */
.reservation-cta {
    text-align: center;
    padding: 60px 20px 150px;
    background-color: var(--color-bg);
}

.cta-text {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

/* 예약 버튼 디자인 */
.btn-reserve {
    display: inline-block;
    padding: 20px 80px;
    background-color: #333; /* 짙은 차콜/블랙 */
    color: #fff;
    font-family: 'Tenor Sans', serif; /* 버튼은 영문 폰트 사용 */
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.btn-reserve i {
    font-size: 0.8rem;
    margin-left: 10px;
    vertical-align: middle;
}

/* 버튼 마우스 올렸을 때 효과 */
.btn-reserve:hover {
    background-color: transparent; /* 배경 투명하게 */
    color: #333; /* 글자색 검정으로 */
    border-color: #333;
    transform: translateY(-3px); /* 살짝 위로 뜸 */
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .guide-container {
        gap: 20px;
    }
    .btn-reserve {
        width: 100%; /* 모바일에서는 버튼 꽉 차게 */
        padding: 18px 0;
    }
}
