/* ==========================================================================
   NIGAM PHARMACHEM INDUSTRIES - RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Large Desktop Screens (1440px and above) */
@media (min-width: 1440px) {
  :root {
    --container-max: 1360px;
  }
}

/* Standard Desktop / Laptops (1025px - 1280px) */
@media (max-width: 1280px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

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

/* Tablets & Small Laptops (769px - 1024px) */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 2rem;
  }

  .hero-visual img {
    max-width: 420px;
  }

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

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--dark-border);
    padding: 1.5rem 0;
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }

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

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

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

  .process-timeline::before {
    display: none;
  }

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

/* Mobile Devices & Small Tablets (up to 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 72px;
    --header-height-scrolled: 64px;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--dark-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: 999;
  }

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

  .nav-item {
    width: 100%;
  }

  .nav-link {
    font-size: 1.15rem;
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(18, 199, 165, 0.05);
    border: none;
    box-shadow: none;
    margin-top: 0.5rem;
    display: none;
  }

  .nav-item.dropdown-open .dropdown-menu {
    display: block;
  }

  .header .btn {
    display: none;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
  }

  .filter-tab {
    white-space: nowrap;
  }

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

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

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

  .modal-container {
    padding: 1rem;
  }

  .modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .modal-body {
    padding: 1.5rem;
  }
}

/* Small Mobile Screens (320px - 414px) */
@media (max-width: 414px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

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

  .stat-item {
    border-bottom: 1px solid var(--dark-border);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .card, .contact-info-card, .contact-form-card {
    padding: 1.5rem;
  }
}
