/* ==========================================================
   NIXGO9 — GLOBAL EXPORT V3 VISUAL OVERRIDE
   Purpose:
   - Replace the old technical/network visual language
   - Match About / Manufacturing / Private Label editorial style
   - Image-led, human, premium, restrained
   - Fully scoped to .nx-global-page
========================================================== */

.nx-global-page {
    --gx-ivory: #FAF8F4;
    --gx-cream: #F5F1E9;
    --gx-green: #1D694D;
    --gx-forest: #154D39;
    --gx-gold: #C79B32;
    --gx-text: #282723;
    --gx-muted: #6F6B63;
    --gx-line: rgba(29,105,77,.14);

    background: var(--gx-ivory);
    color: var(--gx-text);
    overflow: clip;
}

.nx-global-page *,
.nx-global-page *::before,
.nx-global-page *::after {
    box-sizing: border-box;
}

.nx-global-page img {
    display: block;
    width: 100%;
}

/* ==========================================================
   HERO — CINEMATIC, NOT CORPORATE
========================================================== */

.nx-gx-hero {
    position: relative;
    min-height: min(820px, calc(100vh - 20px));
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--gx-forest);
}

.nx-gx-hero__image {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(8,27,19,.90) 0%, rgba(8,27,19,.62) 40%, rgba(8,27,19,.14) 78%, rgba(8,27,19,.04) 100%),
        linear-gradient(0deg, rgba(8,27,19,.76) 0%, rgba(8,27,19,.08) 55%, rgba(8,27,19,.18) 100%),
        url("../images/global/global-export.png");
    background-size: cover;
    background-position: center;
    transform: scale(1.015);
}

.nx-gx-hero__veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(199,155,50,.20), transparent 25%),
        radial-gradient(circle at 18% 70%, rgba(29,105,77,.18), transparent 32%);
    pointer-events: none;
}

.nx-gx-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 170px 0 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 60px;
    align-items: end;
}

.nx-gx-hero__copy {
    max-width: 860px;
    color: #fff;
}

.nx-gx-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: #D8B65B;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .19em;
}

.nx-gx-kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
}

.nx-gx-hero h1 {
    margin: 0;
    max-width: 900px;
    color: #fff;
    font-size: clamp(58px, 7.4vw, 112px);
    line-height: .90;
    letter-spacing: -.065em;
    font-weight: 500;
    text-wrap: balance;
    text-shadow: 0 10px 40px rgba(0,0,0,.22);
}

.nx-gx-hero h1 span {
    display: block;
    color: #D9B75C;
}

.nx-gx-hero p {
    max-width: 700px;
    margin: 30px 0 0;
    color: rgba(255,255,255,.86);
    font-size: 17px;
    line-height: 1.75;
}

.nx-gx-hero__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
}

.nx-gx-button {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-height: 54px;
    padding: 0 25px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: transform .35s ease, box-shadow .35s ease;
}

.nx-gx-button:hover {
    transform: translateY(-3px);
}

.nx-gx-button--light {
    background: #fff;
    color: var(--gx-forest);
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.nx-gx-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

/* Remove the old dashboard-like side treatment */
.nx-gx-hero__side {
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-left: 24px;
    border-left: 1px solid rgba(255,255,255,.28);
    color: rgba(255,255,255,.68);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .18em;
}

.nx-gx-hero__side i {
    width: 30px;
    height: 1px;
    margin: 8px 0;
    background: var(--gx-gold);
}

.nx-gx-hero__side small {
    color: rgba(255,255,255,.48);
    line-height: 1.7;
    letter-spacing: .12em;
}

/* ==========================================================
   SHARED EDITORIAL SECTIONS
========================================================== */

.nx-gx-intro,
.nx-gx-origin,
.nx-gx-support,
.nx-gx-packaging,
.nx-gx-partnership {
    padding: clamp(90px, 10vw, 145px) 0;
}

.nx-gx-split,
.nx-gx-origin__grid,
.nx-gx-partnership__grid {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    gap: clamp(55px, 8vw, 115px);
    align-items: center;
}

/* ==========================================================
   IMAGE TREATMENT — MATCH ABOUT / MANUFACTURING
========================================================== */

.nx-gx-media,
.nx-gx-origin__visual {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #e3e9e4;
    box-shadow: 0 25px 75px rgba(40,39,35,.11);
}

.nx-gx-media::after,
.nx-gx-origin__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(10,25,18,.28));
}

