@charset "UTF-8";

/* ========================================
   FOOTER - LAYOUT PRINCIPAL
   ======================================== */
footer {
    background: var(--c_blue4);
    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, #telefone {
    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_blue4);
}

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

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

#whatsapp {
    background-color: var(--c_white);
    color: var(--c_blue4);
    display: none;
    font-size: 20px;
}

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

.footer-link i {
    font-size: 21px;
}

/* ========================================
   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: left;
}

.newsletter-hint {
    width: 100%;
    font-size: 0.75em;
    font-weight: 500;
    color: rgba(242, 242, 242, 0.7);
    text-align: center;
    margin-bottom: 5px;
}

.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_blue4);
}

.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: 20px auto 0 auto;
    padding-top: 20px;
    text-align: left;
}

.footer-bottom p {
    margin-top: 20px;
    font-size: 0.85em;
    opacity: 0.8;
}

/* ========================================
   FOOTER - DUAS COLUNAS < 1100px
   ======================================== */
@media only screen and (max-width: 1100px) {
    footer {
        --footer-col-left: calc(13.1034vw + 75.86px);
        --footer-col-right: calc(16.5517vw + 77.93px);
        --footer-gap-x: calc(5.7931vw - 7.72px);
        --footer-gap-y: 20px;
        --footer-pad-top: calc(3.8621vw + 13.52px);
        --footer-pad-x: calc(5.5172vw - 4.69px);
        --footer-pad-bottom: calc(1.6552vw + 13.79px);
        --footer-icon-box: calc(3.3103vw + 15.59px);
        --footer-icon-size: calc(1.7931vw + 10.28px);
        --footer-social-gap: calc(2.2069vw - 0.28px);
        --footer-font: calc(1.3793vw + 6.83px);
        --footer-input-font: calc(0.6897vw + 8.41px);
        --footer-input-width: calc(24.8276vw + 66.90px);
        --footer-input-pad: calc(0.6897vw + 6.41px);
        --footer-form-gap: calc(1.3793vw + 8.83px);
        --footer-button-pad-y: calc(0.5517vw + 4.93px);
        --footer-button-pad-x: calc(1.6552vw + 7.79px);
        --footer-address-gap: calc(5.5172vw + 25.31px);
        --footer-copy-gap: calc(4.9655vw + 25.38px);

        display: grid;
        grid-template-columns: minmax(var(--footer-col-left), 1fr) minmax(var(--footer-col-right), 1fr);
        column-gap: var(--footer-gap-x);
        row-gap: var(--footer-gap-y);
        align-items: start;
        padding: var(--footer-pad-top) var(--footer-pad-x) var(--footer-pad-bottom);
    }

    .footer-content {
        display: contents;
    }

    .redes-sociais {
        grid-column: 1;
        grid-row: 1;
        gap: var(--footer-social-gap);
        justify-self: start;
    }

    #whatsapp {
        display: flex;
    }

    .footer-link {
        width: var(--footer-icon-box);
        height: var(--footer-icon-box);
    }

    .footer-link i {
        font-size: var(--footer-icon-size);
    }

    .contatos {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        margin-bottom: 0;
    }

    .contatos h3,
    .telefone-line,
    .contatos p:has(#telefone) {
        display: none;
    }

    .contatos p,
    .endereco p {
        font-size: var(--footer-font);
        line-height: 1.35;
        white-space: normal;
    }

    #email {
        font-weight: 400;
    }

    .endereco {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        margin-top: var(--footer-address-gap);
        text-align: left;
    }

    .newsletter {
        grid-column: 2;
        grid-row: 1 / span 2;
        justify-self: stretch;
        max-width: none;
    }

    .newsletter form {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: var(--footer-form-gap);
    }

    .newsletter label {
        font-size: var(--footer-font);
        font-weight: 500;
        line-height: 1.25;
        text-align: left;
    }

    .newsletter-hint {
        display: none;
    }

    .newsletter input[type="email"] {
        width: 100%;
        max-width: var(--footer-input-width);
        min-width: 0;
        padding: var(--footer-input-pad);
        font-size: var(--footer-input-font);
        border-radius: 8px;
        background-color: #d9d9d9;
        color: var(--c_blue3);
    }

    .newsletter button {
        padding: var(--footer-button-pad-y) var(--footer-button-pad-x);
        border-radius: 8px;
        background-color: #d9d9d9;
        color: #4a4a4a;
        font-size: var(--footer-font);
    }

    .footer-bottom {
        grid-column: 2;
        grid-row: 2;
        align-self: end;
        justify-self: end;
        max-width: none;
        margin: var(--footer-copy-gap) 0 0;
        padding-top: 0;
        text-align: right;
    }

    .footer-bottom p {
        font-size: var(--footer-font);
        opacity: 1;
    }
}

/* ========================================
   FOOTER - LIMITE MÍNIMO 375px
   ======================================== */
@media only screen and (max-width: 375px) {
    footer {
        --footer-col-left: 125px;
        --footer-col-right: 140px;
        --footer-gap-x: 14px;
        --footer-gap-y: 20px;
        --footer-pad-top: 28px;
        --footer-pad-x: 16px;
        --footer-pad-bottom: 20px;
        --footer-icon-box: 28px;
        --footer-icon-size: 17px;
        --footer-social-gap: 8px;
        --footer-font: 12px;
        --footer-input-font: 11px;
        --footer-input-width: 160px;
        --footer-input-pad: 9px;
        --footer-form-gap: 14px;
        --footer-button-pad-y: 7px;
        --footer-button-pad-x: 14px;
        --footer-address-gap: 46px;
        --footer-copy-gap: 44px;
    }
}
