/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background-color: #323232;
  color: #fff;
}

/* ========== HERO SECTION (UNIFICADO) ========== */
.hero {
  position: relative;
  height: 95vh;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Vídeo de fundo */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  /* atrás de tudo */
}

/* Overlay escuro sobre o vídeo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  /* opacidade para escurecer */
  z-index: -1;
}

/* Formas decorativas */
.hero-shape {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150%;
  height: 150%;
  transform: rotate(5deg) translate(10%, 5%);
  z-index: 0;
}

/* Conteúdo centralizado */
.hero-content {
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  color: #fff;
  /* texto branco para contraste com vídeo escuro */
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.hero-text {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 30px;
  color: #fff;
}

/* Botão hero */
.hero-button {
  display: inline-block;
  background-color: #004AAB;
  /* azul MIMEG */
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s, color 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-button:hover {
  background-color: #003080;
  color: #fff;
  transform: scale(1.05);
}

/* ========== EFEITO MÁQUINA DE ESCREVER ========== */
/* Título com efeito máquina de escrever */
#typewriter-title {
  border-right: 2px solid #004AAB;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: blinkCursor 0.7s infinite;
  font-size: 3rem;
  /* o span pode ter tamanho próprio se desejar menor que o h1 */
  font-weight: 700;
  color: #fff;
}

/* Subtítulo com efeito máquina de escrever */
.typewriter-wrap {
  display: block;
  width: 100%;
  text-align: center;
}

#typewriter-sub {
  display: inline-block;
  border-right: 2px solid #004AAB;
  white-space: nowrap;
  overflow: hidden;
  animation: blinkCursor 0.7s infinite;
  font-size: 1.2rem;
  color: #fff;
}

/* Cursor piscando */
@keyframes blinkCursor {
  from {
    border-color: transparent;
  }

  to {
    border-color: #004AAB;
  }
}


/* ========== SUSPENSE NAVBAR ========== */
.navbar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background-color: rgba(50, 50, 50, 0.3);
  /* cinza escuro com 80% opacidade */
  border-bottom: 4px solid #004AAB;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  /* efeito de vidro fosco */
  -webkit-backdrop-filter: blur(6px);
  /* compatibilidade Safari */
  z-index: 10;
}


.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 60px;
  /* mantém altura base */
  width: auto;
  transform: scale(1.5);
  /* aumenta visualmente sem mudar o fluxo da navbar */
  transform-origin: center;
  /* centraliza o crescimento */
}

.menu a {
  text-decoration: none;
  color: #ccc;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.3s;
}

.menu a:hover {
  color: #007bff;
}

/* Botão hamburguer (oculto em desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #ccc;
  cursor: pointer;
}

/* Menu padrão */
.menu {
  display: flex;
  gap: 20px;
}

/* ========== CARDS SECTION 1 ========== */
.cards {
  background-color: #323232;
  padding: 80px 0;
  display: flex;
  justify-content: center;
}


