/* ==================================
   IDENTIDADE VISUAL - TEMA CLARO (PROFISSIONAL)
   ================================== */
:root {
    --primary-color: #005A9C; /* Azul Náutico */
    --accent-color: #fdd835;  /* Amarelo Destaque (CTA) */
    --light-bg: #ffffff;      /* Fundo Claro (Branco) */
    --section-bg: #f9f9f9;    /* Fundo de Seção (Cinza claro) */
    --dark-text: #333333;      /* Texto Escuro (Principal) */
    --light-text: #f5f5f5;    /* Texto Claro (para botões/footer) */
    --card-bg: #ffffff;      /* Fundo dos Cards */
    --footer-bg: #1a1a1a;      /* Fundo do Rodapé (Escuro) */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
    --navbar-height: 70px; /* Variável para a altura do menu */
    
    /* 💥 VARIÁVEIS NEON - AZUL SUTIL 💥 */
    --neon-blue: #00aeff; /* Azul Elétrico Sutil */
    --neon-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue), 0 0 20px rgba(0, 174, 255, 0.5);
    --neon-hover-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue), 0 0 60px var(--neon-blue);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

/* Aplicando as novas fontes */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}
/* Intercalando cor de fundo das seções */
.section:nth-of-type(odd) {
    background-color: var(--light-bg); 
}
.section:nth-of-type(even) {
    background-color: var(--section-bg); 
}

/* Ajuste manual para o Hero ter o fundo de imagem */
#hero {
    background-color: transparent !important;
}
/* Inverte a lógica da cor de fundo para começar certo */
body > .section:nth-of-type(even) {
    background-color: var(--section-bg);
}
body > .section:nth-of-type(odd) {
    background-color: var(--light-bg);
}


.section-title {
    font-size: 2.5rem;
    color: var(--primary-color); 
    text-align: center;
    margin-bottom: 20px;
    font-weight: 900;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #666;
}

/* ==================================
   1. CABEÇALHO E NAVEGAÇÃO
   ================================== */
.navbar {
    background-color: var(--footer-bg); 
    border-bottom: 1px solid #333; 
    padding: 0 20px; 
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); 
    height: var(--navbar-height); 
    display: flex; 
    position: fixed; 
    top: 0;
    z-index: 1000;
}
body {
    padding-top: var(--navbar-height);
}


.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; 
}

.logo {
    display: flex; 
    align-items: center;
    text-decoration: none;
    height: 100%; 
}

.logo img {
    height: 50px; 
    width: auto; 
    max-height: calc(var(--navbar-height) - 20px); 
}

/* POR PADRÃO (DESKTOP/GERAL) - MENU VISÍVEL */
.navbar nav ul {
    list-style: none;
    display: flex; 
    transition: transform 0.3s ease-in-out;
}
#main-nav-menu {
    display: flex; 
}


.navbar nav li {
    margin-left: 20px; 
}

.navbar nav a {
    color: var(--light-text); 
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem; 
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: var(--primary-color); 
}

/* Botão Hamburguer: Escondido no Desktop */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.8rem;
    cursor: pointer;
}

/* ==================================
   2. SEÇÃO HERO (PRINCIPAL)
   ================================== */
#hero {
    min-height: calc(100vh - var(--navbar-height)); 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    text-align: left;           
    color: #fff; 
    
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/fundo'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 650px;
    padding-left: 5%; 
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.2;
    color: #fff; 
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 400;
    color: #fff; 
}

/* ==================================
   💥 BOTÕES DE AÇÃO (CTA) - NEON AZUL SUTIL IMPLEMENTADO 💥
   ================================== */
.cta-button, .cta-button-secondary, .cta-button-contact {
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.4s ease;
    display: inline-block;
    letter-spacing: 1px;
    cursor: pointer;
}

