/* Alex Brush (하드코딩 전용) */
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&display=swap');
/* Montserrat (하드코딩 전용) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* ==========================================
   COMMON STYLES - 피그마 디자인 기반
   ========================================== */

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

html {
    font-size: 16px;
}

body {
    font-family: var(--font-ko-sub);
    color: #1c1b1f;
    background: white;
    overflow-x: hidden;
}

img {
    width: 100%;
    height: 100%;
    display: block;
}

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

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

/* ==========================================
   HEADER (공통 헤더)
   ========================================== */

.site-header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 120px;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transition: background 0.3s ease;
}

.header-wrapper {
    width: 100%;
    max-width: 1600px;
    flex: 1 1 auto;
    height: 100%;
    position: relative;
    z-index: 1001;
}

.header-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

.header-logo {
    flex-shrink: 0;
    width: 210px;
    height: 88px;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 80px;
    align-self: flex-end;
    padding-bottom: 12px;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 80px;
    margin: 0;
    padding: 0;
}

.nav-menu > li > a {
    font-family: var(--font-en-main);
    font-weight: 500;
    font-size: 20px;
    color: white;
    letter-spacing: -0.225px;
    padding: 0 15px;
}

.btn-book {
    background: white;
    color: black !important;
    padding: 11px 24px !important;
    border-radius: 50px;
    font-family: var(--font-en-main);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.225px;
}

/* 데스크톱: 모바일 전용 요소 숨김 */
.header-menu-btn {
    display: none;
}

.book-short {
    display: none;
}

/* ==========================================
   HEADER DROPDOWN
   ========================================== */

/* 헤더 hover/focus 시 배경 전환 */
.site-header:hover,
.site-header:focus-within {
    background: rgba(40, 40, 40, 0.85);
}

/* 드롭다운 배경 패널 — 데스크톱: 배경만 표시, 콘텐츠 숨김 */
.header-dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: auto;
    min-height: 350px;
    background: rgba(40, 40, 40, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0s linear 0.15s;
    z-index: 1000;
}

.site-header:hover .header-dropdown,
.site-header:focus-within .header-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.15s ease, visibility 0s linear 0s;
}

/* 데스크톱: 모바일 아코디언 콘텐츠 숨김 */
.header-dropdown-inner {
    display: none;
}

/* 데스크톱: 각 대메뉴 아래 서브메뉴 */
.has-dropdown {
    position: relative;
}

.dropdown-sub {
    position: absolute;
    top: calc(100% + 40px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1001;
    transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}

.site-header:hover .dropdown-sub,
.site-header:focus-within .dropdown-sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.15s ease, visibility 0s linear 0s;
}

.dropdown-sub a {
    font-family: var(--font-ko-sub);
    font-weight: 400;
    font-size: 17px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    padding: 0 15px;
    transition: color 0.2s ease;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.dropdown-sub a:hover,
.dropdown-sub a:focus {
    color: white;
}

/* 모바일 아코디언 기본 스타일 (데스크톱에서는 header-dropdown-inner가 숨김) */
.dropdown-columns {
    display: flex;
    gap: 33px;
    padding: 28px 0 45px;
}

.dropdown-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 100px;
}

.dropdown-col a {
    font-family: var(--font-ko-sub);
    font-weight: 400;
    font-size: 17px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    transition: color 0.2s ease;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.dropdown-col a:hover,
.dropdown-col a:focus {
    color: white;
}

.dropdown-col-title {
    display: none;
}

.col-arrow {
    display: none;
}

.dropdown-col-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* ==========================================
   FOOTER (공통 푸터)
   ========================================== */

.site-footer {
    background: var(--color-primary);
    margin-top: 0;
    padding: 60px 0 50px;
}

.footer-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 40px 0;
}

.footer-left {
    flex-shrink: 0;
}

.footer-copyright {
    font-family: var(--font-ko-sub);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.6;
    color: black;
}

.footer-copyright p {
    margin: 0;
}

.footer-right {
    text-align: right;
}

.footer-contact {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 6px;
}

.icon-phone,
.icon-map {
    width: 26px;
    height: 26px;
}

.phone-number {
    font-family: var(--font-ko-sub);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.5;
    color: black;
    margin: 0;
}

.address {
    font-family: var(--font-ko-sub);
    font-weight: 700;
    font-size: 16px;
    line-height: 2;
    color: black;
    margin: 0;
}

