/* ============================================
   Restaurant Events, Inc. - Responsive Styles
   Mobile First Approach
   ============================================ */

/* ============================================
   Mobile Styles (Default: 320px - 767px)
   ============================================ */

/* Mobile Navigation */
@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
    transition: var(--transition-normal);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.25rem;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .btn-nav {
    width: 100%;
    margin-top: var(--spacing-sm);
  }
}

/* ============================================
   Tablet Portrait (768px - 1023px)
   ============================================ */

@media (min-width: 768px) {
  /* Typography */
  html {
    font-size: 17px;
  }
  
  /* Container */
  .container {
    padding: 0 var(--spacing-md);
  }
  
  /* Navigation */
  .nav-menu {
    gap: var(--spacing-sm);
  }
  
  .menu-toggle {
    display: none;
  }
  
  /* Hero */
  .hero {
    margin-top: 80px;
  }
  
  .hero-locations {
    gap: var(--spacing-lg);
  }
  
  /* Cards Grid - 2 columns */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  /* Forms */
  .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
}

/* ============================================
   Tablet Landscape / Small Desktop (1024px - 1279px)
   ============================================ */

@media (min-width: 1024px) {
  /* Typography */
  html {
    font-size: 18px;
  }
  
  /* Container */
  .container {
    padding: 0 var(--spacing-lg);
  }
  
  /* Section */
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  /* Navigation */
  .nav {
    padding: var(--spacing-md) 0;
  }
  
  .nav-menu {
    gap: var(--spacing-md);
  }
  
  /* Hero */
  .hero-buttons {
    gap: var(--spacing-md);
  }
  
  /* Cards Grid - 3 columns */
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Desktop (1280px - 1439px)
   ============================================ */

@media (min-width: 1280px) {
  /* Container */
  .container {
    max-width: 1200px;
  }
  
  /* Navigation */
  .nav-menu {
    gap: var(--spacing-lg);
  }
  
  /* Cards */
  .card-image {
    height: 280px;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   Large Desktop (1440px+)
   ============================================ */

@media (min-width: 1440px) {
  /* Container */
  .container {
    max-width: 1400px;
  }
  
  /* Section */
  .section {
    padding: 6rem 0;
  }
  
  /* Cards */
  .card-image {
    height: 300px;
  }
  
  /* Gallery - 4 columns on large screens */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .header,
  .menu-toggle,
  .hero-buttons,
  .scroll-indicator,
  .btn {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

/* ============================================
   Accessibility - Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   High Contrast Mode
   ============================================ */

@media (prefers-contrast: high) {
  :root {
    --accent-color: #00ff00;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
  
  .card {
    border: 2px solid #000;
  }
}

/* ============================================
   Dark Mode Support (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
  /* Keep current dark theme as default */
  /* This section can be expanded if needed */
}

/* ============================================
   Landscape Orientation Adjustments
   ============================================ */

@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 70vh;
  }
  
  .hero-content {
    padding: var(--spacing-sm);
  }
  
  .scroll-indicator {
    display: none;
  }
}

/* ============================================
   Touch Device Optimizations
   ============================================ */

@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    min-height: 48px;
    min-width: 48px;
  }
  
  .nav-link {
    padding: var(--spacing-sm);
  }
  
  /* Remove hover effects on touch devices */
  .card:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* ============================================
   Specific Component Responsive Adjustments
   ============================================ */

/* Services Cards */
@media (max-width: 767px) {
  .service-card {
    margin-bottom: var(--spacing-md);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .cards-grid.services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid.services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Portfolio Gallery */
@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Contact Page Layout */
@media (min-width: 1024px) {
  .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
  }
}

/* About Page */
@media (min-width: 768px) {
  .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
  }
}

/* Location Cards */
@media (max-width: 767px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .locations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Form Layouts */
@media (max-width: 767px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .checkbox-group {
    grid-template-columns: repeat(3, 1fr);
  }
}