/* ── CYBERFIX MOBILE NAV — inner-page shared stylesheet ──────────────
   Applies ONLY on ≤767px. Zero impact on desktop (≥768px).
   Linked by all inner pages; NOT linked by index.html (which has its
   own inline mobile styles scoped to #cf-mobile).
   ─────────────────────────────────────────────────────────────────── */

/* ── Desktop: hide mobile nav elements ── */
@media (min-width: 768px) {
  .m-topbar,
  .m-drawer { display: none !important; }
}

/* ── Mobile: hide desktop header, show mobile nav ── */
@media (max-width: 767px) {

  header.site-header { display: none !important; }

  /* ── CSS custom properties ── */
  :root {
    --c-surface:  #080910;
    --c-surface2: #0e0f18;
    --c-border:   rgba(255,255,255,0.06);
    --c-border2:  rgba(255,255,255,0.11);
    --c-border3:  rgba(255,255,255,0.18);
    --c-blue:     #3b8eff;
    --c-text:     #f0f0f8;
    --c-muted2:   rgba(240,240,248,0.28);
  }

  /* ── TOPBAR ── */
  .m-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 18px; height: 58px;
    background: rgba(3,4,10,0.95); backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--c-border2);
    position: sticky; top: 0; z-index: 200;
    transition: box-shadow 0.3s;
  }
  .m-topbar.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.5); }
  .m-topbar img { height: 26px; width: auto; display: block; }
  .m-topbar-right { display: flex; align-items: center; gap: 10px; }

  .m-call-btn {
    font-size: 12px; font-weight: 700; color: #fff;
    background: var(--c-blue); padding: 8px 14px;
    border-radius: 6px; text-decoration: none; letter-spacing: 0.01em;
    transition: filter 0.15s;
  }
  .m-call-btn:active { filter: brightness(0.85); }

  .m-burger {
    width: 36px; height: 36px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 5px;
    background: var(--c-surface2); border: 1px solid var(--c-border2);
    border-radius: 8px; cursor: pointer; padding: 0; flex-shrink: 0;
  }
  .m-burger span {
    display: block; width: 16px; height: 1.5px;
    background: var(--c-text); border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
  }
  .m-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .m-burger.open span:nth-child(2) { opacity: 0; }
  .m-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* ── DRAWER NAV ── */
  .m-drawer {
    position: fixed; inset: 0; z-index: 199;
    pointer-events: none;
  }
  .m-drawer.open { pointer-events: auto; }

  .m-drawer-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.75); opacity: 0;
    transition: opacity 0.3s;
  }
  .m-drawer.open .m-drawer-backdrop { opacity: 1; }

  .m-drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 80%; max-width: 300px;
    background: var(--c-surface);
    border-left: 1px solid var(--c-border2);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.32,0,0,1);
    overflow-y: auto; padding-top: 58px;
    display: flex; flex-direction: column;
  }
  .m-drawer.open .m-drawer-panel { transform: translateX(0); }

  .m-drawer-section { padding: 8px 0; border-bottom: 1px solid var(--c-border); }
  .m-drawer-label {
    font-size: 10px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
    color: var(--c-muted2); padding: 10px 20px 6px;
  }
  .m-drawer-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; text-decoration: none;
    font-size: 14px; font-weight: 500; color: var(--c-text);
    transition: background 0.12s;
  }
  .m-drawer-link:active { background: var(--c-surface2); }
  .m-drawer-link.highlight { color: var(--c-blue); font-weight: 600; }
  .m-drawer-ctas {
    padding: 16px 20px; display: flex; flex-direction: column;
    gap: 10px; margin-top: auto;
  }

  /* ── CTA BUTTONS (used in drawer footer) ── */
  .m-btn-primary {
    display: block; text-align: center; padding: 15px 20px;
    background: var(--c-blue); color: #fff; font-size: 14px; font-weight: 700;
    border-radius: 10px; text-decoration: none; letter-spacing: 0.01em;
    box-shadow: 0 4px 24px rgba(59,142,255,0.35);
    transition: filter 0.12s, transform 0.12s, box-shadow 0.12s;
  }
  .m-btn-primary:active { filter: brightness(0.88); transform: scale(0.98); box-shadow: none; }

  .m-btn-ghost {
    display: block; text-align: center; padding: 14px 20px;
    background: rgba(255,255,255,0.04); color: var(--c-text); font-size: 14px;
    font-weight: 600; border-radius: 10px; text-decoration: none;
    border: 1px solid var(--c-border3);
    transition: background 0.12s, transform 0.12s;
    backdrop-filter: blur(8px);
  }
  .m-btn-ghost:active { background: var(--c-surface2); transform: scale(0.98); }

}