.nx-gx-media img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 1s cubic-bezier(.2,.7,.2,1);
}

.nx-gx-media:hover img,
.nx-gx-origin__visual:hover img {
    transform: scale(1.035);
}

.nx-gx-media__caption {
    position: absolute;
    z-index: 2;
    left: 25px;
    bottom: 22px;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
    text-shadow: 0 2px 14px rgba(0,0,0,.4);
}

/* ==========================================================
   COPY
========================================================== */

.nx-gx-copy {
    max-width: 700px;
}

.nx-gx-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 27px;
    color: var(--gx-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
}

.nx-gx-label b {
    color: var(--gx-gold);
}

.nx-gx-copy h2,
.nx-gx-origin h2,
.nx-gx-support h2,
.nx-gx-partnership h2,
.nx-gx-final h2 {
    margin: 0;
    color: var(--gx-text);
    font-size: clamp(44px, 5.3vw, 78px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 500;
}

.nx-gx-copy h2 span,
.nx-gx-origin h2 span,
.nx-gx-support h2 span {
    display: block;
    color: var(--gx-green);
}

.nx-gx-copy p,
.nx-gx-origin p,
.nx-gx-support__heading p,
.nx-gx-support__grid p,
.nx-gx-partnership__copy p,
.nx-gx-final p {
    color: var(--gx-muted);
    font-size: 16px;
    line-height: 1.85;
    margin: 0 0 18px;
}

.nx-gx-lead {
    margin-top: 25px !important;
    color: var(--gx-text) !important;
    font-size: 23px !important;
    line-height: 1.5 !important;
}

.nx-gx-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 29px;
}

.nx-gx-pills span {
    padding: 10px 14px;
    border: 1px solid var(--gx-line);
    border-radius: 999px;
    background: rgba(29,105,77,.045);
    color: var(--gx-green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
}

/* ==========================================================
   ORIGIN
========================================================== */

.nx-gx-origin {
    background:
        radial-gradient(circle at 12% 30%, rgba(199,155,50,.10), transparent 28%),
        var(--gx-cream);
}

.nx-gx-origin__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.nx-gx-origin__visual img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 1s cubic-bezier(.2,.7,.2,1);
}

.nx-gx-quote {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    color: var(--gx-green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .15em;
}

.nx-gx-quote span {
    width: 36px;
    height: 1px;
    background: var(--gx-gold);
}

/* ==========================================================
   SUPPORT — REFINED, NOT DASHBOARD
========================================================== */

.nx-gx-support {
    background: #fff;
}

.nx-gx-support__heading {
    max-width: 900px;
    margin-bottom: 58px;
}

.nx-gx-support__heading p {
    max-width: 700px;
    margin-top: 25px;
}

.nx-gx-support__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--gx-line);
    border-left: 1px solid var(--gx-line);
}

.nx-gx-support__grid article {
    min-height: 220px;
    padding: 30px;
    border-right: 1px solid var(--gx-line);
    border-bottom: 1px solid var(--gx-line);
    background: #fff;
    transition: background .35s ease, transform .35s ease;
}

.nx-gx-support__grid article:hover {
    background: var(--gx-cream);
    transform: translateY(-3px);
}

