/* =========================================================
   NIOSHE — COMPACT GLOBAL FOOTER
   File: assets/css/footer.css
========================================================= */

:root {
    --nf-bg: #07172d;
    --nf-bg-2: #0b2343;
    --nf-white: #ffffff;
    --nf-text: #dbe5f3;
    --nf-muted: #91a0b6;
    --nf-line: rgba(255, 255, 255, 0.11);
    --nf-blue: #5aa3ff;
    --nf-gold: #e1b13a;
    --nf-max: 1500px;
}


/* =========================================================
   RESET
========================================================= */

.nf-footer,
.nf-footer *,
.nf-footer *::before,
.nf-footer *::after {
    box-sizing: border-box;
}

.nf-footer {
    width: 100%;
    margin: 0;
    padding: 0;

    font-family:
        "Poppins",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background: var(--nf-bg);
}

.nf-footer a {
    text-decoration: none;
}

.nf-footer ul,
.nf-footer li {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* =========================================================
   MAIN FOOTER
========================================================= */

.nf-main {
    position: relative;

    width: 100%;

    padding: 26px 0 22px;

    background:
        linear-gradient(
            135deg,
            var(--nf-bg) 0%,
            var(--nf-bg-2) 100%
        );
}

.nf-main::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--nf-blue),
            var(--nf-gold)
        );
}


/* =========================================================
   CONTAINER
========================================================= */

.nf-container {
    width: min(
        calc(100% - 40px),
        var(--nf-max)
    );

    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(280px, 1.6fr)
        repeat(3, minmax(150px, 1fr));

    gap: 28px;
    align-items: start;
}


/* =========================================================
   BRAND
========================================================= */

.nf-brand {
    min-width: 0;
}

.nf-brand-link {
    width: fit-content;
    max-width: 100%;

    display: flex;
    align-items: center;

    gap: 10px;
}

