/* =====================================================
   UNIFIED HEADER & NAVIGATION STYLES (header.css)
===================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    position: sticky;
    top: 0;
    z-index: 2000;
    background-color: #242f67;
    color: #fff;
    width: 100%;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
}

.brand-logo img {
    width: 55px;
    height: auto;
}

.brand-text {
    line-height: 1.2;
    color: #fff;
}

.brand-text small {
    color: rgba(255, 255, 255, 0.75);
}

/* Navigation Menu Links */
.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link-custom {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link-custom:hover {
    color: #e64555;
}

/* Hamburger Menu Toggle (Hidden by default on Desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

/* ================= SERVICES DROPDOWN ================= */
.services-dropdown {
    position: relative;
    display: inline-block;
}

.services-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 14px;
}

.services-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #f9fafc;
    min-width: 220px;
    padding: 12px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    display: none;
    z-index: 3000;
}

.services-dropdown:hover .services-menu {
    display: block;
}

.services-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 15px;
    color: #242f67;
    text-decoration: none;
    transition: all 0.2s ease;
}

.services-menu a:hover {
    background-color: #242f67;
    color: #ffffff;
}

.services-dropdown.active .services-menu {
    display: block;
}

/* ================= LANGUAGE DROPDOWN ================= */
.flag-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    display: inline-block;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.lang-dropdown {
    position: relative;
    margin-right: 12px;
}

.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #e7e7e7;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    z-index: 3000;
}

.lang-menu.show {
    display: block;
}

.lang-menu li {
    list-style: none;
    margin: 6px 0;
}

/* ================= RESPONSIVE MOBILE VIEW (< 991px) ================= */
@media (max-width: 991px) {
    header {
        padding: 1rem 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #242f67;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 25px;
        gap: 16px;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease, visibility 0.35s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .main-nav.active {
        max-height: 500px;
        visibility: visible;
        padding: 20px 25px;
    }

    .services-menu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        margin-top: 8px;
        display: none;
        padding: 5px 0 5px 12px;
    }

    .services-dropdown.active .services-menu {
        display: block;
    }

    .services-dropdown::after {
        display: none;
    }

    .lang-menu {
        right: auto;
        left: 0;
    }
}