/* ==========================================================================
   GC SPORTS — Responsive Breakpoints & Overlap Prevention
   Tested widths: 320px, 375px, 390px, 430px, 768px, 1024px, 1280px, 1440px, 1920px
   ========================================================================== */

/* --------------------------------------------------------------------------
   Extra Large Displays (1440px - 1920px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  .container {
    max-width: 1360px;
  }
  
  .nav-menu {
    gap: 32px;
  }
}

/* --------------------------------------------------------------------------
   Standard Desktop & Laptops (1101px - 1280px)
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .nav-menu {
    gap: 16px;
  }
  
  .nav-link {
    font-size: 0.88rem;
  }
  
  .site-logo-img {
    height: 46px;
  }
  
  .hero-grid {
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr;
    gap: 30px;
  }
}

/* --------------------------------------------------------------------------
   Transition Breakpoint: 1024px - 1100px (Prevent any desktop menu overlap)
   Switch to mobile off-canvas drawer early enough to avoid collisions!
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root {
    --total-header-height: 116px;
  }

  .desktop-nav {
    display: none !important;
  }
  
  .header-cta-wrap {
    display: none !important;
  }
  
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  
  .main-nav-bar .container {
    justify-content: space-between;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-media-card {
    max-width: 640px;
    margin: 0 auto;
  }
  
  .process-step-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .process-step-row:nth-child(even) {
    direction: ltr;
  }
  
  .process-step-media img {
    height: 320px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   Tablets (768px - 1023px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .section-padding {
    padding: 70px 0;
  }
  
  .top-bar-left {
    gap: 14px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --topbar-height: 36px;
    --header-height: 72px;
    --total-header-height: 108px;
  }
  
  body {
    padding-top: var(--total-header-height);
  }
  
  .top-bar-item.hide-mobile {
    display: none !important;
  }
  
  .site-logo-img {
    height: 40px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .process-flow-track {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .floating-whatsapp {
    width: 52px;
    height: 52px;
    left: 16px;
    bottom: 20px;
  }
  
  .floating-whatsapp i {
    font-size: 28px;
  }
  
  .back-to-top {
    right: 16px;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }
  
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  
  .form-card {
    padding: 24px;
  }
}

/* --------------------------------------------------------------------------
   Small Mobile Phones (320px, 375px, 390px, 430px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --topbar-height: 34px;
    --header-height: 64px;
    --total-header-height: 98px;
  }
  
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .top-bar {
    font-size: 0.74rem;
  }
  
  .top-bar-item span.label-text {
    display: none;
  }
  
  .site-logo-img {
    height: 36px;
  }
  
  .hero-home {
    min-height: auto;
    padding: 50px 0;
  }
  
  .hero-media-card img {
    height: 280px;
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta-group .btn {
    width: 100%;
  }
  
  .product-card-footer {
    grid-template-columns: 1fr;
  }
  
  .product-image-wrap {
    height: 220px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .process-flow-track {
    grid-template-columns: 1fr;
  }
  
  .mobile-nav-drawer {
    max-width: 85vw;
    padding: 20px 16px;
  }
  
  .modal-dialog {
    margin: 10px;
  }
  
  .modal-body {
    padding: 20px 16px;
  }
  
  .modal-header {
    padding: 16px 20px;
  }
}

/* --------------------------------------------------------------------------
   Extreme Narrow Devices (320px) — Absolute Safety Rules
   -------------------------------------------------------------------------- */
@media (max-width: 340px) {
  .site-logo-img {
    height: 32px;
  }
  
  .btn {
    padding: 12px 18px;
    font-size: 0.88rem;
  }
  
  .section-tag {
    font-size: 0.75rem;
  }
  
  .floating-whatsapp {
    width: 46px;
    height: 46px;
    left: 12px;
    bottom: 16px;
  }
  
  .floating-whatsapp i {
    font-size: 24px;
  }
}

