/* Importação das fontes */
/* Para usar as fontes do Google Fonts, o HTML já deve conter os links. */

/* Variáveis de Cores */
:root {
    --mostarda-queimado: #B5790B;
    --marrom-rosado: #735A53;
    --rosa-acinzentado: #C7A69D;
    --branco-rosado: #FDF1F1;
    --rosa-claro: #FDE7E5;
    --fundo-neutro: #F5F5DC; /* Bege claro */
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Avenir Next Medium', 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--marrom-rosado);
    background-color: var(--fundo-neutro);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* ---------------------------------- */
/* Tipografia e Elementos Comuns      */
/* ---------------------------------- */
h1, h2, h3 {
    font-family: 'Alika Misely', cursive;
    color: var(--mostarda-queimado);
    margin-bottom: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

h1 {
    font-size: 3.5em;
    margin-bottom: 5px;
}

h2 {
    font-size: 2.5em;
    margin-top: 40px;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.8em;
    color: var(--marrom-rosado);
}

p, li, label, input, textarea {
    font-family: 'Avenir Next Medium', 'Montserrat', sans-serif;
    font-size: 1.1em;
}

.slogan, .crm {
    font-family: 'Glacial Indifference', sans-serif;
    font-size: 1.2em;
    color: var(--marrom-rosado);
    text-align: center;
    margin-top: 10px;
}

.cta-button {
    font-family: 'Glacial Indifference', sans-serif;
    background-color: var(--mostarda-queimado);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block;
    margin: 30px auto;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #D39F2B;
    transform: translateY(-3px);
}

.mensagem-sucesso {
    color: green;
    background-color: #e6ffe6;
    border: 1px solid green;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    animation: fadeIn 0.5s ease-out;
}

.mensagem-erro {
    color: red;
    background-color: #ffe6e6;
    border: 1px solid red;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    animation: fadeIn 0.5s ease-out;
}

/* ---------------------------------- */
/* Animações e Efeitos Gerais         */
/* ---------------------------------- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    to { transform: scale(1); }
}

@keyframes floatEffect {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse {
    from { opacity: 0.7; transform: scale(1); }
    to { opacity: 1; transform: scale(1.05); }
}

section:not(.header):not(.hero-banner) {
    padding: 60px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------- */
/* Header                             */
/* ---------------------------------- */
.header {
    background-color: var(--branco-rosado);
    padding: 15px 0;
    border-bottom: 1px solid var(--rosa-claro);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    animation: fadeInDown 0.5s ease-out;
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Estilos para o cabeçalho ao rolar a página */
.header.header-scrolled {
    padding: 10px 0;
    background-color: rgba(253, 241, 241, 0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Novo estilo para o logo */
.header-logo {
    max-width: 250px; /* Reduz o tamanho inicial do logo */
    height: auto;
    transition: max-width 0.3s ease, transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

/* Novo estilo para o logo quando o cabeçalho é rolado */
.header.header-scrolled .header-logo {
    max-width: 120px; /* O logo fica ainda menor ao rolar */
}

/* Layout do cabeçalho */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-info {
    text-align: left; /* Alinha o logo à esquerda */
    flex-grow: 1; /* Permite que o logo ocupe o espaço necessário */
}

.header-info h1,
.header-info .title,
.header-info .crm,
.header-info .slogan {
    display: none; /* Esconde os textos originais, pois agora há um logo */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--marrom-rosado);
    font-family: 'Glacial Indifference', sans-serif;
    font-size: 0.9em;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.main-nav a:hover {
    color: var(--mostarda-queimado);
    transform: translateY(-1px);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    display: block;
    margin-top: 3px;
    right: 0;
    background: var(--mostarda-queimado);
    transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
    left: 0;
    background: var(--mostarda-queimado);
}

/* Estilos para o ícone do menu-hambúrguer */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
    color: var(--marrom-rosado);
    z-index: 1001;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.menu-toggle i {
    pointer-events: none;
}

/* ---------------------------------- */
/* Hero Banner                        */
/* ---------------------------------- */
.hero-banner {
    background-color: var(--rosa-claro);
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1.5s ease-out;
}

.hero-banner .banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: scale(0.95);
    animation: scaleIn 1s ease-out forwards;
    animation-delay: 0.5s;
}

.hero-banner .butterfly-detail {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 100px;
    opacity: 0.7;
    z-index: 1;
    animation: floatEffect 4s ease-in-out infinite, pulse 2s infinite alternate;
}

/* ---------------------------------- */
/* Seção Sobre Mim                    */
/* ---------------------------------- */
.about-me {
    background-color: white;
    text-align: center;
}

.about-me .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.about-me .profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--rosa-acinzentado);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.about-me .profile-pic:hover {
    transform: scale(1.05);
}

.about-me p {
    max-width: 800px;
    text-align: justify;
    margin: 0 auto;
}

/* ---------------------------------- */
/* Seção Áreas de Atuação             */
/* ---------------------------------- */
.areas-atuacao {
    background-color: var(--fundo-neutro);
    text-align: center;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.area-item {
    background-color: var(--rosa-claro);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.area-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.area-item:hover::before {
    left: 100%;
}

.area-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.area-item img {
    width: 100%;
    max-width: 160px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.area-item:hover img {
    transform: scale(1.1) rotate(5deg);
}

.area-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* ---------------------------------- */
/* Seção Benefícios                   */
/* ---------------------------------- */
.beneficios {
    background-color: var(--branco-rosado);
    text-align: center;
}

.beneficios-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 30px auto 0;
    text-align: left;
}

.beneficios-list li {
    background-color: white;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.beneficios-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ---------------------------------- */
/* Seção Depoimentos                  */
/* ---------------------------------- */
.depoimentos {
    background-color: var(--fundo-neutro);
    text-align: center;
}

.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.depoimento-card {
    background-color: var(--rosa-acinzentado);
    color: var(--marrom-rosado);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    font-style: italic;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.depoimento-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.depoimento-card p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.depoimento-card cite {
    display: block;
    font-style: normal;
    font-weight: bold;
    color: var(--mostarda-queimado);
    margin-top: 10px;
}

/* ---------------------------------- */
/* Formulário de Contato              */
/* ---------------------------------- */
.contact-form {
    background-color: white;
    text-align: center;
}

.contact-form form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--rosa-claro);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--marrom-rosado);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--rosa-acinzentado);
    border-radius: 5px;
    font-size: 1em;
    color: var(--marrom-rosado);
    background-color: var(--branco-rosado);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    border-color: var(--mostarda-queimado);
    box-shadow: 0 0 0 3px rgba(181, 121, 11, 0.2);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.privacy-message {
    font-size: 0.9em;
    color: #888;
    margin-top: 15px;
}

/* ---------------------------------- */
/* Rodapé                             */
/* ---------------------------------- */
.footer {
    background-color: var(--marrom-rosado);
    color: var(--branco-rosado);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-contact p {
    margin: 5px 0;
    color: var(--branco-rosado);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social img {
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease;
}

.footer-social img:hover {
    transform: scale(1.2) rotate(5deg);
}

.footer-links a {
    color: var(--branco-rosado);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--mostarda-queimado);
}

.copyright {
    margin-top: 20px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------------------------------- */
/* Responsividade                     */
/* ---------------------------------- */
@media (max-width: 768px) {
    /* Ajuste para o logo e menu em telas pequenas */
    .header .container {
        flex-direction: row; /* Coloca logo e menu na mesma linha */
        justify-content: space-between;
        align-items: center;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .header-info {
        flex-grow: 1; /* Permite que o logo ocupe o espaço restante */
        text-align: left; /* Alinha o logo à esquerda */
    }
    
    .header-logo {
        max-width: 160px; /* **Logo menor no mobile** */
    }
    
    .menu-toggle {
        display: block; /* Mostra o botão hambúrguer */
        position: static; /* Remove o posicionamento absoluto */
    }
    
    .main-nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        position: absolute; /* Coloca o menu por baixo do cabeçalho */
        top: 100%;
        left: 0;
    }
    
    .main-nav.is-open {
        max-height: 300px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 20px 0;
        background-color: var(--branco-rosado);
        border-top: 1px solid var(--rosa-claro);
    }
    
    .header-scrolled .header-info {
        display: block; /* Garante que o logo permaneça visível */
    }
    
    .header-scrolled .header-logo {
        max-width: 120px;
    }

    /* Outros estilos para mobile */
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }
    
    .hero-banner .butterfly-detail {
        width: 70px;
        top: 5%;
        right: 2%;
    }

    .about-me .about-content {
        flex-direction: column;
    }

    .areas-grid, .depoimentos-grid {
        grid-template-columns: 1fr;
    }

    .contact-form form {
        padding: 20px;
    }

    .footer .container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header-logo {
        max-width: 120px; /* Logo ainda menor em telas muito pequenas */
    }

    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    
    .main-nav a {
        font-size: 1em;
    }
    
    .profile-pic {
        width: 150px;
        height: 150px;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .main-nav {
        display: block !important;
    }

    /* Layout horizontal em telas maiores */
    .header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .header-info {
        text-align: left;
        flex-grow: 0;
    }
    
    .main-nav {
        margin-left: auto; /* Empurra o menu para a direita */
    }
}


/* Estilos para o botão flutuante do WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000; /* Garante que o botão fique na frente de outros elementos */
    background-color: #25D366; /* Cor verde do WhatsApp */
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1); /* Efeito de crescimento ao passar o mouse */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-button i {
    font-size: 30px;
}
/* Estilo para o botão de Login */
.login-button {
    background-color: #f7a959; /* Cor laranja-pêssego para o destaque */
    color: white !important; /* Texto branco, !important para sobrescrever o estilo do link */
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.login-button:hover {
    background-color: #e28e40; /* Um tom mais escuro ao passar o mouse */
}