/* ==========================================================================
   ESTILOS DA PÁGINA CLIENTES & PARCEIROS (INSTOR ROBÓTICA)
   Design System Modular
   ========================================================================== */

/* --- HERO BANNERS VERDES --- */
.clientes-hero {
  background-color: #83ba3b;
  padding: 40px 20px;
  text-align: center;
  color: #ffffff;
}

.clientes-hero h1,
.clientes-hero h2 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.clientes-hero p {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: clamp(14px, 1.8vw, 16px);
  margin: 0;
  color: #ffffff;
  font-weight: 400;
}

.clientes-hero.banner-comerciais h3 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: clamp(24px, 3vw, 37px);
  font-weight: 700;
  line-height: 1.2;
  margin: 5px 0 0 0;
  color: #ffffff;
}

/* --- GRID DE CLIENTES (14 CARDS) --- */
.clientes-grid-section {
  background-color: #ffffff;
  padding: 60px 20px;
}

.clientes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.cliente-card {
  flex: 0 1 calc(20% - 20px);
  min-width: 190px;
  max-width: 220px;
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid transparent;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
  padding: 35px 20px;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.cliente-card:hover {
  transform: translateY(-6px);
  box-shadow: none;
  border: 1px solid #f5f5f5;
  border-radius: 16px;
}

.cliente-card img {
  max-width: 100%;
  max-height: 85px;
  object-fit: contain;
  display: block;
  user-select: none;
}

/* --- CARROSSEL DE PARCEIROS (INSPIRADO NO CARROSSEL DE CALDEIRAS) --- */
.parceiros-carousel-section {
  background-color: #ffffff;
  padding: 50px 20px 70px;
  position: relative;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
  box-sizing: border-box;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
  outline: none;
}

.carousel-track-container:focus-visible {
  outline: 2px solid #83ba3b;
  outline-offset: 4px;
  border-radius: 8px;
}

.carousel-track-container.is-dragging {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: 20px;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 320px;
  width: 320px;
  height: 180px;
  background-color: #ffffff;
  border-radius: 20px;
  border: 1px solid #c5c8ba;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.45;
  transform: scale(0.92);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
}

.carousel-slide:hover {
  box-shadow: 0 12px 32px rgba(131, 186, 59, 0.2);
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide img {
  max-width: 100%;
  max-height: 85px;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
  transition: transform 0.4s ease;
}

.carousel-slide.active:hover img {
  transform: scale(1.08);
}

/* SETAS LATERAIS FLUTUANTES (ESTILO CALDEIRAS) */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid #c5c8ba;
  color: #83ba3b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 10;
  user-select: none;
}

.carousel-btn:hover {
  background-color: #83ba3b;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(131, 186, 59, 0.35);
}

.carousel-btn.prev-btn {
  left: 10px;
}

.carousel-btn.next-btn {
  right: 10px;
}

/* INDICADORES DOTS (ESTILO CALDEIRAS) */
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  flex-wrap: wrap;
  max-width: 100%;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #c5c8ba;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
}

.carousel-dots .dot.active {
  background-color: #83ba3b;
  width: 28px;
  border-radius: 12px;
}

/* --- PARCEIROS COMERCIAIS (CARDS DE DESTAQUE) --- */
.parceiros-comerciais-section {
  background-color: #ffffff;
  padding: 60px 20px 80px;
}

.parceiros-comerciais-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px 30px;
  max-width: 1050px;
  margin: 0 auto;
}

.parceiro-comercial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #ffffff;
  padding: 20px;
}

.parceiro-comercial-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #83ba3b;
  margin: 0 0 25px 0;
}

.parceiro-comercial-card h4.partner-title-large {
  font-size: clamp(28px, 3.5vw, 40px);
}

.parceiro-logo-box {
  height: 200px;
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.parceiro-logo-box img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.parceiro-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 45px;
  width: 100%;
  min-height: 50px;
}

.parceiro-links a {
  font-size: 44px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.parceiro-links a:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

.parceiro-links .icon-linkedin {
  color: #0a66c2;
}

.parceiro-links .icon-website {
  color: #83ba3b;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 991px) {
  .cliente-card {
    flex: 0 1 calc(33.333% - 20px);
  }
}

@media (max-width: 768px) {
  .clientes-hero {
    padding: 30px 15px;
  }

  .clientes-grid-section,
  .parceiros-carousel-section,
  .parceiros-comerciais-section {
    padding: 40px 15px;
  }

  .cliente-card {
    flex: 0 1 calc(50% - 15px);
    min-width: 140px;
    padding: 25px 15px;
    min-height: 160px;
    border-radius: 16px;
  }

  .cliente-card img {
    max-height: 70px;
  }

  .carousel-slide {
    flex: 0 0 280px;
    width: 280px;
    height: 160px;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .parceiros-comerciais-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .parceiro-logo-box {
    height: 160px;
  }

  .parceiro-logo-box img {
    max-height: 140px;
  }

  .parceiro-links a {
    font-size: 38px;
  }
}

@media (max-width: 480px) {
  .cliente-card {
    flex: 0 1 100%;
    max-width: 100%;
  }

  .carousel-slide {
    flex: 0 0 240px;
    width: 240px;
    height: 140px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .carousel-btn.prev-btn {
    left: 4px;
  }

  .carousel-btn.next-btn {
    right: 4px;
  }

  .carousel-dots {
    gap: 6px;
  }

  .carousel-dots .dot {
    width: 8px;
    height: 8px;
  }

  .carousel-dots .dot.active {
    width: 22px;
  }
}
