/* =========================================
   1. GLOBAL STYLES & VARIABLES
   ========================================= */
:root {
    --primary-color: #0A2B4C;
    --secondary-color: #61B0F2;
    --dark-color: #2c3e50; 
    --light-color: #ffffff;
    --gray-color: #f4f7f6;
    --font-family: 'Poppins', sans-serif;
}

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

html, body {
    width: 100%;
    overflow-x: hidden; /* CORREÇÃO: Remove barra de rolagem lateral */
    font-family: var(--font-family);
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 40px; color: var(--primary-color); }
h4 { font-size: 1.2rem; color: var(--primary-color); }

section { padding: 60px 0; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-color);
}
.btn-primary:hover { background-color: #4fa0e0; }

.btn-secondary {
    background-color: transparent;
    color: var(--dark-color);
    border: 1px solid #ddd;
}
.btn-secondary:hover { background-color: #f8f9fa; }

/* =========================================
   2. NAVBAR - CONFIGURAÇÃO GERAL
   ========================================= */
.navbar {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
}

.navbar .container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Links comuns */
.navbar nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar nav ul li a:hover {
    background-color: #00b4d8;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 180, 216, 0.2);
}

/* =========================================
   3. NAVBAR - VERSÃO DESKTOP (Telas Grandes)
   Esta parte NÃO afeta o celular
   ========================================= */
@media (min-width: 769px) {
    .navbar .container {
        position: relative; /* Necessário para o absolute da logo */
        justify-content: space-between;
    }

    /* Logo "Pendurada" */
    .logo {
        position: absolute;
        top: 0;
        left: 0; margin-top:-17px;
        background-color: #fff;
        padding: 10px 25px 25px 25px;
        border-radius: 0 0 30px 30px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        z-index: 1001;
        height: 160px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo img {
        height: 130px;
        width: auto;
    }

    /* Empurra o menu para a direita */
    .navbar nav {
        margin-left: 380px; 
    }

    .navbar nav ul {
        gap: 10px;
        flex-direction: row;
    }

    .menu-icon { display: none; }
    .desktop-btn { display: inline-block; }
}

/* =========================================
   4. NAVBAR - VERSÃO MOBILE (Celulares)
   ========================================= */
/* --- Atualização do Mobile (Logo Pendurada) --- */
@media (max-width: 768px) {
    
    /* 1. Ajuste do Container */
    .navbar .container {
        /* Como a logo vai sair do fluxo (absolute), usamos flex-end para jogar o ícone do menu para a direita */
        justify-content: flex-end !important; 
        position: relative; /* Necessário para a logo se posicionar em relação à barra */
    }

    /* 2. Logo "Pendurada" (Miniatura da versão Desktop) */
    .logo {
        position: absolute !important; /* Flutua por cima da barra */
        top: 0; margin-top:-17px;
        left: 20px; /* Distância da esquerda */
        
        background-color: #fff !important; /* Fundo branco para cobrir a imagem de fundo */
        padding: 5px 15px 15px 15px !important; /* Espaço interno */
        border-radius: 0 0 20px 20px !important; /* Bordas arredondadas apenas embaixo */
        
        box-shadow: 0 5px 10px rgba(0,0,0,0.15) !important; /* Sombra para destacar */
        z-index: 1001; /* Fica acima de tudo */
        
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top:-17px;
        height: auto !important; /* A altura será definida pelo padding + imagem */
    }

    /* 3. Tamanho da Imagem */
    .logo img {
        height: 85px !important; /* Altura exata que você pediu */
        width: auto;
    }

    /* 4. Ícone do Menu */
    .menu-icon {
        display: block !important;
        font-size: 28px !important;
        cursor: pointer;
        z-index: 1002;
        margin-right: 10px; /* Um pouco de margem na direita */
    }


    .desktop-btn { display: none; }

    /* Menu Gaveta */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        display: block;
        z-index: 998;
    }

    .nav-links.active { max-height: 350px; }

    /* Remove a margem esquerda do desktop */
    .navbar nav { margin-left: 0 !important; width: 100%; }

    .navbar nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 20px 0;
        gap: 5px;
    }

    .navbar nav ul li { width: 100%; text-align: center; }
    .navbar nav ul li a { display: block; width: 80%; margin: 0 auto; }
}

/* =========================================
   5. CONTEÚDO DO SITE (Hero, Services, etc)
   ========================================= */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/home2.png) no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-color);
}

.hero-content { max-width: 700px; }
.hero-content p { font-size: 1.2rem; margin: 15px 0 30px; }

/* How It Works */
.how-it-works { background: var(--secondary-color); }
.steps-container { display: flex; justify-content: space-between; gap: 30px; text-align: center; }
.step-icon {
    width: 50px; height: 50px; background: var(--primary-color);
    color: var(--light-color); border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; font-weight: 700; margin: 0 auto 20px;
}

