/* style.css - 각도와 커브 (iwannagohome.kr 스타일 모티브) */
@import url('https://fonts.googleapis.com/css2?family=Hahmlet:wght@400;600&display=swap');

:root {
    --bg-color: #f9f9f9; /* 밝은 크림/아이보리 톤 */
    --text-main: #222222;
    --text-sub: #777777;
    --point-color: #8c5a40; /* 따뜻한 라왕 합판 우드톤 */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --header-height: 120px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    word-break: keep-all;
    overflow-x: hidden;
    padding-top: var(--header-height); /* 헤더 공간만큼 패딩 추가 */
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ====================
   HEADER & NAVIGATION
   ==================== */

/* Top Banner (공지사항) */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #111;
    color: #fff;
    text-align: center;
    font-size: 0.8rem;
    padding: 8px 0;
    z-index: 1002;
    letter-spacing: 1px;
}

/* Main Header */
header.main-header {
    position: fixed;
    top: 30px; /* 탑 배너 높이만큼 띄움 */
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(249, 249, 249, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    box-sizing: border-box;
    z-index: 1001;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

header.main-header.scrolled {
    top: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hamburger {
    cursor: pointer;
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hamburger .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}
.logo img {
    height: 100px; /* 로고 크기 대폭 증가 */
    margin-right: 20px;
    mix-blend-mode: multiply; /* 흰색 배경을 투명하게 만들어 배경과 자연스럽게 융화시킴 */
}

.header-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-right a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.header-right a:hover {
    color: var(--point-color);
}

/* Sidebar Menu */
.sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    z-index: 2000;
    padding: 80px 40px;
    box-shadow: 10px 0 30px rgba(0,0,0,0.05);
    transition: left 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.5s;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}
.sidebar a:hover, .sidebar a.active-link {
    color: var(--point-color);
    font-weight: 500;
}

.sidebar .close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-main);
}

/* ====================
   FOOTER
   ==================== */
footer {
    background-color: #fff;
    padding: 5rem 5%;
    font-size: 0.8rem;
    color: var(--text-sub);
    line-height: 2;
    border-top: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left {
    max-width: 400px;
}
.footer-left h4 {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.footer-right {
    display: flex;
    gap: 50px;
}

.footer-right .col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-right .col h5 {
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.footer-right .col a {
    color: var(--text-sub);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-right .col a:hover {
    color: var(--point-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: 0.75rem;
}

/* ====================
   COMPONENTS (Buttons, Titles)
   ==================== */
.section-title {
    text-align: center;
    font-family: 'Noto Serif KR', serif;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-main);
    font-weight: 400;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    background: transparent;
}
.btn-outline:hover {
    background: var(--text-main);
    color: #fff;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .header-right a { display: none; }
    .header-right { gap: 10px; }
    .footer-content { flex-direction: column; }
    .footer-right { flex-direction: column; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
