/* ========================================
   TF Diesel - Clean Blue Theme
   ======================================== */
:root {
    --primary: #002244;        
    --primary-light: #0056b3;  
    --green: #00a830;          
    
    --bg-white: #ffffff;
    --bg-light: #f5f6f8;       
    --bg-dark: #121212;
    
    --text-main: #4d5766;      
    --text-title: #001c36;     
    
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: 'Source Sans 3', sans-serif; color: var(--text-title); font-weight: 700; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary-light); }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.5rem; }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }

/* ========================================
   Botões
   ======================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 24px; border-radius: 4px; font-weight: 600; font-family: 'Source Sans 3', sans-serif;
    transition: var(--transition); border: none; cursor: pointer; text-transform: uppercase;
}
.btn-large { padding: 15px 30px; font-size: 1.1rem; }
.btn-primary { background-color: #32373c; color: #fff; } 
.btn-primary:hover { background-color: #1a1c1e; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-dark { background-color: var(--text-title); color: #fff; }
.btn-dark:hover { background-color: #000; transform: translateY(-2px); }
.btn-green { background-color: var(--green); color: #fff; border-radius: 6px; padding: 15px 40px;}
.btn-green:hover { background-color: #008f29; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,168,48,0.3); }

.pulse-btn { animation: pulseGreen 2s infinite; }
@keyframes pulseGreen { 
    0% { box-shadow: 0 0 0 0 rgba(0, 168, 48, 0.7); } 
    70% { box-shadow: 0 0 0 15px rgba(0, 168, 48, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(0, 168, 48, 0); } 
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--primary); 
    color: #fff;
    transition: var(--transition);
}
.header.scrolled { box-shadow: 0 4px 15px rgba(0,0,0,0.2); padding: 0;}

.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; transition: var(--transition);}

/* AUMENTO DA LOGO NO HEADER */
.logo { 
    height: 90px; 
    background: #fff; 
    padding: 8px; 
    border-radius: 4px; 
    transition: var(--transition);
}
.header.scrolled .logo { height: 60px; }

