/**
 * ============================================================================
 * BALWANT WIRES - RESPONSIVE STYLESHEET (CSS3)
 * ============================================================================
 * Handles fluid adaptations for Large Desktops, Tablets, and Mobile screens.
 */

/* ============================================================================
   0. LAPTOP & COMPACT DESKTOP (1141px to 1360px)
   ============================================================================ */
@media (min-width: 1141px) and (max-width: 1360px) {
  .nav-menu {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.84rem;
    padding: 0.4rem 0.1rem;
  }

  .brand-logo {
    height: 62px;
  }

  .brand-logo img {
    height: 62px;
    max-height: 62px;
    max-width: 220px;
  }

  .btn-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.84rem;
  }
}

/* ============================================================================
   1. LAPTOP & LARGE TABLET BREAKPOINT (Max-Width: 1140px)
   ============================================================================ */
@media (max-width: 1140px) {
  :root {
    --header-height: 84px;
    --header-height-scrolled: 72px;
  }

  .nav-menu {
    display: none !important; /* Seamlessly switch to mobile drawer */
  }

  .mobile-toggle {
    display: flex !important;
  }

  .nav-actions {
    gap: 0.75rem;
  }

  .brand-logo {
    height: 60px;
  }

  .brand-logo img {
    height: 60px;
    max-height: 60px;
    max-width: 220px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
  }
  
  .split-layout {
    gap: 2.5rem;
  }
  
  .applications-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-badges-row {
    gap: 1.25rem;
  }
}

/* ============================================================================
   2. TABLET LANDSCAPE & PORTRAIT (Max-Width: 992px)
   ============================================================================ */
@media (max-width: 992px) {
  :root {
    --header-height: 80px;
    --header-height-scrolled: 70px;
  }

  .top-bar {
    display: none; /* Streamline on tablet & mobile */
  }

  .brand-logo {
    height: 56px;
  }

  .brand-logo img {
    height: 56px;
    max-height: 56px;
    max-width: 200px;
  }

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

  .split-layout[style*="direction: rtl"] {
    direction: ltr !important;
  }

  .image-frame img {
    height: auto;
    max-height: 380px;
    width: 100%;
    object-fit: cover;
  }

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

  .stat-card:nth-child(2) {
    border-right: none;
  }

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

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

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

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

  .executive-card-sticky {
    position: static;
    max-width: 480px;
    margin: 0 auto;
  }

  .process-timeline::before {
    left: 28px;
  }

  .timeline-step {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 70px;
    margin-bottom: 2.5rem;
  }

  .timeline-node {
    left: 28px;
    top: 0;
    transform: translateX(-50%);
  }

  .timeline-content {
    width: 100% !important;
    text-align: left !important;
  }

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

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

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

  .cta-box {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

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

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

/* ============================================================================
   3. MOBILE PHONES (Max-Width: 768px)
   ============================================================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 76px;
    --header-height-scrolled: 66px;
  }

  .brand-logo {
    height: 52px;
  }

  .brand-logo img {
    height: 52px;
    max-height: 52px;
    max-width: 180px;
  }

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

  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-header h2 {
    font-size: 1.85rem;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 1.25rem);
    padding-bottom: 3rem;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(1.85rem, 5.5vw, 2.5rem);
    line-height: 1.15;
  }

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

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

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

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

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

  .stat-card {
    border-right: none;
    border-bottom: 1px solid var(--color-steel-slate);
    padding: 1.25rem 0.5rem;
  }

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

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

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

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

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

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

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

  .form-group.full-width {
    grid-column: span 1;
  }

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

  .direct-connect-buttons {
    flex-direction: column;
  }

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

  .footer-bottom-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
  }

  .floating-contact-widget {
    bottom: 1.25rem;
    right: 1.25rem;
    gap: 0.65rem;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }

  .floating-btn svg {
    width: 22px;
    height: 22px;
  }

  .live-chat-prompt-card {
    width: calc(100vw - 2.5rem);
    max-width: 280px;
    right: 0;
    padding: 0.95rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
  }

  .spec-table {
    display: table;
    width: 100%;
    min-width: 460px;
  }

  .spec-table th,
  .spec-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
    white-space: normal;
  }

  .spec-table th {
    width: 38%;
  }
}

/* ============================================================================
   4. COMPACT MOBILE SCREENS (Max-Width: 480px)
   ============================================================================ */
@media (max-width: 480px) {
  :root {
    --header-height: 72px;
    --header-height-scrolled: 64px;
  }

  .brand-logo {
    height: 48px;
  }

  .brand-logo img {
    height: 48px;
    max-height: 48px;
    max-width: 165px;
  }

  #headerQuoteBtn {
    padding: 0.42rem 0.75rem;
    font-size: 0.78rem;
    gap: 0.25rem;
  }

  #headerQuoteBtn svg {
    display: none;
  }

  .section-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.15;
  }

  .product-card-body {
    padding: 1.25rem 1.1rem;
  }

  .modal-box {
    width: 95vw;
    max-height: 92vh;
    border-radius: var(--radius-lg);
  }

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

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

