/* =============================================
   Responsive Styles — Mobile First
   ============================================= */

/* ─── Mobile (default) ─── */
@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .header-meta {
    font-size: 0.8rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0 1.5rem;
  }

  .cat-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
  }

  .fab {
    width: 50px;
    height: 50px;
  }

  .fab svg {
    width: 24px;
    height: 24px;
  }

  .fab-whatsapp {
    bottom: 5rem;
    left: 1rem;
  }

  .fab-facebook {
    bottom: 1rem;
    left: 1rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }

  .developer-credit {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .developer-logo {
    width: 34px;
    height: 34px;
  }

  .developer-credit p {
    font-size: 0.75rem;
  }
}

/* ─── Tablet ─── */
@media (min-width: 481px) and (max-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Small Desktop ─── */
@media (min-width: 769px) and (max-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-inner {
    gap: 2rem;
  }
}

/* ─── Large Desktop ─── */
@media (min-width: 1025px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sticky-nav-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
  }

  .search-bar {
    margin-bottom: 0;
    flex: 0 0 280px;
    margin-left: 0;
  }

  .category-nav {
    flex: 1;
    padding-bottom: 0;
  }
}

/* ─── Prevent horizontal scroll ─── */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ─── High contrast focus ─── */
:focus-visible {
  outline: 3px solid var(--gold, #c9a227);
  outline-offset: 2px;
}
