/* Variáveis Globais (Core Tecnológico e Marcas) */
:root {
    --primary-color: #0c4a6e;   /* Azul Escuro da Marca */
    --primary-light: #0284c7;   /* Azul Claro Tech */
    --accent-color: #38bdf8;    /* Azul Ciano para Glows de IA */
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-gray: #f8fafc;
    --border-color: #e2e8f0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset Geral */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--primary-color); }
a { text-decoration: none; color: inherit; transition: var(--transition); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section { padding: 5rem 0; min-height: 60vh; }
.header-offset { padding-top: 155px; } /* Evita navbar cobrir conteudo novo (120 orig + 35 topbar) */

/* Typography */
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 2.5rem; position: relative; display: inline-block; margin-bottom: 15px;}
.section-title h2::after {
    content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 50px; height: 3px; background-color: var(--primary-light); border-radius: 2px;
}
.text-center { text-align: center; }

/* Componente SPA: Esconde as Páginas não ativas */
.page { display: none; opacity: 0; transition: opacity 0.4s ease-in-out; }
.page.active { display: block; opacity: 1; }

/* Botoes Tecnologicos */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0.8rem 1.8rem; border-radius: 6px; font-weight: 600; cursor: pointer;
    border: 2px solid transparent; font-family: var(--font-heading); transition: var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white; box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4); border: none;
}
.btn-primary:hover {
    transform: translateY(-2px); box-shadow: 0 8px 25px rgba(2, 132, 199, 0.6);
}
.btn-outline { border-color: white; color: white; background: transparent; }
.btn-outline:hover { background: white; color: var(--primary-color); }
.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* Top Bar */
.top-bar { background-color: var(--primary-color); height: 35px; color: white; display: flex; align-items: center; font-size: 0.85rem;}
.top-bar-content { display: flex; justify-content: space-between; align-items: center; width: 100%;}
.top-bar-left { display: flex; gap: 1rem; align-items: center; opacity: 0.8;}
.top-bar-left span { display: inline-flex; align-items: center; gap: 5px;}
.top-social a { width: 25px; height: 25px; background: transparent; display: flex; align-items: center; justify-content: center; }
.top-social a:hover { color: var(--accent-color); background: transparent; transform: scale(1.1);}
.top-social svg, .top-social .brand-img { width: 15px; height: 15px; object-fit: contain; }

/* Navbar */
.navbar {
    position: fixed; top: 35px; width: 100%; height: 80px; z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06); display: flex; align-items: center;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display:flex; flex-direction: row; align-items: center; gap: 10px; margin-left: -5mm; }
#main-logo { height: 45px; object-fit: contain; }
.fallback-logo { display: none; }
.logo-text { display: block; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--primary-color); letter-spacing: 0.5px; line-height: 1;}
.logo-sub { display: block; font-size: 0.60rem; font-weight: 700; color: var(--primary-light); letter-spacing: 2px; }

.nav-links { display: flex; gap: 2rem; align-items: center; margin-left: 3mm; }
.nav-links a.nav-btn:not(.btn) {
    font-weight: 600; font-size: 0.95rem; color: var(--text-color); position: relative;
    cursor: pointer;
}
.nav-links a.nav-btn:not(.btn):hover, .nav-links a.active:not(.btn) { color: var(--primary-light); }
.nav-links a.active:not(.btn)::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px;
    background-color: var(--primary-light);
}
.mobile-menu-btn { display: none; cursor: pointer; color: var(--primary-color); }

/* Hero Tech (Home) */
.tech-hero {
    position: relative; height: 100vh; display: flex; align-items: center;
    background-color: var(--primary-color); overflow: hidden; color: white;
}
.hero-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index: 1;
}
.hero-bg-overlay {
    position: absolute; top:0; left:0; width: 100%; height: 100%; z-index: 2;
    background: linear-gradient(90deg, rgba(12, 74, 110, 0.95) 0%, rgba(12, 74, 110, 0.6) 100%);
}
.hero-content { position: relative; z-index: 3; max-width: 1200px; padding-top: 115px;}
.hero-content h1 { font-size: 4rem; color: white; line-height: 1.1; margin: 1.5rem 0;}
.hero-content p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2.5rem; line-height: 1.6; max-width: 600px;}
.hero-actions { display: flex; gap: 1rem; }

