* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #8d8d8d; /* mantém o fundo atual */
  color: #fff;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 60px;
  background-color: #555;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(
    to bottom,
    rgba(0, 26, 87, 0),
    rgba(0, 26, 87, 0.8)
  );
  transition: background 0.3s ease;
  backdrop-filter: blur(4px); /* leve desfoque para elegância */
}

/* Estado inicial (transparente no topo) */
.navbar.transparent {
  background: linear-gradient(
    to bottom,
    rgba(0, 26, 87, 0),
    rgba(0, 26, 87, 0)
  );
}

.navbar {
  height: 70px; /* ajuste para a altura exata da sua barra */
  display: flex;
  align-items: center;
}

.navbar .logo img {
  height: 45px; /* mantém a altura real pequena */
  width: auto;
  transform: scale(1.6); /* aumenta visualmente a logo */
  transform-origin: left center;
}

@media (max-width: 600px) {
  .logo img {
    height: 55px;
  }
}

/* LINKS DO MENU */
nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

nav a:hover {
  color: #00aaff;
}

/* ÍCONES DE REDES SOCIAIS */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: white; /* Ícones visíveis */
  font-size: 20px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #00aaff;
}

/* ======== HOME SLIDER ======== */
.home-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* as imagens */
.slides {
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.home-slider .slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.home-slider {
  position: relative;
}

.home-slider::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.581); /* ESCURECIMENTO */
  z-index: 1;
}

.arrow {
  z-index: 3;
}

/* garante que o texto fique acima do overlay */
.home-content {
  position: relative;
  z-index: 2;
}

/* Conteúdo central */
.home-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 90%;
  max-width: 1200px;
}

.especialistas {
  font-size: 22px;
  letter-spacing: 8px;
  margin-bottom: 20px;
}

.titulo-principal {
  font-size: 50px;
  font-weight: 700;
  text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.subtitulo {
  margin-top: 20px;
  font-size: 20px;
}

.btn-home {
  display: inline-block;
  margin-top: 40px;
  background: #0077ff;
  padding: 15px 40px;
  color: #fff;
  font-size: 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-home:hover {
  background: #005dcc;
}

/* ===== Setas ===== */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 45px;
  color: white;
  cursor: pointer;
  padding: 10px;
  transition: 0.3s;
  user-select: none;
}

.arrow:hover {
  color: #0077ff;
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}

.botao {
  background-color: #007bff;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 8px;
  transition: background 0.3s;
}

.botao:hover {
  background-color: #005fcc;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  h1 {
    font-size: 32px;
  }

  .subtitulo {
    font-size: 16px;
  }
}

/* SEÇÃO SOBRE NÓS */
.sobre-nos {
  max-width: 950px;
  margin: 40px auto 80px auto;
  text-align: top;
  padding: 0 1px;
  color: #ffffff;
}

.sobre-nos h2 {
  font-size: 40px;
  margin-bottom: 20px;
  color: #222;
  font-weight: 700;
}

.sobre-nos p {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 25px;
}

/* BOTÃO FALE CONOSCO */
.btn-sobre {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 14px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
  transition: 0.3s ease;
}

.btn-sobre:hover {
  background: #005fc0;
  transform: translateY(-3px);
}

.footer {
  width: 100%;
  background-color: #1a2256; /* Azul escuro */
  color: white;
  font-family: "Poppins", sans-serif;
}

/* NEWSLETTER */
.footer-newsletter {
  padding: 40px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-newsletter h2 {
  font-size: 28px;
  font-weight: 600;
}

.newsletter-form {
  display: flex;
  width: 40%;
}

.newsletter-form input {
  width: 100%;
  padding: 12px;
  border-radius: 6px 0 0 6px;
  border: none;
  background: #2c357b; /* Azul médio */
  color: white;
}

.newsletter-form button {
  padding: 12px 30px;
  background: #0f1537; /* Azul quase preto */
  border: none;
  border-radius: 0 6px 6px 0;
  color: white;
  cursor: pointer;
  font-weight: 600;
}

/* PARTE PRINCIPAL */
.footer-main {
  background-color: #1f2a6b; /* Azul mais iluminado */
  padding: 50px 10%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 40px;
}

.footer-item h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
}

.footer-line {
  width: 40px;
  height: 3px;
  background: white;
  margin-bottom: 20px;
}

.footer-logo {
  width: 230px;
  border-radius: 12px;
}

.footer-social img {
  width: 38px;
  margin-right: 15px;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .footer-newsletter {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .newsletter-form {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-line {
    margin: 10px auto 20px;
  }

  .footer-social img {
    margin: 10px;
  }
}

/* SEÇÃO CLIENTES */
.clientes-section {
  padding: 60px 20px;
  text-align: center;
  background: #ffffff;
}

.clientes-title {
  font-size: 32px;
  font-weight: 700;
  color: #023f67;
  margin-bottom: 40px;
}

/* GRID DOS CARDS */
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 por linha */
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

/* CADA CARD */
.cliente-card {
  width: 100%;
  aspect-ratio: 1 / 1; /* quadrado */
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s;
}

.cliente-card:hover {
  transform: scale(1.05);
}

.cliente-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* POPUP DE IMAGEM */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  border: 3px solid white;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .clientes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .clientes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
