/*
Theme Name: BW Corretora
Author: Phellipe Daniel
Author URI: https://phellipe.com.br
Description: Tema desenvolvido para BW Corretora de Seguros, adaptado do site HTML estático para WordPress
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Remover admin bar para melhor visualização */
body.admin-bar {
    margin-top: 0 !important;
}

#wpadminbar {
    position: fixed !important;
    top: 0 !important;
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(135deg, #0052CC 0%, #4A90E2 50%, #60a5fa 100%);
}

/* Card Hover */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Float Animation */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.85) 0%, rgba(74, 144, 226, 0.75) 50%, rgba(96, 165, 250, 0.65) 100%);
}

.slider-content {
    position: relative;
    z-index: 10;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

/* Parceiros: marquee infinito */
.partner-box {
    width: 7rem;
    height: 7rem;
    border-radius: 0.75rem;
    background: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.partner-box:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.partner-marquee {
    display: flex;
    gap: 2rem;
    animation: partners-scroll 30s linear infinite;
    will-change: transform;
}

@keyframes partners-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-7rem * 12 - 2rem * 12)); }
}

.partner-marquee:hover {
    animation-play-state: paused;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 40;
    padding: 1.5rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: #0052CC;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 500px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .slider-arrow.prev { 
        left: 15px; 
    }
    
    .slider-arrow.next { 
        right: 15px; 
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .partner-marquee,
    .animate-float,
    .whatsapp-float {
        animation: none !important;
    }
}

/* Utility Classes para compatibilidade com Tailwind usado no HTML original */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.bg-white {
    background-color: white;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-blue-600 {
    background-color: #0052CC;
}

.text-blue-600 {
    color: #0052CC;
}

.text-white {
    color: white;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.p-4 {
    padding: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.hidden {
    display: none;
}

/* ===================================
   CORREÇÕES CRÍTICAS - v1.2
   =================================== */

/* Header - Cor de fundo azul forçada */
.header-bg,
header.header-bg {
    background-color: #035AA6 !important;
}

/* Header fixo SEM ESPAÇO BRANCO */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 50 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hero Section - Remove espaço branco */
#inicio,
section#inicio {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-slider {
    margin-top: 0 !important;
}

/* Seção de Contato - Fundo AZUL */
#contato,
section#contato,
.contact-section-bg {
    background-color: #0367A6 !important;
    background: #0367A6 !important;
}

/* Horário de Atendimento - CAIXA BRANCA */
#contato .form-field {
    background-color: white !important;
}

#contato .form-field * {
    color: #333 !important;
}

/* Seção de Orçamento - Fundo AZUL GRADIENTE */
#orcamento,
section#orcamento,
.form-section {
    background: linear-gradient(135deg, #0052CC 0%, #4A90E2 100%) !important;
}

#orcamento *:not(input):not(select):not(textarea):not(button) {
    color: white !important;
}

#contato * {
    color: white !important;
}

#contato input,
#contato select,
#contato textarea {
    background-color: #F2F2F2 !important;
    color: #333 !important;
}

#contato input::placeholder,
#contato textarea::placeholder {
    color: #999 !important;
}

/* Menu de navegação - texto branco visível */
header nav a,
header .text-white {
    color: white !important;
}

/* Hamburger menu - linhas brancas */
.hamburger span {
    background-color: white !important;
}

/* Botão "Solicitar Cotação" no header */
header button {
    background-color: white !important;
    color: #0052CC !important;
}

/* Logo visível */
header img {
    display: block !important;
    height: 3.5rem !important;
}

/* Carrossel de Seguros - HORIZONTAL forçado */
.seguros-carousel {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    gap: 2rem !important;
    padding: 0 55px !important;
}

.seguro-card {
    min-width: 520px !important;
    flex-shrink: 0 !important;
}

/* Botão WhatsApp - Estilo completo */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 1000 !important;
    background: #25D366 !important;
    color: white !important;
    width: auto !important;
    height: auto !important;
    padding: 16px 24px !important;
    border-radius: 50px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

.whatsapp-float svg {
    width: 28px !important;
    height: 28px !important;
    fill: white !important;
}

.whatsapp-float-text {
    display: inline !important;
    color: white !important;
}

/* Mobile - Botão WhatsApp menor */
@media (max-width: 768px) {
    .whatsapp-float {
        padding: 14px 20px !important;
        font-size: 14px !important;
    }
    
    .whatsapp-float svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    .seguro-card {
        min-width: 320px !important;
    }
}

/* Compensar header fixo */
body {
    padding-top: 76px !important;
}

/* Admin bar ajuste */
body.admin-bar {
    padding-top: 108px !important;
}