.nav-main { flex: 1; display: flex; justify-content: flex-end; padding-right: 40px;}
.nav-menu { display: flex; list-style: none; gap: 30px; }
.nav-menu a { font-family: 'Source Sans 3', sans-serif; font-weight: 600; font-size: 1rem; color: #fff; text-transform: uppercase; transition: var(--transition); }
.nav-menu a:hover { opacity: 0.8; color: #ffb800; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 30px; height: 3px; background: #fff; transition: var(--transition); }

/* ========================================
   Hero Section
   ======================================== */
.hero { 
    position: relative; 
    padding: 200px 0 100px; 
    min-height: 80vh; 
    display: flex; 
    align-items: center; 
    background: url('../assets/img/voks\ foto\ cinza.png') center/cover no-repeat; 
}
.hero-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(90deg, rgba(0, 20, 40, 0.9) 0%, rgba(0, 20, 40, 0.6) 50%, rgba(0, 20, 40, 0.1) 100%);
    z-index: 1; 
}

.hero-grid { position: relative; z-index: 2; color: #fff;}
.hero-content { max-width: 800px; }
.hero-content h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.2; margin-bottom: 25px; text-transform: uppercase;}
.hero-content p { color: #e2e8f0; font-size: 1.1rem; margin-bottom: 30px; font-weight: 500;}

.hero-badge { display: inline-block; background: #ffb800; color: #000; padding: 8px 16px; border-radius: 4px; font-weight: 700; font-size: 0.9rem; margin-bottom: 20px; text-transform: uppercase; }
.hero-buttons { display: flex; gap: 15px;}

/* ========================================
   Nova Seção: Autoridade (Caminhões)
   ======================================== */
.trucks-showcase { padding: 100px 0; background: var(--bg-white); }
.trucks-grid { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    flex-wrap: wrap; 
    margin-top: 40px; 
}
.truck-card { 
    position: relative; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    flex: 1 1 300px; 
    max-width: 360px; 
    transition: var(--transition); 
    border: 2px solid transparent;
    background-color: var(--bg-light); /* Adicionado: preenche as laterais das fotos verticais */
}
.truck-card:hover { transform: translateY(-10px); border-color: var(--primary-light); }

.truck-card img { 
    width: 100%; 
    height: 320px; /* Aumentado: dá mais espaço para o caminhão aparecer bem */
    object-fit: contain; /* A MÁGICA AQUI: Força a imagem a aparecer por completo sem cortes */
    display: block; 
    transition: var(--transition);
}
.truck-card:hover img { transform: scale(1.05); }

.truck-name { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); 
    color: #fff; 
    padding: 40px 20px 15px; 
    font-family: 'Source Sans 3', sans-serif; 
    font-size: 1.5rem; 
    font-weight: 700; 
    text-align: center; 
    text-transform: uppercase;
}

/* ========================================
   Títulos Comuns
   ======================================== */
.section-title { font-size: 2.5rem; color: var(--text-title); margin-bottom: 15px; text-transform: uppercase;}
.section-header { margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; text-transform: uppercase;}
.section-header p { font-size: 1.1rem; max-width: 700px; margin: 0 auto; color: var(--text-main); }
.subtitle { display: block; font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; font-size: 0.9rem;}

/* ========================================
   Serviços (Centralizado Automaticamente)
   ======================================== */
.services-section { padding: 80px 0; }
.services-grid { 
    display: flex;          /* Usando Flexbox para centralização perfeita */
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px; 
}

.service-card { 
    background: var(--bg-white); 
    border-radius: 0; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    transition: var(--transition); 
    display: flex; 
    flex-direction: column;
    width: calc(33.333% - 20px); /* 3 por linha em telas grandes */
    min-width: 300px;
    max-width: 380px; 
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-bottom: 4px solid var(--primary-light);}

.img-wrapper { width: 100%; height: 200px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 10px;}
.img-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; }

.card-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; align-items: flex-start;}
.card-content h3 { font-size: 1.15rem; margin-bottom: 15px; color: var(--text-title); }
.card-content p { font-size: 0.95rem; color: #64748b; line-height: 1.5; }

/* ========================================
   Sobre Nós
   ======================================== */
.about-section { padding: 100px 0; }
.about-desc { max-width: 800px; margin: 0 auto 50px; font-size: 1.1rem; color: var(--text-main); }
.about-desc strong { color: var(--text-title); }

.stats-container { display: flex; align-items: center; justify-content: center; max-width: 900px; margin: 0 auto; }
.stat-box { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stat-icon { font-size: 3rem; color: #4b5563; margin-bottom: 20px; }
.stat-number { font-size: 3.5rem; color: var(--text-title); margin-bottom: 5px; line-height: 1; }
.stat-text { font-size: 1.1rem; color: var(--text-title); }
.stat-divider { width: 1px; height: 120px; background-color: #e5e7eb; margin: 0 40px; }

/* ========================================
   Diagnóstico
   ======================================== */
.diag-section { 
    position: relative; 
    padding: 100px 0; 
    background: url('https://images.pexels.com/photos/2244746/pexels-photo-2244746.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover fixed; 
}
.diag-overlay { position: absolute; inset: 0; background: rgba(0, 28, 54, 0.9); }

.diag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.diag-content { color: #fff; }
.diag-content h2 { color: #fff; font-size: 2.8rem; margin-bottom: 25px; line-height: 1.2;}
.diag-content p { font-size: 1.1rem; margin-bottom: 30px; color: #e2e8f0;}

.diag-list { list-style: none; }
.diag-list li { margin-bottom: 15px; display: flex; gap: 15px; align-items: center; font-size: 1.1rem; color: #fff;}
.diag-list i { color: #ffb800; font-size: 1.3rem;}

.diag-visual { position: relative; }
.diag-img-wrapper { position: relative; border-radius: 12px; }
.diag-img-wrapper img { border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); width: 100%; border: 2px solid rgba(255,255,255,0.1);}

.diag-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #ffb800;
    color: #000;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.diag-badge i { font-size: 2.5rem; }
.diag-badge span { font-weight: 800; font-family: 'Source Sans 3'; font-size: 1.1rem; text-transform: uppercase; line-height: 1.2;}

/* ========================================
   Feedbacks
   ======================================== */
.feedback-section { padding: 100px 0; }
.feedback-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feedback-card { background: var(--bg-white); padding: 40px; border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.03);}
.feedback-author { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #e2e8f0; padding-bottom: 15px;}
.feedback-author h4 { color: var(--text-title); font-size: 1.1rem; }
.feedback-author i { color: #cbd5e1; font-size: 1.5rem; }
.feedback-card p { font-size: 0.95rem; font-style: italic; color: var(--text-main); }

/* ========================================
   Contato
   ======================================== */
.contact-section { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.contact-info-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}
.contact-info-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-color: var(--primary-light);}
.icon-circle {
    width: 70px; height: 70px;
    background: #fff;
    color: var(--primary-light);
    font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.contact-info-card h4 { font-size: 1.2rem; margin-bottom: 15px; }
.contact-info-card p { color: var(--text-main); font-size: 1rem; margin-bottom: 15px;}
.link-action { color: var(--primary-light); font-weight: 700; font-size: 0.95rem; }
.link-action:hover { color: var(--primary); text-decoration: underline; }

/* ========================================
   Footer Completo
   ======================================== */
.footer { background: var(--primary); color: #cbd5e1; padding-top: 80px; }
.footer-layout { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }

.footer-logo { height: 80px; background: #fff; padding: 10px; border-radius: 6px; margin-bottom: 20px;}
.footer-brand p { margin-bottom: 20px; max-width: 350px; }
.socials a { display: inline-flex; width: 40px; height: 40px; background: rgba(255,255,255,0.1); color: #fff; align-items: center; justify-content: center; border-radius: 4px; transition: var(--transition); margin-right: 10px; }
.socials a:hover { background: #ffb800; color: #000; }

.footer h4 { color: #fff; font-size: 1.2rem; margin-bottom: 25px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { transition: var(--transition); }
.footer-links a:hover { color: #ffb800; padding-left: 5px;}

.footer-contact p { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.footer-contact i { color: #ffb800; font-size: 1.2rem;}

.footer-bottom { background: #001833; padding: 25px 0; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }

/* ========================================
   WhatsApp Flutuante
   ======================================== */
.float-whatsapp { position: fixed; bottom: 30px; right: 30px; background-color: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 30px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 1000; transition: var(--transition); animation: pulseWa 2s infinite; }
.float-whatsapp:hover { transform: scale(1.1); }
@keyframes pulseWa { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ========================================
   Animações Reveal
   ======================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ========================================
   Responsividade
   ======================================== */
@media (max-width: 991px) {
    .hero-content h1 { font-size: 2.5rem; }
    
    .stats-container { flex-direction: column; gap: 30px; }
    .stat-divider { width: 100%; height: 1px; margin: 0; }
    
    .diag-grid, .contact-grid, .footer-layout { grid-template-columns: 1fr; gap: 40px; }
    .diag-badge { left: 50%; transform: translateX(-50%); bottom: -20px; width: 80%; justify-content: center;}
    
    .nav-main { display: none; }
    .nav-toggle { display: flex; }
    
    .nav-main.active { 
        display: flex; position: absolute; top: 100%; left: 0; width: 100%; background: var(--primary); 
        flex-direction: column; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    .nav-menu { flex-direction: column; gap: 20px; text-align: center; }
    
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
}

@media (max-width: 768px) {
    .hero-buttons { flex-direction: column; }
    .hero-buttons a { width: 100%; }
}