/* 🟢 GLOBAL APP SHELL NAVBAR */
.global-top-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 70px;
    background: var(--bg-canvas);
    border-bottom: 2px solid var(--brand-slate);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.navbar-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-text {
    font-weight: 800;
    font-size: 1.3rem;
    color: #111827;
    letter-spacing: -0.03em;
}

.brand-sub {
    font-weight: 300;
    color: var(--brand-slate);
}

.logo-body { fill: var(--brand-slate); }

.navbar-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.nav-link:hover { color: #111827; }

.nav-button {
    background: #111827;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.1s ease;
}

.nav-button:hover {
    background: #334155;
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 800px) {
    .hide-mobile { display: none !important; }
    .navbar-links { gap: 15px; }
}

/* 🟢 Group text links on desktop */
.nav-text-links {
    display: flex;
    align-items: center;
    gap: 25px; /* Matches your main navbar-links gap */
}

@media screen and (max-width: 768px) {
    .global-top-navbar { height: auto; min-height: 85px; padding: 0; }

    .navbar-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 15px 0 15px;
        position: relative;
    }

    /* 1. Brand Logo Setup */
    .navbar-brand {
        gap: 8px;
        flex-shrink: 0;
        margin-bottom: 8px;
    }
    .brand-text { display: flex; flex-direction: column; font-size: 1.05rem; line-height: 1; }
    .brand-sub { display: block !important; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; color: var(--pitch-blue); }

    /* 🟢 2. THE BUTTON FIX: Fixed width + Flex Centering */
    .nav-button {
        position: absolute;
        top: 14px;
        right: 15px;

        width: 96px; /* ⚡ A fixed width guarantees the text wraps perfectly */
        padding: 6px 0; /* ⚡ Let flexbox handle the side padding dynamically */

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 0.65rem;
        line-height: 1.2;
        border-radius: 4px;
        text-transform: uppercase;
        text-align: center;
        white-space: normal;
        z-index: 10;
    }

    /* 🟢 3. PERFECT ALIGNMENT: Resetting stray margins and applying the Optical Nudge */
    .navbar-links {
        width: 100%;
        display: flex;
        justify-content: flex-start;

        /* ⚡ Force reset any old padding/margins causing the "ghost indent" */
        padding: 4px 0 12px 0 !important;
        margin: 0 !important;
    }

    .nav-text-links {
        display: flex;
        flex-direction: row;
        gap: 20px;
        width: 100%;

        /* ⚡ OPTICAL ALIGNMENT: Nudges the text 2px to the right so the stem of the "D"
           lines up perfectly with the solid edge of the hexagon above it */
        padding-left: 2px !important;
        margin: 0 !important;
    }

    .nav-link {
        font-size: 0.75rem;
        color: #475569;
        text-transform: uppercase;
        font-weight: 800;
        letter-spacing: 0.03em;
    }
}