/* ==========================================================================
   INSPEÇÃO ROBÓTICA DE CALDEIRAS - INSTOR ROBÓTICA
   Estilos baseados na estrutura oficial de instor.com.br - simplificado
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO BANNER
   -------------------------------------------------------------------------- */
.caldeiras-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-color: #000000;
  background-image: url('../images/servicos/caldeiras.jpg');
}

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

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

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

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

.caldeiras-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;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   SEÇÃO GERAL (PADRÃO BRANCO)
   -------------------------------------------------------------------------- */
.caldeiras-section {
  width: 100%;
  background-color: #ffffff;
  padding: 32px 0;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   SEÇÃO 1: HERO CONTAINER (APRESENTAÇÃO)
   -------------------------------------------------------------------------- */
.hero-container {
  width: 100%;
  min-height: 500px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 8px;
  box-sizing: border-box;
  max-width: 1200px;
  text-align: left;
  color: #4c662b;
  font-family: 'Source Sans Pro', sans-serif;
}

.hero-coluna-texto {
  align-self: stretch;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 1px;
  flex-shrink: 0;
}

.hero-text-block {
  align-self: stretch;
  flex: 1;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 0px;
  gap: 20px;
}

.hero-title {
  align-self: stretch;
  position: relative;
  line-height: 1.2;
  font-size: 44px;
  font-weight: 900;
  font-family: 'Source Sans Pro', 'Montserrat', sans-serif;
  color: #4c662b;
  margin: 0;
}

.hero-desc {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  font-size: 18px;
  color: #222222;
  line-height: 1.6;
}

.hero-desc p {
  margin: 0;
}

.hero-desc b {
  font-weight: 700;
}

.hero-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ffffff;
  margin-top: 8px;
}

