/* ============================================================
   Nivents — Site Footer
   Loaded after navbar.css / header.css in include/header.php
   ============================================================ */

.nv-footer {
    background: #0F172A;
    color: #cbd2e0;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 56px 0 0;
    /* Keep clear of the fixed bottom .navbar (72px + safe area) on mobile.
       On desktop the rule still applies harmlessly. */
    margin-bottom: calc(72px + env(safe-area-inset-bottom));
}

.nv-footer * {
    box-sizing: border-box;
}

.nv-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px 40px;
    display: grid;
    grid-template-columns: 1.2fr 3fr;
    gap: 48px;
    align-items: start;
}

/* --- Brand --- */
.nv-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 280px;
}

.nv-footer__logo {
    display: inline-flex;
    align-items: center;
}

.nv-footer__logo img {
    height: 38px;
    width: auto;
    display: block;
}

.nv-footer__tagline {
    margin: 0;
    color: #8a93a6;
    font-size: 13px;
    line-height: 1.5;
}

/* --- Columns wrapper --- */
.nv-footer__cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.nv-footer__col {
    min-width: 0;
}

.nv-footer__title {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --- Link lists --- */
.nv-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nv-footer__list a {
    color: #cbd2e0;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    display: inline-block;
    transition: color 0.18s ease, transform 0.18s ease;
}

.nv-footer__list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #FF2E5C;
    transition: width 0.22s ease;
}

.nv-footer__list a:hover {
    color: #FF2E5C;
}

.nv-footer__list a:hover::after {
    width: 100%;
}

/* --- Store badges --- */
.nv-footer__stores {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.nv-footer__store {
    display: inline-block;
    transition: transform 0.18s ease, opacity 0.18s ease;
    line-height: 0;
}

.nv-footer__store svg {
    width: 135px;
    height: 40px;
    display: block;
    border-radius: 7px;
}

.nv-footer__store:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

/* --- Social icons --- */
.nv-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.nv-footer__social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd2e0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nv-footer__social-link svg {
    width: 18px;
    height: 18px;
}

.nv-footer__social-link:hover {
    background: #FF2E5C;
    color: #fff;
    transform: translateY(-2px);
}

/* --- Bottom bar --- */
.nv-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 28px;
}

.nv-footer__bottom-inner {
    max-width: 1180px;
    margin: 0 auto;
    color: #6b7384;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: center;
    text-align: center;
}

.nv-footer__sep {
    color: rgba(255, 255, 255, 0.18);
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .nv-footer__inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 0 24px 32px;
    }

    .nv-footer__brand {
        max-width: 100%;
    }

    .nv-footer__cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 24px;
    }
}

@media (max-width: 520px) {
    .nv-footer {
        padding-top: 40px;
    }

    .nv-footer__cols {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .nv-footer__bottom-inner {
        flex-direction: column;
        gap: 4px;
    }

    .nv-footer__sep {
        display: none;
    }
}