.cards-container {
  background-color: #191919;
  border-radius: 12px;
  padding: 30px;
  width: 80%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  border-bottom: 4px solid #004AAB;
  /* ESSE OU #0056ff ?*/
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.card {
  position: relative;
  overflow: hidden;
  background-color: #292932;
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 1;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  z-index: 0;
}

.card p {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  position: relative;
  z-index: 1;
}

.card p strong {
  display: block;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
}

/* Imagens específicas por card */
.card-mecanica::before {
  background-image: url("img/mecanica.jpg");
}

.card-manutencao::before {
  background-image: url("img/manutencaodegerador.jpg");
}

.card-vendas::before {
  background-image: url("img/vendagerador.jpg");
}

.card-subestacao::before {
  background-image: url("img/subestacao.jpg");
}

.card-spda::before {
  background-image: url("img/pararaio.jpg");
}

.card-engenharia::before {
  background-image: url("img/engenhariaeletrica.jpg");
}

/* Hover Animation */
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

/* ========== CARDS (forçar empilhamento - título acima do container) ========== */
.cards {
  background-color: #323232;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  /* empilha título acima do container */
  align-items: center;
  /* centraliza horizontalmente tudo dentro da seção */
  gap: 20px;
  /* espaço entre título e container */
}

/* mantém o container com largura restrita e centrado */
.cards-container {
  background-color: #191919;
  border-radius: 12px;
  padding: 30px;
  width: 80%;
  max-width: 1100px;
  /* evita que ocupe toda a tela em telas largas */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  border-bottom: 4px solid #004AAB;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

/* ========== TÍTULO DAS SEÇÕES (centralizado corretamente) ========== */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  /* remover margens que atrapalham o gap */
  letter-spacing: 1px;
  width: 100%;
  max-width: 1100px;
  /* alinha a largura do título com a do container */
  padding: 0 20px;
  /* pequeno padding nas laterais em telas pequenas */
  font-family: 'Poppins', sans-serif;
}

/* linha azul decorativa abaixo do título */
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #004AAB;
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-divider {
  width: 100%;
  height: 4px;
  background-color: #004AAB;
  /* azul MIMEG */
  margin: 0;
}

/* ========== CARDS SECTION 2 ========== */
.cards-grid {
  background-color: #323232;
  /* cinza de fundo */
  background-image: url("img/fundo-section-2.png");
  /* sua imagem PNG */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}


/* Container principal com grid */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 80%;
  max-width: 1000px;
}

/* Cada card quadrado */
.grid-card {
  background-color: #111;
  border-radius: 10px;
  height: 220px;
  position: relative;
  border-bottom: 4px solid #004AAB;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-card .card-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.grid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-card p {
  position: absolute;
  bottom: 10px;
  left: 10px;
  margin: 0;
  padding: 6px 10px;
  background-color: rgba(0, 0, 0, 0.6);
  /* fundo escuro com transparência */
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  /* sombra para destaque */
  max-width: 90%;
}


/* Efeito hover */
.grid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 86, 255, 0.4);
}

/* Botão azul centralizado */
.grid-button {
  display: inline-block;
  background-color: #004AAB;
  /* azul MIMEG */
  color: #fff;
  /* texto preto */
  font-weight: 600;
  font-size: 1.1rem;
  padding: 14px 40px;
  border-radius: 50px;
  /* formato oval */
  text-decoration: none;
  transition: background 0.3s, transform 0.3s, color 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.grid-button:hover {
  background-color: #0041C9;
  color: #fff;
  transform: scale(1.05);
}

/* ========== SECTION 3 ========== */
.highlight-section {
  background-color: #323232;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 20px 85px;
}

.highlight-box {
  background-color: #e6e6e6;
  border-radius: 15px;
  width: 85%;
  max-width: 1000px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-bottom: 4px solid #004AAB;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.highlight-box:hover {
  transform: scale(1.02);
}

/* Alinha o card mais à direita */
.map-right {
  margin-left: 20px;
}

/* Estilo da imagem do mapa */
.highlight-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

.map-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  width: 100%;
  max-width: 1000px;
  padding-left: 20px;
  font-family: 'Poppins', sans-serif;
}

.map-title::before {
  content: "";
  display: block;
  width: 6px;
  height: 30px;
  background-color: #004AAB;
  border-radius: 3px;
}

/* ========== QUEM SOMOS PAGE ========== */
.about-section {
  background-color: #323232;
  padding: 140px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* centraliza tudo horizontalmente */
}

.about-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  /* centraliza o conteúdo dentro do título */
  gap: 12px;
  margin-bottom: 40px;
  text-align: center;
  font-family: poppins, sans-serif;
}

.about-title::before {
  content: "";
  display: block;
  width: 6px;
  height: 30px;
  background-color: #004AAB;
  border-radius: 3px;
}


.about-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 50%;
  color: #ccc;
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: left;
  /* garante alinhamento à esquerda */
  padding-left: 20px;
}

