/* GREM - Transporte Eficiente 
   Estilo Revisado com Correção de Overflow Mobile
*/

:root {
    --primary: #1d4370;      /* Azul Marinho GREM */
    --secondary: #1a1a1a;    /* Preto/Cinza Escuro */
    --accent: #73ff31;       /* Verde Limão Destaque */
    --light: #e9ecef;        /* Cinza Suave (bg-light) */
    --white: #ffffff;
}

/* 1. Trava Global de Segurança (ESSENCIAL PARA O MOBILE) */
html, body {
    max-width: 100%;
    overflow-x: hidden; /* Corta qualquer conteúdo que tente sair pela direita */
    width: 100%;
    margin: 0;
    padding: 0;
}

body { 
    font-family: 'Montserrat', sans-serif; 
    color: var(--secondary); 
    background-color: #f4f4f4;
    background-image: repeating-linear-gradient(
        45deg,
        #eeeeee,
        #eeeeee 1px,
        #f4f4f4 1px,
        #f4f4f4 10px
    );
}

/* Navbar */
.navbar { 
    background: var(--white); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    padding: 15px 0; 
}

.nav-link { 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(29, 67, 112, 0.9) 0%, rgba(0,0,0,0.6) 100%), 
                url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: var(--white);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-title { 
    font-weight: 900; 
    line-height: 1.1; 
    margin-bottom: 20px; 
}
.hero-title span { color: var(--accent); }

/* Card de Formulário */
.form-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    color: var(--secondary);
}

/* Botões */
.btn-primary {
    background: var(--accent) !important;
    border: none;
    padding: 15px;
    font-weight: 700;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-primary:hover { 
    transform: scale(1.02); 
    box-shadow: 0 5px 15px rgba(115, 255, 49, 0.4);
}

/* Seção de Serviços */
.services-section {
    padding: 80px 0;
    background-color: var(--white);
}

.service-box {
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    background: var(--white);
    border: 1px solid #eee;
    height: 100%;
    transition: 0.3s;
}

.service-box:hover { 
    border-color: var(--primary); 
    transform: translateY(-10px);
}

.service-box i { 
    font-size: 3rem; 
    color: var(--primary); 
    margin-bottom: 20px; 
}

/* Seção Galeria (Fundo Cinza Suave Recalibrado) */
#galeria {
    background-color: var(--light) !important;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    overflow: hidden; /* Garante que as fotos no hover não criem scroll */
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gallery-img:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

/* Seção Sobre / Nossa História */
.icon-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary) !important;
    background-color: #f8f9fa; /* Alterado de preto para cinza claro para destacar o ícone */
    border: 1px solid #eee;
}



/* Carrossel de Logos (Parceiros) */
.logo-item img {
    max-height: 110px;
    width: auto;
    margin: 0 auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
    padding: 10px;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 100;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* Ajustes Específicos para Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    .hero-title {
        font-size: 2rem !important;
        word-wrap: break-word;
    }
    /* Remove margens negativas que o Bootstrap usa e que causam o scroll lateral */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .gallery-img { height: 200px; }
    .logo-item img { max-height: 70px; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
}