/* Electric Food Truck Conversion Workshop - Responsive Styles */
/* Bootstrap 5 Compatible - Component-Specific Responsive Styles */

/* ========== MOBILE STYLES (Base - 320px and up) ========== */

/* Hero Section Mobile */
.hero-section {
  min-height: 80vh;
  padding: 2rem 0;
}

.hero-content {
  padding-top: 80px;
}

/* Custom Cards Mobile */
.service-card,
.price-card,
.team-card,
.review-card,
.casestudy-card,
.process-card,
.timeline-card,
.career-card,
.coreinfo-card,
.feature-card,
.blog-card,
.faq-card {
  margin-bottom: 1.5rem;
}

.service-content,
.team-info,
.blog-content {
  padding: 1rem;
}

.contact-form {
  padding: 1.5rem;
}

/* Gallery Mobile */
.gallery-item img {
  height: 200px;
}

/* Footer Mobile */
.footer {
  padding: 2rem 0 1rem;
}

/* Navbar Mobile */
.navbar-brand {
  font-size: 1.25rem;
}

/* Space Page Mobile */
#space {
  min-height: 50vh;
  font-size: 1.5rem;
  padding: 2rem 1rem;
}

/* ========== SMALL MOBILE (480px and up) ========== */
@media (min-width: 480px) {
  .service-content,
  .team-info,
  .blog-content {
    padding: 1.25rem;
  }
  
  .contact-form {
    padding: 1.75rem;
  }
  
  #space {
    font-size: 1.75rem;
  }
}

/* ========== TABLET PORTRAIT (576px and up) ========== */
@media (min-width: 576px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  .service-content,
  .team-info,
  .blog-content {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .footer {
    padding: 2.5rem 0 1rem;
  }
  
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  #space {
    min-height: 55vh;
    font-size: 1.9rem;
  }
}

/* ========== TABLET LANDSCAPE (768px and up) ========== */
@media (min-width: 768px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  .service-image,
  .blog-image {
    height: 180px;
  }
  
  .team-photo {
    height: 220px;
  }
  
  .footer {
    padding: 3rem 0 1rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  #space {
    min-height: 60vh;
    font-size: 2rem;
  }
}

/* ========== DESKTOP SMALL (992px and up) ========== */
@media (min-width: 992px) {
  .section {
    padding: 80px 0;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .service-image,
  .blog-image {
    height: 200px;
  }
  
  .team-photo {
    height: 250px;
  }
  
  #space {
    font-size: 2rem;
  }
}

/* ========== DESKTOP LARGE (1200px and up) ========== */
@media (min-width: 1200px) {
  .section {
    padding: 100px 0;
  }
  
  #space {
    font-size: 2.5rem;
  }
}

/* ========== EXTRA LARGE DESKTOP (1400px and up) ========== */
@media (min-width: 1400px) {
  .section {
    padding: 120px 0;
  }
  
  #space {
    font-size: 3rem;
  }
}

/* ========== LANDSCAPE ORIENTATION ========== */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 40px 0;
  }
  
  #space {
    min-height: 80vh;
  }
}

/* ========== HIGH DPI DISPLAYS ========== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../BEC_images/hero-bg@2x.webp');
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  * {
    background: transparent;
    color: black;
    box-shadow: none;
    text-shadow: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .navbar,
  .footer,
  .gallery-section,
  #space {
    display: none;
  }
  
  .section {
    padding: 20pt 0;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    page-break-inside: avoid;
  }
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */
/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-electric-blue: #0066CC;
    --primary-electric-green: #006600;
    --primary-bright-orange: #CC6600;
    --primary-deep-purple: #6600CC;
    --primary-coral-pink: #CC0066;
    --neutral-medium-gray: #333333;
  }
}

/* ========== TOUCH DEVICE OPTIMIZATIONS ========== */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .feature-card:hover,
  .process-card:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
}

/* ========== REDUCED MOTION PREFERENCES ========== */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .process-card,
  .timeline-card,
  .career-card,
  .coreinfo-card,
  .feature-card,
  .blog-card,
  .gallery-item {
    transition: none;
  }
  
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .feature-card:hover,
  .process-card:hover {
    transform: none;
  }
}

/* ========== BROWSER SPECIFIC FIXES ========== */
/* Safari iOS */
@supports (-webkit-touch-callout: none) {
  .hero-section {
    min-height: -webkit-fill-available;
  }
  
  #space {
    min-height: -webkit-fill-available;
  }
}