/* ================================================================
   Rajan Code Studio - Responsive & Mobile Drawer Navigation
   ================================================================ */

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--md-on-surface);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-full);
  min-width: 44px;
  min-height: 44px;
}

/* Mobile navigation breakpoint: 960px (header geometry needs the extra room) */
@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 0;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    box-sizing: border-box;
    background-color: var(--md-surface);
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 32px 24px;
    gap: 16px;
    transform: translateX(100%);
    transition: transform var(--motion-standard);
    z-index: 99;
  }

  .nav-links[data-open="true"] {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nav-link {
    display: flex;
    font-size: var(--text-lg);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 16px;
  }

  .hero__container,
  .page-hero__container {
    padding: 40px 24px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .play-store-badge {
    width: 100%;
    justify-content: center;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .prose {
    padding: 24px 20px;
  }

  /* Compact header: guarantee no overflow at 320-480px */
  .brand-lockup {
    gap: 8px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: var(--text-sm);
  }

  .site-header__actions {
    gap: 2px;
  }
}
