:root {
    --primary: #031b40;
    --secondary: #0e2f6e;
    --menu-active: #00d1ff;
    --btn-blue: #0077c8;
}

.topbar {
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    padding: 10px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.topbar-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.topbar-contact li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
}

.topbar-contact li a {
    color: #fff;
    text-decoration: none;
}

.topbar-contact li a:hover {
    text-decoration: underline;
}

.topbar-contact svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

.topbar-social {
    display: flex;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.topbar-social a {
    display: inline-flex;
    color: #fff;
    opacity: .95;
    transition: opacity .2s ease;
}

.topbar-social a:hover { opacity: 1; }

.topbar-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.navbar {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid #e6e9ef;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

.navbar-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.menu {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
    font-size: 15px;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary);
    text-decoration: none;
    transition: color .2s ease;
}

.menu-item > a:hover,
.menu-item > a.is-active {
    color: var(--menu-active);
}

.menu-caret {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

.menu-sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(2, 22, 58, .16);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .2s ease;
    z-index: 30;
}

.menu-item:hover > .menu-sub,
.menu-sub .menu-item:hover > .menu-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-sub a {
    display: block;
    padding: 9px 14px;
    color: #17356f;
    font-weight: 600;
    font-size: 14px;
}

.menu-sub a:hover {
    background: #f2f6ff;
    color: var(--menu-active);
}

.menu-sub .menu-item {
    display: block;
}

.menu-sub .menu-sub {
    top: -8px;
    left: calc(100% + 4px);
}

.menu-sub .menu-item > a {
    justify-content: space-between;
}

.menu-sub .menu-sub .menu-item > a {
    font-size: 13px;
    font-weight: 600;
    white-space: normal;
    line-height: 1.35;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: var(--btn-blue);
    border: 2px solid var(--btn-blue);
    box-shadow: 0 4px 12px rgba(0, 119, 200, .28);
    transition: transform .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 119, 200, .35);
}

.btn-nav-pill {
    border-radius: 999px;
}

.btn-nav-outline {
    border-radius: 10px;
    border-color: #fff;
    box-shadow: inset 0 0 0 1px #fff, 0 4px 12px rgba(0, 119, 200, .28);
}

.btn-nav.is-current {
    background: #005fa3;
    box-shadow: inset 0 0 0 1px #fff, 0 6px 16px rgba(0, 119, 200, .4);
}

.menu-toggle {
    display: none;
    border: 1px solid #d8e0ef;
    background: #fff;
    color: #17356f;
    border-radius: 8px;
    padding: 8px 10px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid #e6e9ef;
    border-bottom: 1px solid #e6e9ef;
}

.mobile-menu.open { display: block; }

.mobile-menu-list,
.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid #eef2f9;
    padding: 12px 16px;
}

.mobile-link-row a {
    color: #17356f;
    font-weight: 700;
    font-size: 14px;
}

.mobile-link-row a.is-active { color: var(--menu-active); }

.mobile-submenu-toggle {
    border: 1px solid #d4def3;
    background: #f7faff;
    color: #17356f;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
}

.mobile-submenu {
    display: none;
    background: #f8faff;
}

.mobile-submenu.open { display: block; }

.mobile-submenu .mobile-link-row { padding-left: 26px; }

.mobile-menu-divider {
    height: 1px;
    margin: 4px 16px;
    background: #e6e9ef;
    list-style: none;
}

.mobile-link-row--cta a {
    display: flex;
    color: #fff;
    background: linear-gradient(135deg, #0077c8 0%, #0e2f6e 100%);
    border-radius: 10px;
    padding: 12px 16px;
    width: 100%;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 119, 200, .28);
}

.mobile-link-row--cta a.is-active {
    color: #fff;
    background: linear-gradient(135deg, #005fa3 0%, #031b40 100%);
}

.mobile-link-row--cta {
    padding: 12px 16px;
    border-bottom: none;
}

@media (max-width: 1100px) {
    .topbar-contact li:last-child {
        max-width: 280px;
    }
}

@media (max-width: 992px) {
    .menu { display: none; }
    .menu-toggle { display: inline-block; }
    .navbar-actions { display: none; }
}

@media (max-width: 640px) {
    .topbar-contact {
        gap: 12px;
        width: 100%;
    }

    .topbar-contact li:last-child {
        max-width: 100%;
    }

    .topbar .container {
        justify-content: center;
    }
}
