header.global-header, header.global-header * {
    box-sizing: border-box !important;
}
header.global-header {
    width: 100%;
    padding: 16px 48px;
    background: #0b0f19;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-top-row {
    display: flex;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.header-logo img {
    height: 50px;
    width: auto;
}
.rainbow-text {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin-left: 10px;
    background: linear-gradient(to right, #00a2ff, #FFD700, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.header-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    transition: color 0.2s ease;
}
.header-nav-link:hover, .header-nav-link.active {
    color: #00f2ff;
}

.header-actions {
    display: none; /* Hide button if they just want logo and links centered */
}
.btn-consultation {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-consultation:hover {
    border-color: #00f2ff;
    color: #00f2ff;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 1024px) {
    header.global-header {
        display: flex;
        flex-direction: column;
        padding: 1rem 1.5rem;
    }
    .header-top-row {
        width: 100%;
        justify-content: space-between;
        order: -1; /* logo + menu button first on small screens; the nav opens below them */
    }
    .header-logo img {
        height: 35px;
    }
    .header-nav, .header-actions {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Mobile menu active state */
    .global-header.menu-open {
        flex-direction: column;
        align-items: flex-start;
    }
    .global-header.menu-open .header-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-top: 1.5rem;
        gap: 1.2rem;
    }
    .global-header.menu-open .header-actions {
        display: flex;
        width: 100%;
        margin-top: 1.5rem;
    }
    .global-header.menu-open .btn-consultation {
        width: 100%;
        text-align: center;
    }
}

/* Apple-style material (apple-design skill, 2026-10-19): the header is a translucent layer the page scrolls under,
   not an opaque strip - same colour, a little see-through, frosted. Solid again for reduce-transparency / more contrast,
   and where the browser can't blur. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    header.global-header {
        background: rgba(11, 15, 25, 0.78);
        -webkit-backdrop-filter: blur(20px) saturate(160%);
        backdrop-filter: blur(20px) saturate(160%);
    }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    header.global-header { background: #0b0f19 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
