/* =============================================
   J's Grooming Lounge — Responsive
   jsg-responsive.css
   ============================================= */

/* ---- Tablet (≤992px) ---- */
@media (max-width: 991.98px) {
  .timeline::before { left: 16px; }
  .timeline-item { width: 100%; padding: 0 0 2rem 3rem !important; left: 0 !important; }
  .timeline-dot { left: 4px !important; right: auto !important; }

  .hero-section { min-height: 80vh; }
  .section-pad { padding: 3.5rem 0; }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

  .service-card-img { height: 180px; }

  .calculator-card { padding: 1.75rem; }
  .quiz-card { padding: 1.75rem; }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 767.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }

  .hero-section { min-height: 70vh; padding: 2rem 0; }
  .hero-content p { font-size: 1rem; }
  .section-pad { padding: 2.5rem 0; }

  .jsg-navbar .navbar-collapse {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    padding: 1rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-top: .5rem;
  }
  .navbar-nav .nav-link { color: var(--text) !important; }

  .team-card-img { height: 220px; }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }

  .calc-result .price-range { font-size: 1.8rem; }

  .timeline { padding: 1rem 0; }

  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    flex-direction: column;
    gap: 1rem;
  }
  .cookie-banner.show { animation: slideUpMobile .4s ease; }
  @keyframes slideUpMobile {
    from { transform: translateY(100%); }
    to   { transform: none; }
  }

  .jsg-footer { padding: 2.5rem 0 0; }

  .stat-num { font-size: 2.2rem; }

  .page-header { padding: 6rem 0 2.5rem; }

  .back-to-top { bottom: 1.25rem; right: 1.25rem; }

  .assessment-item { flex-direction: column; align-items: flex-start; }

  .big-rating { font-size: 3rem; }

  .review-carousel .review-card { min-height: 0; }
}

/* ---- Small Mobile (≤480px) ---- */
@media (max-width: 479.98px) {
  .btn-jsg-primary, .btn-jsg-accent, .btn-jsg-outline, .btn-jsg-white {
    padding: .65rem 1.4rem;
    font-size: .88rem;
  }
  .hero-content h1 { font-size: 1.75rem; }
  .calculator-card { padding: 1.25rem; }
  .quiz-card { padding: 1.25rem; }

  .filter-btn { padding: .4rem .85rem; font-size: .8rem; }

  .breed-btn { font-size: .78rem; padding: .4rem .8rem; }
}

/* ---- Wide screens ---- */
@media (min-width: 1400px) {
  .gallery-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---- Print ---- */
@media print {
  .jsg-navbar, .cookie-banner, .back-to-top, .jsg-footer { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ---- Accessibility: prefer reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