.about-signature {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* alinha os itens à esquerda */
  gap: 40px;
  /* controla o espaço entre os blocos */
  margin-top: 30px;
  width: 100%;
}

.signature-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-right: 90px;
  /* empurra para a direita */
}

.signature-image {
  height: 60px;
  width: auto;
}

.signature-side-image {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.signature-side-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.about-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 40px;
  width: 100%;
  background-color: #d7cdcd;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat {
  text-align: center;
  color: #fff;
}

.stat .counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: #004AAB;
  display: block;
  margin-bottom: 10px;
}

.stat p {
  font-size: 1rem;
  color: #000;
}

.about-images {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-images img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.promo-card {
  position: relative;
  background-color: #191919;
  border-radius: 12px;
  border-bottom: 4px solid #004AAB;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
  margin-top: 60px;
  gap: 30px;
  overflow: hidden;
}

.promo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("img/torredeenergia.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  /* controle da opacidade */
  z-index: 0;
}

.promo-text,
.promo-image {
  position: relative;
  z-index: 1;
}

.promo-text {
  flex: 1 1 50%;
  color: #ccc;
}

.promo-text h3 {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 15px;
}

.promo-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.promo-button {
  display: inline-block;
  background-color: #00c853;
  /* verde WhatsApp */
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.promo-button:hover {
  background-color: #009c3b;
}

.promo-image {
  flex: 1 1 40%;
}

.promo-image img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* ==================== SECTION NOSSOS CLIENTES ==================== */
.clientes-carousel {
  width: 100%;
  background: #191919;
  padding: 60px 10px;
  overflow: hidden;
}

.carousel-title {
  text-align: center;
  color: #fff;
  font-size: 2rem;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 40px;
}

.carousel-title::after {
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  background: #004AAB;
  margin: 12px auto 0;
  border-radius: 2px;
}

.carousel-wrapper {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 50px;
  animation: slide 45s linear infinite;
  will-change: transform;
}

.carousel-item {
  flex: 0 0 auto;
  width: 130px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: brightness(0.9);
  transition: transform 0.3s ease;
  border-radius: 10px;
}

.carousel-item:hover img {
  transform: scale(1.1);
}

/* Animação */
@keyframes slide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-175%);
  }
}

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {

  .carousel-track {
    animation: slide 60s linear infinite;
    /* Mobile mais lento */
    gap: 30px;
  }

  .carousel-item {
    width: 100px;
    height: auto;
  }

  .carousel-item img {
    max-height: 55px;
  }
}

/* ========== ENGENHARIA ELÉTRICA PAGE ========== */

.engineering-section {
  background-color: #323232;
  padding: 140px 20px 80px;
  display: flex;
  justify-content: center;
}

.engineering-layout {
  display: flex;
  gap: 40px;
  max-width: 1400px;
  width: 100%;
}

