/* mobile.css
   -----------------------------------------
   Mobile header / hamburger navigation +
   slider width tweaks on small screens
   ----------------------------------------- */

/* Hide mobile header by default on larger screens */
.header_mobile {
  display: none;
}

@media (max-width: 991px) {

  /* Hide desktop menu on small screens */
  .top_panel_middle .menu_main_wrap {
    display: none;
  }

  /* Mobile header bar */
  .header_mobile {
    display: block;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  /* Make header span full width but keep some padding */
  .header_mobile .content_wrap {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 20px;          /* space from screen edges */
  }

  .header_mobile_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Logo tweaks so it doesn't crowd the hamburger */
  .header_mobile .logo img {
    max-width: 220px;
    height: auto;
  }

  /* Clean hamburger button (reset theme styles) */
  .header_mobile .mobile_nav_toggle {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;

    padding: 0;
    margin: 0;
    margin-right: 50px;          /* <-- gap from right edge */

    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    width: 30px;                 /* overall button width */
    height: 22px;                /* overall button height */
  }

  .header_mobile .mobile_nav_toggle span {
    display: block;
    width: 26px;                 /* bar width */
    height: 2px;                 /* bar thickness */
    border-radius: 1px;
    background: #333;
    transition: all 0.2s ease;
  }

  /* X animation */
  .header_mobile .mobile_nav_toggle.is-active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .header_mobile .mobile_nav_toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .header_mobile .mobile_nav_toggle.is-active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  /* Mobile dropdown nav */
  .mobile_nav_menu {
    display: none;
    margin-top: 10px;
    background-color: #fff;
  }

  .mobile_nav_menu.open {
    display: block;
  }

  .mobile_nav_menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile_nav_menu li {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .mobile_nav_menu a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #777 !important;      /* readable text */
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .mobile_nav_menu a:hover,
  .mobile_nav_menu a:focus {
    color: #000 !important;      /* darker on hover */
  }

  /* ------- SLIDER / HERO FULL WIDTH ON MOBILE ------- */

  /* Make the main slider container use full width */
  .slider_wrap.slider_fullwide {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Ensure Revolution Slider wrapper and slider fill that width */
  .slider_wrap.slider_fullwide .rev_slider_wrapper,
  .slider_wrap.slider_fullwide .rev_slider,
  .slider_wrap.slider_fullwide .fullwidthbanner-container,
  .slider_wrap.slider_fullwide .fullwidthabanner,
  #rev_slider_1_1_wrapper,
  #rev_slider_1_1 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }
}

/* Prevent sideways scrolling on mobile */
html, body {
  overflow-x: hidden;
}

/* Scroll-to-top button (mobile) */
.scroll-top-btn {
  position: fixed;
  right: 16px !important;   /* lock to viewport right edge */
  left: auto !important;    /* override any left from theme */
  bottom: 24px;

  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: none !important;
  box-sizing: border-box;

  background-color: #f6c9aa;
  color: #777;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  z-index: 999;

  display: flex !important;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-icon {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.scroll-top-btn:focus {
  outline: 2px solid #777;
  outline-offset: 2px;
}