/* AI Badge */
.ai-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(2, 132, 199, 0.2); border: 1px solid var(--accent-color);
    color: var(--accent-color); padding: 6px 16px; border-radius: 30px;
    font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

/* Grilas e Layouts das Páginas Internas */
.bg-gray { background-color: var(--bg-gray); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }

/* Cartoes de Produtos/Servicos */
.product-card {
    background: white; padding: 2.5rem 2rem; border-radius: 12px;
    border: 1px solid var(--border-color); text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); border-color: var(--primary-light);}
.card-img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; margin-bottom: 2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.08);}
.icon-lg { color: var(--primary-light); margin-bottom: 1.5rem; }
.icon-lg svg { width: 48px; height: 48px; }
.icon-xl svg { width: 64px; height: 64px; color: var(--primary-color); margin-bottom: 20px;}
.icon-sm { width: 16px; height: 16px; }

/* Services Rows - Linha de texto simples */
.service-row { border-left: 4px solid var(--primary-light); padding-left: 1.5rem; margin-bottom: 2.5rem;}
.service-row h3 { font-size: 1.4rem; margin-bottom: 10px; }
.service-gallery { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.gallery-img { height: 160px; width: 220px; border-radius: 8px; object-fit: contain; padding: 4px; background: white; flex-grow: 1; border: 1px solid var(--border-color); cursor: pointer; transition: transform 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.05);}
.gallery-img:hover { transform: scale(1.03); border-color: var(--primary-light);}

/* Sobre nos */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.7; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;}
.feat-card {
    background: var(--bg-gray); padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border-color);
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.feat-card svg { color: var(--primary-light); width: 24px; height: 24px;}
.feat-card h4 { font-size: 1.1rem; }

/* Image Containers Genericos */
.content-img { width: 100%; height: auto; border-radius: 12px; object-fit: cover; }
.shadow-img { box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.rotate-img { transform: perspective(1000px) rotateY(-5deg); transition: var(--transition); }
.rotate-img:hover { transform: perspective(1000px) rotateY(0deg); }

/* Testimonials (Depoimentos) */
.testimonial-box { background: white; padding: 2.5rem; border-radius: 12px; border: 1px solid var(--border-color); position: relative; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: var(--transition);}
.testimonial-box:hover { transform: translateY(-5px); border-color: var(--primary-light); box-shadow: 0 15px 40px rgba(2, 132, 199, 0.1); }
.quote-icon { position: absolute; top: -15px; left: 30px; font-size: 4rem; font-family: serif; color: var(--primary-light); line-height: 1; opacity: 0.2; }
.testimonial-box p { font-size: 1.05rem; color: var(--text-light); margin-bottom: 2rem; position: relative; z-index: 2; line-height: 1.7; font-style: italic;}
.author-info { display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--bg-gray); padding-top: 1.5rem;}
.author-avatar { width: 45px; height: 45px; background: var(--bg-gray); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-light); font-size: 20px;}
.author-info h4 { font-size: 1.1rem; margin-bottom: 2px;}
.author-info span { font-size: 0.85rem; color: var(--text-light);}

/* Glass Card */
.glass-card {
    background: white; max-width: 600px; margin: 0 auto; padding: 4rem 2rem;
    border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); border: 1px solid var(--border-color);
}
.glass-card h3 { font-size: 1.8rem; margin-bottom: 1rem;}
.glass-card p { color: var(--text-light); margin-bottom: 2rem;}

/* Blog Cards */
.blog-card {
    background: white; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border-color); transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--primary-light);}
.blog-img { width: 100%; height: 200px; object-fit: cover; }
.blog-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column;}
.blog-content span { font-size: 0.8rem; color: var(--primary-light); font-weight: 700; margin-bottom: 8px;}
.blog-content h3 { font-size: 1.25rem; margin-bottom: 15px; color: var(--text-color); font-family: var(--font-heading);}
.blog-content p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; line-height: 1.6;}
.blog-link { display: inline-flex; align-items: center; gap: 5px; color: var(--primary-light); font-weight: 600; font-size: 0.9rem; transition: var(--transition);}
.blog-link:hover { color: var(--primary-color); gap: 8px;}

