/* ================================================== */
/* CLEAN Mobile Header - Completely Separate */
/* Centurion GmbH */
/* ================================================== */

@media (max-width: 991px) {

  /* ==================== HIDE DESKTOP HEADER ==================== */

  header,
  header *,
  header.transparent,
  header.header-bg,
  header.header-mobile {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    z-index: -1 !important;
    pointer-events: none !important;
  }

  /* Also hide the wrapper header */
  #wrapper header,
  #wrapper header * {
    display: none !important;
    visibility: hidden !important;
  }

  /* ==================== NEW MOBILE HEADER ==================== */

  #mobile-header {
    display: flex !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
  }

  #mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
  }

  #mobile-logo {
    display: flex;
    align-items: center;
    height: 38px;
    line-height: 0;
  }

  #mobile-logo img {
    height: 100%;
    width: auto;
    display: block;
  }

  /* ==================== HAMBURGER ==================== */

  #mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    flex-shrink: 0;
  }

  #mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  #mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  #mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
  }

  #mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* ==================== OVERLAY ==================== */

  #mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }

  #mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  /* ==================== SIDE MENU ==================== */

  #mobile-side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #000000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1002;
    padding: 80px 30px 30px;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  }

  /* Close button (X) in menu */
  #mobile-side-menu::before {
    content: '';
    position: fixed;
    top: 20px;
    right: 20px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    z-index: 1003;
  }

  #mobile-side-menu .menu-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #mobile-side-menu .menu-close-btn::before,
  #mobile-side-menu .menu-close-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
  }

  #mobile-side-menu .menu-close-btn::before {
    transform: rotate(45deg);
  }

  #mobile-side-menu .menu-close-btn::after {
    transform: rotate(-45deg);
  }

  #mobile-side-menu.show {
    right: 0;
  }

  #mobile-side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #mobile-side-menu ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  #mobile-side-menu ul li:last-child {
    border-bottom: none;
  }

  #mobile-side-menu ul li a {
    display: block;
    padding: 16px 0;
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  #mobile-side-menu ul li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
  }

  #mobile-side-menu .mobile-cta {
    display: block;
    width: 100%;
    padding: 13px 20px;
    margin-top: 25px;
    background: var(--primary-color);
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
  }

  #mobile-side-menu .mobile-contact {
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  #mobile-side-menu .mobile-contact a {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    margin-bottom: 10px;
    text-decoration: none;
  }

  #mobile-side-menu .mobile-contact a:hover {
    color: var(--primary-color);
    padding-left: 5px;
  }

  #mobile-side-menu .mobile-contact i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 16px;
  }

  /* ==================== UTILITY ==================== */

  body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }


  #mobile-header.scrolled {
    background: #000000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  }

}

/* ==================== HIDE ON DESKTOP ==================== */

@media (min-width: 992px) {
  #mobile-header,
  #mobile-menu-overlay,
  #mobile-side-menu {
    display: none !important;
  }
}

/* ==================== SMALL DEVICES ==================== */

@media (max-width: 576px) {
  #mobile-logo {
    height: 35px;
  }

  #mobile-side-menu {
    padding: 70px 25px 25px;
  }

  #mobile-side-menu ul li a {
    font-size: 20px;
    padding: 14px 0;
  }
}
