/* style.css */

/* --- Variáveis e Reset Básico --- */
:root {
    --primary-color: #007bff;
    /* Azul vibrante */
    --secondary-color: #6c757d;
    /* Cinza para detalhes */
    --dark-color: #343a40;
    /* Preto para texto principal */
    --light-color: #f8f9fa;
    /* Branco off-white */
    --white-color: #ffffff;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
    /* Define a base de 1rem = 15px (reduzido) */
}

body {
    font-family: var(--body-font);
    font-size: 0.95rem;
    /* Ajustado para um pouco menor que a base */
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    /* Largura máxima ajustada para um site mais compacto */
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Títulos e Parágrafos Comuns --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    color: var(--dark-color);
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h1 {
    font-size: 2.5em;
    /* 37.5px */
}

h2 {
    font-size: 2em;
    /* 30px */
}

h3 {
    font-size: 1.5em;
    /* 22.5px */
}

p {
    font-size: 1rem;
    /* 15px */
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

.text-center {
    text-align: center;
}

.section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.section:nth-of-type(even) {
    background-color: var(--light-color);
}

.section-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.section-title.text-left::after {
    left: 0;
    transform: translateX(0);
}

.section-description {
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Botões --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    color: var(--light-color);
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}


/* --- Header/Navegação --- */
.main-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.logo img {
    height: 50px;
    /* Ajuste o tamanho do seu logo */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Burger menu (mobile) */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}


/* --- Seção Hero --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/img/hero.jpg') no-repeat center center/cover;
    color: var(--white-color);
    text-align: center;
    padding: 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 650px;
    /* Ajuste conforme necessário */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white-color);
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--light-color);
}

.hero-content .btn {
    margin: 0 10px;
}