.nx-gx-support__grid article > span {
    color: var(--gx-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.nx-gx-support__grid h3 {
    margin: 34px 0 10px;
    color: var(--gx-forest);
    font-size: 22px;
    font-weight: 600;
}

.nx-gx-support__grid p {
    margin: 0;
    font-size: 14px;
}

/* ==========================================================
   PACKAGING
========================================================== */

.nx-gx-packaging {
    background: var(--gx-ivory);
}

.nx-gx-split--reverse .nx-gx-copy {
    order: 2;
}

.nx-gx-split--reverse .nx-gx-media {
    order: 1;
}

/* ==========================================================
   PARTNERSHIP — HUMAN CLOSING
========================================================== */

.nx-gx-partnership {
    background:
        radial-gradient(circle at 80% 15%, rgba(199,155,50,.13), transparent 28%),
        var(--gx-forest);
}

.nx-gx-partnership__grid {
    align-items: center;
}

.nx-gx-partnership h2 {
    color: #fff;
}

.nx-gx-partnership h2 span {
    display: block;
    color: #D9B75C;
}

.nx-gx-partnership__copy {
    padding-top: 20px;
    max-width: 680px;
}

.nx-gx-partnership__copy p {
    color: rgba(255,255,255,.70);
}

.nx-gx-partnership__signature {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-top: 34px;
}

.nx-gx-partnership__signature > span {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,.24);
}

.nx-gx-partnership__signature strong,
.nx-gx-partnership__signature small {
    display: block;
}

.nx-gx-partnership__signature strong {
    color: #fff;
    font-size: 11px;
    letter-spacing: .15em;
}

.nx-gx-partnership__signature small {
    margin-top: 7px;
    color: #D6B45B;
    font-size: 9px;
    letter-spacing: .13em;
}

/* ==========================================================
   MARKET IMAGE
========================================================== */

.nx-gx-market {
    padding: 0 0 110px;
    background: var(--gx-forest);
}

.nx-gx-market__frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(0,0,0,.18);
}

.nx-gx-market__frame img {
    aspect-ratio: 16 / 7;
    object-fit: cover;
    transition: transform 1s cubic-bezier(.2,.7,.2,1);
}

.nx-gx-market__frame:hover img {
    transform: scale(1.025);
}

.nx-gx-market__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7,28,20,.76), transparent 62%);
}

.nx-gx-market__caption {
    position: absolute;
    z-index: 2;
    left: 42px;
    bottom: 38px;
    color: #fff;
}

.nx-gx-market__caption span {
    display: block;
    margin-bottom: 10px;
    color: #D6B45B;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .17em;
}

.nx-gx-market__caption strong {
    display: block;
    font-size: clamp(30px, 4vw, 55px);
    line-height: 1;
    letter-spacing: -.045em;
}

/* ==========================================================
   FINAL CTA
========================================================== */

.nx-gx-final {
    padding: clamp(110px, 13vw, 170px) 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(199,155,50,.17), transparent 34%),
        var(--gx-forest);
    color: #fff;
    text-align: center;
}

.nx-gx-final__inner {
    max-width: 900px;
    margin: auto;
}

.nx-gx-final h2 {
    color: #fff;
}

.nx-gx-final h2 span {
    display: block;
    color: #D9B75C;
}

.nx-gx-final p {
    max-width: 680px;
    margin: 28px auto 34px;
    color: rgba(255,255,255,.70);
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 980px) {
    .nx-gx-hero__inner {
        grid-template-columns: 1fr;
    }

    .nx-gx-hero__side {
        display: none;
    }

    .nx-gx-split,
    .nx-gx-origin__grid,
    .nx-gx-partnership__grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .nx-gx-split--reverse .nx-gx-copy,
    .nx-gx-split--reverse .nx-gx-media {
        order: initial;
    }

    .nx-gx-support__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .nx-gx-hero {
        min-height: 750px;
    }

    .nx-gx-hero__image {
        background-image:
            linear-gradient(0deg, rgba(5,22,15,.95), rgba(8,31,22,.60) 55%, rgba(8,31,22,.16)),
            url("../images/global/global-export.png");
        background-position: 58% center;
    }

    .nx-gx-hero__inner {
        padding: 125px 0 48px;
    }

    .nx-gx-hero h1 {
        font-size: clamp(48px, 13vw, 74px);
    }

    .nx-gx-hero p {
        font-size: 16px;
    }

    .nx-gx-hero__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 19px;
    }

    .nx-gx-intro,
    .nx-gx-origin,
    .nx-gx-support,
    .nx-gx-packaging,
    .nx-gx-partnership {
        padding: 78px 0;
    }

    .nx-gx-copy h2,
    .nx-gx-origin h2,
    .nx-gx-support h2,
    .nx-gx-partnership h2,
    .nx-gx-final h2 {
        font-size: clamp(39px, 11vw, 56px);
    }

    .nx-gx-support__grid {
        grid-template-columns: 1fr;
    }

    .nx-gx-market {
        padding-bottom: 78px;
    }

    .nx-gx-market__caption {
        left: 24px;
        right: 24px;
        bottom: 24px;
    }

    .nx-gx-final {
        padding: 105px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nx-global-page *,
    .nx-global-page *::before,
    .nx-global-page *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
