/* =================================== */
/* --- RESPONSIVIDADE --- */
/* =================================== */

/* Tablet (834px) e menores */
@media (max-width: 834px) {
    /* Ajustes gerais */
    html {
        font-size: 95%;
    }
    
    /* Header */
    header {
        padding: 0 15px;
    }
    
    nav a {
        font-size: 1rem;
        padding: 6px 10px;
    }
    
    .buttons button {
        padding: 6px 12px;
    }
    
    /* Cards */
    .cards {
        padding: 15px;
        gap: 15px;
    }
    
    .card {
        width: calc(50% - 15px);
        height: 280px;
    }
    
    /* Sobre */
    .sobre {
        padding: 30px 15px;
    }
    
    .sobre p {
        font-size: 1em;
        padding: 0 15px;
    }
    
    /* Footer */
    footer {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .footer-logo {
        justify-content: center;
        gap: 15px;
    }
    
    .social {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
        gap: 15px;
    }
}

/* Mobile (412px) e menores */
@media (max-width: 412px) {
    /* Ajustes gerais */
    html {
        font-size: 90%;
    }
    
    /* Header */
    header {
        padding: 0 10px;
    }
    
    .logo img {
        max-width: 100px;
    }
    
    .buttons button {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #001970;
        padding: 10px 0;
        z-index: 1000;
    }
    
    nav.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    nav a {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    
    .menu-mobile {
        display: block;
    }
    
    /* Cards */
    .cards {
        padding: 10px;
        gap: 10px;
    }
    
    .card {
        width: 100%;
        height: 250px;
        min-width: unset;
    }
    
    /* Sobre */
    .sobre {
        padding: 20px 10px;
    }
    
    /* Footer */
    .footer-logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-logo-text {
        text-align: center;
    }
    
    .footer-logo span {
        font-size: 1em;
    }
    
    .social img {
        width: 24px;
        height: 24px;
    }
}

/* Ajustes específicos para dispositivos entre tablet e mobile */
@media (min-width: 413px) and (max-width: 833px) {
    .cards {
        justify-content: center;
    }
    
    .card {
        width: calc(50% - 20px);
        max-width: 300px;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 320px) {
    .buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .buttons button {
        width: 100%;
    }
}