/* Footer layout — single source of truth (also linked directly on the public site) */

.site-footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 640px) {
    .site-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer-main > .site-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .site-footer-main {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        column-gap: 2rem;
        row-gap: 2.5rem;
        align-items: start;
    }

    .site-footer-main > .site-footer-brand {
        grid-column: auto;
    }
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-footer-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgb(255 255 255 / 0.1);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

html[data-theme='light'] .site-footer-bottom {
    border-top-color: rgb(226 232 240);
}

@media (min-width: 1024px) {
    .site-footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .site-footer-copy {
        text-align: left;
        flex: 1 1 0%;
    }

    .site-footer-legal {
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    .site-footer-disclaimer {
        text-align: right;
        flex: 1 1 0%;
        max-width: 18rem;
    }
}

.site-footer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    background: rgb(5 150 105);
    color: rgb(255 255 255);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    padding: 0.625rem 1rem;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px -10px rgb(16 185 129 / 0.65);
}

.site-footer-whatsapp-btn:hover {
    background: rgb(16 185 129);
    color: rgb(255 255 255);
    transform: translateY(-1px);
}

.site-footer-whatsapp-btn-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

html[data-theme='light'] .site-footer-whatsapp-btn {
    background: rgb(5 150 105);
    color: rgb(255 255 255);
}

html[data-theme='light'] .site-footer-whatsapp-btn:hover {
    background: rgb(4 120 87);
}