.footer-info {
    margin-top: 12px;
}

.footer-info p {
    font-family: var(--font-ko-sub);
    font-size: 16px;
    line-height: 1.5;
    color: black;
    margin: 0;
}

.footer-info strong {
    font-weight: 700;
}

.footer-divider {
    max-width: 1600px;
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
    margin: 0 auto 20px;
}

.footer-info-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: right;
}

/* ==========================================
   TABLET RESPONSIVE (max-width: 1140px)
   ========================================== */

@media (max-width: 1140px) {
    .book-full {
        display: none;
    }

    .book-short {
        display: inline;
    }
}


/* ==========================================
   MOBILE RESPONSIVE (max-width: 768px)
   ========================================== */

@media (max-width: 768px) {

    /* --- HEADER --- */
    .site-header {
        height: 70px;
    }

    .header-wrapper {
        max-width: 100%;
    }

    .header-inner {
        padding: 0 20px;
    }

    .header-logo {
        width: 120px;
        height: 50px;
    }

    .header-nav {
        gap: 16px;
        align-self: center;
        padding-bottom: 0;
    }

    /* 모바일: Menu 버튼 표시 */
    .header-menu-btn {
        display: block;
        font-family: var(--font-en-main);
        font-weight: 500;
        font-size: 14px;
        color: white;
        letter-spacing: -0.225px;
        cursor: pointer;
    }

    /* 모바일: 개별 메뉴 숨김, Book 버튼만 표시 */
    .nav-menu {
        gap: 16px;
    }

    .nav-menu li {
        display: none;
    }

    .nav-menu li:last-child {
        display: block;
    }

    .book-full {
        display: none;
    }

    .book-short {
        display: inline;
    }

    .btn-book {
        padding: 8px 14px;
        font-size: 12px;
    }

    /* --- DROPDOWN (모바일) --- */

    /* 데스크톱 서브메뉴 숨김 */
    .dropdown-sub {
        display: none !important;
    }

    /* 모바일: hover 배경 비활성화 */
    .site-header:hover,
    .site-header:focus-within {
        background: none;
    }

    .site-header.menu-active {
        background: rgba(40, 40, 40, 0.85);
    }

    /* 모바일 드롭다운 패널 */
    .header-dropdown {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: none;
        border-top: none;
        transition: opacity 0.2s ease, visibility 0s linear 0.2s;
    }

    .site-header:hover .header-dropdown,
    .site-header:focus-within .header-dropdown {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .site-header .header-dropdown.is-open,
    .site-header:hover .header-dropdown.is-open,
    .site-header:focus-within .header-dropdown.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.2s ease, visibility 0s linear 0s;
    }

    /* 모바일: 아코디언 콘텐츠 표시 */
    .header-dropdown-inner {
        display: block;
        padding: 0 20px;
    }

    .dropdown-columns {
        gap: 0;
        padding: 10px 0 30px;
        flex-direction: column;
    }

    .dropdown-col {
        align-items: flex-start;
        text-align: left;
        min-width: auto;
        width: 100%;
        padding: 12px 0;
    }

    .dropdown-col-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-family: var(--font-en-main);
        font-weight: 500;
        font-size: 15px;
        color: white;
        letter-spacing: -0.225px;
        padding-bottom: 8px;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        width: 100%;
        cursor: pointer;
    }

    .col-arrow {
        display: block;
        width: 8px;
        height: 8px;
        border-right: 1.5px solid white;
        border-bottom: 1.5px solid white;
        transform: rotate(45deg);
        transition: transform 0.25s ease;
    }

    .dropdown-col.is-expanded .col-arrow {
        transform: rotate(-135deg);
    }

    .dropdown-col-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
    }

    .dropdown-col.is-expanded .dropdown-col-links {
        max-height: 300px;
        padding: 8px 0 4px;
    }

    /* --- FOOTER --- */
    .site-footer {
        padding: 40px 0 30px;
    }

    .footer-wrapper {
        flex-direction: column;
        padding: 0 20px;
        gap: 30px;
    }

    .footer-right {
        text-align: left;
    }

    .contact-item {
        justify-content: flex-start;
    }

    .phone-number {
        font-size: 22px;
    }

    .footer-divider {
        margin: 0 20px 16px;
    }

    .footer-info-wrapper {
        padding: 0 20px;
        text-align: left;
    }

    .footer-info p {
        font-size: 13px;
    }
}
