/********** Base **********/
:root {
    --primary: #2e4059;
    --secondary: #E93C05;
    --tertiary: #555555;
    --light: #DFE4FD;
    --dark: #011A41;
    --titulo: #29abe3;
     --primary-color: #29abe3;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    color: #333
}

/********** Util **********/
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99
}

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

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

/********** Buttons **********/
.btn {
    transition: .3s;
    font-weight: 500
}

.btn-primary,
.btn-outline-primary:hover {
    color: #fff
}

/********** Navbar **********/
.fixed-top {
    transition: .3s;
    top: 0 !important
}

.navbar .navbar-nav .nav-link {
    padding: 25px 15px;
    color: var(--tertiary);
    font-weight: 500
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary)
}

.navbar-logo {
    height: 48px;
    width: auto;
    display: block
}

@media (max-width:991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #fff
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0
    }
}

/* esconder links até rolar (desktop) */
@media (min-width:992px) {

    .navbar .navbar-nav,
    .navbar .navbar-cta {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity .25s ease, transform .25s ease;
    }

    .navbar.nav-links-visible .navbar-nav,
    .navbar.nav-links-visible .navbar-cta {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .navbar {
        transition: padding .2s ease, background-color .2s ease, box-shadow .2s ease;
    }

    .fixed-top.bg-white.shadow .navbar {
        padding-top: .35rem;
        padding-bottom: .35rem
    }
}

/********** Header / Carousel **********/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

.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
}

/* Full screen no desktop sem faixas (corta bordas se necessário) */
@media (min-width:992px) {

    #header-carousel .carousel-item,
    #header-carousel .carousel-item img {
        height: 100vh
    }

    #header-carousel .carousel-item img {
        width: 100%;
        object-fit: cover;
        object-position: center
    }
}

/* Mobile mantém o padrão cover do template */
@media (max-width:991.98px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover
    }
}

/********** Sections **********/
.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/header.jpg) top left no-repeat;
    background-size: cover
}

.facts {
    background: linear-gradient(rgba(122, 204, 232, .95), rgba(122, 204, 232, .95)), url(../img/bg.png);
}


.callback {
    position: relative
}

.callback::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
        background: linear-gradient(rgba(122, 204, 232, .95), rgba(122, 204, 232, .95)), url(../img/bg.png);

    z-index: -1
}

/********** Project **********/
.project-item,
.project-item .project-img {
    position: relative
}

.project-item .project-img a {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: .3s
}

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

.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: .3s
}

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

.project-item .project-title h4 {
    transition: .3s
}

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

.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: .3s
}

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

/********** Team / Testimonial (essenciais) **********/
.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: .3s;
    z-index: 1
}

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

.team-item .team-text h4 {
    transition: .3s
}

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

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

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

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

.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%)
}

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

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

.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: .3s
}

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

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

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

/********** Parceiros (marquee) **********/
.partners-viewport {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent)
}

.partners-track {
    display: flex;
    gap: 48px;
    align-items: center;
    will-change: transform;
    animation: partners-marquee var(--marquee-duration, 30s) linear infinite
}

.partners-track img {
    height: 185px;
    width: auto;
    filter: grayscale(100%);
    opacity: .85;
    transition: filter .3s, opacity .3s, transform .3s
}

.partners-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px)
}

