/* ==========================================================================
   NSS — Layout chrome: navigation, page hero, footer
   Font sizes reuse the preserved --fs-* tokens from nss-core.css
   ========================================================================== */

/* ---------- 1. NAVIGATION ------------------------------------------------ */
.nss-nav {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 9000;
    padding-block: 10px;
    transition: padding var(--t-base) var(--e-out),
                background var(--t-base) var(--e-out),
                box-shadow var(--t-base) var(--e-out),
                backdrop-filter var(--t-base) var(--e-out);
}

.nss-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 33, 46, .72) 0%, rgba(4, 33, 46, 0) 100%);
    opacity: 1;
    transition: opacity var(--t-base) var(--e-out);
    pointer-events: none;
}

/* Stuck state stays DARK on purpose: the brand artwork is white, so a light
   bar would make the logo disappear. Dark glass keeps it legible everywhere. */
.nss-nav.is-stuck {
    padding-block: 10px;
    background: rgba(4, 33, 46, .82);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    box-shadow: 0 10px 34px rgba(4, 33, 46, .28);
    border-bottom: 1px solid rgba(111, 220, 239, .14);
}
.nss-nav.is-stuck::before { opacity: 0; }

.nss-nav.is-hidden { transform: translateY(-104%); }

.nss-nav__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

/* Brand */
.nss-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: var(--fs-nav-brand);
    font-weight: 800;
    flex-shrink: 0;
}
/* the bar is dark in both states, so one white artwork covers everything */
.nss-brand img {
    height: 42px;
    width: auto;
    transition: transform var(--t-base) var(--e-out);
}
.nss-brand:hover img { transform: scale(1.04); }

/* Links */
.nss-nav__menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.nss-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border-radius: var(--r-pill);
    color: rgba(255, 255, 255, .88);
    font-size: var(--fs-nav-link);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color var(--t-fast) var(--e-out), background var(--t-fast) var(--e-out);
}
.nss-nav__link i { font-size: 1em; opacity: .8; }

.nss-nav__link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 2px;
    border-radius: var(--r-pill);
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform var(--t-base) var(--e-out);
}
.nss-nav__link:hover::after,
.nss-nav__link.is-active::after { transform: scaleX(1); }

.nss-nav__link:hover,
.nss-nav__link.is-active { color: var(--nss-cyan-300); }

/* Right cluster */
.nss-nav__aside {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nss-nav__social {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: rgba(255, 255, 255, .85);
    font-size: var(--fs-nav-social);
    background: rgba(255, 255, 255, .1);
    transition: all var(--t-fast) var(--e-out);
}
.nss-nav__social:hover {
    color: #fff;
    background: var(--nss-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(23, 175, 208, .4);
}

/* Language switch */
.nss-lang { position: relative; }
.nss-lang__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: var(--fs-nav-lang);
    font-weight: 800;
    letter-spacing: .1em;
    cursor: pointer;
    transition: all var(--t-fast) var(--e-out);
}
.nss-lang__btn:hover {
    border-color: var(--nss-cyan);
    color: var(--nss-cyan-300);
}

.nss-lang__menu {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    min-width: 150px;
    padding: 7px;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--nss-line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--t-fast) var(--e-out);
}
.nss-lang.is-open .nss-lang__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nss-lang__menu a {
    display: block;
    padding: 9px 13px;
    border-radius: var(--r-sm);
    color: var(--nss-deep);
    font-size: var(--fs-small);
    font-weight: 600;
    transition: all var(--t-fast) var(--e-out);
}
.nss-lang__menu a:hover {
    background: var(--nss-surface);
    color: var(--nss-cyan-700);
}

/* Burger */
.nss-burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .1);
    cursor: pointer;
}
.nss-burger span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: #fff;
    transition: all var(--t-fast) var(--e-out);
}
.nss-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nss-burger.is-open span:nth-child(2) { opacity: 0; }
.nss-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.nss-drawer {
    position: fixed;
    inset: 0;
    z-index: 8999;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 96px 24px 40px;
    background: var(--grad-deep);
    clip-path: circle(0% at calc(100% - 44px) 44px);
    transition: clip-path .72s var(--e-out);
    overflow-y: auto;
}
.nss-drawer.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); }

.nss-drawer__menu {
    display: grid;
    gap: 4px;
    align-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}
.nss-drawer__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--r-md);
    color: #fff;
    font-size: var(--fs-nav-link);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: all var(--t-fast) var(--e-out);
}
.nss-drawer__link i { color: var(--nss-cyan-300); width: 20px; }
.nss-drawer__link:hover,
.nss-drawer__link.is-active {
    background: rgba(255, 255, 255, .07);
    color: var(--nss-cyan-300);
    padding-inline-start: 26px;
}

.nss-drawer__foot {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: var(--sp-3);
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.nss-drawer__foot a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: var(--fs-nav-social);
    transition: all var(--t-fast) var(--e-out);
}
.nss-drawer__foot a:hover { background: var(--nss-cyan); transform: translateY(-3px); }

@media (max-width: 1199px) {
    .nss-nav__menu, .nss-nav__social { display: none; }
    .nss-burger { display: block; }
    .nss-nav__aside { margin-inline-start: auto; }
}

/* ---------- 2. INNER PAGE HERO ------------------------------------------ */
.nss-phero {
    position: relative;
    padding: 70px 0 96px;
    background: var(--grad-deep);
    color: #fff;
    overflow: clip;
}