/* 1. Botão Primário Neon (Fundo Azul) */
.cta-button.neon-primary, .cta-button-secondary.neon-primary, .cta-button-contact.neon-primary {
    background-color: var(--neon-blue); 
    color: var(--dark-text); 
    border: 2px solid var(--neon-blue);
    box-shadow: var(--neon-shadow);
    animation: pulse-neon 2s infinite alternate; 
}
.cta-button.neon-primary:hover, .cta-button-secondary.neon-primary:hover, .cta-button-contact.neon-primary:hover {
    background-color: #00c7ff; 
    box-shadow: var(--neon-hover-shadow);
    transform: scale(1.05);
    animation: none;
}

/* 2. Botão Secundário Neon (Borda Azul) */
.cta-button.neon-secondary, .cta-button-secondary.neon-secondary, .cta-button-contact.neon-secondary {
    background-color: transparent;
    color: var(--neon-blue);
    border: 3px solid var(--neon-blue);
    box-shadow: var(--neon-shadow);
}
.cta-button.neon-secondary:hover, .cta-button-secondary.neon-secondary:hover, .cta-button-contact.neon-secondary:hover {
    background-color: var(--neon-blue); 
    color: var(--dark-text);
    box-shadow: var(--neon-hover-shadow);
    transform: scale(1.05);
}

/* 3. Botão de Contato Neon (Estilo padrão do Contato - Mantido) */
.cta-button.neon-contact, .cta-button-secondary.neon-contact, .cta-button-contact.neon-contact {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: 2px solid var(--primary-color);
}
.cta-button.neon-contact:hover, .cta-button-secondary.neon-contact:hover, .cta-button-contact.neon-contact:hover {
    background-color: #00407a;
    border-color: #00407a;
    transform: scale(1.05);
}

/* Animação Neon para o Botão Principal (Ajustado para o novo azul) */
@keyframes pulse-neon {
    from {
        box-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue);
    }
    to {
        box-shadow: 0 0 15px var(--neon-blue), 0 0 25px var(--neon-blue);
    }
}

/* Container para centralizar CTAs de seção */
.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ==================================
   3. SEÇÃO DE SERVIÇOS
   ================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.service-card {
    background-color: var(--card-bg); 
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}
.service-icon {
    width: 150px; 
    height: 150px; 
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 1.5rem; color: var(--primary-color); 
    margin-bottom: 15px;
}
.services-note {
    text-align: center; margin-top: 40px;
    font-size: 1rem; color: #555;
}

/* ==================================
   4. SEÇÃO: POR QUE NOS ESCOLHER?
   ================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.why-card { text-align: center; padding: 20px; }
.why-icon {
    font-size: 3rem; color: var(--primary-color);
    margin-bottom: 20px;
}
.why-card h3 {
    font-size: 1.5rem; color: var(--dark-text);
    margin-bottom: 10px;
}

/* ==================================
   5. SEÇÃO SOBRE
   ================================== */
.about-flex {
    display: flex;
    align-items: center;
    gap: 40px;
}
.about-text { flex: 1; }
.about-text p {
    margin-bottom: 15px; font-size: 1.1rem; color: #555;
    font-weight: 300; 
}
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 8px; }
.about-media { flex: 1; }

.about-flex.reverse {
    flex-direction: row-reverse;
}

/* ==================================
   6. NOVA SEÇÃO: GALERIA DE SERVIÇOS
   ================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}
.gallery-grid img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ==================================
   7 & 8. ESTILOS DE MÍDIA (VÍDEO/FOTO)
   ================================== */
.video-container {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.media-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}
.media-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.media-item p {
    font-size: 1.1rem;
    color: #555;
    font-weight: 300; 
}

/* ==================================
   10. NOVA SEÇÃO: PEÇAS ORIGINAIS
   ================================== */
.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 40px;
}
.parts-grid img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ==================================
   11. SEÇÃO: ANTES E DEPOIS 
   ================================== */
#before-after .gallery-grid img {
    border-width: 2px; 
}

