/* PÁGINA DE PEÇAS - BASEADA NO LAYOUT DE LOCAÇÃO */

.pecas-scope {
    --cor-azul-principal: #243e98;
    --cor-amarelo-destaque: #e3a700;
    --cor-fundo: #f0f2f5;
    --cor-texto-branco: #ffffff;
    --cor-texto-escuro: #1c1e21;
    --cor-whatsapp-verde: #25D366;
    font-family: 'Inter', sans-serif;
    color: var(--cor-texto-escuro);
}

.pecas-scope .container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight { color: #e3a700; }
.highlight-blue { color: #243e98; }

/* ================================ */
/* HERO SECTION (Idêntica ao seu código) */
/* ================================ */
.hero-section {
    position: relative;
    height: 95vh; /* Mantido conforme seu código original */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
    
    /* Ajustes da Navbar */
    margin-top: -90px; 
    padding-top: 140px; 
}

.hero-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #333;
    /* Imagem de fundo */
    background-image: url('https://via.placeholder.com/1920x1080/333333/ffffff?text=Pecas+de+Reposicao'); 
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(36, 62, 152, 0.9);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; 
}

.hero-logo {
    max-width: 180px;
    height: auto;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 650px;
    opacity: 0.9;
    color: #fff;
}

/* BOTÕES */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.pecas-scope .btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}
.pecas-scope .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta {
    background-color: #e3a700;
    color: #1c1e21;
}

.btn-whatsapp {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
}
.btn-whatsapp .icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0rem;
}
.indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background-color: #e3a700;
}

/* SETAS */
.scroll-down-indicators {
    position: absolute;
    bottom: 40px;
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    padding: 0 5%;
    pointer-events: none;
}

.scroll-arrow {
    width: 3.5rem; height: 3.5rem;
    color: #e3a700;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
    animation: bounce 2s infinite;
}
.left-arrow { transform: translateX(-50%); }
.right-arrow { transform: translateX(50%); }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-8px); }
}

