/* Reset Básico */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

:root {
    --bg-dark: #0a0a0a;       /* Preto profundo */
    --bg-secondary: #141414;  /* Cinza muito escuro */
    --text-gold: #d4af37;     /* Dourado VIP */
    --text-white: #f5f5f5;
    --text-black: #000000;    /* Cor preta para o menu no fundo branco */
    --text-gray: #a0a0a0;
}

body { background-color: var(--bg-dark); color: var(--text-white); overflow-x: hidden; }

/* Header com Fundo Branco Sólido */
header {
    background-color: #ffffff; /* Branco puro */
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0; /* Borda cinza clara para separar */
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

/* Ajuste do Logo */
.logo img {
    height: 60px;
}

/* Menu de Navegação */
nav ul { display: flex; list-style: none; gap: 20px; }

/* Links do menu são PRETOS para contrastar com o fundo branco */
nav a {
    text-decoration: none;
    color: var(--text-black);
    font-weight: 600;
    transition: 0.3s;
}

/* Ao passar o mouse, muda para dourado */
nav a:hover { color: var(--text-gold); }

/* Botão de Orçamento no Menu */
.btn-contact {
    border: 2px solid var(--text-black);
    padding: 8px 20px;
    border-radius: 5px;
    color: var(--text-black) !important;
    font-weight: 700;
}

.btn-contact:hover {
    background-color: var(--text-black);
    color: var(--text-gold) !important;
}

/* Ícone do Menu Mobile (preto) */
.mobile-menu-icon { display: none; font-size: 24px; cursor: pointer; color: var(--text-black); }

.hero {
    height: 100vh;
    /* Imagem Padrão: Frota-desktop.jpg */
    background: url('./assets/Frota-desktop.jpg'); 
    background-size: cover; /* Preenche tudo */
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
}

/* Textos sobre a imagem da frota (com sombra para leitura) */
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; color: var(--text-white); text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; color: var(--text-white); text-shadow: 1px 1px 2px rgba(0,0,0,0.8); }

/* Botão VIP */
.btn-vip {
    background: var(--text-gold);
    color: #000;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0, 0.3);
}
.btn-vip:hover { background: #b59020; transform: scale(1.05); color: #fff; }

/* Seções (Mantêm o fundo preto/escuro) */
section { padding: 80px 0; }
.section-dark { background-color: var(--bg-secondary); }
.section-light { background-color: var(--bg-dark); }

h2 { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--text-gold); text-transform: uppercase; letter-spacing: 2px; }

/* Cards Serviços */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.card { background: #1f1f1f; padding: 30px; border-radius: 10px; text-align: center; border: 1px solid #333; transition: 0.3s; }
.card:hover { border-color: var(--text-gold); transform: translateY(-5px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1); }
.card i { font-size: 3rem; color: var(--text-gold); margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; color: var(--text-white); }
.card p { color: var(--text-gray); }

/* --- Galeria em Grade (Grid Fixa de 3 Colunas) --- */
.gallery-grid {
    display: grid;
    /* Força exatamente 3 colunas de tamanho igual no PC */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* Espaço entre as fotos */
    padding: 20px 0;
}

/* Responsividade da Galeria (Celular) */
/* Quando a tela for menor que 768px, muda para 1 coluna só */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 coluna (uma foto embaixo da outra) */
    }
}

/* Estilo dos Itens (Mantém igual) */
.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #333;
    background: #000; /* Fundo preto caso a imagem não carregue */
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Altura fixa para manter alinhamento */
    object-fit: cover; /* Corta para preencher sem esticar */
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
    filter: brightness(0.8);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.gallery-item:hover {
    border-color: var(--text-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Footer */
footer { background: #000; padding: 40px 0; border-top: 1px solid #222; }
.footer-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.footer-info h3 { color: var(--text-gold); margin-bottom: 10px; }
.socials { margin-top: 20px; }
.socials i { font-size: 1.5rem; color: var(--text-white); margin-right: 15px; cursor: pointer; transition: 0.3s; }
.socials i:hover { color: var(--text-gold); }
.footer-copy { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

/* WhatsApp */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 3px #999; z-index: 100; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 2px 2px 10px #25d366; }

/* --- Estilo dos Novos Contatos no Footer --- */
.contact-list {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espaço entre o endereço e o e-mail */
}

.contact-list p {
    color: var(--text-gray); /* Texto cinza claro */
    font-size: 1rem;
    display: flex;
    align-items: center; /* Alinha o ícone com o texto verticalmente */
    gap: 10px; /* Espaço entre o ícone e a letra */
}

.contact-list i {
    color: var(--text-gold); /* Ícone Dourado */
    width: 20px; /* Largura fixa para alinhar os ícones um em cima do outro */
    text-align: center;
}

/* Ajuste para mobile (se necessário, para centralizar tudo) */
@media (max-width: 768px) {
    .contact-list p {
        justify-content: center; /* Centraliza o texto no celular */
    }
}

/* Responsividade (Celular) */
@media (max-width: 768px) {
    
    /* CABEÇALHO FIXO */
    header {
        position: fixed;
        width: 100%;
        left: 0;
        top: 0;
        background-color: #fff; /* Garante fundo branco */
    }

    /* FLEXBOX (Logo e Ícone) */
    .header-flex { 
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* IMPORTANTE: Removi o position: relative daqui */
        height: 100%; /* Garante altura */
    }
    
    .mobile-menu-icon { 
        display: block; 
        font-size: 28px;
        color: var(--text-black);
        cursor: pointer;
        z-index: 1001; /* Garante que o ícone fique acima de tudo */
    }
    
    /* MENU GAVETA (CORRIGIDO) */
    nav { 
        display: none; /* Escondido */
        
        /* O segredo: Fixa em relação à tela/header principal */
        position: fixed; 
        top: 70px; /* Mesma altura do seu header aprox */
        left: 0;
        width: 100%; /* Largura total da tela */
        
        background: #ffffff;
        padding: 0; /* Remove padding extra */
        border-top: 1px solid #eee;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        z-index: 999;
    }
    
    /* Quando ativo */
    nav.active { display: block; }
    
    /* ITENS DA LISTA */
    nav ul { 
        flex-direction: column; 
        align-items: center; 
        padding: 20px 0;
        margin: 0;
        width: 100%;
    }
    
    nav a { 
        font-size: 1.3rem; 
        display: block;
        padding: 10px 0;
    }

    /* Outros ajustes visuais */
    .btn-contact { color: var(--text-black) !important; border-color: var(--text-black); }
    .hero-content h1 { font-size: 2rem; }
    .footer-flex { flex-direction: column; text-align: center; gap: 30px; }
    .contact-list p { justify-content: center; }
    .footer-copy { align-items: center; }

    /* Imagem Mobile */
    .hero {
        background: url('./assets/Frota-mobile.jpg');
        background-size: cover;
        background-position: center;
    }
}
/* --- Correção Link Desenvolvedor (Versão Reforçada) --- */
.footer-copy .dev-link {
    color: var(--text-white) !important; /* Força ser branco */
    text-decoration: none !important;    /* Força tirar o sublinhado */
    font-weight: bold;
    transition: color 0.3s;
}

.footer-copy .dev-link:hover {
    color: var(--text-gold) !important; /* Dourado ao passar o mouse */
    text-decoration: none !important;
    cursor: pointer;
}