/* =======================================================
   CRM e CALCULADORA ONLINE - MÁGICA ACONTECE AQUI
   ======================================================= */
.calc-grid {
    display: grid; grid-template-columns: 1fr 400px; gap: 3rem; background: white;
    border-radius: 16px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.calc-form { padding: 3rem; }
.calc-form h3 { font-size: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 25px;}

.form-group { margin-bottom: 1.5rem; }
.grid-half { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-color); }
.form-group input[type="text"], .form-group input[type="number"], .form-group input[type="email"], .form-group input[type="tel"], .form-group select {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: 6px;
    font-family: inherit; font-size: 1rem; color: var(--text-color); background: var(--bg-gray); transition: 0.3s;
}
.form-group input:focus, .form-group select:focus {
    outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.checkbox-group { display: flex; gap: 20px; flex-wrap: wrap; }
.checkbox-group label { font-weight: 400; display: flex; align-items: center; gap: 8px; cursor: pointer;}
.checkbox-group input { width: 18px; height: 18px; accent-color: var(--primary-light); cursor: pointer;}

/* Painel Analítico da Calculadora */
.calc-result-panel {
    background: var(--primary-color); padding: 3rem 2.5rem; color: white;
    display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.calc-result-panel::before {
    content:''; position: absolute; top:-50%; left:-50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.2) 0%, transparent 70%); pointer-events: none;
}
.ai-header { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; color: var(--accent-color); margin-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom:1rem;}
.price-display { margin-bottom: 2rem; }
.price-display .label { font-size: 0.9rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px;}
.price-display h2 { font-size: 3.5rem; color: white; margin-top: 5px;}
.summary-list { list-style: none; margin-bottom: auto;}
.summary-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px rgba(255,255,255,0.1) dashed; font-size: 0.95rem;}
.summary-list li span { font-weight: 700; color: var(--accent-color); text-align: right;}

/* CRM Admin Board */
.crm-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem;}
.crm-column { background: white; border-radius: 8px; border: 1px solid var(--border-color); min-height: 400px; padding: 1rem;}
.column-header { display: flex; justify-content: space-between; font-weight: 700; padding: 10px; border-bottom: 2px solid var(--bg-gray); margin-bottom: 15px;}
.column-header span { background: var(--primary-light); color: white; padding: 2px 8px; border-radius: 12px; font-size: 0.8rem;}

/* Lead Card (Mock Injection) */
.lead-card {
    background: var(--bg-gray); padding: 15px; border-radius: 6px; border-left: 4px solid #10b981;
    margin-bottom: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); cursor: pointer;
}
.lead-card strong { display: block; color: var(--primary-color); font-size: 1.05rem; margin-bottom: 4px;}
.lead-card .lead-prod { font-size: 0.85rem; color: var(--text-light); margin-bottom: 8px;}
.lead-card .lead-price { font-weight: 700; color: var(--text-color); font-size: 1.1rem;}

/* =======================================================
   CHATBOT FLUTUANTE IA (WIDGET 24/7)
   ======================================================= */
.chatbot-widget {
    position: fixed; bottom: 30px; right: 30px; width: 350px; background: white;
    border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); z-index: 9999;
    border: 1px solid var(--border-color); overflow: hidden; transition: var(--transition);
    display: flex; flex-direction: column; height: 450px;
}
.chatbot-widget.collapsed { height: 60px; width: 280px; }
.chat-header {
    background: var(--primary-color); color: white; padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.chat-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-family: var(--font-heading);}
