/* ==========================================================================
   CONFIGURAÇÕES GERAIS
   ========================================================================== */
body {
    font-family: 'Montserrat', sans-serif;
    top: 0 !important;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.fw-black {
    font-weight: 900;
}

/* ==========================================================================
   INDEX.PHP - HERO COM VÍDEO (CORRIGIDO)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    background: #000;
    padding: 60px 0;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 100vw;
    /* Força largura total da janela */
    height: 100%;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* Recorta o vídeo para preencher sem distorcer */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 20%, rgba(0, 0, 0, 0.3));
    z-index: 2;
}

/* Container de conteúdo acima do vídeo */
.z-index-1 {
    position: relative;
    z-index: 3;
}

.hero-section p.text-light {
    color: #f8f9fa !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   BARRA DE SERVIÇOS (NAV-TABS)
   ========================================================================== */
.services-bar {
    width: 100%;
    position: relative;
    z-index: 4;
}

#trackingTabs .nav-link {
    color: white !important;
    /* Força texto sempre branco */
    border-radius: 0;
    margin: 0;
    transition: all 0.3s ease;
    border: none !important;
}

#trackingTabs .nav-link:hover,
#trackingTabs .nav-link.active {
    filter: brightness(1.3);
    color: white !important;
    background-color: inherit;
}

#trackingTabs .nav-link.active {
    position: relative;
}

/* Triângulo indicador na aba ativa */
#trackingTabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #d10000;
    z-index: 10;
}

.bg-red-light {
    background-color: #ff0000 !important;
}

.bg-red-dark {
    background-color: #d10000 !important;
}

.service-box {
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 20px;
}

.service-box i {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.tab-content {
    background-color: #ffffff;
    color: #333;
    position: relative;
    z-index: 5;
}

/* ==========================================================================
   SOBRE / SOLUÇÕES / CONTATO
   ========================================================================== */
.icon-card-red {
    width: 75px;
    height: 75px;
    background-color: #d10000 !important;
    border: 2px solid #ffffff !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.icon-card-red img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1) !important;
}

.values-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    list-style: none;
}

.values-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 2px;
    background: #d10000;
}

.img-veiculo {
    max-height: 45px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: 0.3s ease;
}

.img-veiculo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

#productTabs .nav-link {
    color: #666;
    background: none;
    border-bottom: 3px solid transparent !important;
    transition: 0.3s;
}

#productTabs .nav-link.active {
    color: #d10000 !important;
    border-bottom: 3px solid #d10000 !important;
}

.product-frame-right,
.product-frame-left {
    position: absolute;
    top: 5%;
    width: 90%;
    height: 90%;
    border: 3px solid #d10000;
    z-index: 0;
}

.product-frame-right {
    right: 0;
    border-radius: 30px 0 0 30px;
}

.product-frame-left {
    left: 0;
    border-radius: 0 30px 30px 0;
}

#solucoesTabs .nav-link {
    font-size: 0.8rem;
    background: #f1f1f1;
    color: #555;
    border: 1px solid #ddd !important;
    border-radius: 5px;
    margin: 2px;
}

#solucoesTabs .nav-link.active {
    background: #d10000 !important;
    color: #fff !important;
}

.custom-input {
    border: 2px solid #d10000 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-weight: 500;
}

.contact-cutout {
    position: absolute;
    top: 0;
    left: -50px;
    width: 100px;
    height: 100%;
    background-color: #dc3545;
    transform: skewX(-15deg);
    z-index: 0;
}

/* ==========================================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
        min-height: 60vh;
        background: #000;
    }

    .service-box {
        min-height: 150px;
    }

    .service-box i {
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    /* Ajuste para escalar o vídeo em telas verticais (mobile) */
    .video-bg {
        width: auto;
        min-width: 100vw;
        height: 100%;
    }

    .contact-cutout {
        display: none;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.btn-whatsapp-footer {
    background-color: #00c853 !important;
    color: white !important;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: bold;
}