/* Global */
* {
  scroll-behavior: smooth;
}

ul {
  list-style: none;
}

iframe {
  width: 30rem;
  height: 20rem;
}

.text-justify-left {
  text-align: justify;
  text-align-last: left;
}

.navbar-icon {
  color: #7c7c7d;
  border: 2px solid rgba(124, 124, 125, 0.5);
  border-radius: 10px;
  padding: 10px 15px;
}

.nav-link {
  color: #000 !important;
}

#logo-navbar {
  width: 300px;
  padding: 20px;
}

@media (max-width: 992px) {
  .nav-item {
    padding-left: 20px;
  }
}

@media (max-width: 768px) {
  .navbar-icon {
    color: #7c7c7d;
    border: 2px solid rgba(124, 124, 125, 0.5);
    border-radius: 10px;
    padding: 2px 8px;
    margin-top: 5px;
  }
}

@media (max-width: 575.98px) {
  .navbar-icon {
    color: #7c7c7d;
    border: 2px solid rgba(124, 124, 125, 0.5);
    border-radius: 10px;
    padding: 5px 7.5px;
    margin-top: 5px;
  }

  .navbar-brand {
    width: 70%;
  }

  #logo-navbar {
    width: 200px;
  }
}

/* ENVIANDO FORM */
#enviando-form {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100vh;
  display: none;
}

#enviando-form.active {
  display: block;
}

#enviando-form .wrapper {
  width: 200px;
  height: 60px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#enviando-form .circle {
  width: 20px;
  height: 20px;
  position: absolute;
  border-radius: 50%;
  background-color: #fff;
  left: 15%;
  transform-origin: 50%;
  animation: circle 0.5s alternate infinite ease;
}

@keyframes circle {
  0% {
    top: 60px;
    height: 5px;
    border-radius: 50px 50px 25px 25px;
    transform: scaleX(1.7);
  }

  40% {
    height: 20px;
    border-radius: 50%;
    transform: scaleX(1);
  }

  100% {
    top: 0%;
  }
}

#enviando-form .circle:nth-child(2) {
  left: 45%;
  background-color: #292b2c;
  animation-delay: 0.2s;
}

#enviando-form .circle:nth-child(3) {
  left: auto;
  right: 15%;
  animation-delay: 0.3s;
  background-color: #0275d8;
}

#enviando-form .shadow {
  width: 20px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 62px;
  transform-origin: 50%;
  z-index: -1;
  left: 15%;
  filter: blur(1px);
  animation: shadow 0.5s alternate infinite ease;
}

@keyframes shadow {
  0% {
    transform: scaleX(1.5);
  }

  40% {
    transform: scaleX(1);
    opacity: 0.7;
  }

  100% {
    transform: scaleX(0.2);
    opacity: 0.4;
  }
}

#enviando-form .shadow:nth-child(4) {
  left: 45%;
  animation-delay: 0.2s;
}

#enviando-form .shadow:nth-child(5) {
  left: auto;
  right: 15%;
  animation-delay: 0.3s;
}

#enviando-form .wrapper span {
  position: absolute;
  top: 75px;
  font-size: 20px;
  color: #fff;
  font-weight: bold;
  width: 400px;
  left: -50%;
  text-align: center;
}

@media (max-width: 576px) {
  #enviando-form .wrapper span {
    width: 280px;
    left: -20%;
  }
}

/* Left menu */
.left-menu {
  padding: 0;
  border: 1px solid red;
  margin-left: 100px;
}

.list-group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fa-sort-up {
  transform: rotate(90deg);
}

/* Header */

/* #header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99;
} */

#margin-header {
  margin-top: 50px;
}

.bold {
  font-weight: bold;
}

#moderni {
  padding: 40px 0;
  background-color: #f8f9fa;
  margin-top: 40px;
}

/* footer */
footer img {
  width: 200px;
}

footer div.main {
  background-color: #f3f3f3;
}

#links-rapidos ul li a {
  font-weight: 600;
}

@media (max-width: 992px) {
  #duvida {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  #redes-sociais {
    margin-top: 10px;
  }
}

