/* ===================================================================
   2026 대덕물빛축제 - 공통 스타일시트
   =================================================================== */

/* --- CSS Variables --- */
:root {
    --spring-pink: #ff9bb5;
    --spring-pink-dark: #e8839e;
    --soft-white: #ffffff;
    --text-dark: #2c3e50;
    --text-gray: #777;
    --bg-calm: #fff5f8;
    --nav-height: 100px;
    --max-width: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 20px;
    background-color: var(--bg-calm);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- 벚꽃 애니메이션 --- */
.cherry-blossom-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999;
}
.petal {
    position: absolute;
    background: #ffaabb;
    border-radius: 150% 0 150% 0;
    opacity: 0.6;
    animation: fall linear infinite;
}
@keyframes fall {
    0%   { transform: translateY(-10vh) rotate(0deg); opacity: 0.7; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* --- 네비게이션 (데스크탑) --- */
.site-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    border-bottom: 1px solid rgba(255, 155, 181, 0.35);
    display: flex; align-items: center; justify-content: center;
}
.nav-inner {
    width: 100%; max-width: 1400px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 30px; gap: 40px;
}
.nav-logo img { height: 81px; width: auto; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }

.main-menu { display: flex; gap: 0; }
.main-menu > li { position: relative; }
.main-menu > li > a {
    font-weight: 700; font-size: 1.05rem; color: #444;
    padding: 28px 14px; display: block; transition: color 0.3s;
    white-space: nowrap;
}
.main-menu > li:hover > a,
.main-menu > li > a.active { color: var(--spring-pink); }

.sub-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: white; min-width: 160px; padding: 6px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 0 0 12px 12px;
    border-top: 2px solid var(--spring-pink);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.25s;
    transform: translateX(-50%) translateY(8px);
}
.main-menu > li:hover .sub-menu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.sub-menu li a {
    padding: 5px 16px; color: var(--text-gray); font-size: 0.82rem;
    display: block; transition: 0.2s; text-align: center;
}
.sub-menu li a:hover { color: var(--spring-pink); background: #fffafb; }

/* --- 모바일 햄버거 메뉴 --- */
.mobile-menu-btn {
    display: none;
    position: fixed; top: 14px; right: 14px; z-index: 2100;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.95); border: none; border-radius: 10px;
    cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.mobile-menu-btn span {
    display: block; width: 22px; height: 2px;
    background: #333; border-radius: 2px; transition: 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav-overlay {
    display: none; position: fixed; inset: 0; z-index: 2050;
    background: rgba(0,0,0,0.4);
}
.mobile-nav-overlay.active { display: block; }

.mobile-nav {
    position: fixed; top: 0; right: -300px; z-index: 2060;
    width: 280px; height: 100vh;
    background: white; padding: 70px 0 30px;
    overflow-y: auto; transition: right 0.35s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}
.mobile-nav.active { right: 0; }

.mobile-nav-logo {
    padding: 0 24px 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}
.mobile-nav-logo img { height: 35px; width: auto; }
.mobile-nav-home {
    display: block; padding: 14px 24px;
    font-weight: 700; font-size: 1rem; color: var(--spring-pink);
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-item > .mobile-nav-title {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 24px; font-weight: 700; font-size: 0.95rem; color: #333;
    cursor: pointer; transition: 0.2s;
}
.mobile-nav-item > .mobile-nav-title:hover { color: var(--spring-pink); }
.mobile-nav-item > .mobile-nav-title .arrow {
    transition: transform 0.3s; font-size: 0.7rem; color: #aaa;
}
.mobile-nav-item.open > .mobile-nav-title .arrow { transform: rotate(180deg); }

.mobile-sub-menu {
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
    background: #fafafa;
}
.mobile-nav-item.open .mobile-sub-menu { max-height: 400px; }
.mobile-sub-menu a {
    display: block; padding: 11px 24px 11px 36px;
    font-size: 0.88rem; color: #888; transition: 0.2s;
}
.mobile-sub-menu a:hover { color: var(--spring-pink); }

/* --- 공통 푸터 --- */
.site-footer {
    background: #faf8f5; color: #333; padding: 50px 30px 30px;
    border-top: 1px solid #e8e4df;
}
.footer-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 40px; flex-wrap: wrap;
}
.footer-info { flex: 1; }
.footer-info-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px 30px;
}
.footer-info-grid p {
    font-size: 0.9rem; line-height: 1.9; color: #333;
}
.footer-info-grid p span {
    font-weight: 700; color: #555;
}
.footer-right { text-align: right; flex-shrink: 0; }
.footer-right img { height: 66px; width: auto; margin-bottom: 15px; margin-left: auto; }
.footer-social { display: flex; gap: 12px; justify-content: flex-end; }
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: transparent; color: #555;
    transition: 0.3s; font-size: 1.1rem;
}
.footer-social a:hover { opacity: 0.7; }
.footer-social a.sns-youtube svg { fill: #FF0000; }
.footer-social a.sns-instagram svg { fill: url(#ig-gradient); }
.footer-bottom {
    max-width: var(--max-width); margin: 20px auto 0;
    padding-top: 16px; border-top: 1px solid #e8e4df;
    text-align: center; font-size: 0.82rem; color: #999;
}

/* --- 서브페이지 공통 --- */
.subpage-hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, #fff0f4 0%, #fff 100%);
    border-bottom: 1px solid rgba(255,155,181,0.25);
}
.subpage-hero h1 {
    font-family: 'Gowun Batang', serif;
    font-size: 2.5rem; color: var(--text-dark);
    margin-bottom: 10px;
}
.subpage-hero .breadcrumb {
    font-size: 0.85rem; color: var(--text-gray);
}
.subpage-hero .breadcrumb a { color: var(--spring-pink); }

.subpage-content {
    max-width: 900px; margin: 0 auto;
    padding: 60px 30px 100px;
    min-height: 40vh;
}
.subpage-content .coming-soon {
    text-align: center; padding: 80px 20px;
    color: #bbb; font-size: 1.1rem;
}
.subpage-content .coming-soon .icon {
    font-size: 3rem; margin-bottom: 20px; display: block;
}

/* --- 스크롤 등장 애니메이션 --- */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1; transform: translateY(0);
}

/* --- 반응형 (태블릿) --- */
@media (max-width: 1024px) {
    .nav-inner { padding: 0 20px; }
    .main-menu > li > a { padding: 28px 10px; font-size: 0.88rem; }
}

/* --- 반응형 (모바일) --- */
@media (max-width: 768px) {
    :root { --nav-height: 60px; }

    .main-menu { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav-logo img { height: 55px; }
    .nav-inner { padding: 0 16px; }

    .subpage-hero { padding-top: calc(var(--nav-height) + 40px); padding-bottom: 40px; }
    .subpage-hero h1 { font-size: 1.8rem; }
    .subpage-content { padding: 40px 20px 60px; }

    .footer-inner { flex-direction: column; gap: 30px; }
    .footer-info-grid { grid-template-columns: 1fr; }
    .footer-right { text-align: left; }
    .footer-right img { margin-left: 0; }
    .footer-social { justify-content: flex-start; }
}
