/* ======================================
   VARIÁVEIS E CONFIGURAÇÕES GLOBAIS
====================================== */
:root {
  /* Cores em Hexadecimal */
  --azul_claro: #00a7ee;
  --azul: #00225e;
  --preto: #000000;
  --cinza: #f5f5f5;
  --cinza-escuro: #444;
  --vermelho: #F6060F;
  --branco: #ffffff;

  /* Versões RGB */
  --azul_claro-rgb: 0, 167, 238;
  --azul-rgb: 0, 34, 94;
  --preto-rgb: 0, 0, 0;
  --cinza-rgb: 245, 245, 245;
  --cinza-escuro-rgb: 68, 68, 68;
  --vermelho-rgb: 246, 6, 15;
  --vermelho2-rgb: 185, 0, 0;
  --branco-rgb: 255, 255, 255;
}


/* Suaviza rolagem */
html {
  scroll-behavior: smooth;
}


html,
body {
  overflow-x: clip;
  /* Ou hidden, 'clip' é uma opção mais moderna e performática */
}

h1, h2 {
  font-style: italic !important;
}

/* Seções */
section,
footer {
  scroll-margin-top: 90px;
}


/* Botão flutuante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #ffffff;
  color: #25D366;
  font-size: 2.2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: background 0.2s, transform 0.2s;
}

.whatsapp-float:hover {
  background: #f8f8f8;
  color: var(--azul_claro);
  transform: scale(1.08);
}

/* Espaçamento maior entre seções */
.section-spacing {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}



.menu {
  background: linear-gradient(65deg, var(--azul_claro), var(--azul));
  transition: all 0.3s ease;
}











/* ======================================
   HEADER E NAVEGAÇÃO
====================================== */
/* Header fixo */
#main-header {
  transition: transform 0.4s ease, background 0.3s ease;
}

.header-scrolled {
  background: linear-gradient(90deg, rgba(var(--azul_claro-rgb), 0.8) 0%, rgba(var(--azul-rgb), 0.8) 100%) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.header-hidden {
  transform: translateY(-100%);
}

.header-visible {
  transform: translateY(0);
}

/* Separação visual entre itens do menu */
.navbar-nav .nav-item:not(:last-child) {
  position: relative;
  margin-right: 10px;
  padding-right: 10px;
}

.navbar-nav .nav-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-whatsapp-header {
  background: var(--preto);
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  padding: 0.5rem 1.2rem;
  transition: background 0.2s;
  border: none;
}

.btn-whatsapp-header:hover {
  background: var(--azul);
  color: #fff;
}





/* ======================================
GATILHO DE RECIPROCIDADE
====================================== */


.parallax-image-container {
  overflow: hidden;
  /* Mantenha por enquanto, mas saiba que é o que "esconde" */
  position: relative;
  /* Bom para referência se a imagem fosse absolute */
  min-height: 350px;
  /* Ajuste este valor! Deve ser próximo ou um pouco maior que a altura esperada da sua imagem (valvula_footer.png) quando ela está na coluna col-md-5. */
  /* Você pode precisar inspecionar a altura da imagem sem o parallax para saber um bom valor. */
}

#parallaxValvulaFooter {
  position: relative;
  /* Isso está correto */
  /* Adicione para garantir que a imagem não seja afetada por outros alinhamentos verticais estranhos inicialmente */
  display: block;
  /* Garante que se comporte como bloco */
  margin-left: auto;
  margin-right: auto;
  /* Para centralizar se text-align:center no pai não for suficiente com transform */
}








/* ======================================
   CARROSSEL HERO
====================================== */
/* Estrutura básica do carrossel */
.hero-section {
  height: 100vh;
  /* Altura de 100% da viewport - ESTA SERÁ A REGRA DOMINANTE */
  padding: 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-inner {
  height: 100%;
  width: 100%;
}

.carousel-item {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center center;
  /* Centraliza a imagem */
  position: relative;
  transition: transform 1.5s ease-in-out;
}

/* Slide 1 - Desktop */
.carousel-item:nth-child(1) {
  background-image: url('../images/banner_1.jpg');
}

/* Slide 2 - Desktop */
.carousel-item:nth-child(2) {
  background-image: url('../images/banner_2.jpg');
}

/* Overlay gradient */
/*.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(0, 156, 222, 0.4) 60%, rgba(0, 34, 94, 0.4) 100%);
}
*/

/* Configuração do carrossel */
#heroCarousel {
  height: 100%;
  width: 100vw;
  /* Largura de 100% da viewport */
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
}

#heroCarousel .carousel-item {
  height: 100%;
  width: 100%;
}