@media (max-width: 576px) {
  #margin-header {
    margin-top: 50px;
  }

  #links-rapidos {
    margin-top: 10px;
  }

  #redes-sociais {
    margin-top: 20px;
  }

  #duvida {
    margin-top: 20px;
  }
}

/* Adiciona a lupa no input file, da página "Trabalhe conosco" */
#input-file-btn::after {
  content: "";
  background: url(/public/assets/images/singel/search-solid.svg);
  background-repeat: no-repeat;
  background-position: center;
  padding: 15px;
}

#pagina-links {
  position: fixed;
  z-index: 999;
  bottom: 80px;
  right: 30px;
}

#minimizar-pagina-links {
  cursor: pointer;
  transition: all 4s;
}

#btn-pagina-links {
  transition: all 4s;
}

#contatos-icones:active {
  background-color: #f8f9fa;
}

.zap-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
}

#footer-alguma-duvida {
  border-radius: 40px;
  padding: 10px 40px;
  font-size: 1.2em;
  font-weight: 600;
}

.container {
  max-width: 1300px;
}

/* Instalacoes-e-montagens */
.gray-background {
  background-color: #f8f9fa;
  padding: 20px;
}

.navbar {
  padding: 10px !important;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.navbar img {
  width: 130px !important;
  display: inline-block;
}

/* CLIENTES */
#clientes {
  padding-bottom: 20px;
}

#clientes .owl-nav,
#clientes .owl-dots {
  display: none;
}

/* INFOS */
#infos {
  padding: 40px 0;
  background-color: #2d3338;
}

#infos ul {
  display: flex;
  justify-content: center;
  margin: 0;
}

#infos ul li {
  width: 23%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 5px;
  padding: 10px;
  background-color: #fff;
  border-radius: 15px;
}

#infos ul li:nth-child(2) .head {
  margin-bottom: 68px;
}

#infos ul li h3 {
  font-size: 1.3rem;
}

#infos ul li .head i {
  width: 50px;
  height: 50px;
  font-size: 1.7rem;
  border-radius: 50%;
  background-color: #031168;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  margin-bottom: 20px;
}

#infos ul li .content i {
  font-size: 0.3rem;
}

@media (max-width: 992px) {
  #infos ul {
    flex-wrap: wrap;
  }

  #infos ul li {
    width: 100%;
  }
}

.base-tabela {
  padding: 40px 0;
}

.base-tabela h3 {
  font-size: 1.4rem;
  font-weight: 400;
}

.base-tabela h2 {
  font-size: 1.5rem;
}

.base-tabela h4 {
  font-size: 1.3rem;
  font-weight: 400;
}

.base-tabela p,
.base-tabela h3,
.base-tabela h2,
.base-tabela h4 {
  text-align: center;
}

.base-tabela .table {
  margin-bottom: 40px;
}

.base-servicos {
  padding: 40px 0px;
  background-color: #f8f8f8;
}

.base-servicos h2 {
  text-align: center;
}

.base-servicos h3 {
  font-size: 1.3rem;
  color: #2980b9;
}

.base-servicos h4 {
  font-size: 1.2rem;
}

