/* ---------- Header ---------- */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    border-bottom: 1px solid #d8d8d8;
    position: relative;
    z-index: 1000;
}

.logo img {
    position: relative;
    bottom: 10px;
    width: 250px;
    display: block;
}

.mobile-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 120px;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 54px;
}

.navbar a {
    color: #0d3c62;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: .3s;
}

.navbar a:hover {
    color: #c9982f;
}

.navbar a.active {
    color: #c9982f;
    font-weight: 600;
}

/* ---------- Services Dropdown ---------- */

.services-menu {
    position: relative;
}

.services-menu-trigger {
    display: flex;
    align-items: flex-end;
    gap: 7px;
}

.services-link {
    display: inline-flex;
    align-items: center;
}

.services-dropdown-toggle {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.services-arrow {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: block;
}

.services-arrow-up {
    display: none;
}

.services-menu.open .services-arrow-down {
    display: none;
}

.services-menu.open .services-arrow-up {
    display: block;
}

.services-dropdown {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-18%) translateY(-8px);
    width: 290px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e3e6e9;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(13, 60, 98, .14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.services-menu.open .services-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-18%) translateY(0);
}

.services-dropdown a {
    display: block;
    padding: 11px 13px;
    border-radius: 5px;
    color: #0d3c62 !important;
    font-size: 14px !important;
    line-height: 1.35;
    font-weight: 500 !important;
}

.services-dropdown a:hover {
    background: #f7f2e8;
    color: #c9982f !important;
}

.header-buttons {
    display: flex;
    gap: 28px;
}

.btn {
    text-decoration: none;
    color: #fff;
    padding: 14px 26px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 500;
    transition: .3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-blue {
    background: #0d3c62;
}

.btn-gold {
    background: #c9982f;
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #0d3c62;
    border-radius: 3px;
    transition: transform .25s ease, opacity .25s ease;
}

@media (max-width: 1368px) {
    .navbar { gap: 40px; }
    .navbar > a, .services-link { font-size: 16px; }
    .btn { font-size: 16px; padding: 14px 20px; }
    .logo img { width: 200px; }
}

@media (max-width: 1200px) {
    .navbar { gap: 30px; }
    .navbar > a, .services-link { font-size: 16px; }
    .btn { padding: 14px 20px; font-size: 14px; }
}

@media (max-width: 1100px) {
    .header {
        padding: 14px 20px;
        min-height: 72px;
    }

    .logo img {
        width: 200px;
        bottom: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        position: relative;
        z-index: 1002;
    }

    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 25px 20px 30px;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    }

    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .navbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .navbar > a,
    .services-menu {
        width: 100%;
    }

    .navbar > a,
    .services-menu-trigger {
        border-bottom: 1px solid #eee;
    }

    .navbar > a {
        display: block;
        padding: 15px 5px;
        font-size: 17px;
    }

    .navbar > a:first-child {
        border-top: 1px solid #eee;
    }

    .services-menu-trigger {
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .services-link {
        flex: 1;
        min-height: 50px;
        display: flex;
        align-items: center;
        font-size: 17px !important;
    }

    .services-dropdown-toggle {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .services-arrow {
        width: 14px;
        height: 14px;
    }

    .services-dropdown {
        position: static;
        width: 100%;
        padding: 0px 0 0px 15px;
        background: #fafbfc;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height .25s ease, opacity .2s ease, visibility .2s ease;
    }

    .services-menu.open .services-dropdown {
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 500px;
    }

    .services-dropdown a {
        padding: 12px 10px;
        border-bottom: 1px solid #e8eaed;
        font-size: 15px !important;
    }

    .services-dropdown a:last-child {
        border-bottom: 0;
    }

    .header-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 5px;
    }

    .header-buttons .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        padding: 13px 20px;
        font-size: 16px;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 600px) {
    .header {
        padding: 12px 16px;
    }

    .logo img {
        width: 175px;
    }

    .mobile-menu {
        padding: 18px 16px 24px;
        gap: 18px;
    }
}

/* ==========================================================
   SERVICES DROPDOWN - MOBILE FIX
   ========================================================== */

   @media (max-width: 1100px) {

    .services-menu {
        display: block;
        position: relative;
        padding: 0px 5px;
    }

    .services-menu-trigger {
        width: 100%;
        box-sizing: border-box;
    }

    .services-dropdown-toggle {
        position: relative;
        z-index: 5;
        cursor: pointer;
        touch-action: manipulation;
    }

    .services-dropdown {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .services-menu.open .services-dropdown {
        display: block;
    }

}