/* ==========================================================================
   HEADER - FIXED WHITE, NAV + HAMBURGER MOBILE
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header__container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 30px;
    height: 90px;
    gap: 40px;
}

.header__logo {
    margin-right: auto;
    display: flex;
    align-items: center;
}

.header__logo img {
    height: 55px;
    width: auto;
}

/* ============================================
   DESKTOP NAV
   ============================================ */
.header__nav {
    display: flex;
    align-items: center;
}

.header__nav > ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__nav a {
    color: #1a3a5c;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.header__nav a:hover,
.header__nav a.active {
    background: #ed8936;
    color: #fff;
}

/* ============================================
   DESKTOP DROPDOWN - HOVER ONLY
   ============================================ */
.has-dropdown {
    position: relative;
}

/* Dropdown list - hidden by default */
.header__nav .has-dropdown > .header__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 260px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    z-index: 1001;
    padding: 10px 0;
    flex-direction: column;
}

/* Dropdown shown on hover */
.header__nav .has-dropdown:hover > .header__dropdown {
    display: flex;
    flex-direction: column;
}

.header__nav .has-dropdown > .header__dropdown a {
    color: #1a3a5c !important;
    padding: 10px 20px;
    font-size: 0.82rem;
    display: block;
    border-radius: 0;
}

.header__nav .has-dropdown > .header__dropdown a:hover {
    background: #ed8936 !important;
    color: #fff !important;
}

/* ============================================
   MOBILE BUTTON
   ============================================ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: none;
    width: 25px;
    height: 3px;
    background: #1a3a5c;
    position: relative;
    border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1a3a5c;
    border-radius: 2px;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================================
   MOBILE NAV
   ============================================ */
.mobile-nav {
    display: none;
}

/* ============================================
   MOBILE (<=900px)
   ============================================ */
@media (max-width: 900px) {
    .header__container {
        height: 65px;
        padding: 0 20px;
        gap: 20px;
    }

    .header__logo img {
        height: 38px;
    }

    /* Hide desktop nav */
    .header__nav {
        display: none;
    }

    /* Show hamburger button */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger {
        display: block;
    }

    /* Mobile nav overlay */
    .mobile-nav {
        display: block;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: #ffffff;
        max-height: calc(100vh - 65px);
        overflow-y: auto;
        transform: translateY(-110%);
        transition: transform 0.3s ease;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

    .mobile-nav.open {
        transform: translateY(0);
    }

    .mobile-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-nav a {
        display: block;
        color: #1a3a5c;
        text-decoration: none;
        padding: 14px 20px;
        font-size: 0.95rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .mobile-nav .header__dropdown {
        display: none;
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.05);
        padding-left: 20px;
    }

    .mobile-nav li.has-dropdown.open > .header__dropdown {
        display: flex;
        flex-direction: column;
    }
}
