/********** Template CSS **********/

/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary: #355EFC;
    --tertiary: #555555;
    --light: #DFE4FD;
    --dark: #011A41;
}

/* ===== ESTILOS GERAIS ===== */
a {
    color: #eeeeee;
}

/* Tipografia e pesos de fonte */
h1, .h1, h2, .h2, .fw-bold {
    font-weight: 700 !important;
}

h3, .h3, h4, .h4, .fw-medium {
    font-weight: 600 !important;
}

h5, .h5, h6, .h6, .fw-semi-bold {
    font-weight: 500 !important;
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/* ===== SPINNER DE CARREGAMENTO ===== */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* ===== ESTILOS DE BOTÕES ===== */
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

/* Botões quadrados */
.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/* ===== NAVBAR/NAVEGAÇÃO ===== */
.fixed-top {
    transition: .5s;
}

/* Navbar Desktop */
.navbar {
    min-height: 70px;
}

/* Logo da marca */
.navbar-brand img {
    width: 180px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    /* Efeito de brilho na logo */
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9)) 
            drop-shadow(0 0 5px rgba(255, 255, 255, 0.7))
            drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Remove efeito quando navbar fica branco */
.navbar.bg-white .navbar-brand img {
    filter: none;
}

/* Top bar acima do navbar */
.top-bar {
    height: 45px;
    border-bottom: 4px solid rgba(40, 69, 185, 0.07);
}

/* Seta personalizada nos dropdowns */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

/* Links de navegação */
.navbar .navbar-nav .nav-link {
    padding: 25px 15px;
    color: var(--tertiary);
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: blue;
}

/* Estados do navbar com scroll */
.navbar-scrolled .nav-link {
    color: var(--primary) !important;
}

.navbar .nav-link {
    transition: color 0.3s ease;
}

.navbar-scrolled .navbar-brand h1 {
    color: var(--primary) !important;
}

/* ===== NAVBAR PRINCIPAL ===== */
.container-fluid.fixed-top {
    z-index: 1030;
}

.navbar {
    min-height: 80px;
    transition: all 0.3s ease;
}

.navbar-brand img {
    width: 180px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* ===== NAVBAR TOGGLER PROFISSIONAL ===== */
.navbar-toggler {
    border: none;
    background: transparent !important;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Ícone Hamburger Animado */
.navbar-toggler .navbar-toggler-icon {
    width: 24px;
    height: 18px;
    background-image: none !important;
    position: relative;
    transition: all 0.3s ease;
    display: block;
}

.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

.navbar-toggler .navbar-toggler-icon::before {
    top: 0;
}

.navbar-toggler .navbar-toggler-icon::after {
    bottom: 0;
}

.navbar-toggler .navbar-toggler-icon span {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    opacity: 1;
}

/* Animação para X quando menu está aberto */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg) translate(6px, -6px);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span {
    opacity: 0;
    transform: scale(0);
}

/* ===== MENU MOBILE ===== */
@media (max-width: 991.98px) {
    .navbar {
        min-height: 70px;
    }
    
    .navbar-brand img {
        height: 45px;
        max-width: 160px;
    }
    
    /* Menu Collapse - Estilo Profissional */
    .navbar-collapse {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #011a41 0%, #023e8a 100%);
        backdrop-filter: blur(20px);
        padding: 30px 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1029;
        overflow-y: auto;
    }
    
    .navbar-collapse.show {
        transform: translateX(0);
    }
    
    .navbar-collapse.collapsing {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    /* Itens do Menu Mobile */
    .navbar-nav {
        width: 100%;
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 15px;
    }
    
    .navbar-nav .nav-link {
        color: white !important;
        font-size: 1.2rem;
        font-weight: 500;
        padding: 15px 20px !important;
        border-radius: 10px;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    /* Overlay quando menu está aberto */
    .navbar-overlay {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1028;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .navbar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

/* ===== NAVBAR SCROLL EFFECT ===== */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .navbar-toggler .navbar-toggler-icon::before,
.navbar.scrolled .navbar-toggler .navbar-toggler-icon::after,
.navbar.scrolled .navbar-toggler .navbar-toggler-icon span {
    background-color: #333;
}

.navbar.scrolled .nav-link {
    color: #333 !important;
}

/* ===== DROPDOWNS (se tiver) ===== */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }
}

/* Mobile pequeno */
@media (max-width: 576px) {
    .navbar {
        min-height: 65px;
    }
    
    .navbar-brand img {
        height: 40px;
        max-width: 140px;
    }
    
    .navbar-collapse {
        top: 65px;
    }
    
    .navbar-overlay {
        top: 65px;
    }
}

/* ===== HERO/CARROSSEL PRINCIPAL ===== */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 26, 65, 0.3); /* azul escuro com 30% opacidade */
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 2; /* garante que o texto fique acima do overlay */
}

/* Controles do carrossel */
.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

.carousel-control-prev-icon {
    border-radius: 0 3rem 3rem 0;
}

.carousel-control-next-icon {
    border-radius: 3rem 0 0 3rem;
}

/* Ajustes do hero para mobile */
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Ajuste do hero quando menu está aberto */
    .hero-container.adjusted {
        transform: translateY(-80px);
        transition: transform 0.3s ease;
    }
}

/* ===== PAGE HEADER (CABEÇALHO DE PÁGINAS) ===== */
.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/header.jpg) top left no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--tertiary);
}

