/* Hamburger toggle for the header nav + its adjacent CTA button. The nav
   markup varies across pages (home/main/service headers all differ), so
   this wraps whatever is already there via JS rather than requiring hand
   edits to every header - see dk-mobile-nav.js. */

.dk-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #F2F4F7;
  cursor: pointer;
}
.dk-nav-toggle svg { width: 22px; height: 22px; }
.dk-nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.dk-nav-toggle:active { transform: scale(0.96); }
.dk-nav-toggle:focus-visible { outline: 2px solid var(--dk-p, #0A85C7); outline-offset: 2px; }

/* display:contents on desktop makes this wrapper invisible to layout, so
   the nav + CTA render exactly as if they were still direct header
   children - this element only becomes a real box under the breakpoint. */
.dk-mobile-menu-wrap { display: contents; }

@media (max-width: 880px) {
  .dk-nav-toggle { display: inline-flex; }

  .dk-mobile-menu-wrap {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 16px;
    right: 16px;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .dk-mobile-menu-wrap.dk-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .dk-mobile-menu-wrap > nav[aria-label="Main"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    width: 100% !important;
    background: #0D1017 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 12px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 48px rgba(0, 0, 0, 0.4) !important;
    font-size: 16px !important;
  }
  .dk-mobile-menu-wrap > nav[aria-label="Main"] a {
    padding: 14px 16px !important;
    border-radius: 10px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }
  .dk-mobile-menu-wrap > .dk-mobile-cta {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dk-mobile-menu-wrap { transition: none; }
}
