/* =========================================================
   HEROES MOVING • GLOBAL PERFORMANCE + MOBILE STABILITY FIX
   CLEAN / SAFE / PREMIUM
========================================================= */

/* ---------- CORE ---------- */

html{
  scroll-behavior:smooth;
  overflow-x:hidden !important;
  width:100%;
  max-width:100%;
  -webkit-text-size-adjust:100%;
}

body{
  overflow-x:hidden !important;
  width:100%;
  max-width:100%;
  margin:0;
  padding:0;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:auto;
}

/* ---------- GLOBAL BOX MODEL ---------- */

*,
*::before,
*::after{
  box-sizing:border-box;
}

/* ---------- MEDIA OPTIMIZATION ---------- */

img,
video,
canvas,
svg,
iframe{
  max-width:100%;
  height:auto;
  display:block;
}

/* ---------- TOUCH FIX ---------- */

a,
button,
input,
textarea,
select{
  touch-action:manipulation;
}

/* ---------- MOBILE PERFORMANCE ---------- */

@media(max-width:1024px){

  html,
  body{
    overflow-x:hidden !important;
    touch-action:pan-y;
  }

  *{
    -webkit-tap-highlight-color:transparent;
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;
  }

  /* Prevent random horizontal scrolling */

  section,
  div,
  container{
    max-width:100%;
  }

  /* Blur optimization */

  [style*="backdrop-filter"],
  [style*="-webkit-backdrop-filter"]{
    -webkit-transform:translateZ(0);
    transform:translateZ(0);
  }

  /* Sticky/fixed lag reduction */

  .elementor-sticky--active,
  [style*="position: fixed"]{
    will-change:transform;
    transform:translateZ(0);
  }

  /* Improve scrolling smoothness */

  body *{
    scroll-margin-top:90px;
  }

}

/* ---------- ELEMENTOR STABILITY ---------- */

.elementor,
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-widget{
  max-width:100%;
}

/* ---------- BUTTON OPTIMIZATION ---------- */

button,
.elementor-button{
  transform:translateZ(0);
  will-change:transform;
}

/* ---------- IMAGE RENDER FIX ---------- */

img{
  image-rendering:auto;
}

/* ---------- PREVENT RANDOM OVERFLOW ---------- */

.elementor-widget-container,
.elementor-text-editor,
.elementor-image,
.elementor-heading-title{
  overflow-wrap:break-word;
  word-break:normal;
}

/* ---------- SAFARI FIX ---------- */

@supports (-webkit-touch-callout:none){

  body{
    -webkit-overflow-scrolling:touch;
  }

}

/* ---------- PERFORMANCE BOOST ---------- */

.elementor-motion-effects-layer,
.elementor-background-overlay{
  pointer-events:none;
}

/* ---------- CLEAN SCROLL ---------- */

::-webkit-scrollbar{
  width:10px;
}

::-webkit-scrollbar-thumb{
  background:rgba(185,132,45,.45);
  border-radius:999px;
}

::-webkit-scrollbar-track{
  background:transparent;
}
/* =========================================================
   HEROES MOVING • SEO + UX GLOBAL ENHANCEMENT
========================================================= */

/* ---------- GLOBAL ---------- */

html{
  scroll-behavior:smooth;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
}

body{
  overflow-x:hidden;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
}

/* ---------- BETTER CONTENT READABILITY ---------- */

p{
  max-width:75ch;
}

/* ---------- IMAGE SEO + PERFORMANCE ---------- */

img{
  max-width:100%;
  height:auto;
  display:block;
}

/* ---------- PREVENT LAYOUT SHIFT ---------- */

img,
video,
iframe{
  vertical-align:middle;
}

/* ---------- MOBILE UX ---------- */

@media(max-width:1024px){

  body{
    touch-action:pan-y;
    -webkit-overflow-scrolling:touch;
  }

  *{
    -webkit-tap-highlight-color:transparent;
  }

}

/* ---------- CLICKABLE ELEMENTS ---------- */

a,
button,
.elementor-button{
  transition:
    opacity .25s ease,
    transform .25s ease,
    background .25s ease;
}

/* ---------- BETTER FOCUS ACCESSIBILITY ---------- */

a:focus,
button:focus{
  outline:none;
}

/* ---------- ELEMENTOR STABILITY ---------- */

.elementor-section,
.elementor-container,
.elementor-column{
  max-width:100%;
}

/* ---------- REDUCE OVERFLOW BUGS ---------- */

section{
  overflow-x:clip;
}

/* ---------- CLEAN SCROLLBAR ---------- */

::-webkit-scrollbar{
  width:10px;
}

::-webkit-scrollbar-thumb{
  background:rgba(185,132,45,.45);
  border-radius:999px;
}

::-webkit-scrollbar-track{
  background:transparent;
}