/* =========================================================
   RYX APPAREL — RESPONSIVE RULES
   Breakpoints: >=1200 desktop | 992-1199 lg | 768-991 tablet | <768 mobile
   ========================================================= */

/* ---------- LARGE DESKTOP TUNING ---------- */
@media (max-width: 1199.98px) {
  :root { --space-section: 110px; }
  .pillars-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .showcase-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .hero__inner { grid-template-columns: 190px 1fr; }
  .hero__figure { width: 50vw; }
}

/* ---------- TABLET / SMALL LAPTOP (<992px) ---------- */
@media (max-width: 991.98px) {
  :root { --space-section: 90px; --space-section-sm: 64px; }

  /* Header: switch to offcanvas */
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .btn--quote.d-lg-inline-flex { display: none !important; }
  .header-inner { height: 74px; }

  /* Hero */
  .hero { min-height: auto; padding-block: 20px; }
  .hero__inner {
    grid-template-columns: 1fr;
    padding-block: 90px 60px;
    gap: 20px;
  }
  .hero__sportnav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 22px;
    order: 1;
  }
  .hero__sportnav-item { padding: 8px 0 8px 20px; font-size: 0.85rem; }
  .hero__stage { order: 2; min-height: auto; padding-top: 20px; }
  .hero__figure {
    position: relative;
    width: 60vw; max-width: 340px; height: 340px;
    margin: 0 auto 30px;
    right: auto; bottom: auto;
  }
  .hero__content { max-width: 100%; text-align: left; }
  .hero__giant-text { font-size: clamp(3.5rem, 22vw, 7rem); top: 40%; }
  .hero__kpis { gap: 24px; flex-wrap: wrap; }

  /* Grids */
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; }
  .gallery-item.span-2 { grid-column: span 2; grid-row: span 2; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .process-track { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process-track::before { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
}

/* ---------- MOBILE (<768px) ---------- */
@media (max-width: 767.98px) {
  :root { --space-section: 68px; --space-section-sm: 48px; }
  .container-xl { padding-inline: 18px; }

  h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2rem); }

  .brand__name { font-size: 1.15rem; }
  .brand__sub { display: none; }

  .hero__title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__kpis { justify-content: space-between; }
  .hero__kpi .num { font-size: 1.4rem; }
  .hero__sportnav { justify-content: center; }

  .pillars-grid, .why-grid, .product-grid, .showcase-grid,
  .metrics-grid, .blog-grid { grid-template-columns: 1fr; }

  .why-grid { gap: 1px; }

  .process-track { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery-item.span-2 { grid-column: span 2; grid-row: span 1; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer-form .form-row { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .search-overlay__box input { font-size: 1.3rem; }
  .mini-cart { width: 100vw; }
}

/* ---------- SMALL MOBILE (<420px) ---------- */
@media (max-width: 419.98px) {
  .hero__kpis { gap: 16px 22px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr; }
}
