/* ==========================================================================
   Modern Ultra-Premium Public Navigation Bar
   ========================================================================== */
.site-header {
    position: fixed;
    z-index: 50;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1220px, calc(100% - 48px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 10px 24px;
    border: 1px solid rgba(223, 229, 242, 0.85);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 42px rgba(9, 33, 74, 0.08), 0 2px 8px rgba(9, 33, 74, 0.03);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
    top: 14px;
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(212, 226, 238, 0.95);
    box-shadow: 0 20px 50px rgba(9, 33, 74, 0.13), 0 4px 14px rgba(9, 33, 74, 0.05);
}

.brand {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: auto;
    background: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand:hover {
    transform: scale(1.02);
    opacity: 0.92;
}

.brand > * {
    display: unset;
}

.brand-img {
    display: block;
    height: 34px;
    width: auto;
    object-fit: contain;
}

.brand-footer .brand-img {
    height: 40px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(244, 248, 255, 0.65);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.desktop-nav a.nav-item {
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-nav a.nav-item:hover {
    color: #087cff;
    background: rgba(8, 124, 255, 0.08);
}

.desktop-nav a.nav-item.is-active {
    color: #087cff;
    font-weight: 700;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(8, 124, 255, 0.12);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.locale-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid #d4e2ee;
    border-radius: 999px;
    background: rgba(244, 248, 255, 0.92);
}

.locale-switch-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #64748b;
    font: 700 10px/1 Manrope, sans-serif;
    letter-spacing: 0.08em;
    padding: 7px 9px;
    border-radius: 999px;
    cursor: pointer;
}

.locale-switch-btn.is-active {
    background: #fff;
    color: #087cff;
    box-shadow: 0 1px 4px rgba(8, 124, 255, 0.12);
}

.auth-locale {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.login-link {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.login-link:hover {
    color: #087cff;
    background: rgba(8, 124, 255, 0.06);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #09214a 0%, #0d2e66 60%, #154188 100%) !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 22px rgba(9, 33, 74, 0.24) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease !important;
}

.header-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(9, 33, 74, 0.32) !important;
    opacity: 0.96 !important;
}

.header-cta i {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.header-cta:hover i {
    transform: translate(2px, -2px);
}

.menu-toggle {
    display: none;
    background: #f4f8ff;
    border: 1px solid #dfe8f4;
    width: 40px;
    height: 40px;
    padding: 9px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
    background: rgba(8, 124, 255, 0.08);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #09214a;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #d4e2ee;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(9, 33, 74, 0.15);
    backdrop-filter: blur(22px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.mobile-menu a {
    font-size: 14.5px;
    font-weight: 600;
    color: #334155;
    padding: 10px 14px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a.is-active {
    color: #087cff;
    background: rgba(8, 124, 255, 0.08);
}

.public-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-page main {
    flex: 1;
    padding-top: 108px;
}

@media (max-width: 960px) {
    .site-header {
        width: calc(100% - 24px);
        max-width: 100%;
        top: 12px;
        padding: 8px 10px 8px 16px;
        border-radius: 20px;
        gap: 8px;
    }

    .desktop-nav,
    .login-link,
    .header-cta {
        display: none !important;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .header-actions {
        gap: 8px;
        margin-left: auto;
    }

    .mobile-menu {
        padding: 12px;
        border-radius: 20px;
        gap: 4px;
        max-height: min(72vh, 560px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .mobile-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .mobile-menu-login {
        margin-top: 8px;
        justify-content: center;
        border: 1px solid #d4e2ee;
    }

    .mobile-menu-cta {
        justify-content: center;
        margin-top: 4px;
    }

    .public-page main {
        padding-top: 88px;
    }
}

@media (max-width: 520px) {
    .site-header {
        width: calc(100% - 16px);
        top: 8px;
        padding: 7px 8px 7px 12px;
        border-radius: 16px;
    }

    .brand-img {
        height: 26px;
    }

    .public-page main {
        padding-top: 76px;
    }
}

.footer-links {
    flex-wrap: wrap;
    gap: 36px 56px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 16px;
}

.footer-legal a {
    color: inherit;
}

.footer-legal a:hover {
    color: var(--blue, #087cff);
}

@media (max-width: 720px) {
    .footer-legal {
        justify-content: flex-start;
    }
}
