/* ==========================================================================
   1. VARIÁVEIS E CONFIGURAÇÕES GLOBAIS
   ========================================================================== */
:root {
    --primary-blue: #0E2B5C;    /* Azul FBK */
    --primary-red: #ff0000;     /* Vermelho FBK */
    --dark-red: #cc0000;        /* Vermelho Hover */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

/* ==========================================================================
   2. NAVBAR (CABEÇALHO)
   ========================================================================== */
.navbar {
    transition: all var(--transition-speed);
    padding: 1rem 0;
    background-color: var(--primary-blue) !important;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary-red);
}

.nav-link.btn-orcamento {
    background-color: var(--primary-red) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    transition: all 0.3s ease !important;
    border-radius: 0;
    margin-left: 15px;
}

.nav-link.btn-orcamento:hover {
    background-color: var(--dark-red) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ==========================================================================
   3. HERO SECTION (BANNER COM VÍDEO)
   ========================================================================== */
.hero-video {
    height: 90vh;
    min-height: 400px;
    position: relative;
    z-index: 1;
}

.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    z-index: 10;
    position: relative;
}

.title-line {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
}

.subtitle-line {
    border-left: 3px solid var(--primary-red);
    padding-left: 20px;
    font-size: 1.2rem;
    font-weight: 300;
    color: #f8f9fa;
    line-height: 1.5;
}

