/* ==========================================================================
   Storefront footer — resources/views/front/includes/footer.blade.php
   Mobile-first; link columns are accordions below 768px.
   ========================================================================== */

.nk-foot {
    --nf-ink: #1C1C2E;
    --nf-gold: #C89B65;
    --nf-gold-light: #E3C9A4;
    --nf-text: #5a5a66;
    --nf-muted: #8a8a96;
    --nf-line: #e9e6e1;
    --nf-bg: #FAF7F2;
    --nf-serif: 'Playfair Display', serif;

    position: relative;
    margin-top: 48px;
    padding-top: 1px;
    /* soft blush-to-sand gradient, same family as the Shop Gram section */
    background:
        radial-gradient(ellipse at 100% 0%, rgba(212, 132, 124, 0.16), transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(200, 155, 101, 0.2), transparent 50%),
        linear-gradient(160deg, #fdf6f3 0%, #f9efe9 55%, #f6eee3 100%);
    color: var(--nf-text);
    font-size: 14px;
}

/* ---------- Newsletter band (compact) ---------- */

.nk-foot-news {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px 14px;
    margin-top: -32px;
    padding: 16px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0%, rgba(200, 155, 101, 0.35), transparent 45%),
        var(--nf-ink);
    color: rgba(255, 255, 255, 0.65);
}

.nk-foot-news-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(200, 155, 101, 0.18);
    color: var(--nf-gold);
    font-size: 17px;
}

.nk-foot-news-title {
    margin: 0 0 2px;
    color: #fff;
    font-family: var(--nf-serif);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.25;
}

.nk-foot-news-copy p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

.nk-foot-news-form {
    display: flex;
    grid-column: 1 / -1;
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.nk-foot-news-form input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
    box-shadow: none;
}

.nk-foot-news-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.nk-foot-news-form input:focus {
    outline: 0;
}

.nk-foot-news-form.was-validated input:invalid {
    color: #ffb4a8;
}

.nk-foot-news-form button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--nf-gold);
    color: var(--nf-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.25s ease;
}

.nk-foot-news-form button:hover {
    background: var(--nf-gold-light);
}

/* ---------- Main grid ---------- */

.nk-foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 36px 0 24px;
}

.nk-foot-brand {
    padding-bottom: 20px;
}

.nk-foot-logo img {
    width: auto;
    max-width: 160px;
    height: 56px;
    object-fit: contain;
}

.nk-foot-tagline {
    max-width: 300px;
    margin: 12px 0 18px;
    color: var(--nf-text);
    font-size: 13px;
    line-height: 1.7;
}

.nk-foot-contact {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.nk-foot-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.nk-foot-contact i {
    margin-top: 2px;
    color: var(--nf-gold);
}

.nk-foot-contact a,
.nk-foot-links a {
    color: var(--nf-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nk-foot-contact a:hover,
.nk-foot-links a:hover {
    color: var(--nf-ink);
}

.nk-foot-social {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nk-foot-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--nf-line);
    border-radius: 50%;
    background: #fff;
    color: var(--nf-ink);
    font-size: 15px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nk-foot-social a:hover {
    border-color: var(--nf-ink);
    background: var(--nf-ink);
    color: #fff;
}

/* Link columns */
.nk-foot-col {
    border-top: 1px solid var(--nf-line);
}

.nk-foot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    border: 0;
    background: none;
    color: var(--nf-ink);
    font-family: var(--nf-serif);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
}

.nk-foot-head i {
    color: var(--nf-gold);
    font-size: 14px;
    transition: transform 0.25s ease;
}

.nk-foot-col.is-open .nk-foot-head i {
    transform: rotate(45deg);
}

.nk-foot-links {
    display: none;
    margin: 0;
    padding: 0 0 14px;
    list-style: none;
}

.nk-foot-col.is-open .nk-foot-links {
    display: grid;
    gap: 10px;
}

.nk-foot-links a {
    display: inline-block;
    font-size: 13px;
}

/* ---------- Legal bar ---------- */

.nk-foot-bar {
    border-top: 1px solid var(--nf-line);
    color: var(--nf-muted);
    font-size: 12px;
}

.nk-foot-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 20px;
    padding-top: 16px;
    padding-bottom: 16px;
    text-align: center;
}

.nk-foot-pay {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.nk-foot-pay img {
    width: auto;
    height: 22px;
}

/* ---------- Breakpoints ---------- */

@media (max-width: 1149.98px) {
    /* room for the theme's fixed mobile toolbar */
    .nk-foot-bar {
        padding-bottom: 67px;
    }
}

@media (min-width: 576px) {
    .nk-foot-news-form button {
        padding: 0 24px;
    }
}

@media (min-width: 768px) {
    .nk-foot {
        margin-top: 64px;
    }

    /* one row: icon · copy · form */
    .nk-foot-news {
        grid-template-columns: auto minmax(0, 1fr) minmax(0, 420px);
        gap: 18px;
        padding: 14px 16px 14px 20px;
    }

    .nk-foot-news-form {
        grid-column: auto;
    }

    .nk-foot-news-title {
        font-size: 1.2rem;
    }

    .nk-foot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
        padding: 56px 0 40px;
    }

    .nk-foot-brand {
        grid-column: 1 / -1;
        padding-bottom: 0;
    }

    .nk-foot-col {
        border-top: 0;
    }

    .nk-foot-head {
        padding: 0 0 14px;
        pointer-events: none;
    }

    .nk-foot-head i {
        display: none;
    }

    .nk-foot-links {
        display: grid;
        gap: 10px;
        padding: 0;
    }

    .nk-foot-bar-inner {
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 992px) {
    .nk-foot-grid {
        grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
        gap: 40px;
    }

    .nk-foot-brand {
        grid-column: auto;
    }
}