#heroCarousel .carousel-item .container-fluid {
  height: 100%;
  display: flex;
  /* AJUSTE AQUI para centralizar ou alinhar o texto dentro do carrossel */
  align-items: center;
  /* Mude para flex-start (topo) ou flex-end (base) */
  justify-content: center;
  /* Mude para flex-start (esquerda) ou flex-end (direita) */
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: hidden;
}

/* Content box - AJUSTE AQUI para mudar o posicionamento e estilo da caixa de texto */
.carousel-content {
  position: relative;
  z-index: 2;
  background: none !important;
  padding: 10px;
  /* Ajuste o padding para mudar o espaçamento interno */

  margin-top: -220px;
}

.carousel-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.carousel-text {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Animações para o conteúdo do carrossel */
@keyframes fadeInDown {
  from {
    opacity: 0;
    /* AJUSTE AQUI: Altere o valor -30px para mudar a distância inicial do texto ao entrar */
    transform: translate3d(0, -30px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 0;
    /* AJUSTE AQUI: Altere o valor 30px para mudar a distância final do texto ao sair */
    transform: translate3d(0, 30px, 0);
  }
}




/* Aplicando a animação ao conteúdo do carrossel */
.carousel-item.active .carousel-content {
  /* AJUSTE AQUI: Altere 0.8s para mudar a duração da animação de entrada
                  Altere 0.5s para mudar o atraso antes da animação começar */
  animation: fadeInDown 0.8s ease-out 0.5s forwards;
  opacity: 0;
  /* Começa invisível */
}

/* Garantir que o conteúdo fique invisível antes da animação */
.carousel-item:not(.active) .carousel-content {
  opacity: 0;
}

/* Estilização para os controles do carrossel */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 60%;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  padding: 10px;
}

/* Estilização para os indicadores */
.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: white;
  border: 2px solid rgba(0, 0, 0, 0.2);
  margin: 0 5px;
}

.carousel-indicators button.active {
  background-color: var(--azul_claro);
}


/* ======================================
   BOTÕES E ELEMENTOS DE INTERAÇÃO
====================================== */
/* Botão WhatsApp CTA */
.btn-whatsapp-cta {
  background: var(--azul);
  color: #fff !important;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, transform 0.2s;
}

.btn-whatsapp-cta:hover {
  background: var(--azul_claro);
  color: #fff !important;
  transform: translateY(-2px) scale(1.04);
}

/* Botão de contato grande */
.btn-contato-grande {
  font-size: 1.5rem !important;
  font-weight: bold !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s ease !important;
  margin-top: 20px !important;
  border-radius: 50px !important;
  min-width: 350px !important;
  padding: 15px 30px !important;
}

.btn-contato-grande:hover {
  transform: translateY(-5px) scale(1.05) !important;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4) !important;
}

/* Animação de pulso para botões */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }
}


@keyframes pulse2 {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.pulsando {
  animation: pulse2 3s infinite;
}

.whatsapp-float:hover {
  background: #f8f8f8;
  color: var(--azul_claro);
  transform: scale(1.08);
}

/* ======================================
   COMPONENTES PERSONALIZADOS
====================================== */
/* Estilos para box-custom-2 e o background rotacionado */

/* Estilo para a seção de contato */
.sessao_contato {
  padding-top: 120px !important;
  padding-bottom: 120px !important;
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul_claro) 80%);
  position: relative;
}

/* Box estilizado para a seção de contato */
.contato-box {
  position: relative;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  overflow: hidden;
  padding: 60px 40px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Overlay com gradiente */
.contato-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(var(--azul_claro-rgb), 0.3),
      rgba(var(--azul-rgb), 0.5));
  border-radius: 30px;
  z-index: 1;
}

/* Ajuste para o z-index do conteúdo */
.z-2 {
  z-index: 2;
  position: relative;
}

/* Ajustes para a caixa de informações de contato */
.contato-info {
  background: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contato-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* Ajustes para o logotipo */
.contato-logo {
  background: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contato-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.contato-logo-img {
  max-width: 250px;
  margin-bottom: 15px;
}

/* Responsividade */
@media (max-width: 991px) {
  .contato-box {
    padding: 40px 20px;
  }

  .contato-info,
  .contato-logo {
    margin-bottom: 30px;
  }
}


/* ======================================
   FOOTER
====================================== */

.contato_footer {
  padding: 45px;
  background: #000000;
  color: #fff;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  border-radius: 30px;
  text-align: center !important;
  display: inline-block !important;
}

.contato_footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.2rem;
}

.contato_footer a:hover {
  color: var(--azul_claro);
  text-decoration: none;
}


.botao_preto {
  background: var(--preto);
  color: #fff !important;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, transform 0.2s;
  padding: 10px 20px !important;
}

.botao_preto:hover {
  background: var(--azul);
  color: #fff !important;
  transform: translateY(-2px) scale(1.04);
}


footer {
  position: relative;
  background: linear-gradient(to bottom,
      rgba(var(--azul-rgb)),
      rgba(var(--azul_claro-rgb)));

  color: white;
  padding: 3rem 1rem;
  z-index: 1;
  overflow: hidden;
  margin-top: 200px;
}


/* ======================================
   SEÇÕES ESPECÍFICAS
====================================== */
/* Hero Section */
.hero-section .hero-img {
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Carrossel de produtos */
#produtos-carousel .card {
  border-radius: 18px;
  overflow: hidden;
}

#produtos-carousel .card-img-top {
  height: 250px;
  object-fit: cover;
  background: var(--cinza);
}

