/* ============================================================
   COWAY HEADER NAVIGATION COMPONENT - FIGMA & RESPONSIVE
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 73px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Homepage & Transparent Page Header State (Figma Frame 1618873254) */
.site-header.header-home {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.site-header.header-transparent {
    background: rgba(255, 255, 255, 0.01) !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Transparent Header Dark Text Variant */
.site-header.header-transparent.header-transparent-dark {
    background: rgba(255, 255, 255, 0.01) !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    box-shadow: none !important;
}

.site-header.header-transparent.header-transparent-dark .header-nav > a,
.site-header.header-transparent.header-transparent-dark .nav-dropdown-toggle {
    color: #333333 !important;
}

.site-header.header-transparent.header-transparent-dark .header-nav > a.active,
.site-header.header-transparent.header-transparent-dark .nav-dropdown-toggle.active {
    color: #333333 !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #00A7E1 !important;
}

.site-header.header-transparent.header-transparent-dark .header-nav > a:hover,
.site-header.header-transparent.header-transparent-dark .nav-dropdown-toggle:hover {
    color: #00A7E1 !important;
    opacity: 1 !important;
}

.site-header.header-transparent.header-transparent-dark .header-toggle span {
    background: #333333 !important;
}

.site-header.header-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 18px 80px;
    box-sizing: border-box;
}

/* Logo Styling (Coway CI 1) */
.header-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-logo-img {
    width: 139px;
    height: 32px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.header-logo-img:hover {
    transform: scale(1.04);
}

/* Nav Links Container (Frame 1000006282: gap 41px) */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 41px;
}

.mobile-nav-header {
    display: none;
}

.header-nav > a,
.nav-dropdown-toggle {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    text-decoration: none;
    color: #333333;
    padding: 0 0 2px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

/* Transparent Header Text Color (White #FFFFFF) */
.site-header.header-transparent .header-nav > a,
.site-header.header-transparent .nav-dropdown-toggle {
    color: #FFFFFF;
}

.site-header.header-scrolled .header-nav > a,
.site-header.header-scrolled .nav-dropdown-toggle {
    color: #333333;
}

/* Active State (Frame 1618873545: border-bottom 2px solid #00A7E1, Semi Bold 600) */
.header-nav > a.active,
.nav-dropdown-toggle.active {
    color: #00A7E1 !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #00A7E1 !important;
}

.site-header.header-transparent .header-nav > a.active,
.site-header.header-transparent .nav-dropdown-toggle.active {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #00A7E1 !important;
}

.header-nav > a:hover,
.nav-dropdown-toggle:hover {
    color: #00A7E1;
}

.site-header.header-transparent .header-nav > a:hover,
.site-header.header-transparent .nav-dropdown-toggle:hover {
    color: #FFFFFF;
    opacity: 0.9;
}

/* Dropdown Menu Produk */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    padding: 0 0 2px 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-chevron {
    width: 18px;
    height: 18px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown.open .dropdown-chevron,
.nav-dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 180px;
    background: #00A7E1;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0, 167, 225, 0.3);
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item-box {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    width: 100%;
    box-sizing: border-box;
}

.nav-dropdown-menu a {
    display: block;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 21px;
    font-weight: 400;
    color: #FFFFFF !important;
    text-decoration: none;
    text-align: left;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    font-weight: 600 !important;
    color: #FFFFFF !important;
    border-bottom: 2px solid #E5F8FF !important;
}

/* Button CTA (Button Spec: #00A7E1 background, border-radius 12px, 142px x 37px) */
.btn-primary-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    width: 142px;
    height: 37px;
    background: #00A7E1;
    border-radius: 12px;
    color: #FFFFFF !important;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 21px;
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(0, 167, 225, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-pill:hover {
    background: #008cc0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 167, 225, 0.45);
}

.mobile-only-action {
    display: none;
    margin-top: 20px;
    width: 100%;
}

/* Hamburger Toggle Button */
.header-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.header-toggle span {
    width: 24px;
    height: 2px;
    background: #333333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.site-header.header-transparent .header-toggle span {
    background: #FFFFFF;
}

.site-header.header-scrolled .header-toggle span {
    background: #333333;
}

.header-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header-toggle.open span:nth-child(2) {
    opacity: 0;
}

.header-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.header-nav-backdrop {
    display: none;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS (Desktop, Macbook, Tablet, Mobile)
   ============================================================ */

/* Macbook / Laptop Tier (1024px - 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
    .header-inner {
        padding: 16px 40px;
    }

    .header-nav {
        gap: 28px;
    }

    .header-nav > a,
    .nav-dropdown-toggle {
        font-size: 15px;
    }
}

/* Tablet & Mobile Drawer Tiers (< 1024px) -> Right to Left Slide Menu */
@media (max-width: 1023px) {
    .header-inner {
        padding: 14px 24px;
    }

    .header-action {
        display: none;
    }

    .header-toggle {
        display: flex;
    }

    /* Dim Backdrop Overlay */
    .header-nav-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        z-index: 1040;
    }

    .header-nav-backdrop.show {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Drawer: Slide in from RIGHT to LEFT */
    .header-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 310px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: #FFFFFF !important;
        box-shadow: -6px 0 25px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 24px 20px;
        box-sizing: border-box;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
        overflow-y: auto;
    }

    .header-nav.show {
        transform: translateX(0);
    }

    /* Drawer Header Bar */
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-bottom: 16px;
        margin-bottom: 12px;
        border-bottom: 1px solid #E2E8F0;
    }

    .mobile-logo-img {
        width: 120px;
        height: auto;
        object-fit: cover;
    }

    .mobile-nav-close {
        background: none;
        border: none;
        font-size: 28px;
        line-height: 1;
        color: #333333;
        cursor: pointer;
        padding: 4px 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: background 0.2s ease;
    }

    .mobile-nav-close:hover {
        background: #F1F5F9;
    }

    /* Mobile Drawer Links */
    .header-nav > a {
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid #F1F5F9;
        text-align: left;
        color: #333333 !important;
        font-size: 16px;
        font-weight: 500;
        box-sizing: border-box;
    }

    .nav-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 14px 0;
        border-bottom: 1px solid #F1F5F9;
        text-align: left;
        box-sizing: border-box;
    }

    .nav-dropdown-toggle,
    .site-header.header-transparent .nav-dropdown-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #333333 !important;
        font-size: 16px;
        font-weight: 500;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        box-sizing: border-box;
    }

    .header-nav > a.active,
    .site-header.header-transparent .header-nav > a.active,
    .nav-dropdown-toggle.active,
    .site-header.header-transparent .nav-dropdown-toggle.active {
        color: #00A7E1 !important;
        font-weight: 700 !important;
        border-bottom: none !important;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none !important;
        width: 100%;
        box-shadow: none;
        border: none;
        background: #F8FAFC !important;
        display: none;
        flex-direction: column;
        gap: 2px;
        padding: 8px;
        margin-top: 12px;
        border-radius: 12px;
        opacity: 1;
        visibility: visible;
        box-sizing: border-box;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: flex;
    }

    .nav-dropdown-item-box {
        width: 100%;
        padding: 0;
    }

    .nav-dropdown-menu a {
        color: #475569 !important;
        font-size: 15px;
        font-weight: 500 !important;
        padding: 10px 14px;
        display: block;
        width: 100%;
        border-bottom: none !important;
        border-radius: 8px;
        box-sizing: border-box;
        transition: all 0.2s ease;
    }

    .nav-dropdown-menu a:hover,
    .nav-dropdown-menu a.active {
        color: #00A7E1 !important;
        font-weight: 600 !important;
        background: rgba(0, 167, 225, 0.1) !important;
        border-radius: 8px;
    }

    .mobile-only-action {
        display: block;
    }

    .mobile-only-action .btn-primary-pill {
        width: 100%;
        height: 42px;
        text-align: center;
        border-radius: 12px;
        font-size: 15px;
    }
}

/* Mobile Tier (< 768px) */
@media (max-width: 767px) {
    .header-inner {
        padding: 18px 20px !important;
    }

    .header-logo-img {
        width: 139px !important;
        height: 32px !important;
        object-fit: contain !important;
    }

    .header-nav {
        width: 300px;
        max-width: 85vw;
    }
}