.hero-btn {
  text-decoration: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #4c662b;
  border-radius: 16px;
  padding: 16px 28px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.15px;
  line-height: 24px;
  border: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

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

.hero-img {
  height: 484px;
  width: 580px;
  max-width: 50%;
  position: relative;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   SEÇÃO 2: DESAFIOS & DIFICULDADES
   -------------------------------------------------------------------------- */
.desafios-container {
  width: 100%;
  min-height: 500px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 8px;
  box-sizing: border-box;
  max-width: 1200px;
  text-align: left;
  font-family: 'Source Sans Pro', sans-serif;
}

.desafios-img {
  height: 468px;
  width: 580px;
  max-width: 50%;
  position: relative;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
}

.desafios-coluna-texto {
  align-self: stretch;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 0px;
  box-sizing: border-box;
  gap: 24px;
  min-height: 1px;
}

.desafios-title {
  align-self: stretch;
  position: relative;
  line-height: 1.25;
  font-size: 38px;
  font-weight: 900;
  color: #4c662b;
  font-family: 'Source Sans Pro', 'Montserrat', sans-serif;
  margin: 0;
}

.desafios-cards-wrapper {
  width: 100%;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 18px;
  color: #404a33;
}

.desafios-card {
  width: calc(50% - 8px);
  border-radius: 20px;
  background-color: #ffffff;
  border: 1px solid #c5c8ba;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 20px;
  min-height: 90px;
}

.desafios-card b {
  position: relative;
  letter-spacing: -0.25px;
  line-height: 1.4;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   SEÇÃO 3: MELHORIAS OPERACIONAIS
   -------------------------------------------------------------------------- */
.melhorias-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 8px;
  box-sizing: border-box;
  gap: 32px;
  text-align: center;
  color: #4c662b;
  font-family: 'Source Sans Pro', sans-serif;
}

.melhorias-title {
  position: relative;
  line-height: 1.2;
  font-size: 38px;
  color: #4c662b;
  margin: 0;
}

.melhorias-grid {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  font-size: 20px;
  color: #404a33;
  font-family: 'Source Sans Pro', sans-serif;
  flex-wrap: wrap;
}

.melhorias-card {
  flex: 1 1 220px;
  border-radius: 20px;
  background-color: #dce7c7;
  border: 1px solid #c5c8ba;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 20px;
  gap: 16px;
  text-align: center;
}

.melhoria-icon {
  font-size: 40px;
  color: #4c662b;
  user-select: none;
}

.melhoria-card-title {
  align-self: stretch;
  position: relative;
  letter-spacing: -0.25px;
  font-size: 20px;
  line-height: 1.3;
  color: #4c662b;
  font-weight: 700;
}

.melhoria-card-desc {
  align-self: stretch;
  position: relative;
  font-size: 16px;
  line-height: 1.6;
  color: #404a33;
  letter-spacing: -0.25px;
}

/* --------------------------------------------------------------------------
   SEÇÃO 4: A TECNOLOGIA EM CAMPO
   -------------------------------------------------------------------------- */
.tec-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 8px;
  box-sizing: border-box;
  gap: 32px;
  text-align: center;
  color: #4c662b;
  font-family: 'Source Sans Pro', sans-serif;
}

.tec-title {
  position: relative;
  line-height: 1.2;
  font-size: 38px;
  color: #4c662b;
  margin: 0;
}

.tec-grid {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  font-size: 20px;
  color: #404a33;
  font-family: 'Source Sans Pro', sans-serif;
  flex-wrap: wrap;
}

.tec-card {
  flex: 1 1 280px;
  border-radius: 20px;
  background-color: #ffffff;
  border: 1px solid #c5c8ba;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px;
  gap: 16px;
  text-align: center;
}

.tec-icon {
  font-size: 40px;
  color: #4c662b;
  user-select: none;
}

.tec-card-title {
  align-self: stretch;
  position: relative;
  letter-spacing: -0.25px;
  font-size: 20px;
  line-height: 1.3;
  color: #4c662b;
  font-weight: 700;
}

.tec-card-desc {
  align-self: stretch;
  position: relative;
  font-size: 16px;
  line-height: 1.6;
  color: #404a33;
  letter-spacing: -0.25px;
}

/* --------------------------------------------------------------------------
   SEÇÃO 5: CARROSSEL OFICIAL (INSTOR SIMPLIFICADO)
   -------------------------------------------------------------------------- */
.instor-carrossel-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  box-sizing: border-box;
  gap: 24px;
  text-align: center;
  color: #4c662b;
  font-family: 'Source Sans Pro', sans-serif;
}

.instor-carrossel-title {
  font-size: 38px;
  line-height: 1.2;
  color: #4c662b;
  margin: 0;
  position: relative;
}

.instor-carrossel-viewport {
  width: 100%;
  position: relative;
}

.instor-carrossel-track {
  display: flex;
  gap: 20px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 16px 12%;
  box-sizing: border-box;
  scrollbar-width: none;
}

.instor-carrossel-track::-webkit-scrollbar {
  display: none;
}

.instor-carrossel-slide {
  flex: 0 0 76%;
  height: 480px;
  background-color: #dce7c7;
  scroll-snap-align: center;
  border-radius: 20px;
  border: 1px solid #c5c8ba;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  opacity: 0.45;
  transform: scale(0.92);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
}

.instor-carrossel-slide:hover {
  box-shadow: 0 12px 32px rgba(76, 102, 43, 0.2);
}

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

.instor-carrossel-img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover !important;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.instor-carrossel-slide.active:hover .instor-carrossel-img {
  transform: scale(1.02);
}

.instor-carrossel-arrow {
  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: #4c662b;
  display: flex;
  align-items: center;
  justify-content: center;
  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;
  z-index: 10;
  user-select: none;
}

.instor-carrossel-arrow:hover {
  background-color: #4c662b;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.instor-carrossel-arrow.prev {
  left: 16px;
}

.instor-carrossel-arrow.next {
  right: 16px;
}

.instor-carrossel-arrow span {
  font-size: 28px;
}

