/* ==========================================================================
   Hassan Platform - Responsive Breakpoints & Mobile Adaptations
   ========================================================================== */

/* Large Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid,
  .hero-grid-with-image {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero-image-wrapper {
    order: -1;
  }

  .hero-profile-container {
    width: 280px;
    height: 280px;
  }

  .hero-terminal {
    max-width: 600px;
    margin: 0 auto;
  }

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

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

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

/* Medium Tablets & Mobile (<= 768px) */
@media (max-width: 768px) {
  :root {
    --space-16: 3rem;
    --space-20: 3.5rem;
    --space-24: 4.5rem;
  }

  .navbar {
    height: 70px;
  }

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

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

  .hero-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }

  .hero-profile-container {
    width: 220px;
    height: 220px;
  }

  .hero-profile-badge {
    font-size: 10px;
    padding: 4px 12px;
  }

  .calc-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .review-stats-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .review-aggregate {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-right: 0;
    padding-bottom: var(--space-6);
  }

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

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

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

  .modal-container {
    max-height: 95vh;
    border-radius: var(--radius-lg);
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: var(--space-5);
  }
}

/* Small Mobile Devices (<= 480px) */
@media (max-width: 480px) {
  .container,
  .container-narrow {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

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

  .hero-cta-group .btn {
    width: 100%;
  }

  .calc-metrics-grid {
    grid-template-columns: 1fr;
  }

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

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