/* responsive.css - Comprehensive Multi-Breakpoint Responsive Design */

/* Large Laptops / Standard Desktop (max-width: 1280px) */
@media (max-width: 1280px) {
  :root {
    --container-max: 1120px;
  }

  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-8);
  }
}

/* Tablets & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  :root {
    --container-max: 960px;
    --header-height: 74px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero-content {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-image-card img {
    height: 420px;
  }

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

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

  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10);
  }
}

/* Tablet Portrait & Large Phones (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --container-max: 100%;
  }

  .nav-menu, .header-cta-btn {
    display: none;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .hero-section {
    padding: var(--space-12) 0 var(--space-16);
  }

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

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

  .grid-2 {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

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

  .process-timeline {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Admin Dashboard Mobile View */
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .table-container {
    display: none; /* Hide wide table on mobile */
  }

  .mobile-records-list {
    display: flex; /* Show mobile-optimized cards */
  }

  .dashboard-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .controls-left {
    flex-direction: column;
    width: 100%;
    min-width: 0;
  }

  .search-box-wrap {
    max-width: 100%;
    width: 100%;
  }

  .filter-select {
    width: 100%;
  }

  .controls-right {
    width: 100%;
    justify-content: space-between;
  }

  .controls-right .btn {
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }

  .cta-banner {
    padding: var(--space-10) var(--space-4);
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    max-width: 100%;
  }
}

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

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .card {
    padding: var(--space-6);
  }

  .modal-content {
    padding: var(--space-6);
  }

  .login-card {
    padding: var(--space-6);
  }

  .testimonial-slide {
    padding: var(--space-6);
  }

  .metrics-strip {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .brand-logo {
    gap: 10px;
  }

  .brand-logo-frame {
    width: 40px;
    height: 40px;
  }

  .brand-text .title {
    font-size: 1.15rem;
  }

  .brand-text .subtitle {
    font-size: 0.62rem;
  }

  .btn {
    padding: 0.75rem 1.4rem;
  }

  .hero-image-card img {
    height: 300px;
  }

  .hero-floating-pill {
    padding: 6px 12px;
    font-size: 0.7rem;
  }

  .hero-floating-pill.pill-1 {
    left: -5px;
    top: 5%;
  }

  .hero-floating-pill.pill-2 {
    right: -5px;
    bottom: 8%;
  }

  .hero-floating-pill.pill-3 {
    display: none;
  }
}
