/* ==========================================================================
   SPRINTFLOWS AUTOMATIONS — RESPONSIVE DESIGN RULES
   Mobile-first & Multi-device Breakpoints (320px to 1440px+)
   ========================================================================== */

/* Laptop / Desktop (max-width: 1200px) */
@media (max-width: 1200px) {
  .workflow-grid-flow {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .wf-connector {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
  .nav-links, .nav-actions .btn-login {
    display: none;
  }

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

  .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    grid-template-columns: 1fr;
  }

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

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

  .dashboard-layout {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
  }

  .sidebar-nav-item {
    white-space: nowrap;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --container-max: 100%;
  }

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

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

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

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

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

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

  .glass-card {
    padding: 1.5rem;
  }

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

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

  .ai-chat-floater {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .ai-chat-window {
    right: 1rem;
    left: 1rem;
    width: auto;
    bottom: 5.75rem;
    height: 480px;
  }

  .audit-summary-grid {
    grid-template-columns: 1fr !important;
  }

  .score-breakdown-grid {
    grid-template-columns: 1fr !important;
  }

  .dashboard-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .nav-logo {
    height: 2rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .section-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }

  .glass-card {
    padding: 1.25rem;
  }
}