/* ============================================================================
   5. BINDING WIRE SLIDER RESPONSIVE RULES
   ============================================================================ */
@media (max-width: 1024px) {
  .bw-slider-stage {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }

  .bw-img-container {
    height: 360px;
  }

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

@media (max-width: 768px) {
  .bw-slider-wrapper {
    padding: 1.5rem;
  }

  .bw-slider-main-title {
    font-size: 1.5rem;
  }

  .bw-img-container {
    height: 280px;
  }

  .bw-slider-controls {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .bw-progress-container {
    order: 3;
    width: 100%;
    flex: none;
  }

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

  .bw-thumb-img-wrap {
    height: 60px;
  }

  .bw-stage-actions {
    flex-direction: column;
  }

  .bw-stage-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .bw-slider-wrapper {
    padding: 1rem;
  }

  .bw-slider-stage {
    padding: 1rem;
  }

  .bw-img-container {
    height: 220px;
  }

  .bw-step-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
  }

  .bw-step-name {
    display: none;
  }

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

/* ============================================================================
   6. HERO IMAGE SLIDER RESPONSIVE RULES
   ============================================================================ */
@media (max-width: 1024px) {
  .hero-image-slider {
    height: clamp(480px, 70vh, 700px);
  }

  .hero-slider-arrow {
    width: 44px;
    height: 44px;
  }

  .hero-slider-prev {
    left: 1.25rem;
  }

  .hero-slider-next {
    right: 1.25rem;
  }

  .hero-slider-caption-pill {
    left: 1.5rem;
    bottom: 1.5rem;
    max-width: 420px;
    padding: 0.95rem 1.2rem;
  }

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

@media (max-width: 768px) {
  .hero-image-slider {
    height: clamp(420px, 60vh, 560px);
    min-height: 400px;
  }

  .hero-slider-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-slider-prev {
    left: 0.75rem;
  }

  .hero-slider-next {
    right: 0.75rem;
  }

  .hero-slider-caption-pill {
    left: 1rem;
    right: 1rem;
    bottom: 4.5rem;
    max-width: calc(100% - 2rem);
    padding: 0.85rem 1.1rem;
  }

  .hero-slider-bottom-bar {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.95rem;
  }

  .hero-dot-bar {
    width: 18px;
    height: 4px;
  }

  .hero-dot-btn.active .hero-dot-bar {
    width: 32px;
  }
}

@media (max-width: 480px) {
  .hero-image-slider {
    height: clamp(380px, 55vh, 480px);
    min-height: 360px;
  }

  .hero-caption-title {
    font-size: 1.05rem;
  }

  .hero-slider-caption-pill {
    display: none; /* Keep slider purely photographic and unobstructed on very small phones */
  }

  .hero-slider-bottom-bar {
    bottom: 0.85rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
  }
}