.nss-phero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: .2;
    transform: scale(1.1);
}
.nss-phero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(4, 33, 46, .94) 18%, rgba(4, 33, 46, .55) 100%);
}

.nss-phero__inner { position: relative; z-index: 2; }

.nss-phero__title {
    margin: 0 0 18px;
    color: #fff;
    max-width: 18ch;
}

.nss-phero__sub {
    max-width: 62ch;
    margin: 0;
    color: rgba(217, 234, 242, .82);
    line-height: 1.75;
}

/* Breadcrumb */
.nss-crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0 0 22px;
    list-style: none;
    font-size: var(--fs-crumb);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.nss-crumb li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .62); }
.nss-crumb li + li::before {
    content: '';
    width: 16px;
    height: 1px;
    background: rgba(255, 255, 255, .34);
}
.nss-crumb a { color: rgba(255, 255, 255, .72); transition: color var(--t-fast) var(--e-out); }
.nss-crumb a:hover { color: var(--nss-cyan-300); }
.nss-crumb .is-current { color: var(--nss-cyan-300); font-weight: 700; }

/* Hero stat strip */
.nss-phero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-5);
    margin-top: var(--sp-4);
}
.nss-phero__stat { position: relative; padding-inline-start: 18px; }
.nss-phero__stat::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: var(--r-pill);
    background: var(--grad-brand);
}
.nss-phero__stat b {
    display: block;
    font-size: var(--fs-svc-stat-num);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}
.nss-phero__stat span {
    font-size: var(--fs-svc-stat-label);
    color: rgba(217, 234, 242, .7);
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .nss-phero { padding: 140px 0 68px; }
    .nss-phero__stats { gap: var(--sp-3); }
}

/* ---------- 3. FOOTER ---------------------------------------------------- */
.nss-footer {
    position: relative;
    background: var(--grad-deep);
    color: rgba(217, 234, 242, .76);
    overflow: clip;
}

.nss-footer::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: var(--grad-line);
}

.nss-footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1.1fr 1fr 1fr;
    gap: var(--sp-5);
    padding-block: var(--sp-7) var(--sp-5);
}

.nss-footer h4 {
    margin: 0 0 22px;
    color: #fff;
    font-size: var(--fs-section-sub);
    letter-spacing: .02em;
}

.nss-footer__brand img {
    height: 52px;
    width: auto;
    margin-bottom: 20px;
}

.nss-footer__about {
    max-width: 42ch;
    margin-bottom: 24px;
    font-size: var(--fs-small);
    line-height: 1.8;
}

.nss-footer__tagline {
    margin: 0 0 10px;
    color: #fff;
    font-size: var(--fs-section-sub);
    font-weight: 700;
}

.nss-footer__social { display: flex; gap: 10px; }
.nss-footer__social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-size: var(--fs-body);
    transition: all var(--t-fast) var(--e-out);
}
.nss-footer__social a:hover {
    background: var(--nss-cyan);
    border-color: var(--nss-cyan);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(23, 175, 208, .36);
}

.nss-footer__list { padding: 0; margin: 0; list-style: none; display: grid; gap: 12px; }
.nss-footer__list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: var(--fs-small);
    transition: color var(--t-fast) var(--e-out), gap var(--t-fast) var(--e-out);
}
.nss-footer__list a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--nss-cyan);
    opacity: .55;
    transition: opacity var(--t-fast) var(--e-out);
}
.nss-footer__list a:hover { color: #fff; gap: 13px; }
.nss-footer__list a:hover::before { opacity: 1; }

.nss-footer__contact { display: grid; gap: 18px; }
.nss-footer__ci { display: flex; gap: 13px; font-size: var(--fs-small); line-height: 1.6; }
.nss-footer__ci i {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);
    background: rgba(23, 175, 208, .14);
    color: var(--nss-cyan-300);
}
.nss-footer__ci strong { display: block; color: #fff; font-weight: 700; }
.nss-footer__ci a:hover { color: var(--nss-cyan-300); }

.nss-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    align-items: center;
    justify-content: space-between;
    padding-block: var(--sp-3);
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: var(--fs-small);
}
.nss-footer__bottom p { margin: 0; }
.nss-footer__bottom a { color: var(--nss-cyan-300); }

/* Oversized watermark */
.nss-footer__mark {
    position: absolute;
    inset-inline-end: -2%;
    bottom: -14%;
    font-size: var(--fs-watermark); /* preserved from counter.css decorative scale */
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.05em;
    color: rgba(255, 255, 255, .03);
    pointer-events: none;
    user-select: none;
}

@media (max-width: 991px) {
    .nss-footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
}
@media (max-width: 575px) {
    .nss-footer__top { grid-template-columns: 1fr; }
    .nss-footer__bottom { justify-content: center; text-align: center; }
    .nss-footer__mark { font-size: var(--fs-watermark-sm); }
}

/* ---------- 4. BACK TO TOP ----------------------------------------------- */
.nss-top {
    position: fixed;
    inset-inline-end: 26px;
    bottom: 26px;
    z-index: 8500;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    box-shadow: var(--sh-cyan);
    transition: all var(--t-base) var(--e-out);
}
.nss-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.nss-top:hover { transform: translateY(-4px) scale(1.06); }