.instor-carrossel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.instor-carrossel-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #c5c8ba;
  cursor: pointer;
  transition: background-color 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
}

.instor-carrossel-dot.active {
  background-color: #4c662b;
  width: 36px;
  border-radius: 12px;
}

/* Lightbox Modal */
.instor-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 24px;
  box-sizing: border-box;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instor-lightbox-overlay.open {
  display: flex;
  opacity: 1;
}

.instor-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.instor-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

.instor-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  color: #ffffff;
  font-size: 36px;
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   SEÇÃO 6: INTELIGÊNCIA & DIAGNÓSTICO
   -------------------------------------------------------------------------- */
.inteligencia-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 8px;
  box-sizing: border-box;
  gap: 24px;
  text-align: center;
  color: #4c662b;
  font-family: 'Source Sans Pro', sans-serif;
}

.inteligencia-title {
  position: relative;
  line-height: 1.2;
  font-size: 38px;
  color: #4c662b;
}

.inteligencia-subtitle {
  align-self: stretch;
  position: relative;
  font-size: 22px;
  line-height: 1.5;
  color: #404a33;
  font-family: 'Source Sans Pro', sans-serif;
  max-width: 900px;
  margin: 0 auto;
}

.inteligencia-media {
  width: 100%;
  max-width: 1135px;
  height: 563px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   SEÇÃO 7: O NOSSO PROCESSO
   -------------------------------------------------------------------------- */
.processo-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 8px;
  box-sizing: border-box;
  gap: 32px;
  text-align: center;
  color: #4c662b;
  font-family: 'Source Sans Pro', sans-serif;
}

.processo-title {
  position: relative;
  line-height: 1.2;
  font-size: 38px;
  color: #4c662b;
}

.processo-grid {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 20px;
  color: #404a33;
  font-family: 'Source Sans Pro', sans-serif;
  flex-wrap: wrap;
}

.processo-card {
  flex: 1 1 200px;
  align-self: stretch;
  border-radius: 20px;
  background-color: #ffffff;
  border: 1px solid #c5c8ba;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 16px;
  gap: 16px;
  text-align: center;
}

.processo-icon {
  font-size: 40px;
  color: #4c662b;
  user-select: none;
}

.processo-card-title {
  align-self: stretch;
  position: relative;
  letter-spacing: -0.25px;
  font-size: 20px;
  line-height: 1.3;
  color: #4c662b;
  font-weight: 700;
}

.processo-card-desc {
  align-self: stretch;
  position: relative;
  font-size: 16px;
  line-height: 1.6;
  color: #404a33;
  letter-spacing: -0.25px;
}

.processo-arrow {
  font-size: 28px;
  color: #4c662b;
  flex-shrink: 0;
  user-select: none;
}

/* --------------------------------------------------------------------------
   SEÇÃO 8: CLIENTES & PARCEIROS (FUNDO SUAVE #f8fdf2)
   -------------------------------------------------------------------------- */
.clientes-section {
  width: 100%;
  background-color: #f8fdf2;
  padding: 48px 16px;
  box-sizing: border-box;
}

.clientes-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  color: #4c662b;
  font-family: 'Source Sans Pro', sans-serif;
}

.clientes-title {
  position: relative;
  line-height: 1.2;
  font-size: 38px;
  color: #4c662b;
}

.clientes-logo {
  width: 151px;
  height: 151px;
  object-fit: contain;
  display: block;
}

/* --------------------------------------------------------------------------
   SEÇÃO 9: CALL TO ACTION BANNER
   -------------------------------------------------------------------------- */
.cta-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 24px 8px;
  box-sizing: border-box;
  font-family: 'Source Sans Pro', sans-serif;
}

.cta-card {
  width: 100%;
  border-radius: 20px;
  background-color: #dce7c7;
  border: 1px solid #c5c8ba;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 48px;
  gap: 32px;
}

