/* =======================================================
   # ARQUIVO CSS COMPLETO E OTIMIZADO - V2.0
   # Landing Page Premium - Água Pura
   ======================================================== */

/* --- 1. Variáveis Globais e Estilos Base --- */
:root {
    --bs-primary: #1e40af; /* Azul Escuro Sóbrio */
    --bs-primary-rgb: 30, 64, 175;
    --bs-primary-light: #60a5fa; /* Azul Claro para Destaques (NOVO) */
    --bs-dark: #1a202c;
    --bs-light: #f8fafc;
    --bs-secondary: #64748b;
    --bs-font-sans-serif: 'Inter', sans-serif;
}

body {
    background-color: var(--bs-light);
    color: var(--bs-dark);
}

.fw-extra-bold { font-weight: 800; }
.text-primary { color: var(--bs-primary) !important; }

.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: #1c389a;
    --bs-btn-hover-border-color: #1c389a;
}

/* OPÇÃO A: CABEÇALHO SEMPRE ESCURO */

.header-sticky {
    background-color: #071e67; /* Fundo escuro semi-transparente */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: background-color 0.4s ease-in-out; /* Mantemos a transição caso queira mudar no futuro */
}

/* AJUSTE FIXO: Deixa a logo e o botão brancos/claros PERMANENTEMENTE */
.header-sticky .btn-primary {
    background-color: #f8fafc;
    color: #1a202c;
    border-color: #f8fafc;
}


/* --- 2. Otimizações de Animação e Design --- */

/* 2.1 Fundo Dinâmico para Seção Hero */
#hero.animated-gradient-bg {
    color: #fff;
    background: linear-gradient(-45deg, #020617, #1e3a8a, #020617, #1e40af);
    background-size: 400% 400%;
    animation: animated-gradient 15s ease infinite;
}

@keyframes animated-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2.2 Animação de Entrada (Scroll Reveal) Otimizada */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 2.3 Destaques Visuais no Texto */
.text-highlight {
    color: var(--bs-primary-light);
}

.text-marker-highlight {
    position: relative;
    display: inline-block;
}

.text-marker-highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.3em;
    background-color: var(--bs-primary-light);
    opacity: 0.6;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    animation: marker-animation 1s cubic-bezier(0.19, 1, 0.22, 1) 1s forwards;
}

@keyframes marker-animation {
    to {
        transform: scaleX(1);
    }
}

/* 2.4 Animação Contínua para o CTA Principal */
.cta-pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(var(--bs-primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }
}

/* --- 3. Estilos de Componentes da Página --- */

/* Efeito de Hover para Cards */
.card-hover-effect {
    transition: transform 0.3s ease;
}
.card-hover-effect:hover {
    transform: translateY(-8px);
}

/* Sombra para Ícones */
.icon-shadow {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Carrossel de Logos de Clientes */
.logo-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}
.logo-carousel-track {
    display: flex;
    width: calc(200px * 10); /* Largura do slide * (número de slides * 2) */
    animation: scroll 30s linear infinite;
}
.logo-carousel-container:hover .logo-carousel-track {
    animation-play-state: paused;
}
.logo-slide {
    flex-shrink: 0;
    width: 200px;
    text-align: center;
}
.logo-slide img {
    height: 40px;
    max-width: 150px;
    display: inline-block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}
.logo-slide img:hover {
    filter: grayscale(0%);
}

.logo-carousel-container:before,
.logo-carousel-container:after {
    content: "";
    position: absolute;
    top: 0;
    width: 10rem;
    height: 100%;
    z-index: 2;
}
.logo-carousel-container:before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}
.logo-carousel-container:after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- 4. Widget de Atendimento (WhatsApp) --- */
.btn-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
    font-size: 14px;
    z-index: 100;
    border: none;
}

.btn-whatsapp:hover {
    background: #20b358;
}

.btn-whatsapp:focus {
    outline: none;
    box-shadow: 0 0 8px #25D366;
}

.btn-whatsapp .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.btn-whatsapp svg {
    width: 22px;
    height: 22px;
}

.chat-box {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 280px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.3);
    overflow: hidden;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    z-index: 99;
}

.chat-header {
    background: #00a651;
    color: #fff;
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.chat-body {
    padding: 10px;
}

.agent {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: background 0.2s;
}

.agent:hover {
    background: #f0f0f0;
}

.agent img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.agent-info {
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-weight: bold;
    font-size: 14px;
}

.agent-status {
    font-size: 12px;
    color: green;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 5. Estilos Responsivos --- */
@media (max-width: 600px) {
    .btn-whatsapp {
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        display: flex;
    }

    .btn-whatsapp .text {
        display: none;
    }

    .btn-whatsapp .icon {
        margin: 0;
    }
}