.btn-fbk {
    background-color: var(--primary-red);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.btn-fbk:hover {
    background-color: var(--dark-red);
    transform: scale(1.05);
    color: #fff;
}

/* ==========================================================================
   4. SEÇÃO DIFERENCIAIS
   ========================================================================== */
.secao-diferenciais .position-relative {
    padding: 0 !important;
    display: flex;
    justify-content: flex-end;
}

.dif-moldura-azul {
    position: absolute;
    top: 40px; 
    left: 110px;
    width: 70%;
    height: 100%;
    background-color: var(--primary-blue);
    border-radius: 4px;
    z-index: 1;
}

.slick-diferenciais {
    position: relative;
    z-index: 2;
    box-shadow: 15px 15px 30px rgba(0,0,0,0.2);
    border-radius: 4px;
    overflow: hidden;
    background-color: transparent;
}

.slick-diferenciais img {
    height: 600px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.slick-diferenciais:not(.slick-initialized) {
    display: flex;
    overflow: hidden;
    height: 600px;
}

.slick-diferenciais:not(.slick-initialized) div:nth-child(n+2) {
    display: none;
}

/* ==========================================================================
   5. SEÇÃO DEPOIMENTOS
   ========================================================================== */
.bg-depoimentos {
    background-color: var(--primary-blue);
    padding: 80px 0;
    color: #fff;
    position: relative;
}

.titulo-depoimentos {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.depoimento-box {
    background: #fff;
    color: #333;
    padding: 40px;
    border-radius: 5px;
    position: relative;
    margin-bottom: 30px;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.1);
}

.depoimento-box::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 50px;
    border-width: 20px 20px 0 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.depoimento-texto {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    text-align: right;
}

.cliente-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cliente-logo-wrapper {
    width: 140px;
    height: 70px;
    background: #fff;
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cliente-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   6. VITRINE DE PRODUTOS
   ========================================================================== */
.card-produto {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    background-color: #fff;
}

.card-produto:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

.img-vitrine {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-produto:hover .img-vitrine {
    transform: scale(1.1);
}

/* ==========================================================================
   7. SERVIÇOS - ESTILIZAÇÃO COM MOLDURA INTERNA (REVISADO)
   ========================================================================== */
.card-servico {
    background: #fff; 
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

.servico-img-wrapper {
    position: relative;
    height: 500px;
    margin: 10px; 
    overflow: hidden;
    border-radius: 2px; 
}

.servico-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.servico-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(14, 43, 92, 0.95); /* Azul levemente mais sólido para leitura */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px; /* Aumentado para dar mais respiro */
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    text-align: center;
}

/* AJUSTE: Texto em Branco e Espaçamento */
.servico-overlay p {
    color: #ffffff !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* AJUSTE: Botão Vermelho (Usando a classe correta do seu HTML) */
.btn-servico-hover {
    background-color: var(--primary-red) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 20px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease !important;
    outline: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-servico-hover:hover {
    background-color: var(--dark-red) !important;
    transform: scale(1.05);
}

.servico-titulo-footer {
    background-color: #fff;
    padding: 10px 0 15px 0; 
    text-align: center;
}

.servico-titulo-footer h5 {
    color: var(--primary-blue);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.card-servico:hover {
    transform: translateY(-5px);
}

.card-servico:hover .servico-overlay {
    opacity: 1;
}

/* ==========================================================================
   8. SEÇÃO FAQ
   ========================================================================== */
.bg-faq {
    /* O gradiente abaixo cria a camada preta sutil (0.6 de opacidade) */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../img/bg-fabrica-blur.png'); 
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Mantém o efeito parallax elegante */
    
    padding: 100px 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Removido o filtro brightness do container para evitar textos embaçados */
.bg-faq .container {
    position: relative;
    z-index: 2;
}

.faq-titulo {
    font-size: 4rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    color: #fff;
    /* Sombra projetada para dar profundidade ao título branco */
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.8); 
    margin-bottom: 5px;
}

.faq-subtitulo {
    font-size: 1.8rem;
    font-weight: 300;
    font-style: italic;
    color: #fff;
    margin-bottom: 50px;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
}

/* Customização do Accordion Bootstrap */
.accordion-faq .accordion-item {
    background-color: var(--primary-blue);
    border: none;
    margin-bottom: 10px;
}

.accordion-faq .accordion-button {
    background-color: var(--primary-blue);
    color: #fff;
    font-weight: 500;
    padding: 20px;
    border: none;
    box-shadow: none;
}

.accordion-faq .accordion-button:not(.collapsed) {
    color: #fff;
    background-color: rgba(255,255,255,0.05);
}

/* Cor da Seta (ícone) */
.accordion-faq .accordion-button::after {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(320deg); /* Transforma a seta em vermelha */
}

.accordion-faq .accordion-body {
    background-color: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   SEÇÃO MISSÃO, VISÃO E VALORES - AJUSTE DE TAMANHO
   ========================================================================== */
.secao-institucional {
    padding: 60px 0;
    background-color: #fff;
}

.titulo-sessao {
    color: var(--primary-blue);
    font-size: 2.2rem;
    font-weight: 800;
    font-style: italic;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.card-institucional {
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease;
  /*  margin-bottom: 10px; Garante separação extra na vertical no mobile */
}

/* AJUSTE DO TAMANHO DOS ÍCONES */
.img-icon-mvv {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.card-institucional h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-institucional p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
}


/* ==========================================================================
   10. RODAPÉ (FOOTER)
   ========================================================================== */
footer {
    background-color: var(--primary-blue) !important;
    color: #ffffff;
    border-top: 4px solid var(--primary-red);
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-red) !important;
}

footer h5 {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   11. RESPONSIVIDADE & UTILITÁRIOS
   ========================================================================== */

@media (max-width: 768px) {
    .title-line {
        font-size: 2rem;
    }
    
    .hero-video {
        height: 60vh; 
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    /* Diferenciais */
    .secao-diferenciais .position-relative {
        justify-content: center; 
        margin-top: 20px;
        display: block !important; /* Muda de flex para block no mobile */
        padding: 0 15px !important; /* Margem de segurança nas laterais */
    }

    .slick-diferenciais { 
        margin-left: 0; 
        background-color: transparent !important; /* Remove o fundo branco */
        box-shadow: none; /* Remove a sombra que pode estar realçando o branco */
    }

    .slick-diferenciais img {
        height: 400px; /* Altura fixa para a imagem */
        width: 100%;
        object-fit: cover;
    }

    .dif-moldura-azul {
        width: calc(75% - 30px) !important; /* Ocupa a largura total menos as margens */
        left: 0px !important; /* Centraliza conforme o padding */
        top: 20px !important;
        height: 400px !important; /* Forçamos a mesma altura da imagem */
    }

    /* Ajuste do Card de Anos para não sumir ou ficar por baixo */
    .secao-diferenciais .bg-danger {
        bottom: 50px !important;
        left: 50% !important;
        transform: translateX(-50%); /* Centraliza o card de anos no mobile */
    }

    /* Depoimentos */
    .titulo-depoimentos {
        font-size: 1.8rem; 
        text-align: center;
        margin-bottom: 30px;
    }
    
    .depoimento-box {
        padding: 25px;
    }
    
    .depoimento-texto {
        text-align: left;
        font-size: 0.9rem;
    }
    
    .depoimento-box::after {
        right: 20px;
    }
    
    .cliente-info {
        justify-content: center;
    }

    /* Serviços */
    .servico-img-wrapper { height: 380px; }
    
    /* Importante: No mobile, o hover vira o primeiro "toque" */
    .servico-overlay { 
        opacity: 0; /* Começa invisível para mostrar a imagem */
        background-color: rgba(14, 43, 92, 0.95); 
        transition: opacity 0.3s ease;
    }

    /* Quando o usuário toca no card, o overlay aparece */
    .card-servico:active .servico-overlay,
    .card-servico:focus .servico-overlay {
        opacity: 1;
    }

    /* Institucional */
    .img-icon-mvv {
        height: 65px; /* Ainda menor no celular para não ocupar a tela toda */
    }
    
    .titulo-sessao {
        font-size: 1.8rem;
    }    


}

    .section-padding { 
        padding: 80px 0;
    }

    .text-justify { 
        text-align: justify;
    }