.cta-text-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cta-title {
  align-self: stretch;
  position: relative;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.25px;
  color: #4c662b;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 700;
}

.cta-desc {
  align-self: stretch;
  position: relative;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.25px;
  color: #404a33;
}

.cta-btn {
  text-decoration: none;
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cta-btn-inner {
  border-radius: 16px;
  background-color: #4c662b;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  letter-spacing: 0.15px;
  line-height: 24px;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
  text-align: center;
}

.cta-btn:hover .cta-btn-inner {
  background-color: #3d5222;
  box-shadow: 0 4px 12px rgba(76, 102, 43, 0.3);
}

.cta-btn:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVIDADE: TABLET (Até 991px)
   ========================================================================== */
@media (max-width: 991px) {
  .hero-container,
  .desafios-container {
    flex-direction: column;
    padding: 24px 16px;
  }

  .hero-img,
  .desafios-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 400px;
  }

  .desafios-coluna-texto {
    width: 100%;
  }

  .desafios-cards-wrapper {
    gap: 12px;
  }

  .desafios-card {
    width: calc(50% - 6px);
  }

  .instor-carrossel-title {
    font-size: 32px;
  }

  .instor-carrossel-slide {
    flex: 0 0 82%;
    height: 360px;
  }

  .instor-carrossel-track {
    padding: 12px 9%;
  }

  .instor-carrossel-arrow {
    width: 40px;
    height: 40px;
  }

  .inteligencia-container {
    gap: 20px;
    padding: 20px 8px;
  }

  .inteligencia-title {
    font-size: 32px;
  }

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

  .inteligencia-media {
    height: auto;
    max-height: 400px;
  }

  .processo-container {
    gap: 24px;
    padding: 20px 8px;
  }

  .processo-title {
    font-size: 32px;
  }

  .processo-arrow {
    display: none;
  }

  .processo-card {
    flex: 1 1 calc(50% - 16px);
    padding: 24px 16px;
  }

  .clientes-section {
    padding: 32px 16px;
  }

  .clientes-title {
    font-size: 32px;
  }

  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }

  .cta-text-block {
    align-items: center;
    width: 100%;
  }

  .cta-title {
    font-size: 26px;
  }
}

/* ==========================================================================
   RESPONSIVIDADE: MOBILE (Até 600px)
   ========================================================================== */
@media (max-width: 600px) {
  .caldeiras-hero {
    min-height: 280px;
    padding: 50px 0;
  }

  .caldeiras-hero-title {
    font-size: 32px;
  }

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

  .hero-desc {
    font-size: 16px;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .desafios-title {
    font-size: 28px;
  }

  .desafios-card {
    width: 100%;
  }

  .melhorias-title,
  .tec-title {
    font-size: 28px;
  }

  .melhorias-card,
  .tec-card {
    flex: 1 1 100%;
  }

  .instor-carrossel-title {
    font-size: 26px;
  }

  .instor-carrossel-slide {
    flex: 0 0 84%;
    height: 260px;
  }

  .instor-carrossel-track {
    padding: 12px 8%;
  }

  .instor-carrossel-arrow {
    display: none;
  }

  .inteligencia-title {
    font-size: 26px;
  }

  .inteligencia-subtitle {
    font-size: 16px;
  }

  .inteligencia-media {
    max-height: 240px;
  }

  .processo-title {
    font-size: 26px;
  }

  .processo-card {
    flex: 1 1 100%;
    padding: 20px 16px;
  }

  .clientes-section {
    padding: 24px 16px;
  }

  .clientes-title {
    font-size: 26px;
  }

  .clientes-logo {
    width: 120px;
    height: 120px;
  }

  .cta-container {
    padding: 16px 8px;
  }

  .cta-card {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .cta-title {
    font-size: 22px;
  }

  .cta-desc {
    font-size: 15px;
  }

  .cta-btn {
    width: 100%;
  }

  .cta-btn-inner {
    width: 100%;
    box-sizing: border-box;
  }
}
