/**
 * SAKI SPORTS — Responsive Stylesheet
 * Strict cross-breakpoint testing: 320px to 1920px
 * Domain: https://sakisports.cyou
 */

/* -------------------------------------------------------------------------- */
/* LARGE DESKTOP & SCREENS (1440px to 1920px)                                 */
/* -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  .container {
    max-width: 1380px;
  }

  .desktop-nav-menu {
    gap: 2.2rem;
  }
}

/* -------------------------------------------------------------------------- */
/* STANDARD LAPTOPS & DESKTOPS (1025px to 1280px)                            */
/* -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .desktop-nav-menu {
    gap: 1.25rem;
  }

  .nav-link {
    font-size: 0.88rem;
  }

  .header-quote-btn {
    padding: 0.6rem 1.15rem;
    font-size: 0.84rem;
  }

  .brand-logo-img {
    width: 185px;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 2rem;
  }
}

/* -------------------------------------------------------------------------- */
/* TABLET LANDSCAPE & SMALL LAPTOP BREAKPOINT (992px to 1024px)               */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Switch Desktop Nav to Mobile Drawer to prevent ANY menu overlap */
  .desktop-nav-menu {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .header-quote-btn {
    display: none; /* In header bar, moved inside mobile drawer */
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-group-custom {
    justify-content: center;
  }

  .manufacturing-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .manufacturing-row:nth-child(even) {
    direction: ltr;
  }

  .manufacturing-media img {
    height: 300px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .wholesale-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-media-col {
    border-right: none;
    border-bottom: 1px solid var(--color-carbon-border);
    padding: 1.5rem;
  }

  .modal-content-col {
    padding: 1.5rem;
  }
}

/* -------------------------------------------------------------------------- */
/* TABLET PORTRAIT (768px to 991px)                                           */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-main-height: 70px;
    --header-topbar-height: 36px;
  }

  .section {
    padding: 4rem 0;
  }

  .section-lg {
    padding: 5rem 0;
  }

  /* Compact Top Bar on Tablets */
  .top-info-list .hide-on-mobile {
    display: none;
  }

  .top-info-list {
    gap: 1rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }

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

  .catalog-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .product-search-box {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-card {
    padding: 2rem 1.5rem;
  }

  .timeline-horizontal {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .map-embed-container {
    height: 320px;
  }
}

/* -------------------------------------------------------------------------- */
/* MOBILE PHONES (320px, 375px, 390px, 430px)                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  /* Prevent horizontal scroll rigorously */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  /* Top Bar Mobile Optimization: Show only vital phone & WhatsApp */
  .top-info-bar {
    font-size: 0.75rem;
    height: 32px;
  }

  .top-social-list {
    display: none;
  }

  .brand-logo-img {
    width: 165px;
    height: 40px;
  }

  .main-nav-bar {
    height: 64px;
  }

  .site-header.is-scrolled .main-nav-bar {
    height: 60px;
  }

  /* Hero Mobile */
  .hero-section {
    padding: 3.5rem 0 4rem 0;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .btn-group-custom {
    flex-direction: column;
    width: 100%;
  }

  .btn-group-custom .btn {
    width: 100%;
  }

  /* Product Cards Mobile */
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card-media {
    min-height: 260px;
    padding: 1.25rem 1rem 0.5rem 1rem;
  }

  .product-card-img {
    max-height: 240px;
  }

  .product-card-body {
    padding: 1.25rem;
  }

  .product-card-title {
    font-size: 1.2rem;
  }

  .product-card-footer {
    flex-direction: column;
    width: 100%;
  }

  .product-card-footer .btn {
    width: 100%;
  }

  /* Wholesale Stats Mobile */
  .wholesale-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wholesale-stat-card {
    padding: 1.5rem 1rem;
  }

  /* Gallery Mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-btn {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  /* WhatsApp Floating Button on Small Mobile: Ensure it doesn't obstruct */
  .floating-whatsapp-btn {
    left: 16px;
    bottom: 18px;
    width: 52px;
    height: 52px;
  }

  .floating-whatsapp-btn svg {
    width: 30px;
    height: 30px;
  }

  .whatsapp-tooltip {
    display: none; /* Hide hover tooltip on touch devices */
  }

  /* Form padding */
  .form-card {
    padding: 1.75rem 1.15rem;
  }
}

/* -------------------------------------------------------------------------- */
/* ULTRA-SMALL MOBILE (320px to 360px)                                        */
/* -------------------------------------------------------------------------- */
@media (max-width: 360px) {
  .brand-logo-img {
    width: 145px;
    height: 36px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
}

