/* --- 프리미엄 다크 테마 변수 --- */
:root {
    --bg-dark: #050a10;       
    --section-dark: #0a111a;  
    --gold: #C5A059;          
    --gold-hover: #e0bc7a;
    --navy-main: #002347;     
    --grey-cool: #a0a0a0;     
    --white: #ffffff;
    --text-light: #e0e0e0;    
}

/* --- 기본 초기화 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--grey-cool);
    scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, .logo { font-family: 'Noto Serif KR', serif; }

/* 컨테이너 */
.container { max-width: 1200px; margin: 0 auto; padding: 50px 20px; }

/* --- 헤더 & 네비게이션 --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-bottom: 2px solid var(--gold);
    position: sticky; top: 0; z-index: 1000;
}
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; height: 85px; max-width: 1200px; margin: 0 auto;
}
.logo { display: flex; align-items: center; font-size: 1.4rem; font-weight: 700; color: var(--navy-main); }
.logo img { height: 50px; width: auto; margin-right: 12px; object-fit: contain; }

/* [수정됨] 로고 줄바꿈 제어 */
.logo a { 
    display: flex; 
    align-items: center; 
    white-space: nowrap; /* 기본: 한 줄 유지 */
}
.logo-br { display: none; } /* 기본: 줄바꿈 숨김 */

/* [추가됨] 1200px 이하(작은 PC 화면)부터 로고 줄바꿈 허용 */
@media (max-width: 1200px) {
    .logo-br { display: inline; } /* 줄바꿈 활성화 */
    .logo a { white-space: normal; text-align: left; }
    .logo span { line-height: 1.2; } /* 두 줄일 때 자간 조정 */
}

.menu-toggle { display: none; }
.nav-links { display: flex; align-items: center; } 
.nav-links li { margin-left: 30px; }
.nav-links a { font-weight: 500; color: var(--navy-main); transition: 0.3s; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* 멤버십 강조 메뉴 스타일 */
.nav-links a.special-menu {
    background-color: var(--gold);
    color: var(--bg-dark) !important; 
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}
.nav-links a.special-menu i { margin-right: 8px; font-size: 0.9em; }
.nav-links a.special-menu:hover {
    background-color: var(--gold-hover);
    color: var(--bg-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(197, 160, 89, 0.4);
}

/* --- 푸터 --- */
footer { background: #000; color: rgba(255,255,255,0.5); text-align: center; padding: 60px 20px; border-top: 1px solid #222; }
.footer-logo { font-size: 1.5rem; color: var(--gold); margin-bottom: 10px; }

/* --- 공통 버튼 스타일 --- */
.btn {
    display: inline-block; padding: 15px 40px; border-radius: 4px;
    font-weight: 700; transition: 0.3s; cursor: pointer; border: none;
    white-space: nowrap; 
}
.btn-gold { background: var(--gold); color: var(--bg-dark); }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-3px); }
.btn-outline { background: transparent; border: 1px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--bg-dark); }
.btn-outline-dark {
    display: inline-block; padding: 12px 30px; border: 1px solid var(--grey-cool);
    color: var(--grey-cool); border-radius: 4px; transition: 0.3s; font-size: 0.9rem;
}
.btn-outline-dark:hover { border-color: var(--gold); color: var(--gold); background: rgba(197, 160, 89, 0.05); }

/* --- 공통 폼 스타일 --- */
.form-group { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
input, textarea {
    width: 100%; padding: 15px; background: var(--bg-dark);
    border: 1px solid #333; border-radius: 8px; font-size: 1rem; color: var(--white);
    transition: 0.3s;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); }
.full-width { display: block; width: 100%; text-align: center; }

/* --- 섹션 타이틀 공통 --- */
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 {
    font-size: 2.5rem; color: var(--gold); margin-bottom: 20px; font-weight: 700;
    position: relative; padding-bottom: 15px; display: inline-block; white-space: nowrap;
}
.section-header h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px; background-color: var(--gold); border-radius: 2px;
}
.section-header p { color: var(--grey-cool); font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

/* --- 모바일 대응 (헤더 및 공통) --- */
@media (max-width: 768px) {
    .menu-toggle { display: flex; flex-direction: column; cursor: pointer; }
    .menu-toggle .bar { width: 25px; height: 3px; background-color: var(--navy-main); margin: 4px 0; transition: 0.4s; }
    .navbar { padding: 0 20px; }
    
    /* 모바일 로고 스타일 */
    .logo { font-size: 1.2rem; line-height: 1.2; }
    .logo img { height: 40px; margin-right: 10px; }
    /* 위 1200px 미디어쿼리에 의해 logo-br은 이미 inline 상태 */

    .nav-links {
        position: fixed; right: 0; top: 85px; height: calc(100vh - 85px); width: 100%;
        background: var(--white); flex-direction: column; align-items: center;
        transform: translateX(100%); transition: 0.4s; border-top: 1px solid #eee; overflow-y: auto;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links li { margin: 25px 0; }
    .nav-links a { font-size: 1.1rem; }
    .nav-links a.special-menu { padding: 12px 30px; margin-top: 10px; }

    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
    .btn { padding: 15px 20px; font-size: 0.9rem; }
    .section-header h2 { font-size: 1.8rem; }
}