﻿/* ============================================================
   REFRESH GLOBAL — MICROSOFT-STYLE NAVIGATION BAR
   Clean, modern, enterprise-grade navbar inspired by Microsoft.com
   with ultra-thin underline and precise spacing.
   Fully annotated for maintainability.
   ============================================================ */


/* ------------------------------------------------------------
   NAVBAR CONTAINER
   - 64px height (Microsoft standard)
   - White background
   - Subtle bottom border
   - Horizontal padding for breathing room
   ------------------------------------------------------------ */
.corporate-nav {
    height: 64px;
    padding: 0 32px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    font-family: "Segoe UI", Arial, sans-serif;
    display: flex;
    align-items: center;
}


/* ------------------------------------------------------------
   NAVBAR BRAND (if used)
   - Clean, bold, Microsoft-style branding
   ------------------------------------------------------------ */
.navbar-brand {
    font-size: 20px;
    font-weight: 600;
    color: #000 !important;
    margin-right: 24px;
}


/* ------------------------------------------------------------
   NAVIGATION LINKS (MICROSOFT STYLE)
   - Inline-block for tight underline control
   - Vertical padding instead of line-height
   - Underline sits close to text (your request)
   - Neutral Microsoft color palette
   ------------------------------------------------------------ */
.corporate-link {
    font-size: 15px;
    font-weight: 400;
    color: #262626 !important;
    position: relative; /* required for pseudo underline */
    display: inline-block; /* allows tight underline */
    padding: 20px 18px !important; /* vertical spacing */
    line-height: 1.2; /* natural text height */

    text-decoration: none;
    border-bottom: none !important; /* disable default underline */
    transition: color 0.2s ease;
}


    /* ------------------------------------------------------------
   ULTRA‑THIN UNDERLINE (MICROSOFT PRECISION)
   - Perfect underline width (matches text width)
   - Ultra-thin (1px)
   - Tight distance under letters
   - Uses pseudo-element for pixel-perfect control
   ------------------------------------------------------------ */
    .corporate-link::after {
        content: "";
        position: absolute;
        left: 18px; /* matches horizontal padding */
        right: 18px; /* matches horizontal padding */

        bottom: 10px; /* tight distance under text */
        height: 1px; /* ULTRA THIN underline */
        background-color: transparent;
        transition: background-color 0.2s ease;
    }


    /* ------------------------------------------------------------
   HOVER EFFECT
   - Underline appears close to text
   - No background highlight
   ------------------------------------------------------------ */
    .corporate-link:hover {
        color: #000 !important;
    }

        .corporate-link:hover::after {
            background-color: #000;
        }


    /* ------------------------------------------------------------
   ACTIVE PAGE
   - Bold + underline
   - Matches Microsoft.com active state
   ------------------------------------------------------------ */
    .corporate-link.active {
        font-weight: 600;
    }

        .corporate-link.active::after {
            background-color: #000;
        }


/* ------------------------------------------------------------
   NAVBAR NAVIGATION WRAPPER
   - Adds subtle spacing between items
   ------------------------------------------------------------ */
.navbar-nav {
    gap: 6px;
}


/* ------------------------------------------------------------
   MOBILE TOGGLER
   - Minimalist Microsoft-style hamburger
   ------------------------------------------------------------ */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler-icon {
    filter: invert(0.3);
}


/* ------------------------------------------------------------
   LANGUAGE SWITCHER
   - Right-aligned
   - Clean spacing
   - Light font weight
   ------------------------------------------------------------ */
.lang-switch {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.lang-item {
    font-size: 14px;
    color: #444 !important;
    padding: 0 8px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

    .lang-item.active {
        font-weight: 600;
        color: #000 !important;
    }

.lang-flag {
    width: 18px;
    height: auto;
    margin-right: 6px;
}

.divider {
    color: #999;
    padding: 0 4px;
}


/* ------------------------------------------------------------
   RESPONSIVE BEHAVIOR
   - Collapsed menu spacing
   - Remove underline hover on mobile
   - Adjust padding for smaller screens
   ------------------------------------------------------------ */
@media (max-width: 992px) {

    .corporate-nav {
        height: auto;
        padding: 12px 20px;
    }

    .corporate-link {
        padding: 10px 0 !important;
        line-height: 1.4;
    }

        .corporate-link::after {
            display: none; /* disable underline on mobile */
        }

    .navbar-nav {
        gap: 0;
    }

    .lang-switch {
        margin-top: 10px;
    }
}


/* ------------------------------------------------------------
   EXTRA POLISH (OPTIONAL)
   - Smooth fade-in animation for navbar
   - Helps when hero is large
   ------------------------------------------------------------ */
.corporate-nav {
    animation: fadeInNav 0.4s ease;
}

@keyframes fadeInNav {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler {
    margin-left: auto;
}
