/* ==================================================
   PÁGINA DE CONTATO
================================================== */


/* ==================================================
   1. HERO DO CONTATO
================================================== */

.contact-hero {
    position: relative;

    min-height: 265px;

    display: flex;
    align-items: center;

    background-image: url('../img/about-banner.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 42%;

    overflow: hidden;
}


/* ==================================================
   DEGRADÊ SOBRE A IMAGEM
================================================== */

.contact-hero::before {
    content: '';

    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(244, 242, 237, 0.96) 0%,
            rgba(239, 235, 226, 0.91) 31%,
            rgba(221, 211, 192, 0.76) 59%,
            rgba(176, 149, 108, 0.61) 100%
        );

    pointer-events: none;
}


/* ==================================================
   CONTEÚDO
================================================== */

.contact-hero-content {
    position: relative;
    z-index: 2;

    width: min(100% - 40px, var(--container));
    max-width: var(--container);

    margin: 0 auto;
}


/* ==================================================
   TÍTULO
================================================== */

.contact-hero h1 {
    margin: 0;

    font-family: var(--fonte-titulo);
    font-size: clamp(2.8rem, 3.3vw, 3.8rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.035em;
    text-transform: uppercase;

    color: var(--preto-elegante);
}


/* Remove estilos antigos caso ainda existam */

.contact-hero .section-label,
.contact-hero p {
    display: none;
}

.contact-hero h1::after {
    display: none;
}


/* ==================================================
   RESPONSIVO — TABLET
================================================== */

@media (max-width: 1024px) {

    .contact-hero {
        min-height: 240px;
        background-position: 55% 40%;
    }

}


/* ==================================================
   RESPONSIVO — MOBILE
================================================== */

@media (max-width: 768px) {

    .contact-hero {
        min-height: 210px;
        padding: 0;

        background-position: 60% center;
    }

    .contact-hero-content {
        width: min(100% - 28px, var(--container));
    }

    .contact-hero::before {
        background:
            linear-gradient(
                90deg,
                rgba(244, 242, 237, 0.97) 0%,
                rgba(237, 230, 217, 0.88) 58%,
                rgba(185, 157, 116, 0.60) 100%
            );
    }

    .contact-hero h1 {
        font-size: clamp(2.5rem, 11vw, 3.3rem);
    }

}


/* ==================================================
   RESPONSIVO — CELULAR PEQUENO
================================================== */

@media (max-width: 480px) {

    .contact-hero {
        min-height: 190px;
        background-position: 62% center;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
    }

}


/* ==================================================
   2. SEÇÃO PRINCIPAL DE CONTATO
================================================== */

.contact-section {
    padding: 104px 0 118px;

    background: var(--bege-fundo);

    overflow: hidden;
}

.contact-section .container {
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
}


/* ==================================================
   ESTRUTURA
================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 500px minmax(0, 1fr);
    align-items: start;
    gap: 52px;
}


/* ==================================================
   CAIXAS PRINCIPAIS
================================================== */

/*
No layout antigo não existem caixas externas
brancas, bordas ou sombras.
*/

.contact-form-box {
    width: 100%;
    max-width: 500px;
}

.contact-info-box {
    width: 100%;
    min-width: 0;
    padding-top: 14px;
}


/* ==================================================
   3. FORMULÁRIO — TÍTULO
================================================== */

.contact-form-box h2 {
    width: 100%;
    max-width: 500px;
    margin: 0 0 22px;

    font-family: var(--fonte-titulo);
    font-size: clamp(1.65rem, 1.8vw, 2rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.025em;
    text-transform: uppercase;

    color: var(--preto-elegante);
}


/* Remove a etiqueta da versão nova */

.contact-form-box > .section-label {
    display: none;
}


/* ==================================================
   ESTRUTURA DO FORMULÁRIO
================================================== */

.contact-form {
    display: grid;
    gap: 13px;
}


/* ==================================================
   GRUPOS E RÓTULOS
================================================== */

.form-group {
    min-width: 0;
}

.form-group label {
    display: block;

    margin: 0 0 7px;

    font-family: var(--fonte-texto);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.3;

    color: var(--preto-elegante);
}


/* ==================================================
   CAMPOS
================================================== */

.form-group input,
.form-group textarea {
    width: 100%;

    display: block;

    padding: 0 16px;

    background: #f7f7f7;
    border: 0;
    border-radius: 0;

    font-family: var(--fonte-texto);
    font-size: 0.84rem;

    color: var(--preto-elegante);

    outline: none;

    transition:
        background 0.25s ease,
        box-shadow 0.25s ease;
}

/* ==================================================
   AVISOS DO FORMULÁRIO
================================================== */

.form-success,
.form-error {
    margin: 0 0 22px;
    padding: 14px 16px;

    font-size: 0.86rem;
    line-height: 1.5;

    border-radius: 4px;
}

.form-success {
    background: #edf7ed;
    border: 1px solid #b8d8b9;
    color: #28612c;
}

.form-error {
    background: #fbecec;
    border: 1px solid #e1b4b4;
    color: #8a2828;
}


/* Inputs simples e retangulares */

.form-group input {
    height: 56px;
}


/* Mensagem */

.form-group textarea {
    min-height: 206px;
    padding-top: 16px;
    padding-bottom: 16px;

    resize: vertical;
}


/* Placeholder */

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(138, 129, 118, 0.52);
}


/* Estado de foco */

.form-group input:focus,
.form-group textarea:focus {
    background: #ffffff;

    box-shadow: inset 0 0 0 1px rgba(200, 145, 43, 0.7);
}


/* ==================================================
   BOTÃO ENVIAR
================================================== */

.contact-submit {
    width: 116px;
    height: 48px;
    margin-top: 4px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 24px;

    background: var(--dourado);

    font-family: var(--fonte-texto);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;

    color: var(--preto-elegante);

    cursor: pointer;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.contact-submit:hover {
    background: var(--dourado-escuro);
    transform: translateY(-2px);
}


/* ==================================================
   4. MAPA
================================================== */

.contact-info-box {
    padding-top: 14px;
}

.map-box {
    width: 100%;
    height: 258px;
    margin: 0 0 34px;

    overflow: hidden;
    border-radius: 0;
}

.map-box iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: 0;
}


/* ==================================================
   5. CONTATOS ABAIXO DO MAPA
================================================== */

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px;
}


