/**
 * Indraprastha Fibers & Trades - Responsive Stylesheet
 * Fluid Adaptive Layouts for Mobile, Tablet & Desktop
 */

/* ==========================================================================
   Laptops & Tablets Landscape (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

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

  .editorial-heritage-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .editorial-badge-floating {
    bottom: -16px;
    left: 16px;
  }

  .directors-desk-card {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .directors-portrait {
    max-height: 420px;
    width: auto;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .product-card.span-4 { grid-column: span 6; }
  .product-card.span-8 { grid-column: span 6; }

  .lightbox-prev-btn { left: 10px; }
  .lightbox-next-btn { right: 10px; }
}

/* ==========================================================================
   Tablets Portrait (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .top-bar {
    display: none; /* Streamline header on mobile */
  }

  .hero-slider-section {
    height: 620px;
    min-height: auto;
  }

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

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

  .hero-slider-controls {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .product-card.span-4,
  .product-card.span-6,
  .product-card.span-8,
  .product-card.span-12 {
    grid-column: span 12;
    min-height: 360px;
  }

  /* Process Flow Vertical Transformation */
  .process-flow-track {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding-left: var(--space-2xl);
  }

  .process-flow-track::before {
    top: 0;
    bottom: 0;
    left: 28px;
    right: auto;
    width: 2px;
    height: 100%;
  }

  .process-step-card {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    gap: var(--space-md);
  }

  .process-step-node {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .heritage-stats-row {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .footer-legal-links {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .lightbox-container {
    max-width: 95vw;
  }
  
  .lightbox-img-wrap {
    max-height: 55vh;
  }
}

/* ==========================================================================
   Mobile Smartphones (<= 480px)
   ========================================================================== */
@media (max-width: 480px) {
  :root {
    --container-padding: 1.125rem;
  }

  .btn-header-rfq {
    display: none; /* Keep header clean on small screens */
  }

  .brand-logo-img {
    height: 32px;
  }

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

  .editorial-quote {
    font-size: 1.45rem;
    padding-left: var(--space-md);
  }

  .editorial-badge-floating {
    position: static;
    margin-top: var(--space-md);
    max-width: 100%;
  }

  .capabilities-grid,
  .gallery-grid,
  .machinery-grid,
  .treatments-grid {
    grid-template-columns: 1fr;
  }

  .gallery-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: var(--space-xs);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .rfq-modal-dialog {
    padding: 1.5rem;
  }
}