@import url(index/containerInicioIndex.css);
@import url(index/PrincipiosContainer.css);
@import url(index/containerServicos.css);
@import url(index/containerValvula.css);
@import url(index/containerSegmentos.css);
@import url(index/entreEmContatoContainer.css);
@import url(index/telemetriaResumidaContainer.css);

/* QuemSomos */

@import url(quemSomos/inicioQuemSomos.css);
@import url(quemSomos/ATechmeterQs.css);
@import url(quemSomos/NossaTrajetoria.css);
@import url(quemSomos/localizacaoTechmeter.css);

/* Telemetria */
@import url(Telemetria/inicioTelemetria.css);

/* Nossos Servicos */
@import url(NossosServicos/servicos.css);

/* Empresa (teaser home) */
@import url(index/containerEmpresa.css);

/* Componentes globais */
@import url(floatContactBtn.css);


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rubik", sans-serif;
}

img,
video {
  max-width: 100%;
}

:root {
  --VermelhoPadrao: #c62026;
  --AzulEscuroPadrao: #1c4f8f;
  --AzulClaroPadrao: #eaf2fb;
  --cor-texto: #333;
  --cor-fundo: #f5f5f5;
}

/* efeitos */

@keyframes appear {
  from {
    opacity: 0;
    scale: 0.7;
    /* transform: translateX(-100px); */
  }
  40% {
    opacity: 1;
    scale: 1;
    /* transform: translateX(0); */
  }
}

@keyframes appear2 {
  from {
    opacity: 0;
    transform: translateX(250px);
  }
  50% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes appear3 {
  from {
    opacity: 0;
    transform: translateX(-250px);
  }
  50% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* btns */

.btnHeader {
  text-decoration: none;
  color: white;
  background-color: var(--VermelhoPadrao);
  padding: 0.7rem 2rem;
  border-radius: 0.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: ease-in-out 0.3s;
  box-shadow: 0 0 5px 2px rgba(70, 70, 70, 0.3);
}

.btnHeader:hover {
  background-color: #ffffff;
  color: var(--VermelhoPadrao);
}

.faleConosco:hover {
  color: #ffffff;
  background-color: var(--AzulEscuroPadrao);
}

.btnForm{
  width: 100%;
  padding: 1rem;
  color: white;
  font-weight: 700;
  background-color: var(--VermelhoPadrao);
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 10px 2px var(--VermelhoPadrao);
}

.btnForm:hover{
  transform: scale(1.02);
  transition: .2s ease-in-out;
  background-color: #fff;
  color: var(--AzulEscuroPadrao);
  box-shadow: 0 0 10px 2px #ffffff;
  border-radius: .7rem;
}

/* cortes laterais */


.corte-esquerda {
  position: absolute;
  left: 0;
  background-color: var(--VermelhoPadrao);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  width: 6%;
  height: 100%;
  animation: appear3;
  animation-timeline: view();
}

.corte-direita {
  position: absolute;
  right: 0;
  background-color: var(--VermelhoPadrao);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  width: 6%;
  height: 100%;
  animation: appear2;
  animation-timeline: view();
}

.corte-esquerdaQS {
  position: absolute;
  left: 0;
  background-color: var(--VermelhoPadrao);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  width: 6%;
  height: 100%;
  animation: appear3;
  animation-timeline: view();

}

.corte-direitaQS {
  position: absolute;
  right: 0;
  background-color: var(--VermelhoPadrao);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
  width: 6%;
  height: 100%;
  animation: appear2;
  animation-timeline: view();
}

/* header */

.containerHeader {
  top: 0;
  position: -webkit-sticky;
  position: sticky;
  width: 100%;
  z-index: 4000;
}

/* o header e sticky, entao encolher headerTop/nav reduz a altura total
   da pagina - isso pode fazer o navegador reajustar o scrollY pra
   baixo do limite que decide se colapsa, o header volta a expandir, a
   pagina cresce de nov, o scroll passa o limite de novo... um loop que
   pisca a barra sem parar. a defesa contra isso e o "hysteresis" no JS
   (stickyHeader.js): colapsa só depois de passar bem do limite de
   expandir, entao a variacao de altura nunca alcanca o outro limite. */
.navContainer {
  max-width: 100%;
  margin: 0 auto;
  transition: max-width 0.35s ease-in-out, margin 0.35s ease-in-out,
    border-radius 0.35s ease-in-out, box-shadow 0.35s ease-in-out,
    border-color 0.35s ease-in-out, padding 0.35s ease-in-out;
}

.containerHeader.scrolled .navContainer {
  padding: 0.6rem 4%;
  border-bottom-color: var(--VermelhoPadrao);
  box-shadow: 0px 4px 16px 0px rgba(4, 14, 38, 0.15);
}

.headerTop {
  overflow: hidden;
  max-height: 120px;
  transition: max-height 0.35s ease-in-out, padding 0.35s ease-in-out, opacity 0.2s ease-in-out;
}

.containerHeader.scrolled .headerTop {
  max-height: 0;
  padding: 0;
  opacity: 0;
}
.headerTop {
  padding: 1rem 0;
  background-color: var(--AzulEscuroPadrao);
  font-size: 0.9rem;
  font-weight: 200;
  width: 100%;
}

.boxHeaderTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0rem 4rem;
}

.redesHeaderTop {
  display: flex;
  gap: 1rem;
  color: white;
}

.emailHeaderTop {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.redesHeaderTop i {
  font-size: 1.2rem;
  color: var(--VermelhoPadrao);
}

.infsHeaderTop {
  display: flex;
  gap: 1rem;
}

.infs i {
  margin-right: 10px;
  font-size: 1.2rem;
  color: var(--VermelhoPadrao);
}

.infs {
  display: flex;
  color: white;
}

.navContainer {
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4%;
  border-bottom: 3px solid var(--AzulEscuroPadrao);
  box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.1);
}

.logo {
  position: relative;
}

.logo  img:hover{
  transform: rotate(-2deg);
  transition: 0.3s ease-in-out;

}



.navContainer img {
  height: 58px;
  width: auto;
}

.navLinks ul {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.navLinks ul li {
  list-style: none;
}

.navLinks ul li a {
  position: relative;
  text-decoration: none;
  color: black;
  font-size: 1.1rem;
  padding-bottom: 0.3rem;


}

.navLinks ul li a span{
  color: #c62026;
}

.navLinks ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--VermelhoPadrao);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease-in-out;
}

