/* ============================================
   Responsive — Media Queries
   ============================================ */

/* =====================
   MOBILE NAV (< 768px)
   ===================== */
@media (max-width: 767px) {
  .header__burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
    z-index: 999;
  }

  .header__nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .header__nav-list {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .header__nav-list a {
    font-size: var(--text-xl);
  }

  .header__nav-list li {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 300ms ease, transform 300ms ease;
  }

  .header__nav.is-open .header__nav-list li {
    opacity: 1;
    transform: translateY(0);
  }

  .header__nav.is-open .header__nav-list li:nth-child(1) { transition-delay: 50ms; }
  .header__nav.is-open .header__nav-list li:nth-child(2) { transition-delay: 100ms; }
  .header__nav.is-open .header__nav-list li:nth-child(3) { transition-delay: 150ms; }
  .header__nav.is-open .header__nav-list li:nth-child(4) { transition-delay: 200ms; }
  .header__nav.is-open .header__nav-list li:nth-child(5) { transition-delay: 250ms; }
  .header__nav.is-open .header__nav-list li:nth-child(6) { transition-delay: 300ms; }

  /* Mobile FAB visible — above sticky hours bar */
  .mobile-fab {
    display: flex;
    bottom: calc(var(--space-lg) + 40px);
  }

  /* Sticky hours visible on mobile */
  .sticky-hours {
    display: flex;
  }

  /* Hero adjustments */
  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .hero__cta .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Products: single column on small mobile */
  .grid--4 {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer .grid--3 {
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__bottom {
    justify-content: center;
    text-align: center;
  }
}

/* =====================
   >= 480px (large mobile)
   ===================== */
@media (min-width: 480px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .social__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial-card {
    flex: 0 0 75%;
  }
}

/* =====================
   >= 768px (tablet)
   ===================== */
@media (min-width: 768px) {
  .header__burger {
    display: none;
  }

  .header__nav {
    position: static;
    width: auto;
    height: auto;
    opacity: 1;
    pointer-events: auto;
    background: none;
  }

  .header__nav-list {
    flex-direction: row;
  }

  .header__nav-list li {
    opacity: 1;
    transform: none;
  }

  /* About 2 columns */
  .about__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Testimonials */
  .testimonial-card {
    flex: 0 0 48%;
  }

  /* Stores */
  .stores__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer 3 columns */
  .footer .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =====================
   >= 1024px (desktop)
   ===================== */
@media (min-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Social: 6 columns in one row */
  .social__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  /* Testimonials: static grid, no carousel */
  .testimonials__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }

  .testimonial-card {
    flex: none;
  }

  .testimonials__nav {
    display: none;
  }

  /* Mobile FAB hidden */
  .mobile-fab {
    display: none !important;
  }
}

/* =====================
   >= 1280px (large desktop)
   ===================== */
@media (min-width: 1280px) {
  .container {
    padding-inline: var(--space-xl);
  }

  .about__text p {
    font-size: var(--text-lg);
  }
}

/* =====================
   Body scroll lock (mobile menu)
   ===================== */
body.menu-open {
  overflow: hidden;
}

/* =====================
   Reduced motion support
   ===================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
