/* Custom fixes for ConvertaX website */

/* BUG-007: Fix mobile scroll overlay issue */
@media screen and (max-width: 767px) {
  /* Ensure navbar stays on top without overlaying content */
  .navbar-logo-left {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  /* Add padding to body to compensate for fixed header */
  body {
    padding-top: 80px;
  }
  
  /* Ensure content doesn't get hidden behind the navbar */
  .hero-section {
    margin-top: 0;
  }
  
  /* Fix z-index stacking context */
  .navbar-logo-left-container {
    position: relative;
    z-index: 1001;
  }
  
  /* Prevent scroll issues with dropdown menus */
  .w-nav-menu {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Additional fix for very small screens */
@media screen and (max-width: 479px) {
  body {
    padding-top: 70px;
  }
  
  .navbar-logo-left {
    z-index: 1000;
  }
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

/* Prevent horizontal scroll on mobile */
body {
  overflow-x: hidden;
}
