/* responsive.css */

/* Global base responsive rules */
img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

/* Tablet / Small Desktop */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablet */
@media (max-width: 992px) {
  :root {
    --fs-hero: clamp(2rem, 5vw, 3rem);
    --spacing-xl: 4rem;
    --spacing-lg: 3rem;
  }

  /* Navigation Mobile Menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--clr-bg-dark);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  /* Reset button margin in mobile nav */
  .nav-links a.btn {
    margin-left: 0 !important;
    margin-top: 1.5rem;
    width: 100%;
    text-align: center;
  }

  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Center buttons when hero breaks */
  .hero-buttons {
    justify-content: center;
  }
}

/* Mobile Landscape & Small Tablet */
@media (max-width: 768px) {
  :root {
    --fs-hero: 2.25rem;
    --fs-h2: 1.75rem;
    --spacing-xl: 3rem;
  }
  
  section {
    padding: var(--spacing-lg) 0;
  }

  .page-header {
    padding: 100px 0 40px !important;
  }

  /* Prevent tight columns from overflowing */
  div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"],
  .stats-grid,
  .spec-grid,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

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

/* Mobile Portrait */
@media (max-width: 480px) {
  :root {
    --fs-hero: 2rem;
    --fs-h2: 1.5rem;
  }

  /* Make buttons full width */
  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .nav-brand-text {
    font-size: 1.25rem;
  }
  
  .nav-brand svg {
    width: 32px;
    height: 32px;
  }

  .container {
    padding: 0 1rem;
  }
}
