/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/
/* =========================================
   ASTRA STICKY MENU + ZOOM FIX (FINAL)
   ========================================= */

/* Fix the Astra header wrapper */
#masthead{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 999999 !important;

  /* stop zoom/jump effects */
  transform: none !important;
  -webkit-transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

/* Admin bar offset */
.admin-bar #masthead{ top: 32px !important; }
@media (max-width: 782px){
  .admin-bar #masthead{ top: 46px !important; }
}

/* Remove Astra / Elementor sticky placeholders (white bar fix) */
.ast-sticky-placeholder,
.ast-header-sticky-placeholder,
.ast-sticky-header-placeholder,
.elementor-sticky__spacer{
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Page offset to prevent content hiding under header */
body{ padding-top: 57px !important; }

/* Extra protection: prevent inner elements from scaling */
#masthead *,
#masthead *::before,
#masthead *::after{
  transform: none !important;
  -webkit-transform: none !important;
}

/* Mobile horizontal overflow protection */
@media (max-width: 768px){
  html, body{
    width: 100%;
    min-width: 100%;
    overflow-x: hidden;
  }
}
