/* ============================================
   Header CSS - 위드봄산부인과의원
   ============================================ */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    height: var(--header-height);
    background: #F6F3E8;
    z-index: 1000;
    transition: box-shadow var(--transition), background-color var(--transition);
}

.site-header.is-scrolled {
    background: rgba(246, 243, 238, 0.96);
    box-shadow: 0 6px 24px rgba(27, 33, 29, 0.08);
}

.header-inner {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* 로고 */
.header-logo a {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 28px;
    width: auto;
    display: block;
}

/* GNB */
.gnb-list {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
}

.gnb-link {
    font-family: var(--font-sans);
    font-size: 14px;
    letter-spacing: -0.01em;
    color: #4D6D58;
    transition: color var(--transition);
}

.gnb-link:hover {
    color: #1e3028;
}

/* 햄버거 */
.btn-hamburger {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.btn-hamburger span {
    width: 20px;
    height: 1.5px;
    margin: 0 auto;
    background: #3c4640;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.btn-hamburger.is-active span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.btn-hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.btn-hamburger.is-active span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

/* 모바일 메뉴 */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #f8f5f1;
    border-top: 1px solid rgba(47, 49, 46, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
}

.mobile-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-inner {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 14px 30px 28px;
}

.mobile-menu-link {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid rgba(47, 49, 46, 0.08);
    font-family: var(--font-sans);
    font-size: 14px;
    color: #3f4742;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(24, 31, 27, 0.34);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
}

@media (max-width: 1024px) {
    .gnb {
        display: none;
    }

    .btn-hamburger {
        display: flex;
    }

    .mobile-menu-overlay {
        display: block;
    }
}

@media (max-width: 768px) {
    .header-inner,
    .mobile-menu-inner {
        width: calc(100% - 36px);
    }

    .logo-img {
        height: 24px;
    }
}