/* ==========================================
   1. VARIÁVEIS GLOBAIS
   ========================================== */
:root {
    /* Cores do CSS 1 */
    --color-primary: #0f172a;
    --color-secondary: #1e293b;
    --color-accent: #0284c7;
    --color-accent-hover: #0369a1;
    --color-highlight: #0ea5e9;
    --color-whatsapp: #25D366;
    
    /* Cores do CSS 2 (Integradas) */
    --color-hero-dark: #0f172a;
    --color-hero-subtitle: #334155;
    --color-btn-gradient-1: rgba(86, 195, 197, 0.73);
    --color-btn-gradient-2: rgba(60, 25, 176, 0.69);
    --color-btn-gradient-3: rgba(86, 195, 197, 1);
    --color-btn-shadow: rgba(60, 25, 176, 0.3);
    
    --text-main: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    
    --font-base: 'Inter', 'Montserrat', 'Helvetica Neue', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    --transition-fast: 0.3s ease;
    --transition-slow: 0.4s ease;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 50px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-highlight: 0 0 20px rgba(14, 165, 233, 0.2);
    --shadow-accordion: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   2. RESET E BASE
   ========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-base); 
    color: var(--text-main);
    background-color: var(--bg-main); 
    line-height: 1.6; 
    overflow-x: hidden;
}

h1, h2, h3, .hero-title, .btn-custom {
    font-family: var(--font-heading);
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--color-primary); color: var(--text-white); }
.text-center { text-align: center; }
.mobile-only { display: none; }
.mt-2 { margin-top: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.section-title { font-size: 2.2rem; color: var(--color-primary); margin-bottom: 15px; position: relative; padding-bottom: 15px; }
.bg-dark .section-title { color: var(--text-white); }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px; background-color: var(--color-accent); border-radius: 2px; }
.text-center .section-title::after { left: 50%; transform: translateX(-50%); }
.section-desc { font-size: 1.1rem; margin-bottom: 40px; max-width: 700px; }
.text-center .section-desc { margin: 0 auto 40px auto; }

/* ==========================================
   3. NAVEGAÇÃO E BOTÕES
   ========================================== */
.header {
    position: fixed; top: 0; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); z-index: 1000; transition: var(--transition-fast);
}
.header-wrapper { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand-logo { font-size: 1.5rem; font-weight: 800; color: var(--color-primary); text-decoration: none; letter-spacing: -0.5px; }

.desktop-nav { display: block; }
.nav-list { display: flex; flex-direction: row; list-style: none; gap: 30px; }
.nav-link {
    text-decoration: none; color: var(--color-primary); font-weight: 600;
    font-size: 1rem; transition: var(--transition-fast); padding: 8px 12px; border-radius: var(--radius-md);
}
.nav-link.link-active {
    color: var(--color-accent) !important;
    position: relative;
}
.nav-link.link-active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; 
    background-color: var(--color-accent); border-radius: 2px;
}
.nav-link:hover { color: var(--color-accent); background-color: rgba(2, 132, 199, 0.1); }

/* Botão Customizado (Harmonizado do CSS 2) */
.btn-custom {
    position: relative;
    padding: 14px 35px;
    color: white;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(45deg, var(--color-btn-gradient-1), var(--color-btn-gradient-2), var(--color-btn-gradient-3));
    background-size: 200% 100%;
    animation: gradientLoop 7s ease infinite;
    box-shadow: 0 4px 15px var(--color-btn-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.btn-custom:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 25px var(--color-btn-shadow);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(2, 132, 199, 0.95) !important; 
    animation: none;
}

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

/* ==========================================
   4. HERO CAROUSEL (MESCLADO)
   ========================================== */
.hero-carousel { 
    position: relative; 
    height: 100vh; 
    width: 100%; 
    overflow: hidden; 
    background-color: var(--color-primary); 
}
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; /* Garantindo que a imagem ocupe o espaço ideal */
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out; 
    display: flex; align-items: center; z-index: 1;
}
.slide.active {
    opacity: 1; z-index: 2;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); /* Overlay simples */
    z-index: 2;
}

.hero-content-wrapper {
    position: relative; z-index: 10; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: flex-end; /* Alinhado à direita como no CSS 2 */
}

.hero-text-box {
    max-width: 550px;
    padding: 50px;
    text-align: right;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 30%, rgba(255,255,255,0.85) 100%);
    border-radius: var(--radius-lg);
    /*DESFOCADO
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.6) 30%, rgba(255,255,255,0.9) 100%);
    */
}

.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: var(--color-hero-dark); }
.hero-subtitle { font-size: 1.4rem; font-weight: 400; margin-bottom: 35px; color: var(--color-hero-subtitle); }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: rgba(0, 0, 0, 0.3); color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2); cursor: pointer; 
    width: 45px; height: 45px; z-index: 20; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition-fast);
}



/* Animação do botão FAB */
.fab-toggle svg { transition: transform 0.4s ease; }
.fab-container.active .fab-toggle svg { transform: rotate(45deg); }

/* Estilo das bolinhas */
.carousel-dots {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 12px; z-index: 20;
}

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

