/* ── NP Footer ── */

.np-footer {
    background: #f7f7f7;
    /* border-top: 3px solid #1a1a1a; */
    padding: 60px 40px 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.np-footer * {
    box-sizing: border-box;
}

/* Grid */
.np-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
}

/* Headings */
.np-footer h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.np-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: #1a1a1a;
}
.np-footer-h4-mt {
    margin-top: 28px;
}

/* Text */
.np-footer p,
.np-footer a {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}
.np-footer a {
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}
.np-footer a:hover {
    color: #1a1a1a;
}

/* Newsletter */
.np-newsletter-desc {
    margin-bottom: 18px;
}
.np-newsletter-form {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.np-newsletter-form input {
    flex: 1;
    border: 1px solid #ddd;
    border-right: none;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    border-radius: 6px;
    background: #fff;
    transition: border-radius 0.3s;
}
.np-newsletter-form input::placeholder {
    color: #aaa;
}
.np-newsletter-form input:focus {
    border-color: #1a1a1a;
}
.np-newsletter-form button {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px 22px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 0 6px 6px 0;
    transition: background 0.2s, opacity 0.3s, max-width 0.3s, padding 0.3s;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
}
.np-newsletter-form.has-text button {
    max-width: 140px;
    opacity: 1;
    padding: 12px 22px;
}
.np-newsletter-form.has-text input {
    border-radius: 6px 0 0 6px;
}
.np-newsletter-form button:hover {
    background: #333;
}

/* Contact items */
.np-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}
.np-contact-item svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: #888;
}
.np-contact-item span {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Links */
.np-footer-links a {
    display: block;
    padding: 5px 0;
    font-size: 14px;
    color: #555;
}
.np-footer-links a:hover {
    color: #1a1a1a;
    padding-left: 4px;
}

/* Social icons */
.np-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.np-social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.np-social-icons a:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}
.np-social-icons a svg {
    color: #555;
}
.np-social-icons a:hover svg {
    color: #fff;
}

/* Bottom bar */
.np-footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 24px 0;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.np-footer-copyright {
    font-size: 13px;
    color: #999;
}
.np-footer-payment {
    display: flex;
    gap: 12px;
    align-items: center;
}
.np-trust-label {
    font-size: 11px;
    color: #aaa;
    font-weight: 500;
    margin-right: 4px;
}
.np-pay-badge {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-width: 46px;
}
.np-pay-badge img {
    display: block;
    height: 16px !important;
    width: auto !important;
    object-fit: contain;
    margin: 0 !important;
}

/* Hide Elementor footer */
footer.elementor-location-footer,
.site-footer,
.site-primary-footer-wrap,
.site-below-footer-wrap {
    display: none !important;
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 900px) {
    .np-footer {
        padding: 50px 30px 0;
    }
    .np-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px 50px;
    }
}

/* Mobil */
@media (max-width: 600px) {
    .np-footer {
        padding: 40px 16px 0;
    }
    .np-footer-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Skillelinjer mellom seksjoner */
    .np-footer-inner > .np-footer-col {
        padding-bottom: 28px;
        margin-bottom: 28px;
        border-bottom: 1px solid #e0e0e0;
    }
    .np-footer-inner > .np-footer-col:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* Newsletter form stacked */
    .np-newsletter-form {
        flex-direction: column;
    }
    .np-newsletter-form input {
        border-right: 1px solid #ddd !important;
        border-radius: 6px !important;
        border-bottom: none;
    }
    .np-newsletter-form.has-text input {
        border-radius: 6px 6px 0 0 !important;
    }
    .np-newsletter-form button {
        border-radius: 0 0 6px 6px;
        max-width: none !important;
        width: 100%;
        text-align: center;
    }
    .np-newsletter-form.has-text button {
        max-width: none !important;
        padding: 14px 22px;
    }

    /* Bigger touch targets */
    .np-footer-links a {
        padding: 8px 0;
        font-size: 15px;
    }
    .np-contact-item {
        padding: 4px 0;
    }
    .np-contact-item span {
        font-size: 15px;
    }
    .np-social-icons a {
        width: 44px;
        height: 44px;
    }

    /* Bottom bar stacked */
    .np-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        margin-top: 36px;
        padding: 20px 0;
    }
    .np-footer-payment {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 6px;
    }
    .np-pay-badge {
        height: 26px;
        min-width: 36px;
        padding: 3px 6px;
    }
    .np-pay-badge img {
        height: 13px;
    }
    .np-trust-label {
        width: 100%;
        text-align: center;
        margin-bottom: 4px;
    }
    .np-footer-copyright {
        font-size: 12px;
        line-height: 1.5;
    }
}