/* Coluna da esquerda: imagens empilhadas */
.engineering-gallery {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.engineering-gallery img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Coluna da direita: título, texto e serviços */
.engineering-info {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.engineering-header {
  text-align: left;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #004AAB;
  margin-top: 12px;
  border-radius: 2px;
}

.section-lead {
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Serviços especializados */
.services-flip-section {
  width: 100%;
}

.services-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.services-bar {
  width: 6px;
  height: 30px;
  background-color: #004AAB;
  border-radius: 3px;
}

.services-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.services-flip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 30px;
}

.flip-card {
  perspective: 1000px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 260px;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background-color: #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ccc;
  text-align: center;
}

.flip-front i {
  font-size: 2rem;
  color: #004AAB;
  margin-bottom: 12px;
}

.flip-front h3 {
  font-size: 1.05rem;
  color: #fff;
}

.flip-icon {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #aaa;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.flip-hint {
  font-size: 0.8rem;
  color: #aaa;
  font-style: italic;
}

.flip-back {
  transform: rotateY(180deg);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ========== RESPONSIVO PAGINA ENGENHARIA ========== */

@media (max-width: 1024px) {
  .engineering-layout {
    flex-direction: column;
  }

  .engineering-gallery,
  .engineering-info {
    flex: 1 1 100%;
  }

  .services-flip-grid {
    grid-template-columns: 1fr;
  }

  .section-title,
  .services-title {
    text-align: center;
  }

  .engineering-header {
    text-align: center;
  }
}





/* ========== GERADORES PAGE ========== */
.generators-section {
  background-color: #323232;
  padding: 140px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #004AAB;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ========== CARDS COM IMAGENS LATERAIS ========== */
.generator-topic {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: #191919;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  max-width: 1300px;
  width: 100%;
  margin-bottom: 60px;
}

.generator-topic.vendas {
  justify-content: flex-start;
}

.generator-topic.manutencao {
  justify-content: flex-end;
}

.generator-content {
  flex: 1 1 55%;
  padding: 40px;
  color: #ccc;
}

.generator-content h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.generator-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.generator-side-image {
  flex: 1 1 45%;
}

/* Imagem do card de Vendas: borda à esquerda */
.generator-topic.vendas .generator-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-left: 4px solid #004AAB;
}

/* Imagem do card de Manutenção: borda à direita */
.generator-topic.manutencao .generator-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-right: 4px solid #004AAB;
}


/* Ícones */
.generator-icon {
  font-size: 2rem;
  color: #004AAB;
}

.generator-content h3 i {
  color: #004AAB;
}


/* ========== SUBESTAÇÃO PAGE ========== */
.substation-section {
  background-color: #323232;
  padding: 140px 20px 80px;
  color: #ccc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.substation-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  position: relative;
  font-family: poppins, sans-serif;
}

.substation-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #004AAB;
  margin: 12px auto 0;
  border-radius: 2px;
}

.substation-intro {
  max-width: 1000px;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: justify;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.substation-benefits {
  background-color: #191919;
  border-radius: 12px;
  padding: 40px;
  max-width: 1100px;
  width: 100%;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.substation-benefits h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 25px;
  text-align: center;
}

.substation-benefits ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.substation-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 1rem;
  line-height: 1.6;
}

.substation-benefits i {
  font-size: 1.4rem;
  color: #004AAB;
  margin-top: 4px;
}

.substation-benefits strong {
  color: #fff;
}

.substation-contact {
  max-width: 1000px;
  text-align: center;
}

.substation-contact h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 15px;
}

.substation-contact p {
  font-size: 1rem;
  line-height: 1.6;
}

/* ========== SPDA PAGE ========== */
.spda-section {
  background-color: #323232;
  padding: 140px 20px 80px;
  color: #ccc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.spda-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  position: relative;
  font-family: poppins, sans-serif;
}

.spda-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #004AAB;
  margin: 12px auto 0;
  border-radius: 2px;
}

.spda-alert {
  background-color: #191919;
  border-left: 6px solid #004AAB;
  padding: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 1000px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}


.spda-intro {
  max-width: 1000px;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: justify;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spda-benefits {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

.spda-benefits h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 30px;
}

.spda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.spda-card {
  background-color: #191919;
  border-radius: 12px;
  padding: 30px;
  color: #ccc;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;

}

.spda-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.spda-card i {
  font-size: 2rem;
  color: #004AAB;
  margin-bottom: 15px;
}

.spda-card h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 10px;
}

.spda-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ==================== RODAPÉ ==================== */
.footer {
  background: #004AAB;
  color: #ddd;
  padding: 60px 20px 20px;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* LOGO */
.footer-logo {
  text-align: left;
}

.footer-brand {
  width: 180px;
  height: auto;
  display: block;
}

/* COLUNAS */
.footer-col h3 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin: 6px 0;
  font-size: 0.95rem;
}

.footer-col a {
  color: #ddd;
  text-decoration: none;
  transition: 0.2s;
}

.footer-col a:hover {
  color: #000;
}

/* ÍCONES SOCIAIS */
.footer-social .social-icons {
  display: flex;
  gap: 14px;
}

