/**
 * Agro Engineers / ShriKisan — Responsive Breakpoints & Mobile Optimization
 */

/* Tablets and below (< 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-image {
    height: 380px;
  }

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

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .product-gallery-container {
    position: static;
  }

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

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

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

/* Mobile Devices (< 768px) */
@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .navbar {
    height: 4.25rem;
  }

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

  .nav-links {
    position: fixed;
    top: 4.25rem;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.125rem;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active {
    color: var(--primary);
    font-weight: 700;
  }

  .nav-dealer-btn {
    display: none;
  }

  .hero-section {
    padding: 3.5rem 0 4.5rem 0;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
  }

  .hero-image {
    height: 280px;
  }

  .hero-floating-card {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .filter-pills-row {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-pill {
    flex-shrink: 0;
  }

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

  .contact-form-card {
    padding: 1.75rem 1.25rem;
  }

  .form-actions-row {
    flex-direction: column;
  }

  .form-actions-row .btn {
    width: 100%;
  }

  .modal-dialog {
    margin: 1rem;
    max-height: 95vh;
  }

  .modal-body {
    padding: 1.25rem;
  }

  .modal-header {
    padding: 1.25rem;
  }
}

/* Very Small Mobile (< 480px) */
@media (max-width: 480px) {
  .brand-name {
    font-size: 1.1rem;
  }

  .brand-subtitle {
    display: none;
  }

  .stat-card {
    padding: 0.5rem;
  }

  .stat-value {
    font-size: 1.85rem;
  }

  .product-card-thumb {
    aspect-ratio: 16 / 11;
  }
}