.avatar-ai {
    width: 35px; height: 35px; background: var(--bg-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    border: 2px solid var(--primary-light);
}
.avatar-ai img { width: 100%; height: 100%; object-fit: cover; }
.avatar-ai svg { width: 18px; height: 18px; color: white;}
.chat-body {
    flex: 1; padding: 20px; overflow-y: auto; background: var(--bg-gray);
    display: flex; flex-direction: column; gap: 15px;
}
.msg { padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; max-width: 85%; }
.ai-msg { background: white; border: 1px solid var(--border-color); border-bottom-left-radius: 2px; align-self: flex-start;}
.user-msg { background: var(--primary-light); color: white; border-bottom-right-radius: 2px; align-self: flex-end;}
.chat-input-area { display: flex; padding: 15px; background: white; border-top: 1px solid var(--border-color); gap: 10px;}
.chat-input-area input { flex: 1; padding: 10px 15px; border: 1px solid var(--border-color); border-radius: 20px; font-size: 0.9rem;}
.chat-input-area input:focus { outline: none; border-color: var(--primary-light);}
.chat-input-area button { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--primary-color); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s;}
.chat-input-area button:hover { background: var(--primary-light);}


/* Footer */
.footer { background-color: #0f172a; color: white; padding: 5rem 0 2rem; font-size: 0.95rem;}
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; margin-bottom: 3rem;}
.footer h3 { color: white; margin-bottom: 1.5rem; font-size: 1.2rem;}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; color: var(--text-light); font-size: 0.85rem;}

/* Redes Sociais Footer */
.social-icons a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); color: white; transition: var(--transition);}
.social-icons a:hover { background: var(--primary-light); transform: translateY(-3px);}
.social-icons svg, .social-icons .brand-img { width: 20px; height: 20px; object-fit: contain; }
.social-icons.has-brand-logos a { background: white; }
.social-icons.has-brand-logos a:hover { background: #f8fafc; transform: translateY(-3px) scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* Banner LGPD - Cookies */
.cookie-banner {
    position: fixed; bottom: -100%; left: 0; width: 100%; background: white; padding: 1.5rem 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1); z-index: 99999; border-top: 1px solid var(--border-color);
    display: flex; justify-content: center; align-items: center; transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cookie-banner.show { bottom: 0; }
.cookie-content { display: flex; align-items: center; gap: 20px; max-width: 800px; padding: 0 5%;}
.cookie-icon { background: var(--bg-gray); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #f59e0b; flex-shrink: 0;}
.cookie-icon svg { width: 24px; height: 24px;}
.cookie-text h4 { margin-bottom: 5px; font-size: 1.1rem; color: var(--text-color);}
.cookie-text p { font-size: 0.85rem; color: var(--text-light); line-height: 1.5;}
.cookie-actions { display: flex; gap: 10px; margin-left: 20px;}

/* Table de Logs (Admin) */
.logs-board { background: white; border-radius: 8px; border: 1px solid var(--border-color); overflow-x: auto;}
.logs-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem;}
.logs-table th { background: var(--bg-gray); padding: 15px; border-bottom: 2px solid var(--border-color); color: var(--primary-color);}
.logs-table td { padding: 15px; border-bottom: 1px solid var(--border-color); color: var(--text-color);}
.logs-table tr:hover { background: #f8fafc; }
.badge-aceito { background: #dcfce7; color: #166534; padding: 4px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: 600;}
.badge-recusado { background: #fee2e2; color: #991b1b; padding: 4px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: 600;}

/* Responsividade Básica */
@media(max-width: 900px) {
    .grid-4, .grid-3, .grid-2, .about-grid, .calc-grid, .crm-board, .footer-cols { grid-template-columns: 1fr; gap: 2rem;}
    .hero-content h1 { font-size: 2.8rem;}
    .nav-links { display: none; }
    .mobile-menu-btn { display: block;}
    .calc-result-panel { border-radius: 12px; margin-top: 1rem;}
}

/* =======================================================
   ANIMAÇÕES DE SCROLL (PROFISSIONAL)
   ======================================================= */
/* Classes Base */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Estado Visível (Triggered pelo JS Observer) */
.animate-fade-up.visible,
.animate-fade-left.visible,
.animate-fade-right.visible,
.animate-zoom-in.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Atrasos em Cascata (Delays) */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Sublinhado do título animado */
.section-title h2::after {
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
    width: 0;
}
.section-title.visible h2::after, 
.animate-fade-up.visible h2::after {
    width: 50px;
}