/* ==================================
   12. SEÇÃO: MARCAS
   ================================== */
.brands-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.brands-grid img {
    height: 60px; max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%); opacity: 0.7;
    transition: all 0.3s ease;
}
.brands-grid img:hover {
    filter: grayscale(0%); opacity: 1;
}

/* ==================================
   13. SEÇÃO: FAQ
   ================================== */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}
.faq-item h3 {
    font-size: 1.3rem; color: var(--primary-color);
    margin-bottom: 10px; cursor: pointer;
}
.faq-item p { 
    font-size: 1rem; color: #555; 
    font-weight: 300; 
}

/* ==================================
   14. CONTATO
   ================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.contact-info { text-align: center; }
.contact-info h3 {
    font-size: 1.5rem; color: var(--primary-color); 
    margin-bottom: 15px;
}
.contact-info p {
    font-size: 1.1rem; margin-bottom: 15px; color: #555;
    font-weight: 300; 
}

.contact-link {
    color: var(--primary-color); 
    text-decoration: none; font-size: 1.1rem;
    font-weight: 700; transition: color 0.3s ease;
}
.contact-link:hover { text-decoration: underline; }

/* ==================================
   BOTÃO FLUTUANTE WHATSAPP
   ================================== */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px;
    bottom: 30px; right: 30px;
    background-color: #25D366; color: #FFF;
    border-radius: 50px; text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ==================================
   RODAPÉ
   ================================== */
footer {
    text-align: center; padding: 40px 20px;
    background-color: var(--footer-bg); 
    color: var(--light-text); 
    border-top: 5px solid var(--primary-color); 
    font-size: 0.9rem;
}

/* ==================================
   RESPONSIVIDADE E MOBILE-FIRST CORREÇÕES
   ================================== */
@media (max-width: 1024px) {
    
    /* CORREÇÃO CRÍTICA FINAL: Oculta a lista de links do desktop */
    .navbar #main-nav-menu {
        display: none !important; 
    }
    
    /* 2. Mostra o botão de hambúrguer */
    .menu-toggle {
        display: block; 
    }
    
    /* 3. Garante que o container separe o logo do hambúrguer */
    .navbar .container {
        justify-content: space-between; 
    }

    /* ESTILO DO MENU QUANDO ATIVO (ativado pelo script.js) */
    #main-nav-menu.active {
        display: flex !important; /* Força a exibição quando o JS o ativa */
        flex-direction: column;
        position: absolute;
        top: var(--navbar-height); 
        left: 0;
        width: 100%;
        background-color: var(--footer-bg);
        box-shadow: 0 4px 5px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    #main-nav-menu.active li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    #main-nav-menu.active a {
        padding: 15px 20px;
        display: block;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }

    /* HERO: Centralizado no mobile */
    #hero {
        text-align: center; 
        justify-content: center;
        min-height: 80vh; 
        background-attachment: scroll; 
    }
    .hero-content { padding: 0 5%; } 
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    
    .cta-button, .cta-button-secondary, .cta-button-contact {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Layout Coluna para seções flex */
    .about-flex, .about-flex.reverse {
        flex-direction: column;
    }
    
    .about-text .section-title {
        text-align: center; 
    }
    
    .media-grid-2col {
        grid-template-columns: 1fr; 
    }
    
    .brands-grid img {
        height: 40px; opacity: 1;
        filter: grayscale(0%);
    }

    .contact-grid { gap: 30px; }
    
    .whatsapp-float {
        width: 50px; height: 50px;
        font-size: 24px;
        bottom: 20px; right: 20px;
    }

    .section {
        padding: 40px 0;
    }
    
    .gallery-grid, .parts-grid {
         grid-template-columns: repeat(2, 1fr);
         gap: 10px;
    }
    .gallery-grid img {
        height: 150px; 
    }
    .parts-grid img {
        height: 80px;
        object-fit: contain;
    }
}