/* ================= RESPONSIVO ================= */

/* Desktop médio -> até 1200px */
@media (max-width: 1200px) {
  .segmento-card {
    flex: 0 0 32%;
  }
}

/* Desktop médio -> até 1024px */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem; /* título menor que full desktop */
  }
  .hero p {
    font-size: 1.1rem; /* parágrafo ajustado */
  }

    .servicos-tabs {
        padding-top: 100px;
    }


}

/*******************************
  *** Contratos
*/

#contratos {
  scroll-margin-top: -30px;
  text-align: justify;
}

.container-servicos-contratos {
  padding: 150px 20px 80px 20px;
}

.card-body p,
.card-body li {
  margin-left: 0; /* remove indentação */
  padding-left: 0; /* remove padding extra */
}




/* ================= Tablets grandes -> até 992px ================= */
@media (max-width: 992px) {

  .navbar {
    height: auto;
    background-color: #fff;
  }

  .hero {
    min-height: 80vh;
  }

  .hero .hero-card-meio {
    width: 90%;
    height: 80vh;
    justify-content: space-evenly;
    padding: 10px 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-card {
    flex: 0 0 calc(50% - 10px); /* 2 cards por linha */
    height: auto;
  }

  /*********************** Serviços **************/
  .servico-tab {
    height: auto;
    min-height: 350px;
    flex-wrap: wrap;
  }

  .servico-info,
  .servico-video {
    width: 90%;
    height: auto;
    margin: 0 auto;
  }

  .servico-video {
    width: 70%;
    height: 60vh;
  }

  .servico-tab.odd,
  .servico-tab.even {
    transform: translateX(0);
  }

  /*********************** Contratos **************/
  .container-servicos-contratos {
    padding: 60px 20px 80px 20px;
  }

  /* Cards de contratos - 2 por linha */
  .contrato-card {
    flex: 0 0 48%;
    margin-bottom: 1.5rem;
    min-width: 250px;
    max-width: none;
  }

  /* Animação de leve deslocamento horizontal */
  @keyframes floatCards {
    0% { transform: translateX(0); }
    25% { transform: translateX(10px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
  }

  /*********************** Segmentos **************/
  .segmento-wrapper {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .segmento-card {
    flex: 0 0 48%;   /* 2 cards por linha */
    margin-bottom: 1.5rem;
    min-width: 250px;
    max-width: none;
  }
}

/* ================= Tablets e mobiles grandes -> até 768px ================= */
@media (max-width: 769px) {

  .hero {
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-card {
    flex: 0 0 100%; /* 1 card por linha */
  }

  .btn-hero {
    width: 80%;
    font-size: 16px;
    padding: 15px 0;
  }

  .hero-cards {
    justify-content: center;
  }

  .hero video {
    display: none;
  }

  .hero::before {
    background: linear-gradient(#3931cc, #444085);
  }

  /*********************** Serviços **************/
  .servicos-tabs {
    padding-top: 80px;
  }

  .servico-tab {
    flex-direction: column !important;
    text-align: center;
    gap: 15px;
    min-height: auto;
  }

  .servico-info,
  .servico-video {
    width: 100%;
    min-height: 250px;
  }

  .servico-video {
    max-height: 200px;
  }

  .servico-info h3 {
    font-size: 1.5rem;
  }

  .servico-info p {
    font-size: 0.95rem;
    text-indent: 0;
  }

  /*********************** Segmentos **************/
  .segmento-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .segmento-card {
    flex: 0 0 90%;
    margin-bottom: 1.5rem;
    min-width: unset;
  }

  /* Contratos - 1 card por linha */
  .contrato-card {
    flex: 0 0 90%;
    margin-bottom: 1.5rem;
  }
}

/* ================= Mobile médio -> até 580px ================= */
@media (max-width: 580px) {

  .hero {
    min-height: 80vh;
  }

  .btn-hero {
    width: 70%;
  }

  #servicos, #contratos {
    scroll-margin-top: 60px;
  }

  #segmentos, #diferenciais, #sobre {
    scroll-margin-top: 120px;
  }

  .segmento-card {
    flex: 0 0 95%;
    margin-bottom: 1rem;
  }

  .contrato-card {
    flex: 0 0 95%;
    margin-bottom: 1rem;
  }
}

/* ================= Mobile pequeno -> até 480px ================= */
@media (max-width: 480px) {

  .hero {
    min-width: 400px;
    min-height: 680px;
  }

  .btn-hero {
    width: 60%;
    padding: 8px 0;
  }

  .segmento-card {
    flex: 0 0 100%;
    margin-bottom: 1rem;
    padding: 1rem;
  }

  .contrato-card {
    flex: 0 0 100%;
    margin-bottom: 1rem;
    padding: 1rem;
  }
}
