/* Electric Food Truck Conversion Workshop - Responsive Styles */
/* Mobile-First Approach */

/* ========== MOBILE STYLES (Base - 320px and up) ========== */
/* Hero Section Mobile */
.hero-section {
  min-height: 80vh;
  padding: 2rem 0;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 1.64rem;
}

.hero-description {
  font-size: 1rem;
  margin-bottom: 1.74rem;
}

/* Section Padding Mobile */
.section {
  padding: 40px 0;
}

/* Typography Mobile */
h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.78rem;
}

h3 {
  font-size: 1.61rem;
}

h4 {
  font-size: 1.39rem;
}

/* 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.67rem;
}

.service-content,
.team-info,
.blog-content {
  padding: 1rem;
}

.contact-form {
  padding: 1.5rem;
}

/* Gallery Mobile */
.gallery-layout {
  grid-template-columns: 1fr;
  gap: 15px;
}

.gallery-item img {
  height: 200px;
}

/* Footer Mobile */
.footer {
  padding: 2rem 0 1rem;
}

.footer-section {
  margin-bottom: 1.64rem;
}

/* Navbar Mobile */
.navbar {
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.36rem;
}

.navbar-nav .nav-link {
  margin: 0.25rem 0;
}

/* Space Page Mobile */
#space {
  min-height: 50vh;
  font-size: 1.59rem;
  padding: 2rem 1rem;
}

/* Form Mobile */
.form-control {
  padding: 0.5rem;
}

.btn-primary {
  padding: 0.5rem 1.5rem;
  width: 100%;
}

/* ========== SMALL MOBILE (480px and up) ========== */
@media (min-width: 480px) {
  .hero-title {
    font-size: 2.29rem;
  }
  
  .hero-subtitle {
    font-size: 1.24rem;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-content,
  .team-info,
  .blog-content {
    padding: 1.25rem;
  }
  
  .contact-form {
    padding: 1.75rem;
  }
  
  .btn-primary {
    width: auto;
  }
  
  #space {
    font-size: 1.88rem;
  }
}

/* ========== TABLET PORTRAIT (576px and up) ========== */
@media (min-width: 576px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-title {
    font-size: 2.51rem;
  }
  
  .hero-subtitle {
    font-size: 1.17rem;
  }
  
  .section {
    padding: 50px 0;
  }
  
  h1 {
    font-size: 2.31rem;
  }
  
  h2 {
    font-size: 1.95rem;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .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.54rem;
  }
  
  #space {
    min-height: 55vh;
    font-size: 1.94rem;
  }
}

/* ========== TABLET LANDSCAPE (768px and up) ========== */
@media (min-width: 768px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: 2.79rem;
  }
  
  .hero-subtitle {
    font-size: 1.23rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  h1 {
    font-size: 2.62rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .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.63rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.5rem;
  }
  
  #space {
    min-height: 60vh;
    font-size: 2rem;
  }
  
  /* Two-column layout for some sections */
  .about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .priceplan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .casestudy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .career-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .coreinfo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ========== DESKTOP SMALL (992px and up) ========== */
@media (min-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.39rem;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .service-image,
  .blog-image {
    height: 200px;
  }
  
  .team-photo {
    height: 250px;
  }
  
  #space {
    font-size: 2rem;
  }
  
  /* Three-column layouts */
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .timeline-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .career-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== DESKTOP LARGE (1200px and up) ========== */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.56rem;
  }
  
  .hero-subtitle {
    font-size: 1.32rem;
  }
  
  .section {
    padding: 100px 0;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .reviews-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .process-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .timeline-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .career-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  #space {
    font-size: 2.63rem;
  }
}

/* ========== EXTRA LARGE DESKTOP (1400px and up) ========== */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.50rem;
  }
  
  .section {
    padding: 120px 0;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  #space {
    font-size: 3rem;
  }
}

/* ========== ULTRA WIDE (1600px and up) ========== */
@media (min-width: 1600px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-title {
    font-size: 4.65rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========== 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('../SYS_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,
  .btn,
  .gallery-section,
  #space {
    display: none;
  }
  
  .section {
    padding: 20pt 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  p {
    orphans: 3;
    widows: 3;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    page-break-inside: avoid;
  }
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */
/* Focus states */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-electric-blue);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-electric-blue: #005bc3;
    --primary-electric-green: #007d05;
    --primary-bright-orange: #d47500;
    --primary-deep-purple: #6103e4;
    --primary-coral-pink: #d00963;
    --neutral-medium-gray: #333333;
  }
}

/* Dark mode preference */

/* ========== TOUCH DEVICE OPTIMIZATIONS ========== */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-link,
  .blog-link,
  .footer-link {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1rem;
  }
  
  .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,
  .btn-primary {
    transition: none;
  }
  
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .feature-card:hover,
  .process-card:hover,
  .btn-primary: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;
  }
}

/* Firefox */
@-moz-document url-prefix() {
  .form-control {
    padding: 0.6rem;
  }
}

/* Edge */
@supports (-ms-ime-align: auto) {
  .gallery-layout {
    display: -ms-grid;
  }
} 

.hero-content {
    padding-top: 250px;
}