/*
  Responsive Styles
  Mobile-first approach with breakpoints: 480px (mobile), 768px (tablet), 1024px (desktop)
*/

/* Mobile Base - reduce bento padding for small screens */
.bento {
  padding: var(--space-xl) 0; /* 48px for mobile */
}

/* Mobile Landscape - 480px and up */
@media (min-width: 480px) {
  /* Container adjustments */
  .container {
    padding: 0 var(--space-lg);
  }
  
  /* Typography adjustments */
  .hero-content__title {
    font-size: var(--font-size-4xl);
  }
  
  /* Reduce bento section padding */
  .bento {
    padding: var(--space-3xl) 0; /* 64px instead of 128px */
  }
  
  /* Grid adjustments */
  .features__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  /* Download buttons */
  .download__buttons {
    gap: var(--space-xl);
  }
}

/* Tablet - 768px and up */
@media (min-width: 768px) {
  /* Navigation */
  .nav__container {
    padding: 0 var(--space-3xl);
  }
  
  /* Hero content */
  .hero-content__title {
    font-size: var(--font-size-64);
  }
  
  /* Reduce bento section padding */
  .bento {
    padding: var(--space-4xl) 0; /* 96px instead of 128px */
  }
  
  .hero-image {
    padding: 0 var(--space-lg) var(--space-2xl);
  }
  
  .hero-image__phones {
    max-width: 100%;
    width: 100%;
  }
  
  /* Bento grid */
  
  .bento__grid {
    gap: 24px;
  }
  
  .bento__card {
    padding: 64px 72px 72px 72px;
  }
  
  /* Footer */
  .footer__container {
    padding: 0 var(--space-3xl);
  }
  
  .footer__links {
    gap: var(--space-2xl);
  }
}

/* Desktop - 1024px and up */
@media (min-width: 1024px) {
  /* Use 97% of screen width for all containers */
  .nav__container,
  .bento__container,
  .cta__container,
  .footer__container {
    width: 97%;
    max-width: none;
    margin: 0 auto;
  }
  
  /* Hero content adjustments */
  .hero-content__title {
    font-size: clamp(4rem, 5vw, 5rem);
    max-width: 900px;
  }
  
  .hero-image {
    padding: 0 var(--space-xl) var(--space-3xl);
  }
  
  .hero-image__phones {
    max-width: 1200px;
  }
  
  /* Bento grid */
  
  .bento__grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns from 1024px+ */
    gap: 32px;
  }
  
  .bento__card {
    padding: 72px 80px 80px 80px;
  }
  
  .bento__subline {
    font-size: var(--font-size-16);
  }
  
  .bento__title {
    font-size: 2rem; /* 32px */
  }
  
  /* CTA section */
  .cta__title {
    font-size: clamp(4rem, 5vw, 5rem);
  }
  
  /* Footer */
  
  /* Hover effects for desktop */
  @media (hover: hover) {
    .bento__card:hover {
      transform: translateY(-4px);
    }
    
    .download-btn:hover {
      transform: translateY(-3px);
    }
  }
}



/* Ultra-wide Desktop - 1800px and up */
@media (min-width: 1800px) {
  /* Increase max-width to 1640px for ultra-wide displays */
  .nav__container,
  .bento__container,
  .cta__container,
  .footer__container {
    max-width: 1640px;
    margin: 0 auto;
  }
}

/* Mobile-specific styles (max-width queries) */
@media (max-width: 767px) {
  /* Navigation */
  .nav__container {
    padding: 0 var(--space-lg);
  }
  
  /* Hero content */
  .hero-content__title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    line-height: 1;
  }
  
  .hero-content {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  
  .phones-section {
    padding: 60px var(--space-md) var(--space-xl);
  }
  
  .phones-section__image {
    max-width: 300px;
  }
  
  /* Bento grid */
  /* .bento__container {
    padding: 0 var(--space-xs);
  } */
  
  .bento__grid {
    gap: var(--space-lg);
  }
  
  .bento__card {
    padding: 40px 32px 40px 32px;
  }
  
  .bento__text {
    margin-bottom: var(--space-lg);
  }
  
  .bento__image {
    min-height: 160px;
  }
  
  .bento__image-asset {
    object-fit: contain; /* Show full image on mobile without cropping */
  }
  
  /* CTA section */
  .cta__title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    line-height: 1.1;
  }
  
  .cta__container {
    padding: 0 var(--space-md);
  }
  
  /* Download button mobile */
  .download-btn {
    font-size: var(--font-size-lg);
    height: 60px;
    padding: 0 var(--space-lg);
  }
  
  .download-btn__text {
    font-size: var(--font-size-lg);
  }
  
  /* Footer stacking */
  .footer__container {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
    padding: 0 var(--space-lg);
  }
  
  .footer__nav {
    justify-content: center;
  }
  
  .footer__links {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
  }
}

/* Mobile overlay for navigation */
@media (max-width: 767px) {
  .nav__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: calc(var(--z-modal) - 1);
  }
  
  .nav__overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize images and graphics for high DPI displays */
  .hero-image__phones,
  .about__image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .about__container,
  .features__grid {
    animation: none;
  }
  
  .feature-card,
  .social-link,
  .store-button {
    transition: none;
  }
  
  .feature-card:hover,
  .social-link:hover,
  .store-button:hover {
    transform: none;
  }
}

/* Print styles */
@media print {
  .nav__toggle,
  .nav__menu,
  .download,
  .footer__social {
    display: none;
  }
  
  .hero-content,
  .about,
  .features {
    page-break-inside: avoid;
  }
  
  a {
    text-decoration: underline;
  }
  
  .hero-content,
  .about__container {
    grid-template-columns: 1fr;
  }
} 