/*
 * =============================================================================
 * MOBILE RESPONSIVE STYLES
 * =============================================================================
 * Ajustes exclusivos para telas até 767px (alinhado ao style.css).
 * Não modifica estilos desktop. Usa apenas media queries para mobile.
 * Foco em: scroll, quebras, empilhamento, toque e usabilidade.
 * =============================================================================
 */

@media only screen and (max-width: 767px) {

  /* -------------------------------------------------------------------------
   * GLOBAL - Overflow para evitar scroll horizontal
   * ------------------------------------------------------------------------- */
  html,
  body,
  body.web-development {
    overflow-x: hidden !important;
  }

  /* -------------------------------------------------------------------------
   * SCROLL NATIVO NO MOBILE
   * No mobile o ScrollSmoother não é ativado (main.js: device_width > 767).
   * O #smooth-wrapper vem com position:fixed e overflow:hidden (inline),
   * o que bloqueia o scroll com o dedo. Aqui forçamos layout normal para
   * o documento rolar nativamente e o touch funcionar.
   * ------------------------------------------------------------------------- */
  #smooth-wrapper {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    inset: auto !important;
    overflow: visible !important;
  }

  #smooth-content {
    position: static !important;
    transform: none !important;
    overflow: visible !important;
    overflow-x: hidden !important;
    min-height: 0 !important;
  }

  /* Scroll suave com o dedo (momentum) em iOS/Android */
  html {
    -webkit-overflow-scrolling: touch !important;
    overflow-y: auto !important;
  }

  body,
  body.web-development {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* -------------------------------------------------------------------------
   * CONTAINERS & PADDING
   * Espaçamentos esquerda/direita consistentes e centralização
   * ------------------------------------------------------------------------- */
  .container.rr-container-1405,
  .container.rr-container-1630,
  .rr-container-1405,
  .rr-container-1630 {
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* -------------------------------------------------------------------------
   * HEADER
   * Esconde menu desktop no header; hamburger (navicon) já visível < 1200px
   * ------------------------------------------------------------------------- */
  .header-area-2 .header__nav {
    display: none !important;
  }

  .header-area-2 .header-main {
    padding: 12px 0;
  }

  .header-area-2__inner {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
  }

  .header-area-2 .header__logo img {
    max-height: 36px;
    width: auto;
  }

  /* Menu fixo - já oculta itens em 768px via inline; ajuste de padding */
  .fixed-menu .container {
    padding: 12px 16px;
  }

  .fixed-menu .logo img {
    max-height: 32px;
  }

  /* -------------------------------------------------------------------------
   * HERO
   * Empilhamento, centralização e leitura em telas pequenas
   * ------------------------------------------------------------------------- */
  .hero-content-3 {
    padding-top: 60px;
    padding-bottom: 80px;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }

  .hero-content-3 .title {
    line-height: 1.15;
    text-align: center;
  }

  .hero-content-3 p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Botões hero - empilhar e área de toque maior */
  .hero-content-3 .swiper-wrapper {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .hero-content-3 .swiper-wrapper > div {
    width: 100% !important;
  }

  .hero-content-3 .rr-primary-btn,
  .hero-content-3 .rr-secundary-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    min-height: 48px;
  }

  /* -------------------------------------------------------------------------
   * SPONSOR SECTION
   * Slider de clientes - centralizado
   * ------------------------------------------------------------------------- */
  .sponsor-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .sponsor-text {
    text-align: center;
  }

  .sponsor-text .title {
    margin-bottom: 30px !important;
  }

  .sponsor-carousel-2 .sponsor-item img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
  }

  /* -------------------------------------------------------------------------
   * ABOUT SECTION
   * Empilhamento das imagens e conteúdo - override Bootstrap grid
   * ------------------------------------------------------------------------- */
  .about-section-4 .row {
    flex-direction: column !important;
  }

  .about-section-4 .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Imagens empilhadas uma abaixo da outra */
  .about-section-4 .about-img-wrap-4 {
    order: 1;
    margin-bottom: 24px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 20px;
    text-align: center;
    max-width: 100%;
  }

  .about-section-4 .about-img-wrap-4 .img-1,
  .about-section-4 .about-img-wrap-4 .img-2 {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 200px;
    margin-bottom: 0;
  }

  .about-section-4 .about-img-wrap-4 .img-1 img,
  .about-section-4 .about-img-wrap-4 .img-2 img {
    width: 100% !important;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    display: block;
  }

  .about-section-4 .about-content-4 {
    order: 2;
    text-align: center;
  }

  .about-section-4 .section-heading,
  .about-section-4 .about-counter-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-section-4 .about-counter-wrap {
    flex-direction: column !important;
    gap: 16px;
  }

  .about-section-4 .about-counter {
    width: 100%;
  }

  /* -------------------------------------------------------------------------
   * SERVICE SECTION (Por que Mobeo)
   * Empilhamento e scroll - override Bootstrap
   * ------------------------------------------------------------------------- */
  .service-section-3 .row {
    flex-direction: column !important;
  }

  .service-section-3 .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .service-section-3 .service-left.sticky-widget {
    position: relative;
  }

  .service-section-3 .service-box-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .service-section-3 .service-box {
    width: 100%;
  }

  .service-section-3 .service-left {
    text-align: center;
  }

  .service-section-3 .hover-content {
    flex-direction: column;
    align-items: center;
  }

  .service-section-3 .content-left,
  .service-section-3 .content-right {
    width: 100%;
    text-align: center;
  }

  /* Imagens do serviço empilhadas */
  .service-section-3 .service-img {
    width: 100% !important;
    margin: 0 auto 16px;
    display: block;
  }

  .service-section-3 .service-img img {
    width: 100% !important;
    height: auto;
    display: block;
  }

  .service-section-3 .project-thumb,
  .service-section-3 .project-thumb img {
    width: 100% !important;
    height: auto;
    display: block;
  }

  /* -------------------------------------------------------------------------
   * PROCESS SECTIONS (Destaques, Nossa abordagem)
   * Cards empilhados em coluna única - override Bootstrap
   * ------------------------------------------------------------------------- */
  .process-section .row,
  .process-section-3 .row {
    flex-direction: column !important;
  }

  .process-section .row > [class*="col-"],
  .process-section-3 .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .process-item,
  .process-item-wrap {
    width: 100%;
  }

  .process-section .section-heading,
  .process-section-3 .section-heading {
    text-align: center;
  }

  .process-item,
  .process-item-2 {
    text-align: center;
  }

  /* -------------------------------------------------------------------------
   * PROJECT SECTION (Soluções - accordion)
   * Accordion full-width e área de toque para botões
   * ------------------------------------------------------------------------- */
  .project-section .accordion-button {
    padding: 16px;
    min-height: 56px;
    font-size: 14px;
  }

  .project-section .accordion-button .project-content {
    flex-wrap: wrap;
  }

  .project-section .accordion-button .number {
    flex: 0 0 100%;
    margin-bottom: 4px;
  }

  .project-section .hover-content {
    flex-direction: column;
    align-items: center;
  }

  .project-section .content-left,
  .project-section .content-right {
    width: 100%;
    text-align: center;
  }

  /* Imagens do accordion empilhadas */
  .project-section .project-thumb {
    width: 100% !important;
    margin: 0 auto 16px;
    display: block;
  }

  .project-section .project-thumb img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover;
  }

  /* -------------------------------------------------------------------------
   * TESTIMONIAL SECTION
   * Empilhamento de cards - override Bootstrap
   * ------------------------------------------------------------------------- */
  .testimonial-section .row {
    flex-direction: column !important;
  }

  .testimonial-section .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .testimonial-section .section-heading {
    text-align: center;
  }

  .testi-item {
    width: 100%;
  }

  .testi-item.item-3 {
    text-align: center;
  }

  /* -------------------------------------------------------------------------
   * APPOINTMENT SECTION (Contato)
   * Formulário full-width e inputs com área de toque adequada
   * ------------------------------------------------------------------------- */
  .appointment-section .row,
  .appointment-wrap {
    flex-direction: column !important;
  }

  .appointment-section .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .appointment-wrap .appointment-img {
    order: 1;
    height: 280px;
    max-width: 100%;
    width: 100%;
  }

  .appointment-wrap .appointment-img img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .appointment-section .section-heading {
    text-align: center;
  }

  .appointment-wrap .appointment-content {
    order: 2;
    padding: 24px 0 40px 0 !important;
  }

  .appointment-wrap .form-group .col-md-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .appointment-wrap .form-control,
  .appointment-wrap .form-control.address {
    min-height: 48px;
    padding: 14px 16px;
  }

  .appointment-wrap textarea.form-control {
    min-height: 120px;
  }

  .appointment-wrap .rr-primary-btn {
    width: 100%;
    min-height: 48px;
    padding: 14px 24px;
  }

  /* -------------------------------------------------------------------------
   * FOOTER
   * Empilhamento e links com área de toque
   * ------------------------------------------------------------------------- */
  .footer-section .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .footer-section .footer-top .title {
    text-align: center;
  }

  .footer-section .footer-wrap .footer-text-social {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .footer-section .footer-text-social li a {
    padding: 8px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .copyright-area .copyright-content {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  /* -------------------------------------------------------------------------
   * SIDE INFO / OFFCANVAS - Menu mobile
   * Largura total e links com área de toque adequada
   * ------------------------------------------------------------------------- */
  .side-info {
    width: 100%;
    max-width: 100%;
  }

  .side-info .mean-nav a,
  .side-info a[href^="#"] {
    padding: 14px 16px !important;
    min-height: 48px;
    display: flex !important;
    align-items: center;
  }

  /* -------------------------------------------------------------------------
   * PROGRESS WRAP (scroll to top)
   * Botão com área de toque adequada
   * ------------------------------------------------------------------------- */
  .progress-wrap {
    width: 44px;
    height: 44px;
    right: 16px;
    bottom: 16px;
  }

  /* -------------------------------------------------------------------------
   * TRUST WALLET BOX (inline)
   * Redimensionar para caber em mobile
   * ------------------------------------------------------------------------- */
  .trust-wallet-one-tap .box {
    width: calc(100vw - 32px);
    max-width: 384px;
    right: 16px;
    bottom: 16px;
  }

  /* -------------------------------------------------------------------------
   * MODAL SUCESSO
   * Centralizar e limitar largura em mobile
   * ------------------------------------------------------------------------- */
  #modalSucesso > div {
    max-width: calc(100vw - 32px);
    margin: 16px;
  }

  /* -------------------------------------------------------------------------
   * IMAGENS GLOBAIS - Garantir empilhamento vertical
   * Todas as imagens devem estar uma abaixo da outra
   * ------------------------------------------------------------------------- */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Imagens em containers flex/grid - forçar coluna */
  .row img,
  [class*="col-"] img,
  .fade-wrapper img,
  .reveal img {
    width: 100% !important;
    display: block;
    margin-bottom: 16px;
  }

  /* Imagens em múltiplas colunas - empilhar */
  .row > [class*="col-"] > img,
  .row > [class*="col-"] > * > img {
    width: 100% !important;
    display: block;
  }

  /* Hero section - imagens de fundo e elementos */
  .hero-section-3 .hero-round-img,
  .hero-section-3 .shapes img {
    max-width: 100%;
    height: auto;
  }

  /* Testimonial - imagens dos depoimentos */
  .testi-item .testi-thumb,
  .testi-item .testi-thumb img {
    width: 100%;
    max-width: 120px;
    margin: 0 auto 16px;
    display: block;
  }

  /* Process icons - garantir empilhamento */
  .process-icon img {
    width: 100%;
    max-width: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* -------------------------------------------------------------------------
   * SECTION SPACING
   * Padding vertical das seções principais para mobile
   * ------------------------------------------------------------------------- */
  .sponsor-section.pb-130,
  .about-section-4.pb-130,
  .about-section-4.pt-130,
  .service-section-3.pt-130,
  .process-section.pt-130,
  .process-section.pb-130,
  .process-section-3.pt-130,
  .process-section-3.pb-130,
  .project-section.pt-130,
  .project-section.pb-130,
  .testimonial-section.pb-130,
  .testimonial-section.pt-130,
  .appointment-section.pb-130,
  .appointment-section.pt-130 {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}
