footer {
    background-color: #FFF;
    color: #191919;
    padding: 30px 5%;
    font-size: 15px;
    line-height: 1.5;
}

/* LINHA 1 - BLOCO SUPERIOR */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}
.footer-logo {
    width: 140px;
    height: auto;
}

.footer-block h4 {
    font-weight: 700;
    color: #6D2077;
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-block a {
    display: block;
    color: #6D2077;
    font-weight: 400;
    text-decoration: none;
    margin-bottom: 5px;
}

.footer-block a:hover {
    text-decoration: none;
}
.copy {
    font-size: 13px;
    color: #6D2077;
}

/* BOTÃO - Encontrar hospitais */
.footer-button {
    border: 2px solid #5c007a;
    color: #5c007a !important;
    font-weight: 600 !important;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-flex !important;
    align-items: center;
    column-gap: 5px;
    margin-top: 10px;
    text-decoration: none;
}

/* LINHA 2 - BLOCO INFERIOR */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #6d2077;
    margin-top: 50px;
    padding-top: 20px;
    flex-direction: row-reverse; /* Redes sociais à direita */
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom .social-icons {
    display: flex;
    gap: 10px;
}

.footer-bottom .social-icons img {
    height: 24px;
}

/* MOBILE - ATÉ 1024px */
@media (max-width: 1024px) {
    .footer-top, .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-top {
        gap: 25px;
    }

    .footer-top .footer-block {
        padding: 20px 0;
        border-bottom: 1px solid #ededed;
        width: 100%;
    }

    .footer-top .footer-block:last-child {
        border-bottom: none;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Centralizar ícones sociais no mobile */
    .footer-bottom .social-icons {
        justify-content: center;
    }
}

/* DESKTOP - A PARTIR DE 1025px */
@media (min-width: 1025px) {
    .footer-top .footer-block {
        border-bottom: none;
        padding: 0;
        flex: 1 1 0;
    }
    .footer-top {
        justify-content: flex-start;
    }
    .footer-block-01 {
        flex: initial !important;
    }
    .footer-block-02 {
        flex: initial !important;
        margin-left: 40px;
    }
    .footer-bottom { flex-direction: initial; }
}