.base-servicos .card-base {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

/* 🌐 Responsive Design for Services Page */
.base-servicos {
  padding: 40px 0;
}

.base-servicos .card-base {
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.2s ease-in-out;
}

.base-servicos h2,
.base-servicos h3,
.base-servicos h4 {
  transition: font-size 0.2s ease;
}

/* === 📱 Tablets grandes (≤ 992px) === */
@media (max-width: 992px) {
  .base-servicos {
    padding: 30px 0;
  }

  .base-servicos .card-base {
    padding: 16px;
    margin-bottom: 16px;
  }

  .base-servicos h2 {
    font-size: 1.8rem;
    margin-bottom: 28px;
  }

  .base-servicos h3 {
    font-size: 1.25rem;
  }

  .base-servicos h4 {
    font-size: 1.1rem;
  }
}

/* === 📱 Tablets e smartphones em landscape (≤ 768px) === */
@media (max-width: 768px) {
  .base-servicos {
    padding: 24px 0;
  }

  .base-servicos .card-base {
    padding: 12px;
    margin-bottom: 14px;
  }

  .base-servicos h2 {
    font-size: 1.6rem;
    margin-bottom: 22px;
  }

  .base-servicos h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .base-servicos h4 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .base-servicos ul {
    padding-left: 16px;
  }

  .base-servicos li,
  .base-servicos p {
    font-size: 0.92rem;
    line-height: 1.45;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .base-servicos li {
    margin-bottom: 6px;
  }
}

/* === 📱 Smartphones pequenos (≤ 576px) === */
@media (max-width: 576px) {
  .base-servicos {
    padding: 18px 0;
  }

  .base-servicos .card-base {
    padding: 10px;
    margin-bottom: 12px;
  }

  .base-servicos h2 {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }

  .base-servicos h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .base-servicos h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .base-servicos ul {
    padding-left: 12px;
  }

  .base-servicos li,
  .base-servicos p {
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .base-servicos li {
    margin-bottom: 4px;
  }

  .container {
    padding-inline: 10px;
  }
}

/* === 🧩 Extra pequeno (≤ 400px) === */
@media (max-width: 400px) {
  .base-servicos h2 {
    font-size: 1.25rem;
  }

  .base-servicos h3 {
    font-size: 0.95rem;
  }

  .base-servicos h4 {
    font-size: 0.9rem;
  }

  .base-servicos p,
  .base-servicos li {
    font-size: 0.8rem;
  }
}

.base-produtos {
  background-color: #f8f8f8;
  padding: 40px 0;
}

.base-produtos h1 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 40px;
}

.base-produtos .card-produto {
  /* background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    
    display: flex;
    justify-content: flex-start;
    align-items: center; */

  display: flex;
  /* flex-direction: column; */
  align-items: stretch;
  justify-content: flex-start;
  border: 1px solid #e5e7eb;
  /* Borda suave */
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* height: 100%; */
}

.card-produto .head {
  width: 15vw;
  height: auto;
  /* define a altura padrão da imagem */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.base-produtos .card-produto .head img {
  /* width: 100%;
    max-width: 300px;
    object-fit: contain;
    display: blocks; */
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  /* evita distorção */
  transition: transform 0.3s ease;
}

@media (max-width: 992px) {
  .base-produtos .card-produto {
    display: block;
  }

  .card-produto .head {
    display: block;
    width: 100vw;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .base-produtos .card-produto .head img {
    max-width: 90%;
    max-height: 90%;
  }
}

.base-produtos .card-produto .head.img-lg {
  width: 70%;
}

.base-produtos .card-produto .content {
  /* margin-left: 20px; */
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.base-produtos .card-produto .content h3 {
  font-size: 1.3rem;
}

.base-produtos .card-produto .content ul {
  padding: 0;
  margin: 0;
}

.modal ul {
  padding: 0;
  margin: 0;
}

/* HOME */
#home img {
  border-bottom-left-radius: 20%;
  border-top-right-radius: 20%;
  object-fit: cover;
}

/* usado em medicoes eletricas */
.dotted-list {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 28px;
}

.dotted-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}

.item-text,
.item-value {
  position: relative;
  background-color: #fff;
  /* mesma cor do fundo */
  z-index: 1;
  padding-left: 3px;
  padding-right: 3px;
  white-space: nowrap;
}

/* Linha pontilhada inteligente */
.dotted-list li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  /* content: " ............................................................................................................................"; */
  letter-spacing: 3px;
  margin: 0 5px;
  border-bottom: 2px dotted #000;
  transform: translateY(-50%);
  z-index: 0;
}

/* Adapta automaticamente em telas pequenas */
@media (max-width: 640px) {
  .dotted-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .dotted-list li::before {
    content: none;
  }

  .item-text,
  .item-value {
    white-space: normal;
  }

  .dotted-list li span {
    width: 100%;
    display: block;
    padding: 0;
  }

  .item-text {
    font-weight: bold; /* Adiciona ênfase ao item principal */
  }
}
