/* Han-Eol Header - KD Navien Tone & Manner */
.haneol-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.haneol-header.scrolled {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

/* Logo */
/* Logo */
.haneol-header .logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    /* Default white on hero */
    text-decoration: none;
    letter-spacing: -1px;
    transition: color 0.3s;
    font-family: 'Times New Roman', serif;
    /* Restored to user preference */
}

.haneol-header.scrolled .logo a {
    color: #111;
    /* Black on scroll */
}

/* GNB (Menu) */
.haneol-header .gnb ul {
    display: flex;
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.haneol-header .gnb a {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.haneol-header .gnb a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s;
}

.haneol-header.scrolled .gnb a {
    color: #333;
}

.haneol-header.scrolled .gnb a::after {
    background-color: #ff6b00;
    /* Orange accent from Navien brand */
}

.haneol-header .gnb a:hover::after {
    width: 100%;
}

/* Hamburger Button */
.btn-menu {
    display: none;
    /* Hidden by default (PC) */
    position: relative;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10002;
    padding: 0;
}

.btn-menu .bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    /* Thin line */
    background-color: #fff;
    transition: all 0.3s ease;
}

.haneol-header.scrolled .btn-menu .bar {
    background-color: #111;
}

.btn-menu .bar:nth-child(1) {
    top: 6px;
}

.btn-menu .bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.btn-menu .bar:nth-child(3) {
    bottom: 6px;
}

/* Hamburger Active State (X) */
.btn-menu.active .bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background-color: #111 !important;
}

.btn-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.btn-menu.active .bar:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    background-color: #111 !important;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-gnb {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
}

.mobile-gnb a {
    font-size: 22px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    font-family: 'Pretendard', sans-serif;
}

.mobile-menu-overlay.active .mobile-gnb a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-gnb a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-gnb a:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu-overlay.active .mobile-gnb a:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-gnb a:nth-child(4) {
    transition-delay: 0.25s;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .header-inner {
        height: 60px;
        padding: 0 24px;
    }

    .haneol-header .gnb {
        display: none;
    }

    .btn-menu {
        display: block;
        /* Show hamburger on mobile */
    }

    /* PC CTA 버튼 모바일에서 숨김 */
    .header-cta {
        display: none;
    }
}

/* ── 헤더 CTA 버튼 (PC) ── */
.header-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 4px;
}

.header-cta__tel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    white-space: nowrap;
}

.header-cta__tel:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.haneol-header.scrolled .header-cta__tel {
    color: #333;
    border-color: rgba(0, 0, 0, 0.18);
}

.haneol-header.scrolled .header-cta__tel:hover {
    color: #111;
    border-color: rgba(0, 0, 0, 0.4);
}

.header-cta__contact {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #111;
    background: #fff;
    text-decoration: none;
    border-radius: 100px;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    white-space: nowrap;
}

.header-cta__contact:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
}

.haneol-header.scrolled .header-cta__contact {
    background: #111;
    color: #fff;
}

.haneol-header.scrolled .header-cta__contact:hover {
    background: #333;
}

/* ── 모바일 메뉴 CTA 버튼 스타일 ── */
.mobile-gnb__tel,
.mobile-gnb__contact {
    font-size: 16px !important;
    font-weight: 600 !important;
}

.mobile-gnb__tel {
    color: #555 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 16px;
    margin-top: 8px;
}

.mobile-gnb__contact {
    display: inline-block;
    padding: 12px 32px !important;
    background: #111;
    color: #fff !important;
    border-radius: 100px;
    font-size: 14px !important;
}

/* 모바일 메뉴 stagger delay (6개) */
.mobile-menu-overlay.active .mobile-gnb a:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-menu-overlay.active .mobile-gnb a:nth-child(6) {
    transition-delay: 0.35s;
}