.nf-logo {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.nf-logo-image {
    display: block !important;

    width: 50px !important;
    height: 50px !important;

    max-width: 50px !important;
    max-height: 50px !important;

    object-fit: contain !important;
    object-position: center !important;
}

.nf-brand-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.nf-brand-name {
    color: var(--nf-white);

    font-size: 21px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: -0.03em;
}

.nf-brand-tagline {
    display: block;

    max-width: 220px;

    color: var(--nf-muted);

    font-size: 7.5px;
    line-height: 1.3;
    font-weight: 500;
}

.nf-brand-text {
    max-width: 330px;

    margin: 12px 0 0;

    color: var(--nf-muted);

    font-size: 10.5px;
    line-height: 1.55;
    font-weight: 400;
}


/* =========================================================
   COLUMNS
========================================================= */

.nf-column {
    min-width: 0;
}

.nf-title {
    position: relative;

    margin: 0 0 11px;

    padding-bottom: 7px;

    color: var(--nf-white);

    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.nf-title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 28px;
    height: 2px;

    border-radius: 20px;

    background: var(--nf-gold);
}


/* =========================================================
   LINKS
========================================================= */

.nf-links {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.nf-links a {
    position: relative;

    display: inline-flex;
    align-items: center;

    color: var(--nf-text);

    font-size: 10.5px;
    line-height: 1.35;
    font-weight: 500;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.nf-links a::before {
    content: "";

    width: 4px;
    height: 4px;

    flex: 0 0 4px;

    margin-right: 7px;

    border-radius: 50%;

    background: var(--nf-gold);

    opacity: 0.7;
}

.nf-links a:hover,
.nf-links a:focus-visible {
    color: #fff;

    transform: translateX(2px);
}


/* =========================================================
   BOTTOM BAR
========================================================= */

.nf-bottom {
    width: 100%;

    border-top: 1px solid var(--nf-line);

    background: #051120;
}

.nf-bottom-container {
    width: min(
        calc(100% - 40px),
        var(--nf-max)
    );

    min-height: 44px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;
}

.nf-copyright,
.nf-powered {
    color: #8795a9;

    font-size: 9.5px;
    line-height: 1.3;
    font-weight: 500;
}

.nf-powered a {
    color: var(--nf-gold);

    font-weight: 700;
}

.nf-powered a:hover,
.nf-powered a:focus-visible {
    color: #ffd66e;
}


/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1100px) {

    .nf-container {
        grid-template-columns:
            minmax(240px, 1.4fr)
            repeat(3, minmax(130px, 1fr));

        gap: 22px;
    }

    .nf-brand-text {
        max-width: 290px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

    .nf-main {
        padding: 24px 0 20px;
    }

    .nf-container {
        grid-template-columns: 1.4fr 1fr 1fr;

        gap: 22px 18px;
    }

    .nf-column:last-child {
        grid-column: 2 / 4;
    }
}


/* =========================================================
   MOBILE — 2 COLUMNS PER ROW
========================================================= */

@media (max-width: 600px) {

    .nf-main {
        padding: 20px 0 17px;
    }

    .nf-container {
        width: calc(100% - 24px);

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 18px 14px;
    }

    /* Brand uses full width */
    .nf-brand {
        grid-column: 1 / -1;

        padding-bottom: 3px;
    }

    .nf-brand-link {
        gap: 9px;
    }

    .nf-logo {
        width: 45px;
        height: 45px;

        flex-basis: 45px;
    }

    .nf-logo-image {
        width: 45px !important;
        height: 45px !important;

        max-width: 45px !important;
        max-height: 45px !important;
    }

    .nf-brand-name {
        font-size: 19px;
    }

    .nf-brand-tagline {
        max-width: 200px;

        font-size: 6.8px;
    }

    .nf-brand-text {
        max-width: 100%;

        margin-top: 9px;

        font-size: 9.5px;
        line-height: 1.5;
    }

    /* Fix tablet span rule */
    .nf-column:last-child {
        grid-column: auto;
    }

    .nf-title {
        margin-bottom: 9px;

        font-size: 11px;
    }

    .nf-links {
        gap: 6px;
    }

    .nf-links a {
        font-size: 9.5px;
        line-height: 1.35;
    }

    .nf-bottom-container {
        width: calc(100% - 24px);

        min-height: 50px;

        padding: 7px 0;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 12px;
    }

    .nf-copyright,
    .nf-powered {
        font-size: 8px;
        line-height: 1.35;
    }

    .nf-powered {
        flex: 0 0 auto;

        text-align: right;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .nf-container {
        width: calc(100% - 20px);

        gap: 16px 11px;
    }

    .nf-logo {
        width: 42px;
        height: 42px;

        flex-basis: 42px;
    }

    .nf-logo-image {
        width: 42px !important;
        height: 42px !important;

        max-width: 42px !important;
        max-height: 42px !important;
    }

    .nf-brand-name {
        font-size: 18px;
    }

    .nf-brand-tagline {
        max-width: 180px;

        font-size: 6.3px;
    }

    .nf-title {
        font-size: 10.5px;
    }

    .nf-links a {
        font-size: 9px;
    }

    .nf-bottom-container {
        width: calc(100% - 20px);

        gap: 8px;
    }

    .nf-copyright,
    .nf-powered {
        font-size: 7.5px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 330px) {

    .nf-container {
        gap: 15px 8px;
    }

    .nf-brand-tagline {
        max-width: 155px;

        font-size: 6px;
    }

    .nf-links a {
        font-size: 8.5px;
    }

    .nf-bottom-container {
        align-items: flex-start;

        flex-direction: column;

        gap: 3px;

        padding: 8px 0;
    }

    .nf-powered {
        text-align: left;
    }
}


/* =========================================================
   FOCUS
========================================================= */

.nf-footer a:focus-visible {
    outline: 2px solid var(--nf-blue);
    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .nf-footer *,
    .nf-footer *::before,
    .nf-footer *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* =========================================================
   PRINT
========================================================= */

@media print {

    .nf-footer {
        background: #fff;
    }

    .nf-main,
    .nf-bottom {
        background: #fff;
    }

    .nf-brand-name,
    .nf-title,
    .nf-links a,
    .nf-copyright,
    .nf-powered {
        color: #000;
    }
}