@keyframes partners-marquee {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

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

.footer .btn.btn-link::before {
    content: "\f105";
    font-family: "Font Awesome 7 Pro"; 
    font-weight: 900; /* solid */
    margin-right: 10px;
}

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

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

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

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

/********** Misc **********/
.navbar-light .navbar-toggler-icon {
    filter: invert(1) brightness(2)
}

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

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


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

.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-square {
    width: 38px;
    height: 38px;
}


/* Cor padrão + contorno leve */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6{
  color:var(--titulo);
  /* WebKit/Blink (Chrome, Edge, Safari) */
  -webkit-text-stroke: 0.4px rgba(0,0,0,.15);
  /* Fallback universal (simula stroke com sombras) */
  text-shadow:
    0 0 0.01em rgba(0,0,0,.18),
    0 0 0.06em rgba(0,0,0,.12);
}

.titulo-servico{
    color: #fff !important;
}


/* Service tabs: ativo = texto/ícone brancos e sem sombra/contorno */
.service .nav .nav-link { transition: background-color .25s ease, color .25s ease; }

.service .nav .nav-link h5{
  display: flex; align-items: center; gap: .5rem; margin: 0;
}

/* estado ativo do botão */
.service .nav .nav-link.active{
  border-color: var(--primary) !important;
  background: var(--primary);
}

/* h5 ativo: branco e sem efeitos */
.service .nav .nav-link.active h5{
  color: #fff !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}

/* ícone dentro do h5 ativo: branco (sobrescreve .text-primary) */
.service .nav .nav-link.active h5 i,
.service .nav .nav-link.active i{
  color: #fff !important;
}

/* fallback: quando NÃO ativo, deixa o ícone na cor primária */
.service .nav .nav-link:not(.active) h5 i{
  color: var(--primary);
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

/* Botões */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transition: 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: #1f8fc2; /* tom mais escuro */
  border-color: #1f8fc2;
}

/* Links */
a,
.link-primary {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover,
.link-primary:hover {
  color: #1f8fc2;
}

/* Ícones, badges e elementos Bootstrap-like */
.badge-primary {
  background-color: var(--primary-color);
  color: #fff;
}



/* Inputs e focus */
.form-control:focus,
select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(41, 171, 227, 0.25);
}



/* Itens do menu */
.navbar .nav-link {
  color: #2e4059 !important;
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}




/* ===== Navbar: topo transparente / scrolled colorida ===== */

/* Desktop: transparente no topo */
@media (min-width: 992px) {
  .navbar {
    background-color: transparent !important;
    box-shadow: none !important;
    transition: background-color .2s ease, box-shadow .2s ease;
  }

  /* Quando rolar (classe já usada por você): aplica a cor 7acce8 */
  .navbar.nav-links-visible {
    background-color: #7acce8 !important;
  }
}

/* Itens do menu: #2e4059 quando visíveis (após rolar) */
.navbar.nav-links-visible .nav-link {
  color: #2e4059 !important;
  font-weight: 500;
  transition: color .2s ease-in-out;
}

/* Hover/ativo continuam brancos (destaque) */
.navbar.nav-links-visible .nav-link:hover,
.navbar.nav-links-visible {
  color: #ffffff !important;
}

/* ===== Logo: oculta até rolar ===== */
@media (min-width: 992px) {
  .navbar-logo {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }

  .navbar.nav-links-visible .navbar-logo {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .25s ease, transform .25s ease, visibility 0s;
  }
}

.btn-light {
    color: #000;
    background-color: #2e4059;
    border-color: #2e4059;
    transition: 0.2s ease-in-out;
}


.text-primary:not(i) {
  font-weight: 500 !important;
}


/* Rodapé com degradê elegante */
.footer {
  background: linear-gradient(135deg, #7acce8 0%, #29abe3 45%, #2e4059 100%);
  color: #fff;
}

/* Copyright combinando com o rodapé, mas ligeiramente mais escuro */
.copyright {
  background: linear-gradient(135deg, #2e4059 0%, #1f3247 100%);
  color: #DFE4FD;
}

.copyright a {
  color: #7acce8;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.copyright a:hover {
  color: #29abe3;
}

.btn-outline-light:hover {
  color: #fff !important;
  background-color: #2e4059 !important;
  border-color: #2e4059 !important;
}

/* Links do rodapé — legíveis sobre o degradê */
.footer .footer-link {
  color: #DFE4FD;                 /* claro, alto contraste */
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
.footer .footer-link:hover {
  color: #7acce8;                 /* azul claro do tema */
}

/* Ícones do rodapé sempre claros */
.footer i {
  color: #DFE4FD;
}

/* Botões sociais no degradê do rodapé */
.footer .btn-outline-light {
  border-color: rgba(255,255,255,.7);
  color: #DFE4FD;
  background: transparent;
}
.footer .btn-outline-light:hover {
  color: #fff !important;
  background-color: #2e4059 !important; /* tua cor escura */
  border-color: #2e4059 !important;
}

/* Títulos e links de lista do rodapé já existentes, ajustando hover */
.footer .btn.btn-link {
  color: #DFE4FD;
  text-decoration: none;
}

/* Copyright já estilizado: reforço de links */
.copyright a {
  color: #7acce8;
}

/* Links do rodapé */
.footer .footer-link {
  color: #DFE4FD;
  text-decoration: none;
  transition: color .3s ease, letter-spacing .3s ease;
}

/* Hover igual ao dos .btn.btn-link */
.footer .footer-link:hover {
  color: var(--primary);         /* usa o mesmo tom azul-escuro */
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: none;
}

/* Ícones */
.footer i {
  color: #DFE4FD;
  transition: color .3s ease;
}


.logo-top {
  height: 20vh !important;              /* altura proporcional (ajuste entre 12–16vh conforme desejar) */
  width: auto !important;              /* mantém proporção original */
  display: block !important;
  object-fit: contain!important;     /* evita distorções */
  object-position: left!important;    /* alinha à esquerda */
}

/* Centraliza automaticamente em telas menores */
@media (max-width: 991.98px) {
  .logo-top {
    display: none !important;
  }
}


@media (max-width: 768px) {
  
  /* espaçamento do carousel abaixo do navbar fixo */
  #header-carousel {
    margin-top: 70px; /* ajuste conforme a altura real do seu navbar */
  }

  /* caixinha tipo “Equipe Especializada” */
  .carousel-caption p {
    border: 2px solid var(--titulo) !important;
    font-weight: 600 !important;
  }
}

@media (max-width: 992px) {

  /* espaçamento do carousel abaixo do navbar fixo (mobile + tablet) */
  #header-carousel {
    margin-top: 70px; /* ajuste conforme a altura do seu navbar */
  }


}


/* ===== Header do modal ===== */
.modal-header.bg-bml {
  background-color: #29abe3;
  border-bottom: none;
}
.modal-header .modal-title {
  color: #2e4059;
  font-weight: 700;
}

/* ===== Variáveis de altura ===== */
:root {
  --modal-header-h: 56px;        /* altura aproximada do header */
  --carousel-indicators-h: 24px; /* altura dos pontinhos */
}

/* ===== Modal: limite ao viewport + fundo escuro ===== */
.modal-dialog {
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
}
.modal-content {
  height: auto;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 10px;
  background-color: #111d2d;
}
.modal-body {
  padding: 0;
  background-color: #111d2d;
  position: relative;
}

/* ===== Carousel no modal ===== */
.modal-body .carousel {
  width: 100%;
  background-color: #111d2d;
  position: relative; /* necessário p/ posicionar os indicadores */
}

/* ===== Slides ===== */
.modal-body .carousel-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - var(--modal-header-h) - var(--carousel-indicators-h));
  object-fit: contain;
  margin: 0 auto;
  background: transparent;
}

/* ===== Indicadores centralizados dentro do modal ===== */
.modal-body .carousel-indicators {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 12px;
  border-radius: 12px;
  margin: 0;                        /* remove espaçamento padrão */
}
.modal-body .carousel-indicators [data-bs-target] {
  background-color: #bbb;           /* ponto inativo */
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 3px;
}
.modal-body .carousel-indicators .active {
  background-color: #29abe3;        /* ponto ativo */
}

/* ===== Controles (setas) ===== */
.modal-body .carousel-control-prev,
.modal-body .carousel-control-next {
  width: auto;
  padding: 0 8px;
  opacity: .9;
}
.modal-body .carousel-control-prev { left: 16px; }
.modal-body .carousel-control-next { right: 16px; }
.modal-body .carousel-control-prev-icon,
.modal-body .carousel-control-next-icon {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
}

/* ===== Hover dos cards da galeria ===== */
.project-img {
  position: relative;
  overflow: hidden;
}
.project-img a.overlay-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .25s ease;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.35);
}
.project-img:hover a.overlay-icon {
  opacity: 1;
}

