/* ============================================
   ALGORENT — Responsive Breakpoints
   ============================================ */

/* ---- Large Tablets / Small Laptops (1024px) ---- */
@media (max-width: 1024px) {
  :root {
    --text-6xl: 3.5rem;
    --text-5xl: 2.75rem;
    --text-4xl: 2rem;
  }

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

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

/* ---- Tablets (768px) ---- */
@media (max-width: 768px) {
  :root {
    --text-6xl: 2.75rem;
    --text-5xl: 2.25rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --space-5xl: 5rem;
    --space-4xl: 4rem;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  /* Navbar mobile */
  .navbar-links {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-actions .btn {
    display: none;
  }

  /* Grids collapse */
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

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

  .footer-bottom-links {
    justify-content: center;
  }

  /* Section spacing */
  .section {
    padding: var(--space-4xl) 0;
  }
}

/* ---- Mobile (480px) ---- */
@media (max-width: 480px) {
  :root {
    --text-6xl: 2.25rem;
    --text-5xl: 1.875rem;
    --text-4xl: 1.5rem;
    --text-3xl: 1.25rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .btn--lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-sm);
  }

  .navbar-mobile {
    width: 100%;
    right: -100%;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
