/* ==========================================================================
   SERVIÇOS - INSTOR ROBÓTICA
   Estilos específicos da página de serviços de inspeções
   ========================================================================== */

/* SUB-NAV BARRA DE CATEGORIAS STICKY (PADRÃO SOLUÇÕES) */
.servicos-subnav-wrapper {
  position: sticky;
  top: 90px;
  z-index: 100;
  background-color: #7eac26;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transition: top 0.3s ease;
}

.servicos-subnav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  min-height: 60px;
}

.servicos-subnav-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: 0.3px;
  margin: 0;
}

.servicos-subnav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.servicos-subnav-links::-webkit-scrollbar {
  display: none;
}

.servicos-subnav-links li {
  flex-shrink: 0;
}

.servicos-subnav-links a {
  display: inline-block;
  padding: 8px 18px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.servicos-subnav-links a:hover,
.servicos-subnav-links a.active {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* HERO BANNER SERVIÇOS */
.servicos-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 70px 0;
  background-image: url('../images/servicos/caldeiras.jpg');
}

.servicos-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.servicos-hero .container {
  position: relative;
  z-index: 2;
}

.servicos-hero-content {
  max-width: 720px;
}

.servicos-hero-bar {
  width: 80px;
  height: 4px;
  background-color: #7eac26;
  border-radius: 2px;
  margin-bottom: 20px;
}

.servicos-hero-title {
  font-family: 'Source Sans Pro', 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.5px;
  color: #ffffff;
}

/* SEÇÃO PRINCIPAL DE CONTEÚDO */
.servicos-main-section {
  padding: 60px 0 100px;
  background-color: #ffffff;
}

.servicos-container {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* LINHA DE CADA SERVIÇO */
.servicos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  scroll-margin-top: 160px;
}

.servicos-col-texto {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  text-align: left;
}

.servicos-header-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.servicos-title {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  color: #4c662b;
  margin: 0;
}

.servicos-subtitle {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #1a1c16;
  line-height: 1.3;
  margin: 0;
}

.servicos-desc {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px;
  color: #404a33;
  line-height: 1.5;
  margin: 0;
}

/* BOTÃO SAIBA MAIS */
.servicos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background-color: #4c662b;
  color: #ffffff;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.15px;
  margin-top: 8px;
}

.servicos-btn:hover {
  background-color: #3d5222;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 102, 43, 0.3);
  color: #ffffff;
}

/* COLUNA DA IMAGEM */
.servicos-col-img {
  flex: 1;
  max-width: 580px;
  width: 100%;
  height: 367px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.servicos-img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 991px) {
  .servicos-subnav-wrapper {
    top: 72px;
  }

  .servicos-hero {
    min-height: 320px;
    padding: 50px 0;
  }

  .servicos-hero-title {
    font-size: 36px;
  }

  .servicos-row {
    flex-direction: column;
    gap: 28px;
  }

  .servicos-col-img {
    max-width: 100%;
    height: 300px;
  }

  .servicos-title {
    font-size: 36px;
  }

  .servicos-subtitle {
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  .servicos-subnav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
  }

  .servicos-subnav-links {
    width: 100%;
  }

  .servicos-hero-title {
    font-size: 30px;
  }

  .servicos-title {
    font-size: 30px;
  }

  .servicos-subtitle {
    font-size: 20px;
  }

  .servicos-col-img {
    height: 220px;
  }

  .servicos-btn {
    width: 100%;
  }
}