/* LAPTOP (<=1200px) */
@media (max-width: 1200px) {
  :root { --section-pad: 5.5rem; }
  .cards-grid,
  .services-grid,
  .mvv-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid,
  .contact-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 2 220px; }
}

/* TABLET LANDSCAPE / NAV COLLAPSE (<=992px) */
@media (max-width: 992px) {
  .main-nav {
    position: fixed; top: 0; right: -100%; height: 100vh; width: min(360px, 85%);
    background: var(--bg-surface); z-index: 999; padding: 7rem 2rem 2rem;
    transition: right var(--transition-mid); box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    display: block;
  }
  .main-nav.open { right: 0; }
  .nav-list { flex-direction: column; gap: 0.5rem; }
  .nav-link { display: block; padding: 0.9rem 0.5rem; border-bottom: 1px solid var(--border-color); font-size: 1.05rem; }
  .nav-link::after { display: none; }

  .hamburger { display: flex; }
  .btn-quote { display: none; }
  .header-actions .btn.btn-quote { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .story-grid { grid-template-columns: 1fr; gap: 3rem; }
  .story-media { max-width: 460px; margin: 0 auto; }
  .map-hours-grid { grid-template-columns: 1fr; }
}

/* TABLET (<=768px) */
@media (max-width: 768px) {
  :root { --section-pad: 4.5rem; }

  .header-inner { height: 72px; }
  .logo-img { height: 36px; }
  .hero { padding-top: 72px; }
  .hero-title { font-size: clamp(1.9rem, 6vw, 2.6rem); }
  .hero-desc { font-size: 1rem; }
  .hero-btns .btn { flex: 1; min-width: 140px; text-align: center; }

  .page-hero { padding: 8.5rem 0 4rem; }

  .cards-grid,
  .services-grid,
  .mvv-grid,
  .team-grid,
  .contact-cards-grid,
  .process-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .stat-number { font-size: 2rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; padding-bottom: 2.2rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .cta-banner-inner { flex-direction: column; text-align: center; }

  .gallery-grid { columns: 2 180px; column-gap: 1.1rem; }
  .gallery-filters { gap: 0.5rem; }
  .filter-btn { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

  .form-row { grid-template-columns: 1fr; }
  .quote-form { padding: 2rem 1.5rem; }

  .carousel-arrow { display: none; }

  .lightbox-nav { width: 40px; height: 40px; margin: 0 0.6rem; }
  .lightbox-close { top: 1rem; right: 1rem; }
}

/* MOBILE (<=576px) */
@media (max-width: 576px) {
  :root { --section-pad: 3.5rem; }
  .container { padding: 0 1.1rem; }

  .header-actions { gap: 0.5rem; }
  .icon-btn { width: 38px; height: 38px; }
  .hamburger { width: 38px; height: 38px; }

  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }

  .eyebrow { font-size: 0.72rem; padding: 0.35rem 0.8rem; }

  .section-head { margin-bottom: 2.5rem; }

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

  .story-badge { position: static; margin-top: 1rem; display: inline-block; }

  .team-photo { width: 70px; height: 70px; font-size: 2rem; }

  .timeline-item { padding-left: 46px; }
  .timeline::before { left: 14px; }
  .timeline-dot { left: 6px; }

  .gallery-grid { columns: 1; }

  .contact-card, .mvv-card, .feature-card, .service-card { padding: 1.8rem 1.4rem; }

  .testimonial-slide { padding: 2rem 1.4rem; }

  .quote-form { padding: 1.6rem 1.1rem; }

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

  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
}

/* SMALL MOBILE (<=400px) */
@media (max-width: 400px) {
  .hero-title { font-size: 1.7rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .logo { font-size: 1.1rem; }
  .logo-img { height: 30px; }
  .gallery-filters { justify-content: flex-start; overflow-x: auto; padding-bottom: 0.4rem; flex-wrap: nowrap; }
  .filter-btn { flex-shrink: 0; }
}

/* REDUCED MOTION */
@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  */
@media print {
  .site-header, .back-to-top, .nav-overlay, .loader, .lightbox, .search-bar { display: none !important; }
}
