/* ==================================================
   PÁGINA DE CONTATO
   ================================================== */

.contact-hero {

    background: #2c2c2c;
    min-height: 420px;
    display: flex;
    align-items: center;

}

.contact-hero .container {
    width: 100%;  
    max-width: 900px;
}

.contact-hero h1 {

    color: #fff;

    margin-top: 10px;

    margin-bottom: 12px;

    text-align: left;

}

.hero-description{
    max-width: 850px;
    margin-top: 0;
    color: rgba(255,255,255,.90);
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
}

.hero-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* ==================================================
   CONTEÚDO
   ================================================== */

.contact-section {
    background: #f8f9fb;
    padding: 80px 0;    
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr)
                           minmax(280px, .8fr);
    gap: 50px;
}

/* ==================================================
   CARD FORMULÁRIO
   ================================================== */

.contact-form-card {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    background: white;
    border-radius: 12px;
    padding: 45px;
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

/* ==================================================
   CARD INFORMAÇÕES
   ================================================== */

.contact-info-card {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    padding: 45px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.section-tag {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #e35303;
}

.contact-info-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #676d73;
    margin-bottom: 15px;
}

.contact-info-card p {
    color: #555;
    line-height: 1.8;
}

/* ==================================================
   DIVIDER
   ================================================== */

.divider {
    width: 90px;
    height: 4px;
    background: #e35303;
    border-radius: 20px;
    margin: 20px 0 30px;
}

/* ==================================================
   LISTA DE CONTATOS
   ================================================== */

.info-list {
    margin-top: 35px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item .icon {

    width: 55px;
    height: 55px;
    min-width: 55px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.info-item h4 {
    margin: 0 0 10px;
    color: #2c2c2c;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
}

.info-item p {
    margin-bottom: 5px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* ==================================================
   FORMULÁRIO
   ================================================== */
.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e35303;
    box-shadow: 0 0 0 4px rgba(227,83,3,0.10);
}

/* ==================================================
   BOTÕES
   ================================================== */
.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #F7931E;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: all .3s ease;
}

.btn-primary:hover {
    background: #2c2c2c;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ==================================================
   VOLTAR AO TOPO
   ================================================== */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #2c2c2c;
    color: #fff;
    cursor: pointer;
    z-index: 999;
    transition: all .3s ease;
}

.back-to-top:hover {
    background: #F7931E;
}

/* ==================================================
   ANIMAÇÃO
   ================================================== */

.fadeInUp {
    animation: fadeInUp .9s ease forwards;
}

/* TRATAMENTO PARA VERSÃO MOBILE */
html, body {
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================================
   RESPONSIVO
   ================================================== */

/* LAYOUT PARA TABLETS */   
@media (max-width: 992px) {

    .contact-hero {
        min-height: auto;
        padding: 70px 0;
    } 
      
}

/* LAYOUT PARA CELULARES SMARTPHONES */  
@media (max-width: 768px) {

    .contact-grid {
        display: flex;
        flex-direction: column;
        gap: 25px;
        width: 100%;
        max-width: 100%;
    }
     
    .contact-hero .container {
        max-width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .contact-hero {
        min-height: auto;
        padding: 50px 15px;
        overflow-x: hidden;
    }

    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .hero-description {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
        font-size: .95rem;
        line-height: 1.7;
        text-align: justify;
    }

    #formContato {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .contact-form-card,
    .contact-info-card {
        width: 100%;
        max-width: 100%;        
        min-width: 0;
    }

    .info-item {
        gap: 15px;
    }

    .info-item div {
        min-width: 0;
    }

    .info-item p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .contact-section .container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 15px;
    }

    .form-group,
    .form-group input,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .btn-primary {
        width: 100%;
        max-width: 100%;
    }

    /* CORREÇÃO NO LAYOUT GERAL DA PÁGINA PARA MOBILE */
    html, body {
        overflow-x: auto !important;
    }    

}

@media (max-width: 480px) {    
    
    .contact-hero h1 {
        font-size: 2rem;
    }

    .phone-floating-btn {
        width: 55px;
        height: 55px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
    }

}

@media(prefers-reduced-motion: reduce){
    *{
        animation: none !important;
        transition: none !important;
    }

}