/* kawkav unified mobile nav — pairs with /assets/mobile-nav.js */

/* Toggle button (hidden on desktop, shown via media query below) */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  margin-left: 8px;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.mobile-toggle:hover,
.mobile-toggle:focus-visible {
  color: var(--accent, currentColor);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}
.mobile-toggle.is-open {
  color: var(--accent, currentColor);
}

/* Slide-down drawer */
.mobile-drawer {
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 99;
  background: var(--bg-surface, var(--bg-card, #0f1014));
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  display: none;
  padding: 14px 24px 22px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0; margin: 0;
}
.mobile-drawer a {
  color: var(--text-muted, #a5a8b0);
  font-size: 15px;
  padding: 11px 0;
  display: block;
  text-decoration: none;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.04));
  transition: color 0.15s ease;
}
.mobile-drawer ul li:last-child a { border-bottom: 0; }
.mobile-drawer a:hover,
.mobile-drawer a.is-active,
.mobile-drawer a.active {
  color: var(--text, #fff);
}

/* RTL support */
[dir="rtl"] .mobile-toggle { margin-left: 0; margin-right: 8px; }

/* Lock body scroll while drawer open */
html.kw-nav-open, html.kw-nav-open body { overflow: hidden; }

/* Mobile breakpoint — standardised at 880px so the drawer activates
   slightly before nav-links get cramped on tablets. */
@media (max-width: 880px) {
  nav.top .nav-links { display: none !important; }
  nav.top .nav-cta { display: none !important; }
  nav.top .mobile-toggle { display: block !important; }
  nav.top .logo { font-size: 23px !important; }
  .footer-brand { font-size: 22px; }
}