/* --- Seção Sobre Mim --- */
.about {
    background-color: var(--white-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text .section-title {
    text-align: left;
}

.about-text .section-title::after {
    left: 0;
    transform: translateX(0);
}

.about-text p {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.about-text .btn {
    margin-right: 15px;
    margin-top: 20px;
}

/* --- Seção Serviços --- */
.services {
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.service-item p {
    font-size: 0.95em;
    color: var(--secondary-color);
}

/* --- Seção Portfólio --- */
.portfolio {
    background-color: var(--white-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; 
    height: 100%;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.portfolio-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-info h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.portfolio-info p {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.portfolio-info .btn-small {
    margin-top: auto; /* Empurra para o fundo */
    align-self: flex-start; /* Alinha à esquerda (use 'center' se preferir centralizado) */
    text-decoration: none;
}

.portfolio-info .btn-small:hover {
    background-color: #0056b3;
}

.portfolio-info .highlight-service {
    margin-bottom: 20px;
}

/* --- Seção Depoimentos --- */
.testimonials {
    background-color: var(--light-color);
    overflow: hidden;
}

.testimonial-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 20px auto;
}

.testimonials-container {
    display: flex;
    overflow: hidden;
    /* Para esconder os slides que não estão ativos */
    width: 100%;
    position: relative;
    /* Permite posicionar os cartões dentro */
}

.testimonial-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 0 0 100%;
    /* Cada cartão ocupa 100% da largura do container */
    max-width: 100%;
    transition: opacity 0.5s ease-in-out;
    /* Transição de fade */
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
}

.testimonial-card.active {
    opacity: 1;
    position: relative;
    /* Torna o cartão visível e parte do fluxo */
    visibility: visible;
}

.testimonial-card .quote-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1em;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.testimonial-card h4 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.testimonial-card span {
    font-size: 0.9em;
    color: var(--secondary-color);
}

.prev-btn,
.next-btn {
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: background-color 0.3s ease;
}

.prev-btn {
    left: -40px;
}

.next-btn {
    right: -40px;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: #0056b3;
}

.dots-container {
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
}

/* --- Seção FAQ --- */
#faq {
    background-color: var(--light-color);
    /* Um fundo sutil para destacar a seção */
    padding: 60px 0;
    /* Espaçamento padrão para seções */
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Espaço entre os itens da FAQ */
}

.faq-item {
    background-color: var(--white-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    /* Garante que o conteúdo não vaze */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    /* Sombra suave */
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: var(--white-color);
    color: var(--dark-color);
    font-size: .95em;
    font-weight: 600;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question i {
    font-size: 1em;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-answer {
    font-size: .95em;
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    /* Transição para altura e padding */
    color: var(--secondary-color);
}

.faq-answer p {
    padding-bottom: 18px;
    /* Espaçamento interno para o parágrafo da resposta */
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Altura máxima arbitrária para a transição */
    padding-top: 10px;
    /* Adiciona padding-top quando ativo */
}

.faq-item.active .faq-question {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- Seção Contato --- */
/* --- Seção de Contato Atualizada --- */

#contato {
    background-color: var(--primary-color); /* */
    color: var(--white-color);
    padding: 80px 0;
    text-align: center;
}

#contato .section-title,
#contato .section-description {
    color: var(--white-color);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    max-width: 1000px; /* Aumentei levemente para caber as duas colunas */
    margin: 0 auto;
}

/* Lado Esquerdo: Informações e WhatsApp */
.contact-info {
    text-align: center;
    color: var(--white-color);
    width: 100%;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white-color);
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-details {
    margin-top: 30px;
}

.contact-details a {
    color: var(--white-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-weight: 600;
}

.contact-details a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Ícones Sociais (Ajuste para ficarem brancos no fundo azul) */
.social-links {
    margin-top: 30px;
}

.social-links p {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 10px;
}

.social-links a {
    color: var(--white-color);
    font-size: 1.8em;
    margin: 0 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--light-color);
}

/* Botão de WhatsApp Gigante */
.btn-whatsapp-large {
    background-color: #25D366; /* Verde oficial do WhatsApp */
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 15px 30px;
    width: 100%;
    max-width: 350px; /* Limite de largura para não ficar exagerado */
    display: block;
    margin: 20px auto; /* Centraliza no mobile */
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    border: none;
}

.btn-whatsapp-large:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: #fff;
}

/* Lado Direito: Formulário */
.contact-form-wrapper {
    width: 100%;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    color: var(--dark-color);
    text-align: left; /* Garante que os labels fiquem alinhados */
}

.contact-form-wrapper h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.contact-form label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

/* Estilização Unificada dos Inputs (Incluindo Select e Tel) */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"], /* Correção: type="tel" ao invés de "phone" */
.contact-form select, /* Adicionado Select */
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    color: var(--dark-color);
    background-color: #f8f8f8;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2); /* Sombra suave com a cor primária */
    outline: none;
}

.contact-form textarea {
    resize: none;
    min-height: 120px;
}

/* Botão de Enviar (Largura Total) */
.contact-form button.btn {
    width: 100%; /* O botão ocupa toda a largura do form */
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 14px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.contact-form button.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Mensagens de feedback */
#form-message {
    margin-top: 20px;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    display: none;
    text-align: center;
}

#form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Responsividade (Desktop) --- */
@media (min-width: 992px) {
    .contact-content {
        flex-direction: row; /* Coloca lado a lado */
        align-items: flex-start; /* Alinha ao topo */
        justify-content: space-between;
        gap: 60px;
    }

    .contact-info {
        text-align: left; /* Alinha textos à esquerda no PC */
        flex: 1; /* Ocupa espaço proporcional */
    }

    .contact-form-wrapper {
        flex: 1; /* Ocupa espaço proporcional */
        max-width: 500px; /* Limita a largura do form para não ficar gigante */
    }

    .btn-whatsapp-large {
        margin: 20px 0; /* Remove a margem automática lateral */
        margin-right: auto;
    }
    
    .social-links {
        text-align: left;
    }
    
    .social-links a {
        margin-left: 0;
        margin-right: 15px;
    }
}
/* --- Footer --- */
.main-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 50px 0 20px 0;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-brand,
.footer-quick-links {
    flex: 1;
    min-width: 250px;
    /* Garante que os blocos não fiquem muito estreitos */
}

.footer-brand .logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-quick-links h3 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-quick-links ul {
    list-style: none;
}

.footer-quick-links ul li {
    margin-bottom: 10px;
}

.footer-quick-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-quick-links ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
}

.highlight-service {
    font-size: 0.9em;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* --- CHATBOT STYLES --- */
.chatbot-wrapper {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    font-family: var(--body-font);
}

/* Botão Redondo Flutuante */
#chatbot-toggler {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#chatbot-toggler:hover {
    transform: scale(1.1);
}

/* Alternar ícones (abrir/fechar) */
.show-chatbot #chatbot-toggler {
    transform: rotate(90deg);
}
#chatbot-toggler .fa-times { display: none; }
.show-chatbot #chatbot-toggler .fa-times { display: block; }
.show-chatbot #chatbot-toggler .fa-comment-dots { display: none; }

/* Janela do Chat */
.chatbot-window {
    position: absolute;
    bottom: 80px;
    left: 0; /* ALTERADO: Alinha a janela à esquerda do botão */
    width: 350px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    transform-origin: bottom left; /* ALTERADO: A animação agora cresce a partir da esquerda */
    transition: all 0.3s ease;
}

.show-chatbot .chatbot-window {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* Cabeçalho */
.chat-header {
    background: var(--primary-color);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}
.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-header-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
}
.chat-header-info h4 { font-size: 1rem; margin: 0; color: #fff; }
.chat-header-info p { font-size: 0.75rem; margin: 0; opacity: 0.8; }
#close-chat { background: none; border: none; color: #fff; cursor: pointer; font-size: 1.2rem; }

/* Corpo das Mensagens */
.chat-body {
    padding: 20px;
    height: 350px;
    overflow-y: auto;
    background: #f1f2f6;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Balões de Mensagem */
.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.bot-message {
    background: #e2e2e2;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.user-message {
    background: var(--primary-color);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* Botões de Opção */
.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chat-option-btn {
    background: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.chat-option-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Rodapé */
.chat-footer {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #eee;
    font-size: 0.75rem;
    color: #888;
}

/* Responsivo Mobile */
@media(max-width: 480px) {
    .chatbot-window {
        width: 90vw;
        left: 0; /* Garante alinhamento à esquerda no mobile */
        right: auto;
        bottom: 70px;
    }
}

/* --- Estilo da Área de Input do Chat --- */
.chat-input-area {
    display: flex;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #eee;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
    font-size: 0.9rem;
    font-family: var(--body-font);
}

.chat-input-area input:focus {
    border-color: var(--primary-color);
}

.chat-input-area button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.chat-input-area button:hover {
    background: #0056b3;
}

/* --- Botão WhatsApp Flutuante --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px; /* Canto Direito (O Chatbot está na esquerda) */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1); /* Efeito de crescimento */
    box-shadow: 2px 2px 10px rgba(0,0,0,0.4);
}

/* Ajuste para não sobrepor o botão "Voltar ao Topo" se ele aparecer */
#backToTopBtn {
    bottom: 110px; /* Move o botão de topo para cima do Zap */
}

/* Responsivo para celular */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

/* Back to Top Button */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 50px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#backToTopBtn:hover {
    background-color: #0056b3;
    /* Darker background on hover */
    transform: translateY(-3px);
}

/* --- Responsividade --- */

/* Hamburguer menu animation */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}


@media (max-width: 992px) {
    .navbar {
        min-height: 60px;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 70px;
        /* Altura do header */
        height: calc(100vh - 70px);
        background-color: var(--dark-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 30px;
        z-index: 999;
        /* Garante que fique acima de outros conteúdos */
    }

    .nav-links li {
        margin: 0;
        opacity: 0;
        /* Inicialmente oculto para animação */
    }

    .nav-links a {
        color: var(--white-color);
        font-size: 1.2em;
        padding: 15px 0;
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-links a::after {
        background-color: var(--white-color);
    }

    .nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: flex;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .hero {
        padding: 80px 0;
        min-height: 550px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .hero-content .btn {
        margin-bottom: 15px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .about-text .section-title {
        text-align: center;
    }

    .about-text .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-text .btn {
        margin: 10px auto;
        display: inline-block;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .testimonial-carousel {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-quick-links h3 {
        margin-top: 20px;
    }

    .footer-quick-links ul li {
        margin-bottom: 5px;
    }

}

@media (min-width: 768px) {
    .contact-content {
        display: flex;
        flex-direction: row; /* Faz com que fiquem lado a lado */
        justify-content: space-between; /* Distribui o espaço entre eles */
        align-items: flex-start; /* Alinha ao topo */
    }

    .contact-info,
    .contact-form-wrapper {
        flex: 1; /* Faz com que ambos ocupem espaço igual */
        padding: 20px; /* Adiciona um pequeno espaçamento lateral entre eles */
    }

    .contact-form-wrapper {
        max-width: 50%; /* Limita a largura do formulário a 50% em telas maiores */
    }

    .contact-info {
        text-align: left; /* Alinha o texto da informação de contato à esquerda */
        max-width: 50%; /* Limita a largura da informação de contato a 50% */
    }
}

@media (max-width: 767px) {
    body {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.4em;
    }

    p {
        font-size: 0.95em;
    }

    .section-title {
        font-size: 1.8em;
    }

    .section-description {
        font-size: 0.95em;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .hero-content p {
        font-size: 0.95em;
    }

    .btn {
        font-size: 0.95em;
        padding: 10px 20px;
    }

    .about-text p,
    .about-text .btn-secondary,
    .about-text .btn-primary,
    .text-center .btn-primary {
        font-size: 0.95em;
    }

    .service-item i {
        font-size: 1.8em;
    }

    .service-item h3 {
        font-size: 1.2em;
    }

    .portfolio-item img {
        height: 180px;
    }

    .prev-btn,
    .next-btn {
        font-size: 1em;
        padding: 8px 12px;
    }

    #faq {
        padding: 40px 0;
    }

    .faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .faq-answer p {
        font-size: 0.9em;
    }

    #contato {
        padding: 40px 0;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="phone"]
    .contact-form textarea {
        padding: 10px 12px;
        margin-bottom: 15px;
        font-size: 0.95rem;
    }

    .contact-form button.btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .social-links a {
        font-size: 1.8em;
        margin: 0 10px;
    }

    /* Responsividade para a seção de contato */
    .contact-content {
        flex-direction: column;
        /* Coluna em telas menores */
        justify-content: center;
        align-items: center;
    }

    .contact-info,
    .contact-form-wrapper {
        flex: none;
        width: 100%;
        /* Ocupa a largura total em telas menores */
        padding: 0;
    }

    .contact-info {
        text-align: center;
        margin-bottom: 30px;
    }

    /* Em telas menores que 768px, a direção padrão (column) é mantida,
       fazendo com que fiquem um abaixo do outro, o que é ideal para mobile. */

    .contact-info,
    .contact-form-wrapper {
        width: 100%; /* Ocupam 100% da largura em mobile */
        padding: 0;
    }

    .contact-info {
        text-align: center; /* Centraliza o texto em mobile */
        margin-bottom: 30px; /* Adiciona espaço abaixo das informações de contato */
    }
}
