/* CRITICAL: Footer CSS - REFACTORED (Sage Green Theme) */

/* 1. Global Reset */
footer.sb-footer * {
    line-height: 1.05 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    text-align: left !important;
}

/* 2. Main Container */
footer.sb-footer {
    flex-shrink: 0;
    background: var(--sb-bg-sage, #EFF5F1);
    /* Global Sage */
    padding: 20px 0 10px !important;
    color: var(--sb-text, #2F3E46);
    font-family: Lato, sans-serif;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.05);
    margin-top: 40px !important;
    font-size: 13px !important;
    border-top: 1px solid rgba(58, 90, 64, 0.1);
}

footer.sb-footer a {
    color: var(--sb-green-dark, #29402D) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

footer.sb-footer a:hover {
    color: var(--sb-green, #3A5A40) !important;
    text-decoration: underline !important;
}

/* 3. Grid Structure */
footer.sb-footer .sb-footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px !important;
    max-width: 1400px;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box;
    position: relative;
    align-items: stretch !important;
}

/* Dividers - Subtle */
footer.sb-footer .sb-footer-inner::before,
footer.sb-footer .sb-footer-inner::after {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    width: 1px;
    background: rgba(58, 90, 64, 0.1);
    /* Low opacity green */
    pointer-events: none;
}

footer.sb-footer .sb-footer-inner::before {
    left: 25%;
}

footer.sb-footer .sb-footer-inner::after {
    right: 25%;
}

/* 4. Cards */
footer.sb-footer .sb-card {
    background: var(--sb-soft, #FFFFFF);
    padding: 12px 14px !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(58, 90, 64, 0.08);
    /* Subtle green border */
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    height: 100% !important;
}

/* 5. Typography & Headings */
footer.sb-footer .sb-brand-title {
    font-family: 'Great Vibes', cursive;
    font-size: 28px !important;
    line-height: 0.9 !important;
    color: var(--sb-green, #3A5A40);
    margin-bottom: 2px !important;
    width: 100%;
    text-align: left !important;
}

/* Center Brand Column specifically */
footer.sb-footer .sb-footer-brand {
    align-items: center !important;
}

footer.sb-footer .sb-footer-brand .sb-brand-title {
    text-align: center !important;
}

footer.sb-footer .sb-footer-brand .sb-social-icons {
    justify-content: center !important;
}

footer.sb-footer .sb-footer-brand .sb-cards-row {
    justify-content: center !important;
}

footer.sb-footer .sb-footer-brand .sb-cards-text {
    text-align: center !important;
}

footer.sb-footer .sb-footer-col h3 {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 6px;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: var(--sb-green-dark, #29402D);
    margin-bottom: 8px !important;
    width: 100%;
}

/* 6. Generic Lists */
footer.sb-footer ul,
footer.sb-footer li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

/* 7. Sitemap */
footer.sb-footer .sb-footer-menu-static {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 10px !important;
    text-align: left !important;
    padding: 0 2px !important;
    width: 100%;
}

footer.sb-footer .sb-footer-menu-static li {
    font-size: 11px !important;
    line-height: 1.2 !important;
}

footer.sb-footer .sb-footer-menu-static li a {
    padding: 1px 0 !important;
    display: block;
}

footer.sb-footer .sb-footer-menu-static li.sb-sitemap-link {
    grid-column: 1 / -1 !important;
    margin-top: 6px !important;
    font-weight: bold;
}

/* 8. Areas We Deliver */
footer.sb-footer .sb-areas-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 12px !important;
    text-align: left !important;
    padding: 0 5px !important;
}

footer.sb-footer .sb-areas-list li {
    font-size: 11.5px !important;
    line-height: 1.1 !important;
    padding: 2px 0 !important;
}

/* 9. Contact Splitting */
footer.sb-footer .sb-contact-split {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
    width: 100%;
    align-items: center;
}

footer.sb-footer .sb-contact-list-details li {
    padding: 2px 0 !important;
    justify-content: flex-start !important;
    font-size: 11px !important;
    gap: 8px;
    color: var(--sb-text-light, #5C6B73);
}

footer.sb-footer .sb-hours-table-col {
    background: rgba(239, 245, 241, 0.6);
    /* Transparent Sage */
    padding: 6px 8px !important;
    border-radius: 6px;
    font-size: 10px !important;
    line-height: 1.3 !important;
    text-align: left !important;
    color: var(--sb-text, #2F3E46);
}

footer.sb-footer .sb-hours-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 1px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

footer.sb-footer .sb-hours-row:last-child {
    border-bottom: none;
}

footer.sb-footer .sb-hours-row.closed {
    color: #A44;
}

/* 10. Icons */
footer.sb-footer .sb-foot-ico i,
footer.sb-footer .sb-ci-ico i,
footer.sb-footer .sb-area-pin i {
    font-size: 14px;
    color: var(--sb-green, #3A5A40);
    width: 18px;
    text-align: center;
}

/* 11. Social & Payment */
footer.sb-footer .sb-cards-row {
    display: flex;
    justify-content: flex-start !important;
    gap: 4px;
    margin-top: 4px;
}

footer.sb-footer .sb-cards-row img {
    height: 18px !important;
    width: auto !important;
    object-fit: contain;
}

footer.sb-footer .sb-cards-text {
    font-size: 9px !important;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 6px !important;
    text-align: left !important;
    color: var(--sb-text-light);
}

footer.sb-footer .sb-social-icons {
    margin: 6px 0 !important;
    display: flex;
    gap: 8px;
    justify-content: flex-start !important;
}

footer.sb-footer .sb-social-icons img {
    width: 18px !important;
    height: 18px !important;
    /* CSS Filter to match Sage/Green theme dynamically if possible, or just opacity */
    opacity: 0.8;
    transition: opacity 0.2s;
}

footer.sb-footer .sb-social-icons a:hover img {
    opacity: 1;
}

/* 12. Bottom Row */
footer.sb-footer .sb-footer-bottom-row {
    margin: 10px auto 0 !important;
    padding: 8px 20px 0 !important;
    border-top: 1px solid rgba(58, 90, 64, 0.08);

    display: flex;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 10px !important;
    max-width: 1400px;
    color: var(--sb-text-light);
}

footer.sb-footer .sb-footer-copy {
    text-align: center !important;
    width: 100%;
}

/* Reviews Inline */
footer.sb-footer .sb-reviews-inline {
    display: inline-flex !important;
    gap: 10px !important;
    justify-content: center !important;
    align-items: center !important;
}

footer.sb-footer .sb-review-small {
    background: #fff;
    padding: 3px 6px !important;
    border-radius: 4px;
    font-weight: 700;
    font-size: 10px !important;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--sb-green-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

footer.sb-footer .sb-review-small img {
    width: 10px !important;
    height: 10px !important;
}

/* 13. Badges */
.sb-open-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1 !important;
}

.sb-open-badge.sb-open {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.sb-open-badge.sb-closed {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* 14. Responsive */
@media(max-width:1100px) {

    footer.sb-footer .sb-footer-inner::before,
    footer.sb-footer .sb-footer-inner::after {
        display: none;
    }
}

@media(max-width:900px) {
    footer.sb-footer .sb-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 12px !important;
    }
}

@media(max-width:600px) {
    footer.sb-footer .sb-footer-inner {
        grid-template-columns: 1fr;
        gap: 15px !important;
    }

    footer.sb-footer .sb-brand-title {
        font-size: 32px !important;
    }

    footer.sb-footer .sb-areas-list {
        columns: 1;
        display: block !important;
    }

    footer.sb-footer .sb-contact-split {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}