/* ======================================= */
/* Variáveis de Cores (Baseadas no Logo) */
/* ======================================= */
:root {
    --primary-color: #003366; /* Azul Escuro do Logo */
    --secondary-color: #FF9900; /* Laranja do Logo */
    --dark-color: #212529; /* Cor escura para texto padrão */
    --light-color: #f8f9fa; /* Fundo claro */
    --white-color: #ffffff; /* Branco puro */
    --text-color: #212529; /* Cor do texto principal */
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

/* Links com a nova cor secundária no hover */
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color); /* Laranja ao passar o mouse */
}

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-color); /* Títulos no azul do logo */
}

/* Layout Geral */
.section-padded {
    padding: 4rem 2rem;
    text-align: center;
}

.bg-light {
    background-color: var(--light-color);
}

/* Botões com as novas cores */
.btn {
    display: inline-block;
    background-color: var(--primary-color); /* Azul padrão */
    color: var(--white-color);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color); /* Laranja no hover */
}

/* Header e Navegação */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--dark-color); /* Links do menu em cinza escuro */
    font-weight: 700;
    padding: 0.5rem 0;
    position: relative;
}

/* Linha laranja abaixo do link no hover */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

/* ======================================= */
/* Carrossel (Mantido o ajuste anterior) */
/* ======================================= */
.carousel-section {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 400px; /* Altura reduzida */
    object-fit: contain; /* Mostra a van inteira */
    background-color: #f8f9fa;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
    color: var(--white-color);
    text-align: center;
    max-width: 80%;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--white-color);
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    background-color: rgba(0,0,0,0.4);
    z-index: 11;
}
.next { right: 0; }
.carousel-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    z-index: 12;
}
.dot {
    height: 12px; width: 12px; background-color: #bbb; border-radius: 50%; display: inline-block; margin: 0 2px;
}
.active { background-color: var(--primary-color); }
.carousel-slide { display: none; }
.fade { animation: fade 1.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }

/* ======================================= */
/* Seções de Conteúdo (Grid) */
/* ======================================= */
.services-grid, .frota-gallery, .depoimentos-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem; /* Espaçamento lateral para não colar na borda */
}

.service-item, .frota-item, .depoimento-item {
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    overflow: hidden; /* Garante que a imagem não saia da caixa */
}

.service-item:hover, .frota-item:hover {
    transform: translateY(-5px);
}

/* Serviços */
.service-item { padding: 1.5rem; border: 1px solid #eee; }
.service-item .icon {
    font-size: 3rem;
    color: var(--secondary-color); /* Ícones em laranja */
    margin-bottom: 1rem;
}

/* ======================================= */
/* CORREÇÃO DA FROTA */
/* ======================================= */
.frota-item img {
    width: 100%;
    height: 250px; /* Altura fixa para alinhar todos os cards */
    object-fit: cover; /* Preenche o espaço sem distorcer a imagem */
    display: block;
    border-bottom: 3px solid var(--primary-color); /* Detalhe azul abaixo da foto */
}

.frota-item h3 {
    padding: 1rem 1rem 0.5rem;
    margin-bottom: 0;
    font-size: 1.25rem;
}

.frota-item p {
    padding: 0 1rem 1.5rem;
    color: #6c757d;
}

/* Depoimentos */
.depoimento-item {
    padding: 1.5rem;
    background-color: var(--light-color);
    text-align: center;
    border-left: 5px solid var(--secondary-color); /* Borda laranja */
}
.depoimento-item h4 { margin: 0; color: var(--primary-color); }

/* WhatsApp */
.whatsapp-cta {
    background: var(--primary-color); /* Fundo azul */
    color: var(--white-color);
    padding: 3rem 1rem;
    text-align: center;
}
.whatsapp-cta p { font-size: 1.3rem; margin-bottom: 1.5rem; }
.whatsapp-btn {
    display: inline-block;
    background-color: #25d366; /* Verde clássico do WhatsApp */
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
}
.whatsapp-btn:hover { background-color: #128c7e; color: white; }

/* Contato */
.contact-form {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--white-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    border-radius: 10px;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { font-weight: 700; margin-bottom: 0.5rem; display: block; color: var(--primary-color); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--primary-color); /* Footer azul */
    color: rgba(255,255,255,0.8);
    padding: 3rem 2rem 1rem;
    text-align: center;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}
.footer-content h3 { color: var(--white-color); margin-bottom: 1rem; }
.footer-links a, .footer-social a {
    color: rgba(255,255,255,0.8);
    display: block;
    padding: 0.3rem 0;
}
.footer-links a:hover, .footer-social a:hover { color: var(--secondary-color); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    font-size: 0.9rem;
}

/* Responsividade (Mobile) */
@media (max-width: 768px) {
    .navbar { padding: 1rem; }
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background: var(--primary-color); /* Menu mobile azul */
        width: 60%;
        height: 100vh;
        display: none;
        flex-direction: column;
    }
    .nav-links a { color: var(--white-color); }
    .burger { display: block; color: var(--primary-color); }
    .carousel-slide img { height: 250px; }
    .hero-content { padding: 1rem; width: 90%; }
    .hero-content h1 { font-size: 1.5rem; }
    .footer-content { text-align: center; }
}