/* 
 * Responsive CSS for Sushi Delivery Website
 * Contains media queries for different screen sizes
 */

/* ====== LARGE SCREENS (Desktops) ====== */
@media screen and (max-width: 1200px) {
  .container {
    width: 95%;
  }
}

/* ====== MEDIUM SCREENS (Tablets) ====== */
@media screen and (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .about-preview .container {
    flex-direction: column;
  }
  
  .about-content, .about-image {
    flex: none;
    width: 100%;
  }
  
  .about-image {
    margin-top: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .steps {
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .step {
    margin-bottom: var(--spacing-md);
  }
}

/* ====== SMALL SCREENS (Mobile Landscape) ====== */
@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .header .container {
    flex-wrap: wrap;
  }
  
  .logo {
    margin-right: auto;
  }
  
  .main-nav {
    display: none;
    width: 100%;
    margin-top: var(--spacing-sm);
    background-color: var(--white);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
  }
  
  .main-nav li {
    margin: 0;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .main-nav li:last-child {
    border-bottom: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    padding: var(--spacing-lg) 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero .btn {
    display: block;
    width: 100%;
    margin: var(--spacing-xs) 0;
  }
  
  .items-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo img {
    margin: 0 auto var(--spacing-sm);
  }
  
  .social-icons {
    justify-content: center;
  }
}

/* ====== EXTRA SMALL SCREENS (Mobile Portrait) ====== */
@media screen and (max-width: 480px) {
  html {
    font-size: 13px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .menu-item-image {
    height: 180px;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float a {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* ====== NAVIGATION TOGGLE ANIMATION ====== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-nav.active {
  animation: fadeIn 0.3s ease forwards;
}

/* ====== PRINT STYLES ====== */
@media print {
  .header, .hero, .how-to-order, .footer, .whatsapp-float {
    display: none;
  }
  
  body {
    background-color: white;
    color: black;
  }
  
  .container {
    width: 100%;
    max-width: none;
  }
  
  .menu-item {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}