/* =========================================================
   GOCO MOBILE STATIC MODE V1
   - Chỉ áp dụng dưới 850px
   - Desktop không bị tác động
   - Không thay option key hoặc dữ liệu quản trị
   ========================================================= */

@media (max-width: 849px) {
  html.goco-mobile-static,
  html.goco-mobile-static body,
  html.goco-mobile-static body * {
    scroll-behavior: auto !important;
  }

  /* Tắt toàn bộ CSS animation và transition trên mọi trang mobile. */
  html.goco-mobile-static body *,
  html.goco-mobile-static body *::before,
  html.goco-mobile-static body *::after {
    animation: none !important;
    animation-name: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    transition-property: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  /* One-page: bỏ snap và hiệu ứng chuyển section, vẫn giữ cuộn dọc. */
  html.goco-mobile-static body.goco-v2-live #goco-app.goco-app,
  html.goco-mobile-static #goco-app.goco-app {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
    overscroll-behavior-y: auto !important;
  }

  html.goco-mobile-static .goco-slide {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
    filter: none !important;
  }

  html.goco-mobile-static .goco-slide.is-leaving {
    opacity: 1 !important;
    filter: none !important;
  }

  /* Tắt các lớp trang trí chuyển động toàn trang. */
  html.goco-mobile-static .goco-leaves,
  html.goco-mobile-static .goco-sparkles,
  html.goco-mobile-static .goco-progress,
  html.goco-mobile-static .goco-services-v4x__beam,
  html.goco-mobile-static .gp9-hero__shine,
  html.goco-mobile-static .gp9-hero__spark,
  html.goco-mobile-static .gcwmp-nutrition__shine {
    display: none !important;
  }

  /* Các hệ reveal phổ biến phải hiển thị ngay, không chờ class JS. */
  html.goco-mobile-static [data-goco-reveal],
  html.goco-mobile-static [data-animate],
  html.goco-mobile-static [data-aos],
  html.goco-mobile-static .aos-init,
  html.goco-mobile-static .wow,
  html.goco-mobile-static .ux-animate,
  html.goco-mobile-static .ux-animate-ready,
  html.goco-mobile-static .goco-card-grid > *,
  html.goco-mobile-static .gp9-reveal,
  html.goco-mobile-static .gcwmp-reveal,
  html.goco-mobile-static .gcwmp-heading-line,
  html.goco-mobile-static .gcwmp-dish,
  html.goco-mobile-static .gm4-card,
  html.goco-mobile-static .gm4-card__icon {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    clip-path: none !important;
    transform: none !important;
  }

  /* Trang chủ và Giới thiệu: ảnh/ribbon không còn bị giữ ở trạng thái đầu. */
  html.goco-mobile-static .goco-hero__media,
  html.goco-mobile-static .goco-hero__media img,
  html.goco-mobile-static .goco-about__media,
  html.goco-mobile-static .goco-about__media img {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    clip-path: none !important;
    transform: none !important;
  }

  html.goco-mobile-static .goco-hero__ribbon,
  html.goco-mobile-static .goco-about__ribbon {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    transform: rotate(-14deg) scale(1) !important;
  }

  /* Dịch vụ: không để JS is-entered làm card bị opacity 0. */
  html.goco-mobile-static .goco-services-v4x.is-js:not(.is-entered) .goco-v4x-card__surface,
  html.goco-mobile-static .goco-services-v4x .goco-v4x-card__surface,
  html.goco-mobile-static .goco-v4x-mobile__featured,
  html.goco-mobile-static .goco-v4x-mobile__image,
  html.goco-mobile-static .goco-v4x-mobile__body {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
  }

  html.goco-mobile-static .goco-services-v4x.is-js:not(.is-entered) .goco-v4x-card__surface {
    transform: none !important;
  }

  /* Logo đối tác: bỏ tự chạy nhưng vẫn xem được tất cả bằng vuốt ngang. */
  html.goco-mobile-static .gcontact-logo-viewport {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
    scroll-snap-type: x proximity !important;
  }

  html.goco-mobile-static .gcontact-logo-viewport::-webkit-scrollbar {
    display: none !important;
  }

  html.goco-mobile-static .gcontact-logo-track {
    width: max-content !important;
    transform: none !important;
  }

  html.goco-mobile-static .gcontact-logo-set {
    flex: 0 0 auto !important;
  }

  html.goco-mobile-static .gcontact-logo-set[aria-hidden="true"] {
    display: none !important;
  }

  html.goco-mobile-static .gcontact-logo {
    scroll-snap-align: start !important;
  }

  /* Các slider vẫn chuyển thủ công nhưng chuyển tức thời. */
  html.goco-mobile-static .gcontact-testimonial-track,
  html.goco-mobile-static .gnews-grid__items,
  html.goco-mobile-static [data-gcwmp-track],
  html.goco-mobile-static .flickity-slider,
  html.goco-mobile-static .swiper-wrapper,
  html.goco-mobile-static .slick-track {
    transition: none !important;
  }
}