.navLinks ul li a:hover {
  color: var(--VermelhoPadrao);
}

.navLinks ul li a:hover::after {
  transform: scaleX(1);
}

.navLinks ul li a.active {
  color: var(--VermelhoPadrao);
  font-weight: 600;
}

.navLinks ul li a.active::after {
  transform: scaleX(1);
}

.backToTop {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background-color: var(--VermelhoPadrao);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(4, 14, 38, 0.25);
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.backToTop:hover {
  background-color: var(--AzulEscuroPadrao);
}

/* PAGINA DE CONTATO */

.bannerContato {
  text-align: center;
  padding: 5rem 1.5rem 3.5rem;
  background-color: var(--AzulEscuroPadrao);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bannerContato .eyebrowServicos {
  color: var(--VermelhoPadrao);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.bannerContato h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.subBannerContato {
  color: #a8b3cc;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.6;
}

.cardsContato {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  transform: translateY(-2.5rem);
}

.cardContatoHorario {
  cursor: default;
}

.cardContato {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background-color: #fff;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-decoration: none;
  box-shadow: 0 15px 35px rgba(4, 14, 38, 0.15);
  transition: 0.3s ease-in-out;
}

.cardContato:hover {
  transform: translateY(-6px);
}

.cardContato i {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--VermelhoPadrao);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.cardContato h2 {
  color: var(--AzulEscuroPadrao);
  font-size: 1.05rem;
}

.cardContato p {
  color: #5b6685;
  font-size: 0.9rem;
}

/* equipe especializada (contato) */

.equipeContato {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.txtEquipeContato {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.txtEquipeContato .eyebrowServicos {
  color: var(--VermelhoPadrao);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.txtEquipeContato h1 {
  color: var(--AzulEscuroPadrao);
  font-size: 2rem;
  margin: 0.5rem 0 1.2rem;
  line-height: 1.25;
}

.descEquipeContato {
  color: #5b6685;
  line-height: 1.65;
}

.gridEquipeContato {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* mapa (contato) */

.mapaContato {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.mapaContatoWrapper {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(4, 14, 38, 0.12);
  border: 1px solid #eef0f5;
  line-height: 0;
}

.mapaContatoWrapper iframe {
  width: 100%;
  height: 420px;
  display: block;
}

/*  FORMULARIO */

.containerFormulario{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem;
  height: 80vh;
  background-color: var(--AzulEscuroPadrao);
  box-shadow: 0 5px 30px  #000;
}


.containerFormulario .corte-esquerda {
  position: absolute;
  left: 0;
  background-color: var(--VermelhoPadrao);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  width: 6%;
  height: 100%;
  animation: appear3;
  animation-timeline: view();
}

.containerFormulario .corte-direita {
  position: absolute;
  right: 0;
  background-color: var(--VermelhoPadrao);
  clip-path: polygon(100% 0, 0% 50%, 100% 100%);
  width: 6%;
  height: 100%;
  animation: appear2;
  animation-timeline: view();
}

.containerFormulario .txtFormulario{
  width: 50%;
  animation: appear3;
  animation-timeline: view();
}

.containerFormulario .txtFormulario h1{
  font-size: 3rem;
  color: white;
}

.formulario{
  width: 400px;
  height: 500px;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--AzulEscuroPadrao);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.30);
  border: 2px solid #fff;
  animation: appear;
  animation-timeline: view();
}

.formulario form{
  width: 100%;
}



.formulario input, textarea{
  width: 100%;
  margin-top: 5px;
  padding: 1rem 1rem;
}

.formulario input:focus,
.formulario textarea:focus {
  border: 2px solid var(--VermelhoPadrao);
  outline: none;
}

.formulario input{
  height: 40px;

  border: none;
}

.formulario textarea{
  height: 150px;
  border: none;
}

.formulario form label{
  color: white;
  font-weight: 600;
}

/* footer */

.footer{
  position: relative;
  width: 100%;
  background-color: #061331;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding: 4.5rem 8% 3rem;
}

.boxFooter{
  padding: 0;
}

.boxFooter p{
  color: #ccc;
}

.aTechMeterContainer{
  display: flex;
  align-items: start;
  gap: 1.5rem;
  justify-content: center;
  flex-direction: column;
  animation: appear3;
  animation-timeline: view();
}

.boxFooter h2{
  color: var(--VermelhoPadrao);
  font-size: 1.5rem;
  margin-bottom: .7rem;
}

.aTechMeterFooter p{
  margin-bottom: 1rem;
  font-size: 1rem;

}

.imgRedesFooter i{

  color: var(--VermelhoPadrao);
  font-size: 2rem;
}

.navegacaoFooterContainer{
  animation: appear;
  animation-timeline: view();
}



.navList{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.navList a {
  text-decoration: none;
  font-size: 1rem;
  color: #ccc;
  text-decoration: underline;
}

.navList a:hover{
  color: var(--VermelhoPadrao);
}

.produtosFooterContainer{
  animation: appear;
  animation-timeline: view();
}

.duvidasFooterContainer{
  animation: appear2;
  animation-timeline: view();
}


.conteudoDuvidasFooter{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.boxDuvidasFooter{
  display: flex;
  gap: 1rem;
}

.boxDuvidasFooter i{
  color: var(--VermelhoPadrao);
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  /* efeitos de animação disparados por scroll (animation-timeline: view())
     tem suporte inconsistente em navegadores mobile e custam performance;
     desliga tudo no mobile pra evitar elemento preso com opacidade 0 */
  * {
    animation: none !important;
  }
}

.creditsFooter {
  width: 100%;
  padding: 1rem;
  text-align: center;
  background-color: #04091a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.creditsFooter p {
  color: #8a93ab;
  font-size: 0.85rem;
}

.footer-credit {
  margin-top: 0.3rem;
  opacity: 0.7;
}

.footer-credit a {
  color: #8a93ab;
  font-weight: 600;
  text-decoration: underline;
}

.footer-credit a:hover {
  color: #fff;
}

/* ==========================================================
   RESPONSIVO — cssGeral.css (header, nav, formulário, footer)
   ========================================================== */

@media (max-width: 1024px) {
  .bannerContato h1 {
    font-size: 2rem;
  }

  .cardsContato {
    grid-template-columns: 1fr;
    transform: translateY(-1.5rem);
  }

  .txtEquipeContato h1 {
    font-size: 1.6rem;
  }

  .gridEquipeContato {
    grid-template-columns: 1fr;
  }

  .mapaContatoWrapper iframe {
    height: 300px;
  }

  .boxHeaderTop {
    padding: 0 2rem;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .navContainer {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }

  .navLinks ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .containerFormulario {
    flex-direction: column;
    height: auto;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }

  .containerFormulario .txtFormulario {
    width: 100%;
    text-align: center;
  }

  .containerFormulario .txtFormulario h1 {
    font-size: 2.2rem;
  }

  .formulario {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .footer {
    grid-template-columns: repeat(2, 1fr);
    padding: 3rem 1.5rem;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .headerTop {
    display: none; /* barra de contato/redes some no mobile, prioriza logo + menu */
  }

  .navContainer {
    justify-content: space-between;
    padding: 1rem 1.5rem;
  }

  .navContainer img {
    height: 50px;
    width: auto;
  }

  .navContainer > div:has(.faleConosco) {
    display: none; /* botão "FALE CONOSCO" some, vira item dentro do menu mobile */
  }

  .corte-esquerda,
  .corte-direita,
  .corte-esquerdaQS,
  .corte-direitaQS {
    display: none; /* cortes diagonais decorativos atrapalham em telas estreitas */
  }

  .footer {
    grid-template-columns: 1fr;
  }

  /* menu hamburguer */

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 4200;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background-color: var(--AzulEscuroPadrao);
    transition: transform 0.25s ease-in-out, opacity 0.2s ease-in-out;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .navOverlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 14, 38, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-in-out;
    z-index: 4050;
  }

  .navOverlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .navLinks {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.25);
    padding: 5.5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 4100;
    overflow-y: auto;
  }

  .navLinks.active {
    transform: translateX(0);
  }

  .navLinks ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }

  .navLinks ul li {
    width: 100%;
  }

  .navLinks ul li a {
    display: block;
    font-size: 1.1rem;
    padding: 0.4rem 0;
  }

  .navLinks .faleConoscoMobile {
    display: block;
    margin-top: 2rem;
    text-align: center;
  }
}

@media (min-width: 769px) {
  .hamburger,
  .navOverlay,
  .faleConoscoMobile {
    display: none;
  }
}

@media (max-width: 480px) {
  .navLinks ul {
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
  }

  .navLinks ul li a {
    font-size: 0.8rem;
  }

  .containerFormulario .txtFormulario h1 {
    font-size: 1.6rem;
  }

  .formulario {
    padding: 1.2rem;
  }

  .btnHeader {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* tilt 3D + luz seguindo o mouse (cardTilt.js) */

.tiltCard {
  position: relative;
  will-change: transform;
  transition: transform 0.12s ease-out, box-shadow 0.25s ease-out;
  transform-style: preserve-3d;
  isolation: isolate;
}

.tiltCard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.35),
    transparent 55%
  );
  opacity: var(--glow, 0);
  transition: opacity 0.25s ease-out;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

.tiltCard:hover {
  box-shadow: 0 25px 45px rgba(4, 14, 38, 0.25);
}

.tiltCard > * {
  position: relative;
  z-index: 0;
}
