@media (max-width: 992px) {
  .hero_area_servicos {
    height: 120vh !important;
    background-color: #b5caee;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), transparent),
      url("../images/bg-servicos-mobile.png");
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .hero_area_servicos::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background-image: url(../images/gradient-home-mobile.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: bottom;
    z-index: 1;
  }

  .div-servicos-initial {
    width: 100% !important;
  }

  .container-servicos {
    width: 100%;
    padding: 0 15px;
    overflow-x: hidden;
    margin-left: 0px !important;
    padding-right: 0px !important;
  }

  .slider_section-hero {
    padding: 20px 0;
    margin-top: 1.5rem !important;
  }

  .detail-box {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .detail-box > div {
    width: 100% !important;
    margin-top: 1rem !important;
  }

  .detail-box h1 {
    font-size: 36px !important;
    text-align: center;
  }

  .hero-subtitle {
    width: 100% !important;
    text-align: center;
    font-size: 16px;
  }

  .div-aviso {
    margin: 0 !important;
  }

  .servicos-title-services {
    margin-left: 3.5rem;
  }

  .button-servicos {
    display: block;
    margin: 0 auto;
    font-size: 14px;
    margin-bottom: 25vh;
  }

  .col {
    padding-left: 5px !important;
  }

  .image-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: -100px;
    padding: 0 15px;
    position: relative;
    z-index: 2;
  }

  .image-card {
    width: 100%;
    margin-bottom: 15px;
    max-width: 320px;
    position: relative;
  }

  .image-card:first-child {
    z-index: 3;
    margin-bottom: 25px;
  }

  .image-card:not(:first-child) {
    z-index: 2;
    margin-bottom: 20px;
  }

  .image-card-content {
    width: 100%;
  }

  .image-card img {
    width: 100%;
    height: 100%;
  }

  .categories-section .container {
    width: 100% !important;
    padding: 0 20px;
  }

  .servicos-orcamento-title {
    font-size: 26px;
    text-align: center;
  }

  .servicos-orcamento-subtitle {
    font-size: 16px;
    text-align: center;
  }

  .button-container {
    flex-direction: column;
  }

  .servicos-button-wpp,
  .servicos-button-msg {
    width: 100%;
    margin-bottom: 10px;
  }

  div[style*="display: flex; gap: 16px"] {
    flex-direction: column;
    gap: 10px !important;
  }

  .servicos-input {
    width: 100% !important;
    margin-bottom: 10px;
  }

  .servicos-servicos-section {
    padding: 0 15px;
  }

  .servicos-servicos-section .container {
    margin-bottom: 40px !important;
  }

  .servicos-servicos-section h2 {
    font-size: 28px !important;
    text-align: center;
    padding-top: 40px !important;
    margin-bottom: 30px !important;
  }

  .servicos-card-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    padding: 15px;
  }

  .servicos-card-icon-circle {
    margin: 0 auto 20px auto;
  }

  .servicos-card-text-content {
    padding-left: 0;
  }

  .servicos-card-title {
    font-size: 22px;
    text-align: center;
  }

  .servicos-card-subtitle {
    font-size: 18px;
    text-align: center;
  }

  .servicos-card-description {
    font-size: 16px;
    text-align: center;
  }

  .contact-section {
    padding: 40px 0 !important;
  }

  .contact-section .row {
    flex-direction: column;
  }

  .contact-section .col-md-6 {
    width: 100%;
    margin-bottom: 40px;
    padding: 0 15px;
  }

  .contact-section-title {
    font-size: 24px;
    text-align: center;
  }

  .contact-section-subtitle {
    text-align: center;
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    justify-items: center;
  }

  .partners-grid img {
    max-width: 80px !important;
  }

  .contact-section
    form
    div[style*="display: flex; justify-content: space-between"] {
    flex-direction: column;
    align-items: center;
  }

  .contact-section form span {
    margin-bottom: 15px;
    text-align: center;
  }

  .servicos-button-submit {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero_area_servicos {
    height: 160vh;
  }

  .hero_area_servicos::before {
    height: 80vh;
  }

  .button-servicos {
    margin-bottom: 30vh;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .hero_area_servicos {
    height: 170vh;
  }

  .hero_area_servicos::before {
    height: 90vh;
  }

  .button-servicos {
    margin-bottom: 35vh;
  }

  .detail-box h1 {
    font-size: 36px !important;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .servicos-orcamento-title {
    font-size: 22px;
  }

  div[style*="display: flex; align-items: center; justify-content: center; gap: 16px"] {
    flex-direction: column;
  }

  div[style*="display: flex; align-items: center; justify-content: center; gap: 16px"]
    span {
    margin: 10px 0;
  }
}

@media (max-width: 360px) {
  .hero_area_servicos {
    height: 180vh;
  }

  .hero_area_servicos::before {
    height: 100vh;
  }

  .button-servicos {
    margin-bottom: 40vh;
  }
}

@media (max-width: 992px) {
  .detail-box .image-cards-container {
    display: none;
  }

  .mobile-cards-section {
    display: block;
    background-color: #2c2a2a !important;
    padding: 40px 15px;
    width: 100%;
    position: relative;
    z-index: 2;
    margin-top: -30px;
  }

  .mobile-cards-section .image-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .mobile-cards-section .image-card {
    width: 100%;
    max-width: 340px;
    min-width: 340px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
  }
}

@media (min-width: 993px) {
  .mobile-cards-section {
    display: none;
  }
  .image-cards-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 20vh;
    margin-bottom: 5vh;
    width: 100%;
    position: relative;
    z-index: 3;
  }

  .hero_area_servicos {
    min-height: 130vh;
    height: auto;
  }
}

@media (max-width: 992px) {
  .mobile-cards-section .image-card {
    width: 100%;
    max-width: 340px;
    min-width: 340px;
    height: auto;
    aspect-ratio: 16/9;
  }
}

/* Ajustes para telas médias */
@media (max-width: 768px) {
  .hero_area_servicos {
    min-height: 100vh;
  }

  .button-servicos {
    margin-bottom: 10vh;
  }
}

@media (max-width: 480px) {
  .hero_area_servicos {
    min-height: 90vh;
  }

  .button-servicos {
    margin-bottom: 8vh;
  }
}