/* ===== SEÇÃO FACTS (ESTATÍSTICAS) ===== */
.facts {
    background: linear-gradient(rgba(53, 94, 252, .95), rgba(53, 94, 252, .95)), url(../img/bg.png);
}

/* ===== SEÇÃO CALLBACK (FORMULÁRIO) ===== */
.callback {
    position: relative;
}

.callback::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(53, 94, 252, .95), rgba(53, 94, 252, .95)), url(../img/bg.png);
    z-index: -1;
}

/* ===== SEÇÃO FEATURE (CARACTERÍSTICAS) ===== */
.feature .feature-box,
.feature .feature-box * {
    transition: .5s;
}

.feature .feature-box:hover {
    background: var(--primary);
    border-color: var(--primary) !important;
}

.feature .feature-box:hover * {
    color: #FFFFFF !important;
}

.feature-box a {
    color: #011A41;
}

/* ===== SEÇÃO SERVICE (SERVIÇOS) ===== */
.service .nav .nav-link {
    transition: .5s;
}

.service .nav .nav-link.active {
    border-color: var(--primary) !important;
    background: var(--primary);
}

.service .nav .nav-link.active h5 {
    color: #FFFFFF !important;
}

.service .nav .nav-link.active h5 i {
    color: #FFFFFF !important;
}

/* ===== SEÇÃO PROJECT (PROJETOS) ===== */
.project-item,
.project-item .project-img {
    position: relative;
}

/* Overlay de projetos */
.project-item .project-img a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover .project-img a {
    opacity: 1;
}

/* Título do projeto */
.project-item .project-title {
    position: absolute;
    top: 3rem;
    right: 0;
    bottom: 0;
    left: 3rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    z-index: -1;
    transition: .5s;
}

.project-item:hover .project-title {
    background: var(--primary);
    border-color: var(--primary);
}

.project-item .project-title h4 {
    transition: .5s;
}

.project-item:hover .project-title h4 {
    color: #FFFFFF;
}

/* Navegação do carrossel de projetos */
.project-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}

/* ===== SEÇÃO TEAM (EQUIPE) ===== */
.team-item {
    position: relative;
    padding: 4rem 0;
}

.team-item img {
    position: relative;
    z-index: 2;
}

.team-item .team-text {
    position: absolute;
    top: 0;
    right: 3rem;
    bottom: 0;
    left: 3rem;
    padding: 15px;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: .5s;
    z-index: 1;
}

.team-item:hover .team-text {
    background: var(--primary);
    border-color: var(--primary);
}

.team-item .team-text h4 {
    transition: .5s;
}

.team-item:hover .team-text h4 {
    color: #FFFFFF;
}

/* Social da equipe */
.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
}

.team-item:hover .team-social .btn {
    background: #FFFFFF;
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}

/* ===== SEÇÃO TESTIMONIAL (DEPOIMENTOS) ===== */
.testimonial-item {
    position: relative;
    text-align: center;
    padding-top: 30px;
}

.testimonial-item .testimonial-text {
    position: relative;
    text-align: center;
}

.testimonial-item .testimonial-text .btn-square {
    position: absolute;
    width: 60px;
    height: 60px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

/* Setas do testimonial */
.testimonial-item .testimonial-text::before {
    position: absolute;
    content: "";
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: var(--light) transparent transparent transparent;
}

.testimonial-item .testimonial-text::after {
    position: absolute;
    content: "";
    bottom: -59px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: #FFFFFF transparent transparent transparent;
}

/* Carrossel de depoimentos */
.testimonial-carousel .owl-item img {
    margin: 0 auto;
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots {
    margin-top: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--light);
    border-radius: 30px;
    transition: .5s;
}

.testimonial-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    top: 6px;
    left: 6px;
    border-radius: 16px;
    background: var(--light);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    border-color: var(--primary);
}

.testimonial-carousel .owl-dot.active::after {
    background: var(--primary);
}

/* ===== FOOTER ===== */
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

/* Copyright */
.copyright {
    color: var(--light);
    background: #000B1C;
}

.copyright a {
    color: var(--light);
}

.copyright a:hover {
    color: var(--primary);
}

/* ===== SEÇÃO CTA PARALLAX (CHAMADA PARA AÇÃO) ===== */
.cta-parallax {
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(53, 94, 252, 0.6); /* azul translúcido */
}

.cta-content {
    position: relative;
    z-index: 2;
}

/* ===== COMPATIBILIDADE COM BOOTSTRAP ===== */
.collapse:not(.show) {
    display: none;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

/* Garantir que os itens do navbar não quebrem linha */
.navbar > .container-fluid {
    overflow: visible !important;
    flex-wrap: nowrap;
}

.navbar-collapse.collapse {
    overflow: visible !important;
    display: flex !important;
}

.navbar-nav {
    flex-wrap: nowrap;
    overflow: visible;
}

.navbar-nav .nav-item {
    white-space: nowrap;
}

/* Melhorar a visibilidade do toggler */
.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:hover .navbar-toggler-icon::before,
.navbar-toggler:hover .navbar-toggler-icon::after,
.navbar-toggler:hover .navbar-toggler-icon span {
    background-color: #ffffff;
}

/* Quando a navbar estiver no mobile */
@media (max-width: 991.98px) {
    .navbar-collapse.show .nav-link {
        color: var(--primary) !important;
    }
}