@charset "UTF-8";

/* ========================================
   FOOTER - LAYOUT PRINCIPAL
   ======================================== */
footer {
    background: var(--c_blue3);
    color: var(--c_white);
    padding: 40px 50px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(auto, max-content) minmax(auto, max-content) 1fr minmax(auto, 400px);
    grid-template-rows: auto;
    column-gap: 40px;
    row-gap: 20px;
    max-width: var(--max-w);
    margin: 0 auto 30px;
    align-items: center;
}

/* ========================================
   CONTATOS
   ======================================== */
   
.contatos {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: start;
} 

.contatos h3 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--c_white);
    text-align: left;
}

.contatos p {
    font-size: 0.85em;
    line-height: 1.8;
    margin: 5px 0;
    text-align: left;
    white-space: nowrap;
}

.contatos p a {
    text-decoration: none;
    color: var(--c_white);
}

#email {
    font-weight: 600;
}

/* ========================================
   REDES SOCIAIS
   ======================================== */
.redes-sociais {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    gap: 20px;
    align-items: center;
    align-self: center;
    justify-self: center;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

#facebook {
    background-color: var(--c_white);
    color: var(--c_blue3);
}

#instagram {
    background-color: var(--c_white);
    color: var(--c_blue3);
}

#tiktok {
    background-color: var(--c_white);
    color: var(--c_blue3);
}

#whatsapp {
    background-color: var(--c_white);
    color: var(--c_blue3);
    font-size: 1.25rem;
}

.footer-link:hover {
    transform: translateY(-5px) scale(1.1);
    opacity: .8;
}

.footer-link i {
    font-size: 1.3em;
}

/* ========================================
   ENDEREÇO
   ======================================== */
   
.endereco {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    text-align: center;
}

.endereco p {
    font-size: 0.85em;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   NEWSLETTER
   ======================================== */
.newsletter {
    grid-column: 4;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    width: 100%;
    max-width: 400px;
}

.newsletter form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.newsletter label {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
    width: 100%;
    text-align: center;
}

.newsletter input[type="email"] {
    flex: 1;
    min-width: 150px;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 0.85em;
    background-color: var(--c_white);
    color: var(--c_blue3);
}

.newsletter button {
    padding: 10px 25px;
    background-color: var(--c_blue1);
    color: var(--c_white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter button:hover {
    background-color: var(--c_red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Inputs Gerais */
input[type="text"], 
input[type="email"], 
textarea {
    box-sizing: border-box;
}

input[type="text"]:focus, 
input[type="email"]:focus,
textarea:focus {
    outline: 2px solid var(--c_blue1);
}


/* ========================================
   FOOTER BOTTOM
   ======================================== */
.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(242, 242, 242, 0.2);
    text-align: right;
}

.footer-bottom p {
    font-size: 0.85em;
    opacity: 0.8;
}

/* ========================================
   FOOTER - RESPONSIVIDADE 1250px
   ======================================== */
@media only screen and (max-width: 1280px) {
    .footer-content {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 30px;
    }

    .contatos {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .redes-sociais {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    .endereco {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        text-align: right;
    }

    .newsletter {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        max-width: 600px;
    }

    .newsletter form {
        justify-content: center;
        gap: 12px;
    }

    .newsletter label {
        text-align: center;
    }

    .newsletter input[type="email"] {
        max-width: 400px;
    }
}

/* ========================================
   FOOTER - RESPONSIVIDADE 800px
   ======================================== */
@media only screen and (max-width: 800px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
    }

    .contatos {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .redes-sociais {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    .endereco {
        grid-column: 1;
        grid-row: 2;
        text-align: left;
        justify-self: start;
    }

    .newsletter {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        max-width: 100%;
    }

    .newsletter form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .newsletter label {
        text-align: left;
    }

    .newsletter input[type="email"],
    .newsletter button {
        width: 100%;
    }
}

/* ========================================
   FOOTER - RESPONSIVIDADE 720px
   ======================================== */
@media only screen and (max-width: 720px) {
    footer {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        text-align: center;
        gap: 25px;
    }

    .contatos, .redes-sociais, .endereco, .newsletter {
        grid-column: 1;
        grid-row: auto;
        align-self: center;
        justify-self: center;
    }

    .contatos {
        text-align: center;
    }

    .contatos h3,
    .contatos p {
        text-align: center;
    }

    .endereco {
        text-align: center;
    }

    .redes-sociais {
        justify-content: center;
    }

    .newsletter {
        width: 100%;
        max-width: 400px;
    }

    .newsletter form {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .newsletter label {
        text-align: center;
        width: 100%;
    }

    .newsletter input[type="email"] {
        width: 60%;
        max-width: 60%;
    }

    .newsletter button {
        width: auto;
        padding: 10px 20px;
    }

    .footer-bottom {
        text-align: center;
    }
}
