/* 기본 설정 */
:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #d4a373; /* 고급스러운 골드/베이지 톤 */
    --text-color: #333;
    --bg-light: #f9f9f9;
    --btn-hover: #b08d55;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 헤더 스타일 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 40px;
    display: flex;
    justify-content: center; /* 전체 중앙 정렬 */
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    color: white;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 40px; /* 로고와 메뉴 사이 간격 */
}

/* 우측 아이콘 절대 위치로 고정 (중앙 정렬 방해 안 받도록) */
.header-right {
    position: absolute;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icons {
    display: flex;
    gap: 20px;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    color: black;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 서브페이지 헤더용 (항상 흰색 배경) */
header.dark-text {
    color: black;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
}

/* 예약 버튼 스타일 */
.btn-book-nav {
    background-color: var(--accent-color);
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 700 !important;
}

.btn-book-header {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.3s;
}

.btn-book-header:hover {
    background-color: var(--btn-hover);
}

.btn-book-mobile {
    background-color: var(--accent-color);
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid white;
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
    margin: 5px;
}

.btn:hover {
    background-color: white;
    color: black;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--btn-hover);
    border-color: var(--btn-hover);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
}

/* 히어로 섹션 (유튜브 배경) */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

/* 유튜브 배경 비디오 래퍼 */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.video-foreground,
.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 비율 */
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

/* 서브페이지 히어로 */
.sub-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    margin-top: 0;
}
.sub-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
.sub-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.sub-hero h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 15px;
}

/* 메인 콘텐츠 섹션 공통 */
section {
    padding: 100px 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Quick Features 섹션 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.95rem;
    color: #666;
}

/* 그리드 레이아웃 (클래스 목록 등) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    height: 250px;
    background-color: #eee;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
}

.card-tags {
    margin-bottom: 20px;
}

.card-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f0f0f0;
    font-size: 0.8rem;
    border-radius: 20px;
    color: #555;
    margin-right: 5px;
    margin-bottom: 5px;
}

.card-btn {
    text-align: center;
    background-color: var(--text-color);
    color: white;
    padding: 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.card-btn:hover {
    background-color: var(--accent-color);
}


/* About 페이지 스타일 */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
}

.about-text ul {
    margin-top: 20px;
}
.about-text ul li {
    margin-bottom: 10px;
    list-style: disc;
    margin-left: 20px;
    color: #555;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


/* Services & FAQ 스타일 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.service-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}
.service-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-weight: 300;
}
.faq-answer {
    color: #666;
    line-height: 1.6;
}


/* Contact 페이지 스타일 */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}
.contact-info-box, .map-box {
    flex: 1;
    min-width: 300px;
}
.info-item {
    margin-bottom: 30px;
}
.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}
.map-responsive {
    overflow:hidden;
    padding-bottom:56.25%;
    position:relative;
    height:0;
}
.map-responsive iframe {
    left:0;
    top:0;
    height:100%;
    width:100%;
    position:absolute;
}


/* 푸터 */
footer {
    background-color: #1a1a1a;
    color: #999;
    padding: 80px 40px 40px;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 60px auto 0;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.8rem;
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------- */
/* 모바일 메뉴 스타일 (새로 추가됨) */
/* -------------------------------------- */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* 햄버거 버튼 X자 변형 */
.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: black;
}
.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: black;
}

/* 스크롤되거나 서브페이지(dark-text)일 때 햄버거 버튼 색상 변경 */
header.scrolled .mobile-menu-btn span,
header.dark-text .mobile-menu-btn span {
    background-color: black;
}

/* 모바일 메뉴 오버레이 */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1050;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
    padding: 0;
}

.mobile-nav ul li a {
    font-size: 1.5rem;
    font-weight: 600;
    color: black;
    text-transform: uppercase;
    text-decoration: none;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
    color: var(--accent-color);
}

.mobile-icons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 25px;
}
.mobile-icons a {
    color: black;
    font-size: 1.5rem;
}


/* 반응형 미디어 쿼리 */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        justify-content: space-between;
    }

    /* PC 메뉴 숨김 */
    .desktop-nav, .desktop-icons {
        display: none !important;
    }
    
    /* 모바일 버튼 표시 */
    .mobile-menu-btn {
        display: flex;
    }

    /* 헤더 레이아웃 조정 */
    .header-center {
        width: 100%;
        justify-content: space-between;
        gap: 0;
    }
    
    .header-right {
        position: static;
        width: auto;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .sub-hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 20px;
    }

    .about-content, .contact-container {
        flex-direction: column;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    /* 모바일 히어로: 제목만 표시 (설명, 버튼 숨김) */
    .hero-content p,
    .hero-buttons {
        display: none;
    }
}
