:root {
    --color-main: #222222;
    --color-point: #c5a47e;
    --color-bg: #f8f9fa;
    --color-white: #ffffff;
    --border-radius: 24px;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-main);
    line-height: 1.5;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========================
   HEADER & MEGA MENU
   ======================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--color-point);
}

.gnb {
    height: 100%;
}

.gnb>ul {
    display: flex;
    height: 100%;
    gap: 40px;
}

.gnb>ul>li {
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.15rem;
    cursor: pointer;
    position: relative;
    color: #444;
    transition: color 0.2s;
    padding: 0 6px;
}

.gnb>ul>li:hover,
.gnb>ul>li.active {
    color: var(--color-main);
}

.gnb>ul>li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-point);
    transition: width 0.3s;
}

.gnb>ul>li:hover::after,
.gnb>ul>li.active::after {
    width: 100%;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gnb>ul>li:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu a {
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.2s;
    display: block;
    padding: 4px 0;
}

.mega-menu a:hover {
    color: var(--color-main);
    transform: translateX(2px);
}

.btn-reserve {
    background-color: var(--color-main);
    color: white;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-reserve:hover {
    background-color: var(--color-point);
    transform: scale(1.05);
}

/* ========================
   SECTION HEADER (공유)
   ======================== */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: #888;
    font-size: 1.1rem;
}

/* ========================
   PAGE TRANSITION OVERLAY
   ======================== */
#page-transition {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.45s ease;
}

#page-transition.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ========================
   FOOTER
   ======================== */
footer {
    background-color: #222;
    color: #888;
    font-size: 0.875rem;
    padding: 40px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 48px;
}

.footer-logo img {
    height: 44px;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    line-height: 1.6;
}

.footer-info p {
    margin: 0;
    color: #999;
}

.footer-copy {
    margin-top: 4px !important;
    color: #666 !important;
    font-size: 0.8rem;
}

/* ========================
   HAMBURGER BUTTON
   ======================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-main);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================
   MOBILE NAV
   ======================== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    background: #fff;
    z-index: 1001;
    overflow-y: auto;
    padding: 80px 6% 40px;
    flex-direction: column;
}

.mobile-nav.open {
    display: flex;
    animation: mobileNavIn 0.3s ease;
}

@keyframes mobileNavIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-item {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-main);
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    color: var(--color-point);
}

.mobile-nav-group {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-main);
    padding: 16px 0;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.mobile-nav-group-title:hover {
    color: var(--color-point);
}

.mobile-group-arrow {
    font-size: 0.85rem;
    color: #aaa;
    transition: transform 0.25s ease;
}

.mobile-nav-group-title.open .mobile-group-arrow {
    transform: rotate(180deg);
    color: var(--color-point);
}

.mobile-nav-group-items {
    display: none;
    padding: 0 0 12px 16px;
}

.mobile-nav-group-items.open {
    display: block;
}

.mobile-nav-group-items a {
    display: block;
    font-size: 1rem;
    color: #666;
    padding: 10px 0;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f8f8f8;
    transition: color 0.2s;
}

.mobile-nav-group-items a:last-child {
    border-bottom: none;
}

.mobile-nav-group-items a:hover,
.mobile-nav-group-items a:active {
    color: var(--color-point);
}

body.mobile-nav-open {
    overflow: hidden;
}

/* ========================
   RESPONSIVE - BASE
   ======================== */

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    header {
        height: 70px;
    }

    .logo img {
        height: 36px !important;
    }

    .gnb {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 0 5%;
    }

    .footer-info p {
        font-size: 0.8rem;
        word-break: keep-all;
    }
}
