/* ============================================================
   CLIPHORIUM — CLEAN MOBILE MENU (ISOLATED)
   Unique class names. No dependency on old nav panel.
   Desktop: hidden. Mobile (max-width: 900px): replaces old navbar.
   ============================================================ */

/* Always hidden at desktop widths */
.ch-clean-mobile-header {
  display: none;
}

@media (max-width: 900px) {
  /* Hide old navbar on mobile */
  header.ch-navbar {
    display: none !important;
  }

  /* Push content below new fixed header */
  body {
    padding-top: 56px !important;
  }

  /* === New mobile header bar === */
  .ch-clean-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    height: 56px;
    padding: 0 16px;
    background: rgba(8, 12, 20, 0.93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 229, 168, 0.18);
    box-sizing: border-box;
  }

  /* === Brand link === */
  .ch-clean-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .ch-clean-mobile-brand img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
  }

  .ch-clean-mobile-brand span {
    font-size: 14px;
    font-weight: 600;
    color: #daf0ea;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  /* === Hamburger toggle button === */
  .ch-clean-mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .ch-clean-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #00E5A8;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  /* Animate to X when open */
  .ch-clean-mobile-header.is-open .ch-clean-mobile-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .ch-clean-mobile-header.is-open .ch-clean-mobile-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .ch-clean-mobile-header.is-open .ch-clean-mobile-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* === Drop-down menu panel (hidden by default) === */
  .ch-clean-mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 99998;
    padding: 18px 16px 28px;
    background: rgba(6, 10, 18, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 229, 168, 0.12);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  }

  .ch-clean-mobile-menu.is-open {
    display: flex;
  }

  /* === Menu links === */
  .ch-clean-mobile-link {
    display: block;
    padding: 12px 20px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #b8ddd7 !important;
    text-decoration: none !important;
    letter-spacing: 0.03em !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100%;
    box-sizing: border-box;
    transition: color 0.18s ease !important;
  }

  .ch-clean-mobile-link:hover {
    color: #00E5A8 !important;
    background: transparent !important;
  }

  /* CTA — Book Audit */
  .ch-clean-mobile-cta {
    margin-top: 10px;
    padding: 12px 36px !important;
    background: linear-gradient(135deg, #00E5A8, #0099ff) !important;
    color: #04120d !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    width: auto !important;
    display: inline-block !important;
  }

  .ch-clean-mobile-cta:hover {
    opacity: 0.88;
    color: #ffffff !important;
    background: linear-gradient(135deg, #00E5A8, #0099ff) !important;
  }
}

/* HIDE OLD MOBILE HEADER FINAL
   The new .ch-clean-mobile-header is the only mobile header.
   Desktop remains untouched. */
@media (max-width: 900px) {
  html body {
    padding-top: 92px !important;
  }

  html body header.ch-navbar,
  html body .ch-navbar:not(.ch-clean-mobile-header) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  html body .ch-clean-mobile-header {
    display: flex !important;
    visibility: visible !important;
  }
}

@media (min-width: 901px) {
  html body {
    padding-top: 0 !important;
  }

  html body .ch-clean-mobile-header {
    display: none !important;
  }
}
/* END HIDE OLD MOBILE HEADER FINAL */

