/* Premium Mobile & Device Responsive Configurations */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 992px) {
  /* early navbar collapse to prevent horizontal overlaps */
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--nav-height));
    background: rgba(7, 7, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-glass);
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 2rem;
    gap: 2rem;
    transition: right var(--transition-normal);
    z-index: 99;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a:not(.btn) {
    font-size: 1.15rem;
    width: 100%;
  }

  .nav-links .btn {
    width: 100%;
  }

  .mobile-overlay {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 98;
  }
  
  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Grid layouts collapse to single column early for premium space */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 3.5rem;
    text-align: center;
  }
  
  .hero-content {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-image {
    order: 0;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
    width: 100%;
  }
  
  .hero-stats {
    justify-content: center;
    width: 100%;
  }

  .story-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem;
  }
  
  .story-img-wrapper {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
  
  .mv-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem;
  }
  
  .comparison-wrapper {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }
  
  .section {
    padding: 4.5rem 0;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }

  .trust-info-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-brand {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
  }
  
  .footer-brand p {
    max-width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-legal {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 15px;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  .btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  
  .wa-icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .wa-tooltip {
    display: none; /* prevent screen clutter on phone viewports */
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  /* Headings size down scale */
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }

  .cta-banner {
    padding: 2.5rem 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1.25rem;
  }

  /* product card buttons collapse stacked for touch ergonomics */
  .product-actions {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
  
  .btn-view-plans {
    padding: 0.75rem 0;
  }
}