/* SEÇÕES */
.how-it-works-section {
    padding: 4rem 0;
    background-color: #f0f2f5;
    position: relative;
    z-index: 4;
}

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 0.5rem; color: #1c1e21; }
.section-header p { font-size: 1.1rem; color: #65676b; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

.step-card {
    background-color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    border-top: 4px solid #243e98;
    transition: transform 0.3s ease;
}
.step-card:hover { transform: translateY(-10px); }

.step-number {
    position: absolute; top: -1.5rem; left: 50%; transform: translateX(-50%);
    width: 3rem; height: 3rem;
    background-color: #243e98;
    color: #ffffff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 700;
    box-shadow: 0 0 0 5px #f0f2f5;
}

.step-icon { margin-bottom: 1rem; }
.step-icon .icon { width: 3rem; height: 3rem; color: #243e98; }
.step-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: #1c1e21; }
.step-card p { color: #65676b; line-height: 1.6; }

.benefits-section { padding: 6rem 0; background-color: #ffffff; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }

.benefit-card {
    text-align: center;
    background-color: #f0f2f5;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.benefit-icon { margin-bottom: 1rem; }
.benefit-icon .icon { width: 3.5rem; height: 3.5rem; color: #243e98; }
.benefit-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; color: #1c1e21; }
.benefit-card p { color: #65676b; line-height: 1.6; }

.final-cta-section {
    background-color: #243e98;
    color: #ffffff;
    padding: 5rem 0;
    text-align: center;
}
.final-cta-section h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 1rem; color: #fff; }
.final-cta-section p { max-width: 600px; margin: 0 auto 2rem auto; font-size: 1.1rem; opacity: 0.9; color: #fff; }
.contact-info { margin-top: 2rem; opacity: 0.8; }

/* FIXADOS */
.fixed-buttons {
    position: fixed; bottom: 20px; right: 20px; z-index: 1000;
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.btn-fixed {
    padding: 12px 20px; border-radius: 50px; text-decoration: none;
    font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center;
    color: #ffffff; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}
.btn-fixed:hover { transform: scale(1.05); }
.btn-alugue { background-color: #e3a700; color: #1c1e21; }
.btn-whatsapp-icon { background-color: #25D366; width: 60px; height: 60px; border-radius: 50%; padding: 0; }
.btn-whatsapp-icon .icon { width: 32px; height: 32px; }

/* MODAL */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background-color: #ffffff; padding: 2rem; border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); width: 90%; max-width: 500px;
    position: relative; transform: scale(0.9); transition: transform 0.3s ease;
    text-align: left;
}
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-content h2 { color: #243e98; margin-bottom: 0.5rem; text-align: center; }
.modal-content p { text-align: center; color: #65676b; margin-bottom: 1.5rem; }
.close-modal-btn { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 2rem; color: #aaa; cursor: pointer; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 700; color: #1c1e21; }
.form-group input { width: 100%; padding: 0.8rem; border: 2px solid #ddd; border-radius: 8px; font-size: 1rem; }
#pecas-form .btn { width: 100%; margin-top: 1rem; }

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .hero-logo { max-width: 200px; }
    .how-it-works-section, .benefits-section { padding: 4rem 0; }
    .steps-grid, .benefits-grid { gap: 3rem 1.5rem; }
    .btn-alugue { display: none; }
    .scroll-down-indicators { bottom: -20px; }
    
    .hero-section {
        padding-top: 120px; 
    }
}
@media (max-width: 480px) {
    .button-group { flex-direction: column; width: 100%; padding: 0 1rem; }
    .btn { width: 100%; }
    .hero-headline { font-size: 2.2rem; }
    .scroll-down-indicators { display: none; }
}
/* ==================================================
   AJUSTES DE RESPONSIVIDADE PARA CELULAR
   Adicione este bloco ao final dos arquivos CSS:
   locacao.css, pecas.css e produtos.css
   ================================================== */

@media (max-width: 768px) {
    /* --- SOLUÇÃO DO PROBLEMA 2: Banner ocupando a tela toda --- */
    .hero-section {
        /* Muda a altura de 95vh para 75vh.
           Isso faz o banner ocupar 75% da tela, deixando 25%
           livre embaixo para mostrar que há mais conteúdo. */
        height: 75vh;
        /* Garante uma altura mínima para não ficar muito "espremido" em telas pequenas */
        min-height: 550px;

        /* --- SOLUÇÃO DO PROBLEMA 1: Navbar cobrindo a logo --- */
        /* Aumenta o espaço no topo para o conteúdo não ficar atrás da navbar.
           Ajuste este valor (130px) se ainda estiver cortando. */
        padding-top: 130px;
        /* Espaço na parte de baixo */
        padding-bottom: 50px;
        /* Alinha o conteúdo mais para o topo do container */
        justify-content: flex-start;
    }

    /* Ajusta o tamanho da logo dentro do banner para ficar proporcional */
    .hero-logo {
        max-width: 130px; /* Logo menor no celular */
        margin-bottom: 1.5rem; /* Espaço abaixo da logo */
    }

    /* Ajusta o tamanho do título principal */
    .hero-headline {
        font-size: 2rem; /* Fonte menor */
        line-height: 1.2;
    }

    /* Ajusta o subtítulo */
    .hero-subheadline {
        font-size: 1rem;
        max-width: 90%; /* Ocupa 90% da largura para não encostar nas bordas */
    }

    /* Ajusta a posição e tamanho das setas indicadoras de scroll */
    .scroll-down-indicators {
        bottom: 20px; /* Fica mais perto da borda inferior */
    }
    .scroll-arrow {
        width: 2.5rem; /* Setas menores */
        height: 2.5rem;
    }
}


/* ==================================================
   CORREÇÃO FINAL: RESPONSIVIDADE CELULAR (Cole no final do arquivo)
   ================================================== */

/* ==================================================
   CORREÇÃO FINAL V2: BANNERS E BOTÕES VISÍVEIS
   (Substitua o bloco @media do final do arquivo por este)
   ================================================== */

/* ==================================================
   CORREÇÃO FINAL V2: BANNERS E BOTÕES VISÍVEIS
   (Substitua o bloco @media do final do arquivo por este)
   ================================================== */

/* ==================================================
   CORREÇÃO FINAL V3: BOTÕES LADO A LADO NO MOBILE
   (Substitua o bloco @media do final dos arquivos .css)
   ================================================== */

/* ==================================================
   CORREÇÃO FINAL (BOTÕES E ÍCONES) - MOBILE
   Substitua o último @media do arquivo por este
   ================================================== */

@media (max-width: 768px) {
    /* 1. Ajuste do Banner (Altura padrão para Peças e Produtos) */
    .hero-section {
        height: auto !important; 
        min-height: 70vh !important;
        padding-top: 130px !important; 
        padding-bottom: 40px !important; 
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    .hero-logo {
        max-width: 120px !important;
        height: auto !important;
        margin-bottom: 10px !important;
        display: block !important;
    }

    .hero-headline {
        font-size: 1.8rem !important;
        line-height: 1.1 !important;
        margin-bottom: 10px !important;
    }

    .hero-subheadline {
        font-size: 0.9rem !important;
        max-width: 95% !important;
        margin-bottom: 20px !important;
    }
    
    /* 2. BOTÕES LADO A LADO */
    .button-group {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        align-items: stretch; /* Garante mesma altura */
        gap: 8px !important; /* Espaço pequeno entre eles */
        width: 100%;
        margin-bottom: 15px;
        padding: 0 10px; /* Margem de segurança nas laterais */
    }
    
    /* Estilo dos botões "espremidos" para caber texto longo */
    .produtos-scope .btn, 
    .pecas-scope .btn {
        width: 50% !important; /* Força dividir a tela */
        padding: 10px 4px !important; /* Padding lateral mínimo */
        font-size: 0.70rem !important; /* Letra pequena para caber "ORÇAMENTO - COMPRA" */
        white-space: nowrap !important; /* Não quebra linha */
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 8px !important; /* Borda menos redonda economiza espaço visual */
    }

    /* 3. RESGATE DO ÍCONE (SVG) */
    .btn .icon, .btn svg {
        display: inline-block !important;
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important; /* OBRIGA o ícone a não sumir */
        margin-right: 4px !important;
        fill: currentColor !important; /* Garante a cor */
    }

    .scroll-down-indicators {
        bottom: 10px !important;
    }
}