/* ==========================================================================
   SOLUÇÕES - INSTOR ROBÓTICA
   Estilos específicos da página de soluções e robôs
   ========================================================================== */

/* BARRA DE CATEGORIAS / SUB-NAV STICKY */
.solucoes-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;
}

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

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

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

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

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

.solucoes-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;
}

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

/* SEÇÃO DE SETOR */
.solucoes-sector {
  position: relative;
  scroll-margin-top: 145px;
  padding-bottom: 70px;
}

/* BANNER HERO DO SETOR */
.sector-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: 60px 0 110px;
}

.sector-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 12, 0.72);
  z-index: 1;
}

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

.sector-hero-content {
  max-width: 680px;
}

.sector-hero-bar {
  width: 87px;
  height: 5px;
  background-color: #7eac26;
  border-radius: 3px;
  margin-bottom: 20px;
}

.sector-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 14px;
}

.sector-hero-desc {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #f0f0f0;
  margin: 0;
}

/* ÁREA DE CARDS */
.sector-cards-container {
  position: relative;
  z-index: 3;
}

.sector-cards-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* O PRIMEIRO CARD SE SOBREPÕE AO HERO */
.sector-cards-list > .robo-card:first-child {
  margin-top: -85px;
}

/* CARD INDIVIDUAL DO ROBÔ */
.robo-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  min-height: 360px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.robo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(126, 172, 38, 0.2);
}

/* CONTEÚDO DE TEXTO */
.robo-info {
  padding: 45px 55px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.robo-nome {
  font-family: 'Montserrat', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: #14261c;
  line-height: 1.15;
  margin: 0 0 6px 0;
}

.robo-categoria {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #7eac26;
  line-height: 1.25;
  margin: 0 0 16px 0;
}

.robo-descricao {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: #4e5652;
  margin: 0 0 26px 0;
  max-width: 490px;
}

.btn-saiba-mais {
  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;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.15px;
}

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

.btn-saiba-mais:active {
  transform: translateY(0);
}

/* IMAGEM DO ROBÔ */
.robo-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 45px;
  height: 100%;
}

.robo-image-wrap img {
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.robo-card:hover .robo-image-wrap img {
  transform: scale(1.03);
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 1024px) {
  .robo-card {
    grid-template-columns: 1fr 1fr;
    min-height: 330px;
  }
  
  .robo-info {
    padding: 35px 35px;
  }
  
  .robo-nome {
    font-size: 32px;
  }
  
  .robo-categoria {
    font-size: 22px;
  }

  .robo-image-wrap {
    padding: 25px 25px;
  }

  .robo-image-wrap img {
    max-height: 280px;
  }
}

@media (max-width: 820px) {
  .solucoes-subnav-wrapper {
    top: 72px;
  }

  .solucoes-subnav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 15px;
  }

  .solucoes-subnav-links {
    width: 100%;
    padding-bottom: 4px;
  }

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

  .sector-cards-list > .robo-card:first-child {
    margin-top: -60px;
  }

  .robo-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .robo-info {
    padding: 35px 25px 20px;
    align-items: center;
  }

  .robo-descricao {
    text-align: center;
  }

  .robo-image-wrap {
    order: -1;
    padding: 30px 25px 10px;
  }

  .robo-image-wrap img {
    max-height: 240px;
  }
}

@media (max-width: 576px) {
  .sector-hero-title {
    font-size: 30px;
  }

  .sector-hero-desc {
    font-size: 15px;
  }

  .robo-nome {
    font-size: 28px;
  }

  .robo-categoria {
    font-size: 20px;
  }

  .robo-descricao {
    font-size: 15px;
  }

  .btn-saiba-mais {
    width: 100%;
    padding: 14px 20px;
  }

  .sector-cards-list > .robo-card:first-child {
    margin-top: -45px;
  }
}