.footer-social i {
  font-size: 20px;
  color: #fff;
  transition: 0.3s;
}

.footer-social i:hover {
  opacity: 0.6;
}

/* RODAPÉ FINAL */
.footer-bottom {
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  margin-top: 35px;
  text-align: center;
  padding-top: 15px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}


/* ==================== RESPONSIVO ==================== */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }

  .footer-logo {
    text-align: center;
  }

  .footer-brand {
    margin: 0 auto;
  }

  .footer-social .social-icons {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-col {
    text-align: center;
  }
}


/* Botão fixo de WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  /* verde WhatsApp */
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
}

/* Animação opcional de "pulse" */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.whatsapp-button.pulse {
  animation: pulse 2s infinite;
}

/* ========== RESPONSIVIDADE MOBILE ========== */

@media (max-width: 768px) {

  /* ====== HERO ====== */
  .navbar {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    /* mantém a barra realmente centralizada */
    width: 92%;
    /* margem segura nas laterais */
    background-color: rgba(50, 50, 50, 0.3);
    border-bottom: 4px solid #004AAB;
    display: flex;
    justify-content: space-between;
    /* logo à esquerda, toggle à direita */
    align-items: center;
    padding: 10px 16px;
    /* padding menor para caber melhor */
    border-radius: 8px;
    z-index: 20;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    /* evita que a logo seja comprimida */
  }

  .logo img {
    height: 48px;
    /* tamanho visível no mobile */
    width: auto;
    transform: scale(1.3);
    transform-origin: center;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #ccc;
    cursor: pointer;
    flex-shrink: 0;
  }

  .menu {
    display: none;
    /* oculto por padrão */
  }

  .menu.active {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
  }

  .menu a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    text-align: center;
  }

  /* ====== HERO ====== */
  .hero {
    height: 100vh;
    /* vídeo ocupa toda a tela */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    /* centraliza verticalmente */
    justify-content: center;
    /* centraliza horizontalmente */
    text-align: center;
    padding: 0;
  }

  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    max-width: 90%;
    width: 90%;
    padding: 0 16px;
    margin-top: 10vh;
    /* descola do topo para não conflitar com navbar */
  }

  .hero-title {
    font-size: 1.9rem;
    /* ajusta para caber melhor */
    line-height: 1.25;
    margin-bottom: 14px;
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 18px;
  }

  .hero-button {
    font-size: 1rem;
    padding: 10px 22px;
    border-radius: 50px;
  }

  /* ====== TYPEWRITER ====== */
  #typewriter-title {
    font-size: 1.7rem;
    /* acompanha ajuste do h1 */
  }

  #typewriter-sub {
    font-size: 0.95rem;
  }

  /* ====== SERVIÇOS ====== */
  .cards {
    padding: 60px 20px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .section-title {
    font-size: 1.6rem;
    text-align: center;
    padding: 0 10px;
  }

  .cards-container {
    width: 95%;
    /* aumenta a largura do container escuro */
    max-width: 95%;
    background-color: #191919;
    /* mantém contraste escuro */
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    border-bottom: 4px solid #004AAB;
  }

  .card {
    width: 100%;
    padding: 20px;
    border-radius: 8px;
    background-color: #292932;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .card p {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
  }

  .card p strong {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  /* ====== PRODUTOS EM DESTAQUE ====== */
  .grid-container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .grid-card {
    width: 100%;
  }

  .grid-button {
    font-size: 1rem;
    padding: 10px 20px;
  }

  /* ====== ENCONTRE-NOS ====== */
  .highlight-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }

  /* ====== RODAPÉ ====== */
  .footer-logo {
    display: none;
  }

  .footer-info {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    align-items: center;
  }

  .footer-column h4 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .footer-column p,
  .footer-column a {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .social-icons.stacked {
    align-items: center;
  }

  .footer {
    padding: 20px 10px;
    font-size: 0.85rem;
  }
}