/*
 * NF Services - Footer Styles
 */

/* =========================================
   1. FOOTER VARIABLES
========================================= */

:root {
    --nf-footer-bg: var(--nf-surface);
    --nf-footer-bottom-bg: var(--nf-bg-secondary);
    --nf-footer-padding: 45px;
}


/* =========================================
   2. MAIN FOOTER
========================================= */

.site-footer {
    width: 100%;
    margin-top: auto;
    color: var(--nf-text);
    background: var(--nf-footer-bg);
    border-top: 1px solid var(--nf-border);
}

.nf-footer-container {
    width: 100%;
    max-width: var(--nf-container-width);
    margin: 0 auto;
    padding: 0 var(--nf-container-padding);
}

.nf-footer-main {
    position: relative;
    overflow: hidden;
    padding-top: var(--nf-footer-padding);
    padding-bottom: var(--nf-footer-padding);
}

.nf-footer-main>.nf-footer-container {
    position: relative;
    z-index: 1;
}


/* =========================================
   3. FOOTER BACKGROUND IMAGE
========================================= */

.nf-footer-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.nf-footer-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================================
   4. SOCIAL ICONS
========================================= */

.nf-footer-main .nf-social-icons--footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}


/* =========================================
   5. FOOTER NAVIGATION
========================================= */

.nf-footer-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 0 40px;
}

.nf-footer-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nf-footer-menu li {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
}

.nf-footer-menu a {
    display: inline-block;
    padding: 5px 0;
    color: var(--nf-text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nf-footer-menu a:hover,
.nf-footer-menu .current-menu-item>a {
    color: var(--nf-primary);
}


/* =========================================
   6. FOOTER GRID
========================================= */

.nf-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
    width: 100%;
}

.nf-footer-grid--1 {
    grid-template-columns: 1fr;
}

.nf-footer-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nf-footer-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nf-footer-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nf-footer-column {
    min-width: 0;
}


/* =========================================
   7. FOOTER WIDGETS
========================================= */

.nf-footer-column .widget {
    margin-bottom: 25px;
}

.nf-footer-column .widget:last-child {
    margin-bottom: 0;
}

.nf-footer-column .widget-title {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 12px;
    color: var(--nf-text-light);
    font-size: 17px;
    font-weight: 700;
    border-bottom: 1px solid var(--nf-border);
}

.nf-footer-column .widget-title::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 45px;
    height: 2px;
    background: var(--nf-primary);
    content: "";
}


/* =========================================
   8. FOOTER LINKS
========================================= */

.nf-footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nf-footer-column li {
    padding: 7px 0;
    border-bottom: 1px solid var(--nf-border);
}

.nf-footer-column li:last-child {
    border-bottom: 0;
}

.nf-footer-column a {
    color: var(--nf-text-muted);
    transition: color 0.2s ease;
}

.nf-footer-column a:hover {
    color: var(--nf-primary);
}


/* =========================================
   9. FOOTER TEXT
========================================= */

.nf-footer-column p {
    color: var(--nf-text-muted);
    margin-bottom: 12px;
}

.nf-footer-column p:last-child {
    margin-bottom: 0;
}


/* =========================================
   10. FOOTER LOGO
========================================= */

.nf-footer-logo img {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 90px;
    object-fit: contain;
}


/* =========================================
   11. BOTTOM BAR
========================================= */

.nf-footer-bottom {
    width: 100%;
    padding: 16px 0;
    background: var(--nf-footer-bottom-bg);
    border-top: 1px solid var(--nf-border);
}

.nf-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.nf-footer-copyright {
    color: var(--nf-text-muted);
    font-size: 13px;
}

.nf-footer-legal {
    color: var(--nf-text-muted);
    font-size: 13px;
}

.nf-footer-legal a {
    color: var(--nf-text-muted);
}

.nf-footer-legal a:hover {
    color: var(--nf-primary);
}


/* =========================================
   12. RESPONSIVE
========================================= */

@media (max-width: 1024px) {

    .nf-footer-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {

    .nf-footer-grid,
    .nf-footer-grid--2,
    .nf-footer-grid--3,
    .nf-footer-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }

    .nf-footer-main {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .nf-footer-navigation {
        margin-bottom: 30px;
    }

    .nf-footer-menu {
        gap: 8px 20px;
    }

    .nf-footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

}

@media (max-width: 480px) {

    .nf-footer-grid,
    .nf-footer-grid--2,
    .nf-footer-grid--3,
    .nf-footer-grid--4 {
        grid-template-columns: 1fr;
    }

    .nf-footer-menu {
        gap: 6px 16px;
    }
}


/* =========================================
   13. FOOTER THREE-COLUMN LAYOUT
========================================= */

.nf-footer-layout {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(0, 2fr);
    align-items: start;
    gap: 35px;
}

/* Left: Vertical navigation */

.nf-footer-navigation {
    display: block;
    margin: 0;
}

.nf-footer-nav {
    display: block;
}

.nf-footer-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nf-footer-menu li {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
}

.nf-footer-menu a {
    display: inline-block;
    padding: 2px 0;
    color: var(--nf-text-muted);
    font-size: 14px;
    text-decoration: none;
}

.nf-footer-menu a:hover,
.nf-footer-menu .current-menu-item>a {
    color: var(--nf-primary);
}

/* Center: Social icons */

.nf-footer-social-column {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    min-height: 100%;
}

.nf-footer-social-column .nf-social-icons--footer {
    justify-content: center;
    margin: 0;
}

/* Right: Widgets */

.nf-footer-widgets {
    min-width: 0;
}

.nf-footer-widgets .nf-footer-grid {
    width: 100%;
    gap: 25px;
}

/* =========================================
   14. FOOTER BOTTOM
========================================= */

.nf-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nf-footer-bottom-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Back to top */

html {
    scroll-behavior: smooth;
}

.nf-back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: var(--nf-text-light);
    background: var(--nf-card);
    border: 1px solid var(--nf-border);
    border-radius: var(--nf-radius-sm);
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.nf-back-to-top:hover {
    color: #fff;
    background: var(--nf-primary);
    border-color: var(--nf-primary);
    transform: translateY(-3px);
}

.nf-back-to-top:focus-visible {
    outline: 2px solid var(--nf-primary);
    outline-offset: 3px;
}

/* =========================================
   15. RESPONSIVE FOOTER
========================================= */

@media (max-width: 900px) {

    .nf-footer-layout {
        grid-template-columns: 1fr 1fr;
    }

    .nf-footer-widgets {
        grid-column: 1 / -1;
    }

}

@media (max-width: 600px) {

    .nf-footer-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nf-footer-navigation {
        justify-self: center;
    }

    .nf-footer-menu {
        align-items: center;
    }

    .nf-footer-social-column {
        justify-content: center;
    }

    .nf-footer-widgets {
        grid-column: auto;
    }

    .nf-footer-bottom-left {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
}

/* Footer widgets: horizontal alignment to the right */

.nf-footer-widgets {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.nf-footer-widgets>.nf-footer-column {
    flex: 0 1 auto;
    min-width: 0;
}

.nf-footer-widgets .widget {
    margin-bottom: 0;
}

.nf-footer-widgets .widget img {
    display: block;
    max-width: 100%;
    height: auto;
}