/**
 * Manufacture TBK - Responsive Design Stylesheet
 * Tested across Desktop (1440px), Laptop (1280px), Tablet (768px), Mobile (390px), Small Mobile (320px)
 */

/* ====================================================
   LAPTOPS & MEDIUM DESKTOPS (<= 1280px)
   ==================================================== */
@media (max-width: 1280px) {
  .hero-title {
    font-size: 2.75rem;
  }

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

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

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

/* ====================================================
   TABLETS & MEDIUM SCREENS (<= 1024px)
   ==================================================== */
@media (max-width: 1024px) {
  .header-phone-badge {
    display: none;
  }

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

  .hero-visual-card {
    max-width: 580px;
    margin: 0 auto;
  }

  .source-card-wrapper {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 1.25rem;
  }

  .source-thumbnail-frame {
    width: 100%;
    max-width: 280px;
    height: 140px;
  }

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

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

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

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

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

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

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

/* ====================================================
   MOBILE & TABLET PORTRAIT (<= 768px)
   ==================================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

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

  /* Navigation Drawer Toggle */
  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-actions .btn-whatsapp span {
    display: none;
  }

  .header-actions .btn-whatsapp {
    padding: 0.6rem;
    border-radius: var(--radius-full);
  }

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

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

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

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

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

  .section-title {
    font-size: 1.875rem;
  }

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

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

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

  .gallery-thumbnails-strip {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
  }

  .detail-key-attributes {
    grid-template-columns: 1fr;
  }

  .specs-table th {
    width: 40%;
  }

  .floating-wa-button span {
    display: none;
  }

  .floating-wa-button {
    padding: 0.9rem;
    border-radius: var(--radius-full);
  }

  .floating-wa-popup {
    width: calc(100vw - 2.5rem);
    right: 0;
  }

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

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

/* ====================================================
   COMPACT SMARTPHONES (<= 390px)
   ==================================================== */
@media (max-width: 390px) {
  .hero-title {
    font-size: 1.85rem;
  }

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

  .card-actions {
    grid-template-columns: 1fr;
  }

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

  .specs-table th, .specs-table td {
    padding: 0.65rem 0.85rem;
    font-size: 0.8125rem;
  }

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

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

/* ====================================================
   ACCESSIBILITY: REDUCED MOTION PREFERENCE
   ==================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ====================================================
   PRINT STYLES
   ==================================================== */
@media print {
  .site-header,
  .floating-wa-wrapper,
  .catalog-toolbar,
  .hero-ctas,
  .card-actions,
  .detail-actions-box,
  .whatsapp-lead-section {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .specs-table {
    border: 1px solid #333 !important;
  }

  .specs-table th, .specs-table td {
    border: 1px solid #333 !important;
  }
}