/* Services */
.our-services { background: var(--gray-color); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.service-card {
    background: var(--light-color); padding: 25px; border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); border: 1px solid #eee;
    display: flex; align-items: center; gap: 25px;
}
.service-icon { flex-shrink: 0; }
.service-icon img {
    width: 130px; height: 120px; object-fit: cover; border-radius: 8px;
}
.service-content { flex-grow: 1; }
.service-content h4 { margin-top: 0; margin-bottom: 8px; color: var(--primary-color); }
.service-content p { font-size: 0.95rem; color: #555; }

/* --- Ajuste Específico para Services no Mobile --- */
@media (max-width: 768px) {
    
    .service-card {
        display: flex !important;
        flex-direction: row !important; /* Garante que fiquem lado a lado */
        align-items: center !important; /* Alinha verticalmente no centro */
        text-align: left !important;    /* Texto alinhado à esquerda */
        padding: 15px !important;       /* Reduz um pouco o padding para ganhar espaço */
        gap: 15px !important;           /* Espaço entre a imagem e o texto */
    }

    /* Reduzi um pouco a imagem APENAS no celular para não espremer o texto */
    .service-icon img {
        width: 90px !important; 
        height: 90px !important;
        min-width: 90px; /* Garante que a imagem não amasse */
    }

    .service-content {
        width: 100%;
    }

    /* Ajuste fino no tamanho da fonte para ficar harmônico */
    .service-content h4 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .service-content p {
        font-size: 0.9rem;
        margin: 0;
    }
}

/* Why Us */
.why-us-section { background: var(--gray-color); }
.why-us-container { display: flex; align-items: center; gap: 50px; }
.why-us-image img { width: 100%; max-width: 450px; border-radius: 10px; }
.why-us-content ul { list-style: none; padding: 0; margin: 20px 0; }
.why-us-content ul li { margin-bottom: 15px; padding-left: 25px; position: relative; }
.why-us-content ul li::before { content: '✓'; color: var(--secondary-color); font-weight: bold; position: absolute; left: 0; }

/* Testimonials */
.testimonials { background: var(--gray-color); padding-bottom: 80px; }
.carousel-wrapper { width: 100%; overflow: hidden; }
.testimonial-carousel { display: flex; width: 200%; transition: transform 0.5s ease-in-out; }
.testimonial-card {
    background: var(--light-color); border: 1px solid #e9ecef; border-radius: 8px;
    padding: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: left;
    width: calc((100% / 6) - 20px); margin: 0 10px; flex-shrink: 0;
}
.testimonial-card .stars { color: var(--secondary-color); margin-bottom: 15px; }
.testimonial-card .author { font-weight: 600; text-align: right; display: block; margin-top: 15px;}
.carousel-dots { text-align: center; margin-top: 30px; }
.dot { display: inline-block; width: 12px; height: 12px; background: #ccc; border-radius: 50%; margin: 0 5px; cursor: pointer; }
.dot.active { background-color: var(--primary-color); }
.footer { background: var(--dark-color); color: var(--light-color); text-align: center; padding: 20px 0; }


/* Botão Principal */
.comentario-container {
    text-align: center;
    margin: 30px 0;
}

.btn-comentario {
    background-color: #007bff;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-comentario:hover {
    background-color: #0056b3;
}

/* O Modal (Fundo) */
.modal-comentario {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7); /* Fundo preto transparente */
}

/* Caixa Branca do Popup */
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Botão de Fechar (X) */
.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Ajuste do botão de enviar do WordPress */
.submit-azul {
    background: #007bff !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    cursor: pointer;
    border-radius: 4px;
}


/* --- RESPONSIVIDADE GERAL (Ajustes de Layout) --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero { height: auto; padding: 80px 0; }
    .steps-container, .why-us-container { flex-direction: column; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonial-card { width: calc((100% / 4) - 20px); } /* Ajuste testimonial tablet */
}

@media (max-width: 600px) {
    .testimonial-carousel { width: 600%; }
    .testimonial-card { width: calc((100% / 6) - 20px); }
    .service-card { flex-direction: column; text-align: center; }
}

/* =========================================
   6. CSS DAS BOLHAS (Versão Final)
   ========================================= */
#bubble-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 600px; /* Altura Desktop */
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

/* CORREÇÃO ALTURA MOBILE */
@media (max-width: 768px) {
    #bubble-container {
        height: 550px !important; /* Altura reduzida no celular */
    }
}

.bubble {
    position: absolute;
    bottom: -10px;
    border-radius: 50%;
    opacity: 0;
    will-change: transform, opacity;
    animation: floatUp var(--duration) ease-in infinite;
}

.bubble.pop { animation: burst 0.2s ease-out forwards !important; }

.bubble::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 25%;
    height: 12%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    transform: rotate(45deg);
    filter: blur(2px);
}

.bubble.variant-1 {
    background: radial-gradient(circle at 30% 30%, rgba(173, 216, 230, 0.6), rgba(224, 255, 255, 0.2));
    border: 2px solid rgba(135, 206, 235, 0.5);
    box-shadow: inset 0 0 15px rgba(173, 216, 230, 0.5), 0 3px 10px rgba(100, 149, 237, 0.3); 
}
.bubble.variant-2 {
     background: radial-gradient(circle at 30% 30%, rgba(240, 248, 255, 0.7), rgba(255, 255, 255, 0.1));
     border: 2px solid rgba(200, 230, 255, 0.6);
     box-shadow: inset 0 0 15px rgba(220, 240, 255, 0.5), 0 3px 8px rgba(176, 224, 230, 0.4);
}
.bubble.variant-3 {
     background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), rgba(245, 255, 250, 0.1));
     border: 1px solid rgba(224, 255, 255, 0.7);
     box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.6), 0 2px 8px rgba(190, 230, 240, 0.3);
}

@keyframes floatUp {
    0% { bottom: -80px; transform: translateX(0) scale(0.8); opacity: 0; }
    10% { opacity: 0.9; transform: translateX(var(--sway)) scale(1); }
    50% { opacity: 0.9; }
    100% {
        bottom: 550px;
        transform: translateX(calc(var(--sway) * -1)) scale(1.2);
        opacity: 0;
    }
}

@keyframes burst {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}