/* =========================================================
   PV WORKS SOLUTIONS — RESPONSIVE RULES
   ========================================================= */

/* Large desktops / 4K */
@media (min-width: 1600px) {
  .container-xl { max-width: 1440px; }
}

/* Laptops */
@media (max-width: 1199px) {
  .industry-chip-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-col.footer-newsletter { grid-column: 1 / -1; max-width: 420px; }
}

/* Tablets */
@media (max-width: 991px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }

  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--header-height) + var(--ticker-height));
    left: 0; right: 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    gap: 0.3rem;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
  .main-nav.mobile-open a { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--color-border); }
  .main-nav.mobile-open .btn { margin-top: 0.8rem; justify-content: center; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 520px; }
  .hero-shield { opacity: 0.08; }

  .split-section { grid-template-columns: 1fr; }
  .split-media { order: -1; max-width: 480px; margin-inline: auto; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .industry-chip-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }

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

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

  .cta-banner { padding: 2.5rem; }
}

/* Mobile */
@media (max-width: 640px) {
  .dispatch-ticker .ticker-item { font-size: 0.68rem; padding: 0 1.1rem; }

  section { padding: 3.5rem 0; }
  .hero { padding-top: calc(var(--header-height) + 2rem); padding-bottom: 4rem; }
  .page-hero { padding-top: calc(var(--header-height) + 2rem); padding-bottom: 2.5rem; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-panel { grid-template-columns: 1fr; padding: 1.4rem; }
  .stat-card:nth-child(2), .stat-card:nth-child(4) { margin-top: 0; }

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

  .stats-band { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; }
  .stat-item .num { font-size: 2.1rem; }

  .cta-banner { flex-direction: column; text-align: center; padding: 2.2rem 1.5rem; }
  .cta-banner .cta-actions { justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom ul { flex-wrap: wrap; justify-content: center; }

  .form-card { padding: 1.6rem; }
  .contact-info-card { padding: 1.8rem; }

  .back-to-top { bottom: 1.2rem; right: 1.2rem; width: 44px; height: 44px; }

  .timeline::before { left: 22px; }
  .timeline-marker { width: 46px; height: 46px; font-size: 0.85rem; }

  .float-badge { position: static; margin-top: -2rem; margin-inline: 1rem; }
}

/* Ultra-wide */
@media (min-width: 2200px) {
  body { font-size: 17px; }
  .container-xl { max-width: 1600px; }
}