.dot.active {
    width: 14px; height: 14px;
    background: white;
    border: 2px solid transparent;
    /* Anel degradê */
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image: linear-gradient(white, white), 
                      linear-gradient(45deg, #0ea5e9, #56c3c5);
}

.carousel-btn:hover { background: rgba(2, 132, 199, 0.8); transform: translateY(-50%) scale(1.1); }
.prev-btn { left: 30px; }
.next-btn { right: 30px; }

.carousel-progress-bar { position: absolute; bottom: 0; left: 0; width: 100%; height: 6px; background: rgba(255, 255, 255, 0.2); z-index: 20; }
.progress-fill { height: 100%; width: 0%; background: var(--color-accent); }
.progress-fill.animating { animation: progress 5s linear infinite; }
@keyframes progress { 0% { width: 0%; } 100% { width: 100%; } }

/* ==========================================
   5. CARDS (A EMPRESA)
   ========================================== */
.grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
    background-color: var(--text-white); padding: 30px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); transition: var(--transition-fast); border: 1px solid var(--border-color);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; color: var(--color-primary); font-size: 1.25rem; font-weight: 700; }
.card-icon { color: var(--color-highlight); flex-shrink: 0; transition: var(--transition-fast); }
.card:hover .card-icon { transform: scale(1.15) translateY(-2px); }

/* ==========================================
   6. ACCORDIONS (PRODUTOS)
   ========================================== */
.accordion-container { max-width: 950px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.accordion-item { background: var(--text-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition-fast); }
.accordion-item.active { box-shadow: var(--shadow-accordion); border-color: transparent; }
.accordion-header {
    width: 100%; text-align: left; background: transparent; border: none; padding: 22px;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.acc-titles h3 { margin: 0; font-size: 1.2rem; color: var(--color-secondary); font-weight: 700; }
.acc-subtitle { font-size: 0.95rem; color: var(--text-light); }
.acc-icon { transition: var(--transition-fast); color: var(--text-muted); }
.accordion-item.active .acc-icon { transform: rotate(-180deg); color: var(--color-highlight); }
.accordion-content { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--transition-slow), opacity var(--transition-slow); }
.accordion-item.active .accordion-content { grid-template-rows: 1fr; opacity: 1; }
.acc-content-inner { overflow: hidden; padding: 0 22px 22px 22px; display: flex; gap: 25px; align-items: center; }
.acc-text { flex: 1; }
.acc-img { width: 180px; height: 180px; object-fit: cover; border-radius: var(--radius-md); }
.badge { background-color: rgba(14, 165, 233, 0.1); color: var(--color-highlight); padding: 5px 12px; border-radius: 4px; font-size: 0.85rem; font-weight: 700; }

/* ==========================================
   7. FORMULÁRIO DE CONTATO
   ========================================== */
.contact-form { max-width: 650px; margin: 0 auto 40px auto; display: flex; flex-direction: column; gap: 30px; }
.input-group input, .input-group textarea {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white); font-family: inherit; font-size: 1.1rem; padding: 12px 0; outline: none; transition: var(--transition-fast);
}
.input-group input:focus, .input-group textarea:focus { border-bottom: 2px solid var(--color-highlight); }
.btn-submit { align-self: center; margin-top: 15px; min-width: 200px; }

/* ==========================================
   8. BOTÕES FLUTUANTES E FAB
   ========================================== */
.float-btn {
    position: fixed; bottom: 30px; border-radius: 50%; display: flex; 
    align-items: center; justify-content: center; box-shadow: var(--shadow-md); 
    cursor: pointer; z-index: 999; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-top-float {
    right: 100px; width: 50px; height: 50px; background-color: var(--color-primary); 
    color: var(--text-white); border: none; opacity: 0; visibility: hidden; transform: translateY(20px);
}
.btn-top-float.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* MENU FAB MOBILE */
.fab-container { position: fixed; bottom: 30px; right: 25px; display: flex; flex-direction: column; align-items: flex-end; z-index: 1000; }
.fab-toggle {
    width: 60px; height: 60px; border-radius: 50%; background-color: var(--color-accent);
    color: white; border: none; cursor: pointer; display: flex; justify-content: center;
    align-items: center; box-shadow: var(--shadow-lg); position: relative; z-index: 2;
}
.fab-menu {
    position: absolute; bottom: 75px; right: 0; list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; z-index: 1;
}
.fab-item { opacity: 0; transform: translateY(20px) scale(0.9); transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.fab-action {
    display: flex; align-items: center; padding: 10px 22px; border-radius: 25px;
    background-color: var(--color-secondary); color: var(--text-white);
    text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap;
    box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,0.1);
}
.fab-whatsapp { background-color: var(--color-whatsapp); gap: 8px; border: none; }
.fab-container.active .fab-menu { pointer-events: auto; }
.fab-container.active .fab-item { opacity: 1; transform: translateY(0) scale(1); }

/* ==========================================
   9. MEDIA QUERIES
   ========================================== */
@media (max-width: 768px) {
    .header { display: none; }
    .mobile-logo-container { display: block; position: fixed; top: 15px; left: 15px; z-index: 1000; }
    .mobile-logo-container img { height: 40px; }
    .mobile-only { display: block; }
    
    .hero-text-box {
        max-width: 100%; padding: 30px; text-align: center;
        background: rgba(255, 255, 255, 0.9); margin: 0 20px;
    }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .hero-content-wrapper { justify-content: center; }
    .prev-btn { left: 15px; }
    .next-btn { right: 15px; }
    
    .acc-content-inner { flex-direction: column-reverse; align-items: flex-start; }
    .acc-img { width: 100%; height: 200px; }
    
    .btn-top-float { right: 90px; }
}

@media (min-width: 769px) {
    .mobile-logo-container { display: none; }
    .fab-container { display: none !important; }
}
