/* ============================================
   RESPONSIVE CSS
   ============================================ */

/* =====================
   LARGE DESKTOP (1400px+)
   ===================== */
@media (min-width: 1400px) {
  .hero-title { font-size: 6.5rem; }
  .stats-grid { max-width: 1400px; }
  .crew-grid { max-width: 1400px; }
}

/* =====================
   DESKTOP (1200px)
   ===================== */
@media (max-width: 1200px) {
  .crew-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .admin-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* =====================
   TABLET LANDSCAPE (1024px)
   ===================== */
@media (max-width: 1024px) {
  section { padding: 5rem 4%; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  .hero-title { font-size: clamp(2.5rem, 6vw, 4rem); }

  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid > .stat-item:nth-child(3)::after { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { max-width: 560px; margin: 0 auto; }
  .about-badge { left: 0; top: 1rem; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .crew-grid { grid-template-columns: repeat(3, 1fr); }

  .services-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-main-img { height: 350px; max-width: 560px; margin: 0 auto; }

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

  .modal-img-gallery { grid-template-columns: 1fr; height: auto; }
  .modal-img-secondary { flex-direction: row; height: 120px; }
  .modal-details-grid { grid-template-columns: 1fr; }

  .masonry-grid { columns: 2; }

  .admin-sidebar { width: 240px; }
  .admin-main { margin-left: 240px; }
}

/* =====================
   TABLET PORTRAIT (768px)
   ===================== */
@media (max-width: 768px) {
  section { padding: 4rem 5%; }

  .hero-title { font-size: clamp(2rem, 7vw, 3rem); }
  .hero-tagline { font-size: 0.9rem; }
  .hero-btns { gap: 0.75rem; }
  .btn-primary, .btn-outline { padding: 0.8rem 1.5rem; font-size: 0.75rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stats-grid > .stat-item::after { display: none; }

  .section-title { font-size: clamp(1.8rem, 5vw, 2.5rem); }

  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .crew-grid { grid-template-columns: repeat(2, 1fr); }

  .trust-items { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .testimonial-card { padding: 2rem 1.5rem; }

  .filter-bar { flex-direction: column; }
  .filter-bar input, .filter-bar select { width: 100%; }

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

  .admin-wrap { flex-direction: column; }
  .admin-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
  .admin-main { margin-left: 0; }
  .admin-stats-row { grid-template-columns: repeat(2, 1fr); }

  .page-hero { min-height: 40vh; padding: 5rem 5% 2.5rem; }

  .modal-img-gallery { height: auto; grid-template-columns: 1fr; }
  .modal-img-secondary { display: none; }
  .modal { max-width: 95vw; }
  .modal-body { padding: 1.25rem; }

  .float-btns { right: 1rem; bottom: 4.5rem; }
  .float-btn { width: 46px; height: 46px; font-size: 1.1rem; }
}

/* =====================
   MOBILE (480px)
   ===================== */
@media (max-width: 480px) {
  html { font-size: 15px; }
  section { padding: 3.5rem 4%; }

  .navbar { padding: 1rem 4%; }
  .navbar.scrolled { padding: 0.75rem 4%; }
  .nav-logo-text { font-size: 1.2rem; }

  .hero { min-height: 100svh; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .hero-eyebrow { font-size: 0.6rem; letter-spacing: 0.25em; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 280px; text-align: center; }

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

  .crew-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .crew-photo { width: 64px; height: 64px; }
  .crew-photo-wrap { width: 64px; height: 64px; }
  .crew-name { font-size: 0.85rem; }

  .masonry-grid { columns: 1; }

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

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

  .testimonial-card { padding: 1.5rem 1.25rem; }
  .testimonial-text { font-size: 0.9rem; }

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

  .about-img-accent { display: none; }

  .page-hero { min-height: 35vh; }
  .page-hero-title { font-size: clamp(1.8rem, 7vw, 2.5rem); }

  .mobile-nav-link { font-size: 1.6rem; }

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

  .admin-login-card { padding: 2rem 1.5rem; }

  .loader-logo { font-size: 2rem; }

  #cursor-dot, #cursor-ring { display: none; }
  body { cursor: auto; }
  button, a { cursor: pointer; }
}

/* =====================
   EXTRA SMALL (360px)
   ===================== */
@media (max-width: 360px) {
  html { font-size: 14px; }
  .crew-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 1.7rem; }
}

/* =====================
   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;
  }

  .anim-fade-up,
  .anim-fade-down,
  .anim-fade-left,
  .anim-fade-right,
  .anim-zoom-in,
  .anim-scale {
    opacity: 1;
    transform: none;
  }

  .particle { display: none; }
  .floating, .floating-slow { animation: none; }
}

/* =====================
   PRINT
   ===================== */
@media print {
  .navbar, .float-btns, #back-to-top, #loading-screen,
  #cursor-dot, #cursor-ring, #scroll-progress { display: none !important; }
  body { background: white; color: black; }
  .hero { height: auto; }
}