#produtos-carousel .card-title {
  padding-top: 20px;
  color: #FFF;
  font-weight: 700;
  text-align: center;
  font-size: 30px;
}

/* Make product carousel container slightly wider */
#produtos .container {
  max-width: 90%;
}

/* Provas sociais */
#depoimentos .card {
  border-radius: 16px;
  background: #fff;
}

#depoimentos .card-text {
  font-size: 1.1rem;
  color: var(--cinza-escuro);
}

/* Gatilho de reciprocidade */
#tabela-precos {
  background: var(--cinza);
  border-top: 2px solid #e0e0e0;
  border-bottom: 2px solid #e0e0e0;
}

/* Footer com formulário de orçamento */
.footer-orcamento {
  background: #fff;
  border-top: 4px solid var(--azul_claro);
}

.footer-orcamento .card {
  border-radius: 18px;
  border: none;
}

.footer-orcamento h4 {
  font-weight: 700;
}


/* ======================================
   AOS ANIMAÇÕES
====================================== */
/* AOS animações customizadas */
[data-aos] {
  transition-property: opacity, transform;
}

/* ======================================
   RESPONSIVIDADE
====================================== */
/* Media queries para responsividade e rotação */
@media (min-width: 768px) {
  .box-custom-2 {
    padding: 80px 50px 100px;
  }
}

@media (min-width: 1200px) {
  .box-custom-2 {
    padding: 20px 25px 50px 60px;
  }

  .box-custom-2-bg {
    top: -32%;
    right: -80%;
    bottom: -40%;
    left: -10%;
    margin-right: 0;
    transform: rotate(-18.5deg);
    border-radius: 8%;
    border: 1px solid transparent;
  }

  .box-custom-2-bg-inner {
    top: -10%;
    right: -5%;
    bottom: -5%;
    left: -12%;
    transform: rotate(18.5deg);
    border: 1px solid transparent;
  }

  .box-custom-2-inner {
    margin-left: 0;
    max-width: none;
  }
}

@media (min-width: 1740px) {
  .box-custom-2 {
    padding: 0 25px 65px 60px;
  }

  .box-custom-2-bg {
    top: -40%;
    left: -5%;
  }
}

@media (max-width: 991px) {
  .hero-section {
    padding-top: 90px;
    text-align: center;
  }

  .footer-orcamento .ps-lg-5 {
    padding-left: 0 !important;
  }

  /* Ajustes para o menu em dispositivos móveis */
  .navbar-nav .nav-item:not(:last-child) {
    margin-right: 0;
    padding-right: 0;
    margin-bottom: 5px;
  }

  .navbar-nav .nav-item:not(:last-child)::after {
    display: none;
  }

  .navbar-nav .nav-link {
    padding: 10px 15px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
  }

  .navbar-nav .nav-item:last-child {
    margin-top: 10px;
  }
}

@media (max-width: 767px) {

  .hero-section,
  .carousel-inner,
  .carousel-item {
    height: 700px;
  }

  .carousel-item:nth-child(1) {
    background-image: url('../images/banner_1_mobile.jpg');
    background-position: center;
  }

  .carousel-item:nth-child(2) {
    background-image: url('../images/banner_2_mobile.jpg');
    background-position: center;
  }

  .carousel-content {
    padding: 20px;
    margin: 0 15px;
    background: linear-gradient(90deg, rgba(var(--vermelho2-rgb), 0.8) 0%, rgba(var(--vermelho-rgb), 0.8) 100%) !important;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: -180px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .display-4 {
    font-size: 2rem;
  }

  .hero-section .hero-img {
    max-width: 90vw;
    margin-top: 2rem;
  }

  #produtos-carousel .card-img-top {
    height: 300px;
  }
}

/* ======================================
   SEÇÃO DE CONTATO MODERNA SIMPLIFICADA
====================================== */

.contato2 {
  position: relative;
}

.contato {
  position: absolute;
}

