/* Offline/static support for the Mevish IT Solutions website.
   The original Next.js runtime can't start from file://, so content that the
   theme hides until its JS animates it in is made visible here. */

/* Always visible when JavaScript is unavailable */
.tj-fade-anim,
.tj-split-text-1, .tj-split-text-2, .tj-split-text-3, .tj-split-text-4, .tj-split-text-5 {
  opacity: 1 !important;
}

/* With offline.js running: gentle fade-up as sections scroll into view */
html.ofl-js .tj-fade-anim:not(.ofl-in),
html.ofl-js .tj-split-text-1:not(.ofl-in), html.ofl-js .tj-split-text-2:not(.ofl-in),
html.ofl-js .tj-split-text-3:not(.ofl-in), html.ofl-js .tj-split-text-4:not(.ofl-in),
html.ofl-js .tj-split-text-5:not(.ofl-in) {
  opacity: 0 !important;
  transform: translateY(30px);
}
html.ofl-js .tj-fade-anim,
html.ofl-js .tj-split-text-1, html.ofl-js .tj-split-text-2, html.ofl-js .tj-split-text-3,
html.ofl-js .tj-split-text-4, html.ofl-js .tj-split-text-5 {
  transition: opacity .8s ease, transform .8s ease;
}
@media (prefers-reduced-motion: reduce) {
  html.ofl-js .tj-fade-anim:not(.ofl-in),
  html.ofl-js [class*="tj-split-text-"]:not(.ofl-in) { opacity: 1 !important; transform: none; }
}

/* Sliders (replacement for Swiper) */
.swiper.ofl-slider { overflow: hidden; }
.swiper.ofl-slider > .swiper-wrapper {
  display: flex; transition: transform .7s ease; will-change: transform;
}
.swiper.ofl-slider > .swiper-wrapper > .swiper-slide { flex-shrink: 0; }

/* Continuous logo marquee */
.swiper.ofl-marquee > .swiper-wrapper {
  display: flex; width: max-content; animation: ofl-marquee 40s linear infinite;
}
.swiper.ofl-marquee > .swiper-wrapper > .swiper-slide { width: auto; flex-shrink: 0; }
.swiper.ofl-marquee:hover > .swiper-wrapper { animation-play-state: paused; }
@keyframes ofl-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ofl-dots { display: flex; gap: 8px; justify-content: center; align-items: center; }
.ofl-dots .swiper-pagination-bullet { cursor: pointer; }
.slider-prev, .slider-next { cursor: pointer; }

/* Mobile menu sub-menus */
.mean-nav .sub-menu.ofl-open { display: block !important; }

/* Custom select */
.nice-select .list { pointer-events: none; }
.nice-select.open .list { pointer-events: auto; }

/* Keep an opened side panel above the blurred page overlay */
.hamburger-area.opened, .tj-offcanvas-area.opened { z-index: 10000; }

/* Off-screen side panels must not widen the page on phones */
html { overflow-x: hidden; }

/* brand logo sizing */
.site_logo .logo{max-width:230px}
.footer-logo{max-width:270px}
.hamburger_logo .mobile_logo{max-width:200px}
@media (max-width:575px){.site_logo .logo{max-width:190px}}