/* ===== Responsividade ===== */
@media (max-width: 992px) {
  .modal-dialog {
    max-width: 96vw;
    max-height: 92vh;
  }
}
@media (max-width: 576px) {
  .modal-dialog {
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
  }
  .modal-content {
    border-radius: 0;
  }
  .modal-body .carousel-indicators {
    bottom: 8px;
    padding: 3px 10px;
  }
}

/* Desktop: navbar transparente no topo; AZUL ao rolar (.is-scrolled) */
@media (min-width: 992px) {
  .navbar {
    background-color: transparent !important;
    box-shadow: none !important;
    transition: background-color .2s ease, box-shadow .2s ease;
  }
  .navbar.is-scrolled {
    background-color: #7acce8 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.08) !important;
  }
}

/* Mobile/Tablet: mantém azul (JS já aplica .is-scrolled sempre) */
@media (max-width: 991.98px) {
  .navbar {
    background-color: #7acce8 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.08) !important;
  }
}

/* Links quando visíveis */
.navbar .nav-link { color: var(--tertiary); }
.navbar.nav-links-visible .nav-link { color: #2e4059 !important; }

/* Se estiver azul (is-scrolled), garante links #2e4059 */
.navbar.is-scrolled .nav-link { color: #2e4059 !important; }

/* Sentinela do topo para a navbar */
#nav-sentinel{
  display:block;
  height:1px;
  width:1px;
  pointer-events:none;
  opacity:0;
}

/* Desktop: navbar transparente no topo; azul ao rolar */
@media (min-width: 992px) {
  .navbar {
    background-color: transparent !important;
    box-shadow: none !important;
    transition: background-color .2s ease, box-shadow .2s ease;
  }
  .navbar.is-scrolled {
    background-color: #7acce8 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.08) !important;
  }
}

/* Mobile/Tablet: sempre azul (o JS já mantém .is-scrolled ativa) */
@media (max-width: 991.98px) {
  .navbar {
    background-color: #7acce8 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.08) !important;
  }
}

/* Links quando visíveis/azul */
.navbar .nav-link { color: var(--tertiary); }
.navbar.nav-links-visible .nav-link,
.navbar.is-scrolled .nav-link { color: #2e4059 !important; }