.contato-section {
  position: relative;
  background-image: url('../images/contato.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  height: 250px;

  /* Preparação para animação de entrada de cima para baixo */
  transform: translateY(-150px);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -10;
}

/* Classe que será adicionada via JavaScript */
.contato-section.visible {
  transform: translateY(0);
}


@media (max-width: 768px) {
  .contato-section {
    position: relative;
    background-image: url('../images/contato3.png');
    height: 580px;

    /* Preparação para animação de entrada de cima para baixo */
    transform: translateY(-700px);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -10;
  }
}





/* Título da seção de contato */
.contato-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Cards de informações de contato */
.contato-info-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.contato-info-card:hover {
  transform: translateY(-5px);

}

/* Ícones de contato */
.contato-icon {
  font-size: 2.5rem;
  color: var(--azul_claro);
  margin-bottom: 0;
}

/* Links de contato */
.contato-link,
.contato-link-email {
  text-decoration: none;
  font-size: 2.1rem;
  transition: color 0.3s ease;
  display: block;
  margin-top: 0;
  color: #FFF;
  line-height: 2rem;
}

.contato-link {
  text-align: center;
}



.contato-link:hover i,
.contato-link:hover h5,
.contato-link:hover p {
  color: var(--azul_claro) !important;
  box-shadow: none;
}



.meio h1 {
  font-size: 4.5rem;
  line-height: 1.2;
  margin-bottom: 0;
  color: #FFF;
}

.meio h2 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 0;
  color: #FFF;
  font-weight: bold !important;
  font-style: italic !important;

}



/* ======================================
MEIO
====================================== */

/* Estilos para o contêiner da imagem com parallax */
.image-parallax-container {
  position: relative;
  /* Padrão para mobile: em fluxo, normal */
  z-index: 1;
  /* Para evitar problemas de sobreposição com outros elementos, se houver */
}

/* Ajustes para telas de celular */
@media (max-width: 767.98px) {

  /* Abaixo do breakpoint 'md' do Bootstrap */
  .image-parallax-container {
    margin-bottom: 30px;
    /* Adiciona um espaço abaixo da imagem antes do texto no mobile */
  }

  .meio {
    /* Classe da coluna de texto */
    margin-top: 20px;
    /* Adiciona um espaço acima do texto, caso a imagem fique muito colada */
  }
}

/* Estilos para desktop (md e acima - 768px por padrão no Bootstrap 5) */
@media (min-width: 768px) {
  .image-parallax-container {
    position: absolute;
    /* A sua biblioteca de parallax JavaScript (ou seu próprio código)
       deverá cuidar das propriedades top, left, transform para o efeito.
       Se precisar definir manualmente a posição inicial no desktop: */
    left: 0;
    /* Ou o valor que alinhe com a coluna col-md-5 */
    /* Exemplo para centralizar verticalmente, mas o JS parallax deve controlar isso:
    top: 50%;
    transform: translateY(-50%);
    */
    /* A largura pode ser herdada do col-md-4 ou definida aqui se necessário.
       Ex: width: calc((100% / 12) * 4); */
  }

  /* Garante que o texto no desktop não comece muito à esquerda se a imagem absoluta for estreita.
     Com a estrutura de col-md-5 (vazio) + col-md-7 (texto), o Bootstrap já deve alinhar bem.
     O col-md-7 começará após o espaço do col-md-5. A imagem absoluta
     será posicionada DENTRO ou PRÓXIMO da área do col-md-5.
  */
  /* Se o texto precisar de um ajuste específico por causa da imagem absoluta:
  .meio {
    padding-left: 15px; // Exemplo
  }
  */
}

/* Ajuste para o texto no mobile, caso o text-md-start não seja suficiente */
.meio.text-center {
  text-align: center !important;
  /* Força centralização no mobile */
}

@media (min-width: 768px) {
  .meio.text-md-start {
    text-align: left !important;
    /* Força alinhamento à esquerda no desktop */
  }
}




/* ======================================
PRODUTOS
====================================== */

.produtos {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #FFF;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  margin: 10px;
  min-height: 720px;
}

.produtos h1 {
  font-size: 2.2rem;
  margin-top: 10px;
  color: -var(--preto);
  text-align: center;
  font-weight: normal;
  margin-bottom: 50px;
}

.produtos h2 {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #333;
  text-align: center;
  font-weight: normal;
}

.produtos h3 {
  font-size: 1.8rem;
  margin-top: 10px;
  color: #333;
  text-align: center;
  font-weight: normal;
  font-style: italic;
}

.titulo_produto {
  font-size: 1rem;
  margin-top: 10px;
  color: #333;
  text-align: center;
  font-weight: normal;
}