/* ============================================================
   FOOTER — RecycleWays
   ============================================================ */

footer {
    background: var(--color-forest-deep, #062c21);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 4px solid var(--color-impact-green, #10b981);
    box-sizing: border-box;
}

.footer-container {
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-impact-green, #10b981);
    border-radius: 3px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-col ul a i {
    font-size: 0.6rem;
    color: var(--color-impact-green, #10b981);
}

.footer-col ul a:hover {
    color: #ffffff;
}

/* ---------- COLUNA SOBRE / LOGO ---------- */
.footer-about .footer-logo h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-about .footer-logo h3 span {
    color: var(--color-impact-green, #10b981);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    max-width: 350px;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 1rem;
}

.footer-social a:hover {
    background: var(--color-impact-green, #10b981);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* ---------- DIVISOR ---------- */
.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 2rem 0;
}

/* ============================================================
   RODAPÉ INFERIOR
   ============================================================ */

.footer-bottom {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy,
.footer-credits {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-copy strong,
.footer-credits strong {
    color: rgba(255, 255, 255, 0.75);
}

/* ---------- BOTÃO DO DESENVOLVEDOR ---------- */
.footer-dev {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid #10b981;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    transition: all 0.25s ease;
    vertical-align: middle;
}

.footer-dev i {
    margin-right: 0.35rem;
    font-size: 0.75rem;
}

.footer-dev:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.footer-dev:active {
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-about p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 0 1rem;
        margin-top: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-about p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }

    .footer-copy,
    .footer-credits {
        font-size: 0.78rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 2rem 0 1rem;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-col ul a {
        font-size: 0.85rem;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .footer-copy,
    .footer-credits {
        font-size: 0.72rem;
    }

    .footer-dev {
        margin: 0.4rem 0 0;
        padding: 0.4rem 0.9rem;
        font-size: 0.72rem;
    }
}
/* Esconde qualquer modal fechado que possa estar bloqueando o scroll */
.master-modal:not(.active) {
    display: none !important;
    pointer-events: none !important;
}

/* Se for um botão flutuante genérico */
.fab,
.scroll-to-top,
.back-to-top {
    display: none !important;
}
/* ============================================================
   GARANTE ESPAÇO NO FIM DA PÁGINA (mobile)
   ============================================================ */

/* Espaço extra para o body nunca colar o footer na borda visível */
body {
    padding-bottom: 0;
    margin-bottom: 0;
}

footer {
    padding-bottom: 3rem !important;
    margin-bottom: 0 !important;
}

/* No mobile, empilha "Desenvolvido para X por [botão]" em 3 linhas */
@media (max-width: 600px) {

    footer {
        padding: 2rem 0 3rem !important;
    }

    .footer-bottom {
        padding-top: 1rem !important;
        margin-bottom: 0 !important;
    }

    .footer-bottom-content {
        display: block !important;
        text-align: center !important;
        padding: 0 0.5rem !important;
    }

    .footer-copy,
    .footer-credits {
        display: block !important;
        text-align: center !important;
        font-size: 0.78rem !important;
        line-height: 1.7 !important;
        margin: 0 0 0.8rem 0 !important;
        padding: 0 !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    /* O botão em linha própria, centralizado */
    .footer-dev {
        display: block !important;
        margin: 0.5rem auto 0 auto !important;
        padding: 0.5rem 1.1rem !important;
        font-size: 0.78rem !important;
        width: fit-content;
        max-width: 100%;
    }
}