/* ==================================================
   ITEM DE CONTATO
================================================== */

.contact-card {
    min-width: 0;
    padding: 0;

    display: flex;
    align-items: center;
    gap: 13px;

    background: transparent;
    border: 0;
    border-radius: 0;

    color: var(--preto-elegante);

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* Esconde endereço caso o HTML antigo ainda exista */

.contact-card.full {
    display: none;
}


/* ==================================================
   ÍCONE
================================================== */

.contact-card i {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--dourado);
    border-radius: 50%;

    font-size: 0.92rem;

    color: var(--preto-elegante);
}


/* ==================================================
   TEXTOS DOS CONTATOS
================================================== */

.contact-card strong {
    display: block;

    margin: 0 0 3px;

    font-family: var(--fonte-texto);
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;

    color: var(--preto-elegante);
}

.contact-card span {
    display: block;

    font-family: var(--fonte-texto);
    font-size: 0.88rem;
    line-height: 1.45;

    color: var(--preto-elegante);
}


/* ==================================================
   HOVER
================================================== */

.contact-card:hover {
    background: transparent;
    transform: translateY(-3px);
    opacity: 0.78;
}

.contact-card:hover strong,
.contact-card:hover span {
    color: var(--preto-elegante);
}


/* ==================================================
   6. ANIMAÇÃO DE ENTRADA
================================================== */

.contact-grid.reveal-up {
    opacity: 0;
    transform: translateY(70px);

    transition:
        opacity 0.85s ease,
        transform 0.85s cubic-bezier(.2, .7, .2, 1);
}

.contact-grid.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/*
Formulário e mapa entram levemente separados,
sem exagerar na animação.
*/

.contact-grid.reveal-up .contact-form-box,
.contact-grid.reveal-up .contact-info-box {
    opacity: 0;
    transform: translateY(28px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.contact-grid.reveal-up.visible .contact-form-box,
.contact-grid.reveal-up.visible .contact-info-box {
    opacity: 1;
    transform: translateY(0);
}

.contact-grid.reveal-up.visible .contact-form-box {
    transition-delay: 0.12s;
}

.contact-grid.reveal-up.visible .contact-info-box {
    transition-delay: 0.24s;
}


/* ==================================================
   7. RESPONSIVO — TABLET
================================================== */

@media (max-width: 1024px) {

    .contact-section .container {
        width: min(100% - 40px, 960px);
    }

    .contact-grid {
        grid-template-columns: 440px minmax(0, 1fr);
        gap: 34px;
    }

    .contact-form-box {
        max-width: 440px;
    }

    .contact-form-box h2 {
        max-width: 440px;
        font-size: 1.65rem;
    }

}


/* ==================================================
   8. RESPONSIVO — MOBILE
================================================== */

@media (max-width: 768px) {

    .contact-section {
        padding: 64px 0 76px;
    }

    .contact-section .container {
        width: min(100% - 28px, 1100px);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-form-box h2 {
        max-width: 500px;
        font-size: clamp(2rem, 9vw, 2.65rem);
    }

    .contact-info-box {
        padding-top: 0;
    }

    .map-box {
        height: 280px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}


/* ==================================================
   9. RESPONSIVO — CELULAR PEQUENO
================================================== */

@media (max-width: 480px) {

    .contact-section {
        padding: 54px 0 66px;
    }

    .contact-form-box h2 {
        font-size: clamp(1.85rem, 9.5vw, 2.35rem);
    }

    .form-group input {
        height: 52px;
    }

    .form-group textarea {
        min-height: 180px;
    }

    .map-box {
        height: 240px;
        margin-bottom: 28px;
    }

    .contact-submit {
        width: 100%;
    }

}


/* ==================================================
   ACESSIBILIDADE
================================================== */

@media (prefers-reduced-motion: reduce) {

    .contact-grid.reveal-up,
    .contact-grid.reveal-up .contact-form-box,
    .contact-grid.reveal-up .contact-info-box {
        opacity: 1;
        transform: none;
        transition: none;
    }

}