/* --- CONFIGURAÇÕES GLOBAIS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #8e030b;       /* Vermelho Logo */
    --primary-dark: #550106;  /* Vermelho escuro */
    --white: #fff;          /* Ouro Claro */
    --text: #000000;       /* Texto Principal */
    --glass: rgba(15, 15, 15, 0.95);
    --transition-fast: all 0.3s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
    font-family: 'Inter', sans-serif;
    color: #000;
    background-color: #f8fafc;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
}

/* Tipografia Fluida (Ajusta sozinha do celular ao desktop) */
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }

.ls-1 { letter-spacing: 1px; }
.ls-2 { letter-spacing: 2px; }

.text-warning{

    color: var(--primary) !important;

}
/* --- ÍCONES (Correção Global) --- */
/* Regra geral: Ícones herdam a cor do texto pai, a menos que especificado */
i { color: inherit; }

/* --- NAVBAR --- */
.navbar-custom {
    background: transparent;
    padding: 20px 0;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar-custom.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0 !important;
    margin: 0 10px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--white);
    transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--white) !important; }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    /* dvh ajusta melhor em celulares modernos com barras de navegação dinâmicas */
    min-height: 100vh; 
    min-height: 100dvh; 
    padding-top: 80px; /* Compensar navbar fixa */
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.85) 0%, rgba(15, 23, 42, 0.7) 100%), 
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax simples */
    display: flex;
    align-items: center;
    color: white;
}

.text-gold-gradient {
    background: var(--white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--white);
    display: inline-block;
}

/* Mouse Scroll */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 20px;
    position: relative;
    margin-bottom: 5px;
}

.wheel {
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

/* --- STATS (NÚMEROS) --- */
.stats-section {
    background: var(--primary-dark);
    padding: 60px 0;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-label {
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* --- CARDS & SERVIÇOS --- */
.service-card {
    transition: var(--transition-smooth);
    z-index: 1;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.watermark-number {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

/* Box de Ícones grandes nos serviços */
.icon-box-lg {
    transition: var(--transition-fast);
}
.service-card:hover .icon-box-lg {
    transform: scale(1.1) rotate(5deg);
}

/* --- CARROSSEL CLIENTES --- */
.client-logo {
    max-height: 100px; 
    width: auto;
    max-width: 100%;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s ease;
    cursor: pointer;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* --- DEPOIMENTOS --- */
.testimonial-card {
    transition: var(--transition-fast);
    height: 100%;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.carousel-indicators { bottom: -50px; }

/* --- FAQ & ACCORDION --- */
.accordion-item { border: none; overflow: hidden; }
.accordion-button:not(.collapsed) {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}
.accordion-button:focus {
    box-shadow: none;
    border-color: var(--white);
}

/* --- CONTATO & FORM --- */
#contato { background-color: var(--primary-dark); }

.bg-overlay {
    background: radial-gradient(circle at 80% 50%, #1e293b 0%, #020617 100%);
    position: absolute; inset: 0; z-index: 0;
}

.contact-card {
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.1);
}

.icon-contact {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 15px;
    transition: var(--transition-fast);
    flex-shrink: 0;
}
.link-hover-effect:hover .icon-contact {
    background: var(--primary);
    border-color: var(--primary);
}
.link-hover-effect:hover .icon-contact i { color: var(--white) !important; }

/* Inputs */
.form-control, .form-floating > .form-control {
    border-radius: 8px;
}
.form-control:focus {
    background-color: #fff !important;
    box-shadow: 0 0 0 4px var(--primary-dark);
}

/* --- BOTÕES --- */
.btn-gold {
    background: var(--primary-dark);
    color: var(--white) !important;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    text-transform: uppercase;
    box-shadow: 0 4px 15px var(--primary);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-gold:hover {
    background: var(--white);
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-dark);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary) !important;
}
.btn-outline-light:hover i { color: var(--primary) !important; }

/* Efeito de brilho */
.btn-glow-effect { animation: pulse-white 2s infinite; }
.btn-glow { animation: pulse 2s infinite; }

/* --- FOOTER --- */
footer {
    background-color: #050505;
    padding: 60px 0 30px;
    color: var(--white);
}
.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
}
.footer-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}
.social-btn {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition-fast);
    text-decoration: none;
}
.social-btn:hover {
    background: var(--primary);
    color: var(--white) !important;
    transform: translateY(-3px);
}
.social-btn:hover i { color: black !important; }

/* --- WIDGETS FLUTUANTES --- */
.whatsapp-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1050; /* Acima do Bootstrap default */
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.whatsapp-btn {
    background: var(--primary);
    color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.whatsapp-btn i { color: white !important; }

.whatsapp-text {
    background-color: white;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition-fast);
    pointer-events: none;
}
.whatsapp-container:hover .whatsapp-btn { transform: scale(1.1); }
.whatsapp-container:hover .whatsapp-text { opacity: 1; transform: translateX(0); }

/* Chatbot */
.chat-widget {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1060;
}
.chat-btn {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary-dark);
    font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    cursor: pointer;
}
.chat-btn:hover { transform: scale(1.1); }
.chat-btn i { color: var(--white) !important; }

.notification-badge {
    position: absolute; top: -5px; right: -5px;
    background: var(--primary); color: white;
    font-size: 0.75rem; width: 22px; height: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
    font-weight: bold;
    animation: bounce 2s infinite;
}

.chat-window {
    position: absolute; bottom: 80px; left: 0;
    width: 320px; height: 450px;
    max-height: 70vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex; flex-direction: column;
    animation: slideUp 0.3s ease;
}

.chat-header { background: var(--primary); padding: 15px; border-bottom: 3px solid var(--primary); }
.bot-avatar { width: 35px; height: 35px; background: var(--gold); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--primary); }
.bot-avatar i { color: var(--primary) !important; }

.chat-body { flex: 1; padding: 15px; overflow-y: auto; background-color: #f1f5f9; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; line-height: 1.4; animation: fadeIn 0.3s; }
.msg.bot { background: white; color: var(--text); border-top-left-radius: 2px; border: 1px solid #e2e8f0; align-self: flex-start; }
.msg.user { background: var(--primary); color: white; border-bottom-right-radius: 2px; align-self: flex-end; }

.option-btn {
    background: white; border: 1px solid var(--gold); color: var(--primary);
    padding: 8px 12px; border-radius: 15px; font-size: 0.8rem;
    cursor: pointer; transition: 0.2s; margin-bottom: 6px; width: 100%; text-align: left;
}
.option-btn:hover { background: var(--gold); color: black; border-color: var(--gold); }

/* --- PÁGINA DE BLOG --- */

/* Navbar sólida para páginas internas */
.navbar-solid {
    background-color: var(--primary) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Cabeçalho Específico do Blog */
.blog-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 140px 0 80px; /* Espaço extra no topo por causa da navbar fixa */
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Efeito de fundo sutil no header */
.blog-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--gold) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
    pointer-events: none;
}

/* Card do Post */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden; /* Importante para a imagem não sair ao dar zoom */
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

/* Imagem do Post */
.blog-img {
    width: 100%;
    height: 240px; /* Altura fixa para alinhar os cards */
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.08); /* Zoom suave ao passar o mouse */
}

/* Corpo do Texto */
.blog-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    color: var(--text);
}

