/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   PALETA DE CORES
========================= */
:root {
    --bg-principal: #f6efe9;
    --bg-secundario: #ffffff;
    --marrom-texto: #6b4f3f;
    --verde-suave: #5a7d7c;
    --rosa-claro: #e6cfc3;
    --cinza-borda: #d9cfc8;
}

/* =========================
   BODY
========================= */
body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background: var(--bg-principal);
    color: var(--marrom-texto);
    line-height: 1.6;
}

/* =========================
   HEADER / HERO
========================= */
.hero {
    background: var(--bg-principal);
    padding: 60px 20px 40px;
    text-align: center;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 5px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--verde-suave);
}

/* LOGO */
.logo {
    max-width: 180px;
    margin-bottom: 20px;
}

/* =========================
   MENU
========================= */
.menu {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.menu a {
    text-decoration: none;
    color: var(--verde-suave);
    font-weight: 600;
    font-size: 0.95rem;
}

.menu a:hover {
    text-decoration: underline;
}

/* =========================
   CONTAINER
========================= */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* =========================
   INTRO
========================= */
.intro {
    text-align: center;
    margin-bottom: 60px;
}

.intro h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.intro p {
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* =========================
   BOTÃO WHATSAPP
========================= */
.btn-whatsapp {
    display: inline-block;
    background: var(--verde-suave);
    color: var(--bg-secundario);
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.btn-whatsapp:hover {
    opacity: 0.85;
}

/* =========================
   FORMULÁRIO / CARDS
========================= */
.formulario {
    background: var(--bg-secundario);
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.formulario h2 {
    margin-bottom: 25px;
    text-align: center;
}

/* =========================
   INPUTS
========================= */
form input,
form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 8px;
    border: 1px solid var(--cinza-borda);
    font-size: 0.95rem;
    font-family: inherit;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--verde-suave);
}

/* =========================
   BOTÃO FORM
========================= */
form button {
    background: var(--verde-suave);
    color: var(--bg-secundario);
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

form button:hover {
    opacity: 0.85;
}

/* =========================
   FOOTER
========================= */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #8a7f78;
    font-size: 0.9rem;
}

/* =====================================================
   ASSISTENTE VIRTUAL
===================================================== */

#assistente-botao {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--verde-suave);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    z-index: 999;
}

#assistente-janela {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 320px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
}

#assistente-janela.assistente-fe_toggle {
    display: none;
}

#assistente-janela.assistente-fechado {
    display: none;
}

.assistente-header {
    background: var(--verde-suave);
    color: white;
    padding: 14px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#assistente-fechar {
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
}

/* =========================
   MENSAGENS
========================= */
#assistente-mensagens {
    padding: 12px;
    height: 220px;
    overflow-y: auto;
    font-size: 0.9rem;
    white-space: pre-line;
}

.mensagem-bot {
    background: #f4f1ee;
    padding: 10px 14px;
    border-radius: 14px 14px 14px 4px;
    margin-bottom: 10px;
    max-width: 85%;
}

.mensagem-user {
    background: var(--verde-suave);
    color: white;
    padding: 10px 14px;
    border-radius: 14px 14px 4px 14px;
    margin-bottom: 10px;
    margin-left: auto;
    max-width: 85%;
}

.mensagem-digitando {
    font-style: italic;
    opacity: 0.7;
}

/* =========================
   INPUT ASSISTENTE
========================= */
#assistente-input {
    border: none;
    border-top: 1px solid #eee;
    padding: 12px;
    outline: none;
    position: sticky;
    bottom: 0;
    background: white;
}

/* =========================
   ASSISTENTE — MOBILE
========================= */
@media (max-width: 768px) {

    #assistente-botao {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }

    #assistente-janela {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        bottom: 90px;
        max-height: 75vh;
    }

    #assistente-mensagens {
        max-height: 50vh;
        font-size: 0.95rem;
    }

    #assistente-input {
        font-size: 1rem;
        padding: 14px;
    }

    .mensagem-bot,
    .mensagem-user {
        max-width: 90%;
        font-size: 0.95rem;
    }
}
