/* ==========================================================================
   Velocity Corporate Design System | Responsive Layout Stylesheet
   ========================================================================== */

/* --- LARGE SCREENS & DESKTOP --- */
@media (max-width: 1200px) {
  html {
    font-size: 15px; /* Scale down typography slightly */
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2rem;
  }
}

/* --- TABLETS --- */
@media (max-width: 992px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.85rem;
  }

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

  /* Header Navigation Collapse */
  .menu-toggle {
    display: block; /* Show burger button */
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    border-top: 1px solid var(--border-light);
    overflow-y: auto;
    align-items: flex-start;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.25rem;
    width: 100%;
    padding: 0.75rem 0;
  }

  /* Hero layout adjust */
  .hero-wrapper {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 3rem;
  }

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

  .hero-graphics {
    order: -1; /* Graphics first on tablet */
    display: flex;
    justify-content: center;
  }

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

/* --- SMARTPHONES --- */
@media (max-width: 576px) {
  html {
    font-size: 13px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

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

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

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

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

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

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }
  
  .newsletter-form .btn {
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}
