
/* =========================================================
   SOURCINGMART — PREMIUM FOOTER OVERRIDE
   Designed for the current footer.php structure
   ========================================================= */

.sm-footer {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #0d332c;
    color: #eaf1ee;
    border-top: 1px solid rgba(213, 166, 75, 0.18);
    box-sizing: border-box;
    font-family: inherit;
}

.sm-footer *,
.sm-footer *::before,
.sm-footer *::after {
    box-sizing: border-box;
}

/* MAIN FOOTER */
.sm-footer .sm-footer-main {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 68px 0 54px;
    display: grid;
    grid-template-columns: 1.55fr repeat(4, 1fr);
    gap: 42px;
    align-items: start;
}

/* COLUMNS */
.sm-footer .sm-footer-column {
    min-width: 0;
}

.sm-footer .sm-footer-brand {
    max-width: 330px;
}

.sm-footer .sm-footer-column h4 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .01em;
}

.sm-footer .sm-footer-column p {
    margin: 0 0 18px;
    color: rgba(234, 241, 238, .76);
    font-size: 14px;
    line-height: 1.75;
}

/* LOGO */
.sm-footer .sm-footer-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    margin: 0 0 20px;
    text-decoration: none;
    line-height: 1;
    letter-spacing: -.035em;
}

.sm-footer .sm-footer-logo-sourcing {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
}

.sm-footer .sm-footer-logo-mart {
    color: #d5a64b;
    font-size: 22px;
    font-weight: 800;
}

.sm-footer .sm-footer-location {
    margin-top: 20px !important;
    color: #d5a64b !important;
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: .02em;
}

/* LINKS */
.sm-footer .sm-footer-column > a {
    display: block;
    width: fit-content;
    margin: 0 0 13px;
    padding: 0;
    color: rgba(234, 241, 238, .78);
    background: transparent;
    border: 0;
    text-decoration: none;
    font-size: 13.5px;
    line-height: 1.5;
    transition:
        color .2s ease,
        transform .2s ease;
}

.sm-footer .sm-footer-column > a:hover,
.sm-footer .sm-footer-column > a:focus {
    color: #d5a64b;
    transform: translateX(3px);
    text-decoration: none;
}

/* POLICY BAR */
.sm-footer .sm-footer-policies {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 21px 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 22px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.sm-footer .sm-footer-policies a {
    color: rgba(234, 241, 238, .64);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.5;
    transition: color .2s ease;
}

.sm-footer .sm-footer-policies a:hover,
.sm-footer .sm-footer-policies a:focus {
    color: #d5a64b;
    text-decoration: none;
}

/* BOTTOM BAR */
.sm-footer .sm-footer-bottom {
    width: 100%;
    background: rgba(0, 0, 0, .12);
}

.sm-footer .sm-footer-bottom-inner {
    width: min(1180px, calc(100% - 48px));
    min-height: 68px;
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.sm-footer .sm-footer-bottom p {
    margin: 0;
    color: rgba(234, 241, 238, .55);
    font-size: 12px;
    line-height: 1.5;
}

.sm-footer .sm-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.sm-footer .sm-footer-bottom-links a {
    color: rgba(234, 241, 238, .62);
    text-decoration: none;
    font-size: 12px;
    transition: color .2s ease;
}

.sm-footer .sm-footer-bottom-links a:hover,
.sm-footer .sm-footer-bottom-links a:focus {
    color: #d5a64b;
}

.sm-footer .sm-footer-bottom-links span {
    color: rgba(234, 241, 238, .25);
    font-size: 11px;
}

/* TABLET */
@media (max-width: 1050px) {
    .sm-footer .sm-footer-main {
        grid-template-columns: 1.5fr repeat(2, 1fr);
        gap: 42px 34px;
    }

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

/* MOBILE */
@media (max-width: 700px) {
    .sm-footer .sm-footer-main {
        width: min(100% - 32px, 560px);
        padding: 48px 0 36px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 24px;
    }

    .sm-footer .sm-footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }

    .sm-footer .sm-footer-column h4 {
        margin-bottom: 17px;
        font-size: 14px;
    }

    .sm-footer .sm-footer-column > a {
        margin-bottom: 11px;
        font-size: 13px;
    }

    .sm-footer .sm-footer-policies {
        width: min(100% - 32px, 560px);
        padding: 18px 0;
        justify-content: flex-start;
        gap: 9px 17px;
    }

    .sm-footer .sm-footer-policies a {
        font-size: 11.5px;
    }

    .sm-footer .sm-footer-bottom-inner {
        width: min(100% - 32px, 560px);
        min-height: auto;
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* SMALL MOBILE */
@media (max-width: 430px) {
    .sm-footer .sm-footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sm-footer .sm-footer-brand {
        grid-column: auto;
    }

    .sm-footer .sm-footer-policies {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 11px 18px;
    }

    .sm-footer .sm-footer-bottom-links {
        width: 100%;
    }
}

/* ACCESSIBILITY */
.sm-footer a:focus-visible {
    outline: 2px solid #d5a64b;
    outline-offset: 4px;
    border-radius: 3px;
}
