/* ============================================================
   Footer — Sacred Deep Maroon Theme with Gold Accents
   Grid, Brand, Columns, Contact, Bottom Bar
   ============================================================ */

.site-footer {
    background: var(--spv-sacred-deep, #4A121E);
    color: rgba(255, 255, 255, 0.8);
    padding: 56px 0 0;
    margin-top: 20px;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/new-infinite-bg.png');
    background-repeat: repeat;
    background-size: 550px auto;
    opacity: 0.04;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
    z-index: 2;
}

/* Footer brand column */
.footer-brand .spv-brand-img {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 3px 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    display: block;
}

.footer-brand .logo-text b {
    color: #fff;
}

.footer-brand p {
    font-size: 0.82rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin: 14px 0 18px;
    max-width: 230px;
}

.social {
    display: flex;
    gap: 10px;
}

.social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social a:hover {
    background: var(--spv-sacred-gold, #D4AF37);
    border-color: var(--spv-sacred-gold, #D4AF37);
    color: #fff;
}

.social svg {
    width: 15px;
    height: 15px;
}

/* Footer columns */
.footer-col h5,
.site-footer h5 {
    color: var(--spv-sacred-gold, #D4AF37);
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    font-family: var(--spv-ff-head);
    position: relative;
    display: inline-block;
}

.footer-col h5::after,
.site-footer h5::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: var(--spv-sacred-gold, #D4AF37);
    margin-top: 6px;
    border-radius: 2px;
    opacity: 0.7;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li,
.site-footer ul li {
    margin-bottom: 9px;
}

.footer-col ul li a,
.site-footer ul li a {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    display: inline-block;
    padding: 3px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col ul li a:hover,
.site-footer ul li a:hover {
    color: var(--spv-sacred-gold, #D4AF37);
    transform: translateX(3px);
}

/* Footer contact */
.foot-contact li {
    display: flex;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    align-items: flex-start;
    line-height: 1.5;
}

.foot-contact svg {
    width: 16px;
    height: 16px;
    flex: none;
    margin-top: 2px;
    color: var(--spv-sacred-gold, #D4AF37);
}

.foot-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.foot-contact a:hover {
    color: var(--spv-sacred-gold, #D4AF37);
}

/* Footer bottom */
.foot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

.pay-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pay-icons span {
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   Responsive — Footer
   ============================================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 520px;
    }

    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 44px 0 env(safe-area-inset-bottom, 20px);
        /* Ensure content is not covered by mobile floating cart or action bar */
        padding-bottom: 84px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 20px;
        padding-bottom: 28px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 12px;
        border-bottom: 1px dashed rgba(212, 175, 55, 0.18);
    }

    .footer-brand .spv-brand-img {
        margin: 0 auto;
    }

    .footer-brand p {
        max-width: 380px;
        margin: 12px auto 16px;
        font-size: 0.82rem;
        line-height: 1.6;
    }

    .social {
        justify-content: center;
        gap: 12px;
    }

    .social a {
        width: 38px;
        height: 38px;
    }

    .social svg {
        width: 18px;
        height: 18px;
    }

    .footer-col {
        min-width: 0;
    }

    .footer-contact-col,
    .footer-col:has(.foot-contact) {
        grid-column: 1 / -1;
        background: rgba(255, 255, 255, 0.035);
        border: 1px solid rgba(212, 175, 55, 0.18);
        border-radius: 12px;
        padding: 18px 20px;
        margin-top: 6px;
    }

    .foot-contact {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .foot-contact li {
        font-size: 0.84rem;
    }

    .foot-contact svg {
        width: 17px;
        height: 17px;
    }

    .foot-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 22px 0 12px;
    }

    .foot-bottom span {
        font-size: 0.74rem;
        line-height: 1.6;
    }

    .pay-icons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding-top: 36px;
        padding-bottom: 92px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 14px;
    }

    .footer-col h5,
    .site-footer h5 {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .footer-col ul li a,
    .site-footer ul li a {
        font-size: 0.8rem;
        padding: 4px 0;
    }

    .footer-brand p {
        font-size: 0.78rem;
        max-width: 100%;
        padding: 0 10px;
    }

    .pay-icons span {
        font-size: 0.62rem;
        padding: 3px 7px;
    }
}
