/* ---------------------------------- */
/* 1. VARIÁVEIS E ESTILOS GLOBAIS     */
/* ---------------------------------- */

:root {
    --cor-primaria: #FDB813;
    --cor-secundaria: #FFFFFF;
    --cor-fundo: #1C1C1C;
    --cor-fundo-secundario: #2A2A2A;
    --cor-texto: #E0E0E0;
    --fonte-titulo: 'Montserrat', sans-serif;
    --fonte-corpo: 'Roboto', sans-serif;
}

body {
    font-family: var(--fonte-corpo);
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.7;
    overflow-x: hidden; 
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fonte-titulo);
    font-weight: 700;
    color: var(--cor-secundaria); 
}

/* ---------------------------------- */
/* 2. CLASSES UTILITÁRIAS             */
/* ---------------------------------- */

.section-title {
    color: var(--cor-primaria); 
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--cor-primaria);
    display: inline-block;
}

/* ---------------------------------- */
/* 3. CABEÇALHO E NAVEGAÇÃO           */
/* ---------------------------------- */

.navbar {
    background-color: var(--cor-fundo) !important;
}

.navbar .nav-link {
    font-family: var(--fonte-titulo);
    font-weight: 600;
    color: var(--cor-texto);
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cor-primaria);
    transition: width 0.3s ease-in-out;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--cor-primaria);
}

.navbar .nav-link:hover::after {
    width: 100%;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-toggler {
    border-color: rgba(255,255,255,0.2);
}

/* ---------------------------------- */
/* 4. SEÇÕES DE CONTEÚDO              */
/* ---------------------------------- */

section {
    padding: 80px 0;
    border-bottom: 1px solid var(--cor-fundo-secundario);
}
section:last-of-type {
    border-bottom: none;
}

section.bg-light {
    background-color: var(--cor-fundo-secundario) !important;
}

#sobre-nos img.img-fluid {
    border-radius: 8px;
    border: 3px solid var(--cor-fundo-secundario);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#qualidade .img-fluid {
    cursor: pointer;
    transition: all 0.3s ease;
}
#qualidade .img-fluid:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(253, 184, 19, 0.5);
}

/* ---------------------------------- */
/* 5. CARDS DE SERVIÇO (PROCESSO)     */
/* ---------------------------------- */

.service-card {
    background-color: var(--cor-fundo);
    border: 1px solid #444;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.5);
    border-color: var(--cor-primaria);
}

.service-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.service-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.service-card-body h3 {
    color: var(--cor-primaria);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-card-body p {
    font-size: 0.9rem;
    color: var(--cor-texto);
}

/* ---------------------------------- */
/* 6. VÍDEO INSTITUCIONAL             */
/* ---------------------------------- */

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 1px solid #444;
}

/* ---------------------------------- */
/* 7. SETORES ATENDIDOS (SOLUÇÕES)    */
/* ---------------------------------- */

.solution-card {
    background: var(--cor-fundo-secundario);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    border: 1px solid #444;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.solution-card:hover { transform: scale(1.05); }
.solution-card h6 { margin-top: auto; font-weight: 600; color: var(--cor-secundaria); }

/* ---------------------------------- */
/* 8. CLIENTES                        */
/* ---------------------------------- */

.client-logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.client-logo {
    height: 60px;
    margin: 15px;
    filter: invert(75%) grayscale(50%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.client-logo:hover {
    filter: invert(0%) grayscale(0%);
    opacity: 1;
}

/* ---------------------------------- */
/* 9. CONTATO E FORMULÁRIO            */
/* ---------------------------------- */
.form-control {
    background-color: var(--cor-fundo-secundario);
    border: 1px solid #444;
    color: var(--cor-texto);
}
.form-control:focus {
    background-color: var(--cor-fundo-secundario);
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 0.25rem rgba(253, 184, 19, 0.25);
    color: var(--cor-texto);
}
.form-label {
    color: var(--cor-secundaria);
}
.map-responsive {
    overflow: hidden;
    position: relative;
    height: 350px;
    border-radius: 8px;
}
.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}
.modal-title {
    color: var(--cor-fundo) !important;
}

/* ---------------------------------- */
/* 10. BOTÕES                         */
/* ---------------------------------- */

.btn-primary {
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
    color: var(--cor-fundo);
    padding: 12px 25px;
    font-family: var(--fonte-titulo);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #ffca40;
    border-color: #ffca40;
    color: var(--cor-fundo);
    transform: scale(1.05);
}

/* ---------------------------------- */
/* 11. ANIMAÇÃO DE SCROLL             */
/* ---------------------------------- */

.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================== */
/* 12. RODAPÉ E ÍCONES                             */
/* =============================================== */

.main-footer {
    background-color: var(--cor-fundo-secundario);
    padding-top: 40px;
    padding-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.social-icons a {
    color: var(--cor-texto);
    font-size: 1.8rem;
    margin: 0 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    transform: translateY(-5px);
}

.social-icons a:hover .fa-linkedin { color: #0A66C2; }
.social-icons a:hover .fa-facebook { color: #1877F2; }
.social-icons a:hover .fa-youtube { color: #FF0000; }
.social-icons a:hover .fa-instagram { color: #E4405F; }

.developer-credit {
    font-size: 0.8rem;
    color: #888;
    margin-top: 20px;
}

.developer-credit a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.developer-credit a:hover {
    color: var(--cor-primaria);
    text-decoration: underline;
}

.text-primary {
    color: var(--cor-primaria) !important;
}

/* =============================================== */
/* 13. BOTÃO FLUTUANTE WHATSAPP                    */
/* =============================================== */

#whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s ease;
    transform: scale(0);
    transform-origin: center;
}

#whatsapp-button.visible {
    transform: scale(1);
}

#whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4);
}


/* =============================================== */
/* 14. RESPONSIVIDADE (MEDIA QUERIES)              */
/* =============================================== */

/* Apenas para Celulares (telas menores que 768px) */
@media (max-width: 767.98px) {
    
    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .lead {
        font-size: 1rem;
    }

    .service-card-body {
        padding: 15px;
    }
    .service-card-body h3 {
        font-size: 1.1rem;
    }
    .service-card-body p {
        font-size: 0.85rem;
    }

    #sobre-nos .col-lg-6,
    #qualidade .col-lg-8,
    #contato .col-lg-6 {
        text-align: center;
    }
    
    #qualidade .row .col-md-4 {
        text-align: center;
    }
}

/* =============================================== */
/* 15. AJUSTES DO CARROSSEL PRINCIPAL              */
/* =============================================== */

/* Esconde as setas de navegação do carrossel principal */
#hero-carousel .carousel-control-prev-icon,
#hero-carousel .carousel-control-next-icon {
    display: none;
}