﻿/* ============================================================
   NienzoMX – site.css  |  Executive B2B Design System
   Optimized: April 2026
   ============================================================ */

/* ── 1. DESIGN TOKENS ──────────────────────────────────────── */
:root {
    /* Brand palette */
    --nx-navy: #0d2b4e; /* primary – deep authority navy */
    --nx-navy-dark: #081d35; /* navbar / footer */
    --nx-gold: #d4a017; /* accent – premium gold CTA */
    --nx-gold-light: #f0c040; /* hover gold */
    --nx-slate: #4a5568; /* body text secondary */
    --nx-mist: #f4f6f9; /* section background */
    --nx-white: #ffffff;
    /* Semantic */
    --nx-primary: var(--nx-navy);
    --nx-accent: var(--nx-gold);
    /* Typography */
    --nx-font-body: 'DM Sans', system-ui, sans-serif;
    --nx-font-display: 'DM Serif Display', Georgia, serif;
    /* Sizing & Radius */
    --nx-radius-sm: 6px;
    --nx-radius: 10px;
    --nx-radius-lg: 16px;
    /* Shadows */
    --nx-shadow-sm: 0 2px 8px rgba(13, 43, 78, 0.08);
    --nx-shadow: 0 4px 20px rgba(13, 43, 78, 0.12);
    --nx-shadow-lg: 0 12px 40px rgba(13, 43, 78, 0.18);
    /* Transitions */
    --nx-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. BASE RESET ──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--nx-font-body);
    color: var(--nx-navy-dark);
    background: var(--nx-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    /* BUG FIX: removed duplicate margin/padding resets – already in Bootstrap reboot */
}

/* ── 3. NAVBAR ──────────────────────────────────────────────── */
.nx-navbar {
    background: var(--nx-navy-dark);
    border-bottom: 2px solid var(--nx-gold);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    z-index: 1030;
}

.nx-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--nx-font-body);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--nx-white) !important;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nx-brand__icon {
    color: var(--nx-gold);
    font-size: 1.1rem;
    line-height: 1;
}

.nx-brand__mx {
    color: var(--nx-gold);
}

.nx-nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--nx-radius-sm);
    transition: color var(--nx-transition), background var(--nx-transition);
    letter-spacing: 0.01em;
    position: relative;
}

    .nx-nav-link:hover,
    .nx-nav-link.active {
        color: var(--nx-white) !important;
        background: rgba(255, 255, 255, 0.1);
    }

        /* Gold underline for active state */
        .nx-nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 1rem;
            right: 1rem;
            height: 2px;
            background: var(--nx-gold);
            border-radius: 2px;
        }

/* ── 4. NAVBAR BUTTONS ──────────────────────────────────────── */
.nx-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--nx-radius-sm);
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
    font-family: var(--nx-font-body);
    cursor: pointer;
    transition: all var(--nx-transition);
}

    .nx-btn-ghost:hover {
        border-color: var(--nx-white);
        color: var(--nx-white);
        background: rgba(255, 255, 255, 0.08);
    }

.nx-btn-cta {
    background: var(--nx-gold);
    color: var(--nx-navy-dark) !important;
    border: none;
    border-radius: var(--nx-radius-sm);
    padding: 0.45rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background var(--nx-transition), transform var(--nx-transition), box-shadow var(--nx-transition);
    white-space: nowrap;
}

    .nx-btn-cta:hover {
        background: var(--nx-gold-light);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(212, 160, 23, 0.35);
    }

/* ── 5. SECTION TITLE DECORATOR ────────────────────────────── */
.nx-section-title {
    font-family: var(--nx-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--nx-navy);
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

    .nx-section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 48px;
        height: 3px;
        background: var(--nx-gold);
        border-radius: 2px;
    }

/* ── 6. FOOTER ──────────────────────────────────────────────── */
.nx-footer {
    background: var(--nx-navy-dark);
    color: rgba(255, 255, 255, 0.65);
    padding-top: 4rem;
    padding-bottom: 2rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

.nx-footer__brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--nx-white);
}

.nx-footer__text {
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 320px;
}

.nx-footer__heading {
    color: var(--nx-white);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.nx-footer__links li {
    margin-bottom: 0.6rem;
}

.nx-footer__links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color var(--nx-transition);
    font-size: 0.9rem;
}

    .nx-footer__links a:hover {
        color: var(--nx-gold);
    }

.nx-footer__address {
    font-style: normal;
}

    .nx-footer__address p {
        margin-bottom: 0.65rem;
        color: rgba(255, 255, 255, 0.6);
    }

    .nx-footer__address a {
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        transition: color var(--nx-transition);
    }

        .nx-footer__address a:hover {
            color: var(--nx-gold);
        }

.nx-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--nx-transition);
}

    .nx-social-btn:hover {
        border-color: var(--nx-gold);
        color: var(--nx-gold);
        background: rgba(212, 160, 23, 0.1);
    }

.nx-footer__divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2.5rem 0 1.5rem;
}

.nx-footer__bottom {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

.nx-footer__legal-link {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color var(--nx-transition);
}

    .nx-footer__legal-link:hover {
        color: var(--nx-gold);
    }

/* ── 7. MODAL ───────────────────────────────────────────────── */
.nx-modal {
    border: none;
    border-radius: var(--nx-radius-lg);
    box-shadow: var(--nx-shadow-lg);
    overflow: hidden;
}

.nx-lang-list .list-group-item {
    border: none;
    font-size: 0.9rem;
    transition: background var(--nx-transition);
}

    .nx-lang-list .list-group-item.active {
        background: var(--nx-navy);
        color: var(--nx-white);
    }

/* ── 8. OVERRIDE BOOTSTRAP COLORS TO MATCH BRAND ───────────── */
/* BUG FIX: Bootstrap primary overrides so components use brand navy */
.btn-primary {
    --bs-btn-bg: var(--nx-navy);
    --bs-btn-border-color: var(--nx-navy);
    --bs-btn-hover-bg: var(--nx-navy-dark);
    --bs-btn-hover-border-color: var(--nx-navy-dark);
    --bs-btn-active-bg: var(--nx-navy-dark);
    font-weight: 600;
}

.btn-outline-primary {
    --bs-btn-color: var(--nx-navy);
    --bs-btn-border-color: var(--nx-navy);
    --bs-btn-hover-bg: var(--nx-navy);
    --bs-btn-hover-border-color: var(--nx-navy);
    font-weight: 600;
}

.text-primary {
    color: var(--nx-navy) !important;
}

.bg-primary {
    background-color: var(--nx-navy) !important;
}

/* ── 9. ACCESSIBILITY ───────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--nx-gold);
    outline-offset: 3px;
    border-radius: 3px;
}

/* BUG FIX: was using !important on everything; now only override needed props */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── 10. UTILITIES ──────────────────────────────────────────── */
.nx-badge-norm {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(13, 43, 78, 0.08);
    color: var(--nx-navy);
    border: 1px solid rgba(13, 43, 78, 0.15);
    border-radius: 4px;
    padding: 0.2em 0.5em;
}
