/* style.css - FINAL RESPONSIVO */

:root {
    --blue-nav: #1e40af;
    --blue-btn: #2563eb;
    --text-dark: #111827;
    --text-gray: #4b5563;
    --bg-light: #f3f4f6;
    --font-main: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: var(--font-main); color: var(--text-dark); background-color: #fff; overflow-x: hidden; }
a { text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- NAVBAR --- */
.navbar {
    background-color: var(--blue-nav);
    height: 70px;
    display: flex; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.5rem; font-weight: 700; color: white; }

/* Links Desktop */
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: #bfdbfe; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: white; font-weight: 600; }

.btn-nav { background-color: var(--blue-btn); color: white; padding: 8px 24px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; }
.mobile-menu-icon { display: none; color: white; font-size: 1.5rem; cursor: pointer; }
.mobile-only-btn { display: none; }

/* --- HERO --- */
.hero-section {
    position: relative;
    padding-top: 120px; padding-bottom: 80px;
    min-height: 100vh; display: flex; align-items: center;
    background-image: url('img/m1.png');
    background-size: cover; background-position: center; background-attachment: fixed;
}
.hero-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,1) 35%, rgba(255,255,255,0.9) 60%, rgba(255,255,255,0.4) 100%);
    z-index: 1;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }

.hero-text h1 { font-size: 3.5rem; line-height: 1.1; font-weight: 800; margin-bottom: 1.5rem; color: var(--blue-nav); }
.hero-text p { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 2rem; max-width: 90%; }
.stats-row { display: flex; gap: 2rem; margin-bottom: 2rem; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--blue-btn); }
.stat-desc { font-size: 0.8rem; color: var(--text-gray); }

.hero-buttons { display: flex; gap: 1rem; }
.btn-primary, .btn-outline, .btn-full {
    padding: 12px 24px; border-radius: 50px; font-weight: 600; text-align: center; display: inline-block; transition: 0.3s;
}
.btn-primary { background-color: var(--blue-btn); color: white; }
.btn-outline { border: 1px solid #9ca3af; color: var(--text-dark); }
.btn-full { width: 100%; border-radius: 8px; background-color: var(--blue-btn); color: white; }

/* Hero Visual (Cards Flutuantes) */
.hero-visual { position: relative; height: 400px; }
.glass-card {
    position: absolute; background: rgba(255, 255, 255, 0.9); padding: 15px; border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 10px; min-width: 200px;
    animation: float 6s ease-in-out infinite;
}
.icon-box { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.icon-blue-light { background: #eff6ff; color: var(--blue-btn); }
.icon-blue { background: #dbeafe; color: #0ea5e9; }
.icon-green { background: #dcfce7; color: #22c55e; }
.card-quitacao { top: 10%; left: 0; animation-delay: 0s; }
.card-antecipacao { top: 40%; right: 0; animation-delay: 1.5s; }
.card-segunda-via { top: 70%; left: 10%; animation-delay: 3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* Serviços */
.section-services { padding: 80px 0; background-color: var(--bg-light); position: relative; z-index: 2; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; font-weight: 800; color: var(--text-dark); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.card-image img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.tags { margin-bottom: 10px; }
.tag { font-size: 0.7rem; padding: 4px 8px; border-radius: 4px; font-weight: 700; margin-right: 5px; display: inline-block; background: #e5e7eb; color: var(--text-gray); }
.tag-blue { background: #eff6ff; color: var(--blue-btn); }
.tag-green { background: #dcfce7; color: #16a34a; }

/* Benefícios */
.section-benefits { padding: 80px 0; background-color: #fff; position: relative; z-index: 2; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.benefits-list li { margin-bottom: 1rem; display: flex; gap: 10px; align-items: center; }
.benefits-list i { color: var(--blue-btn); }
.image-wrapper { border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }

/* Footer */
footer { background-color: var(--blue-nav); color: white; padding-top: 4rem; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; padding-bottom: 2rem; }
.footer-col h4 { margin-bottom: 1rem; }
.footer-col ul li a { color: #bfdbfe; font-size: 0.9rem; }
.footer-bottom { background-color: rgba(0,0,0,0.2); text-align: center; padding: 1.5rem; font-size: 0.8rem; }

/* WhatsApp */
.whatsapp-widget { position: fixed; bottom: 20px; left: 20px; z-index: 2000; }
.wa-btn { width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* =========================================
   RESPONSIVIDADE (MOBILE) - A MÁGICA AQUI
   ========================================= */
@media (max-width: 900px) {
    /* Menu Mobile */
    .mobile-menu-icon { display: block; }
    .desktop-only { display: none; }
    
    .nav-links {
        position: absolute;
        top: 70px; left: 0; width: 100%;
        background-color: var(--blue-nav);
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    /* Quando o JS adicionar a classe 'active', o menu abre */
    .nav-links.active { max-height: 400px; padding: 20px 0; }
    
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; padding: 15px; color: white; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .mobile-only-btn { display: block; margin-top: 10px; }
    .btn-nav-mobile { background-color: var(--blue-btn); color: white; padding: 10px 30px; border-radius: 50px; display: inline-block; }

    /* Hero Mobile */
    .hero-section { 
        padding-top: 100px; 
        padding-bottom: 40px; 
        background-image: none; /* Tira a imagem pesada */
        background-color: #f8fafc; /* Fundo claro */
        text-align: center; /* Centraliza tudo */
    }
    .hero-section::before { display: none; } /* Tira a máscara */
    
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .hero-text { align-items: center; text-align: center; }
    .hero-text h1 { font-size: 2.2rem; color: var(--text-dark); } /* Fonte menor */
    .hero-text p { margin: 0 auto 2rem auto; font-size: 1rem; }
    
    .stats-row { justify-content: center; gap: 1.5rem; }
    .stat-number { font-size: 1.5rem; }
    
    .hero-buttons { justify-content: center; flex-direction: column; width: 100%; gap: 10px; }
    .btn-primary, .btn-outline { width: 100%; }

    /* Esconde os cards flutuantes no mobile para limpar a tela */
    .hero-visual.desktop-only { display: none; }

    /* Serviços e Benefícios Mobile */
    .section-header h2 { font-size: 1.8rem; }
    .split-layout { grid-template-columns: 1fr; text-align: center; }
    .benefits-list li { justify-content: center; }
    .benefits-buttons { justify-content: center; flex-direction: column; }
    .footer-grid { text-align: center; }
    .footer-col h3, .footer-col h4 { justify-content: center; }
    .socials { justify-content: center; }
}