.blog-date {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-body h4 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.4;
    /* Limita o título a 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-body p{
    color: var(--text);
}

/* Link "Ler Mais" */
.read-more {
    margin-top: auto; /* Empurra o botão para o final do card */
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}

.read-more:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* --- RESPONSIVIDADE (MEDIA QUERIES) --- */

/* Telas Médias e Tablets (Navbar Colapsada) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--primary-dark); /* Fundo sólido para ler o menu */
        padding: 20px;
        margin-top: 15px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-item { margin: 10px 0; }
    
    .hero { background-attachment: scroll; /* Desliga Parallax no mobile para performance */ }
    
    .stat-number { font-size: 2.5rem; }
}

/* Celulares Pequenos */
@media (max-width: 575.98px) {
    .hero h1 { line-height: 1.2; }
    
    .display-5 { font-size: 2rem; }
    .display-6 { font-size: 1.75rem; }
    
    /* Ajuste nos botões flutuantes para não tapar conteúdo */
    .whatsapp-container, .chat-widget { bottom: 15px; }
    .whatsapp-container { right: 15px; }
    .chat-widget { left: 15px; }
    .whatsapp-btn, .chat-btn { width: 50px; height: 50px; font-size: 24px; }
    
    .carousel-inner { padding: 0 10px; }
}

/* --- ANIMAÇÕES (KEYFRAMES) --- */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-6px);}
    60% {transform: translateY(-3px);}
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 25px; }
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 var(--primary) }
    70% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

@keyframes pulse-white {
    0% { box-shadow: 0 0 0 0 var(--white); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Acessibilidade: Reduz movimento se o usuário preferir */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}