/* ================================
   ELECTRIC FOOD TRUCK WORKSHOP - RESPONSIVE CSS
   Mobile-First Responsive Design
   ================================ */

/* ================================
   MOBILE FIRST (320px+)
   ================================ */

/* Base mobile styles already in main.css */

/* ================================
   SMALL MOBILE (375px+)
   ================================ */
@media (min-width: 375px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* ================================
   MOBILE LANDSCAPE (480px+)
   ================================ */
@media (min-width: 480px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .navbar-brand {
    font-size: 1.375rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .team-photo {
    width: 130px;
    height: 130px;
  }
}

/* ================================
   TABLET PORTRAIT (576px+)
   ================================ */
@media (min-width: 576px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    margin-bottom: 1.5rem;
  }
  
  .navbar {
    padding: 1.25rem 0;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .feature-icon {
    width: 90px;
    height: 90px;
    font-size: 2.25rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .footer {
    padding: 3.5rem 0 1.5rem;
  }
}

/* ================================
   TABLET LANDSCAPE (768px+)
   ================================ */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.375rem;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 2rem; }
  
  .navbar {
    padding: 1.5rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.5rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .price-card {
    padding: 2.5rem 2rem;
  }
  
  .team-card {
    padding: 2.5rem;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .gallery-item img {
    height: 280px;
  }
  
  .review-card {
    padding: 2.5rem;
  }
  
  .faq-question {
    padding: 2rem;
  }
  
  .faq-toggle:checked ~ .faq-answer {
    padding: 2rem;
  }
  
  .footer {
    padding: 4rem 0 2rem;
  }
}

/* ================================
   DESKTOP SMALL (992px+)
   ================================ */
@media (min-width: 992px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: 3.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-description {
    font-size: 1.125rem;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.125rem; }
  h3 { font-size: 1.875rem; }
  
  .section-padding {
    padding: 6rem 0;
  }
  
  .navbar {
    padding: 2rem 0;
  }
  
  .navbar-brand {
    font-size: 1.75rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1.25rem;
    margin: 0 0.25rem;
  }
  
  .service-card {
    padding: 2.5rem;
  }
  
  .service-card img {
    height: 220px;
  }
  
  .price-card {
    padding: 3rem 2.5rem;
  }
  
  .price-amount {
    font-size: 3.5rem;
  }
  
  .team-card {
    padding: 3rem;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .feature-icon {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
  }
  
  .gallery-item img {
    height: 300px;
  }
  
  .review-card {
    padding: 3rem;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .footer {
    padding: 5rem 0 2rem;
  }
}

/* ================================
   DESKTOP LARGE (1200px+)
   ================================ */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.375rem;
  }
  
  .section-padding {
    padding: 7rem 0;
  }
  
  .container {
    max-width: var(--container-max-width);
  }
  
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.375rem; }
  h3 { font-size: 2rem; }
  
  .service-card {
    padding: 3rem;
  }
  
  .service-card img {
    height: 240px;
  }
  
  .price-card {
    padding: 3.5rem 3rem;
  }
  
  .team-card {
    padding: 3.5rem;
  }
  
  .team-photo {
    width: 200px;
    height: 200px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
  }
  
  .gallery-item img {
    height: 320px;
  }
  
  .review-card {
    padding: 3.5rem;
  }
  
  .contact-form {
    padding: 3.5rem;
  }
  
  .footer {
    padding: 6rem 0 2rem;
  }
}

/* ================================
   EXTRA LARGE DESKTOP (1400px+)
   ================================ */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 1.25rem;
  }
  
  .section-padding {
    padding: 8rem 0;
  }
  
  h1 { font-size: 3rem; }
  h2 { font-size: 2.625rem; }
  h3 { font-size: 2.25rem; }
  
  .service-card {
    padding: 3.5rem;
  }
  
  .price-card {
    padding: 4rem 3.5rem;
  }
  
  .team-card {
    padding: 4rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  }
  
  .contact-form {
    padding: 4rem;
  }
  
  .footer {
    padding: 7rem 0 2rem;
  }
}

/* ================================
   ULTRA WIDE (1920px+)
   ================================ */
@media (min-width: 1920px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-title {
    font-size: 4.25rem;
  }
  
  .section-padding {
    padding: 9rem 0;
  }
  
  .service-card,
  .price-card,
  .team-card {
    padding: 4rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3.5rem;
  }
  
  .contact-form {
    padding: 4.5rem;
  }
}

/* ================================
   HIGH DPI / RETINA DISPLAYS
   ================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../JAP_images/hero-bg@2x.webp');
  }
  
  .service-card img,
  .gallery-item img,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
  }
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .navbar,
  .footer,
  .contact-form,
  .gallery-grid {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto !important;
    padding: 2rem 0 !important;
  }
  
  .section-padding {
    padding: 1rem 0 !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .service-card,
  .price-card,
  .team-card {
    page-break-inside: avoid;
  }
}

/* ================================
   ACCESSIBILITY ENHANCEMENTS
   ================================ */
@media (max-width: 767px) {
  /* Enhanced touch targets for mobile */
  .navbar-nav .nav-link {
    padding: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .faq-question {
    min-height: 60px;
    padding: 1rem 1.5rem;
  }
  
  /* Improved spacing for readability */
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    margin-bottom: 2rem;
  }
  
  /* Better text sizing for mobile */
  .section-description {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .service-card p,
  .price-card p,
  .team-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* ================================
   ORIENTATION SPECIFIC STYLES
   ================================ */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    min-height: 70vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* ================================
   REDUCED MOTION PREFERENCES
   ================================ */
@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .animate-fade-in-up {
    animation: none;
  }
}

/* ================================
   DARK MODE SUPPORT (Optional)
   ================================ */

/* ================================
   CONTAINER QUERIES (Future Enhancement)
   ================================ */
/* Note: Container queries are not yet widely supported */
/* This section can be enhanced when browser support improves */

/* ================================
   DEVICE-SPECIFIC OPTIMIZATIONS
   ================================ */

/* iPad specific */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
}

/* iPhone specific */
@media only screen 
and (min-device-width: 375px) 
and (max-device-width: 812px) 
and (-webkit-min-device-pixel-ratio: 3) {
  .hero-section {
    min-height: 90vh;
  }
  
  .navbar {
    padding: 1rem 0;
  }
}

/* ================================
   HOVER CAPABILITY DETECTION
   ================================ */
@media (hover: none) {
  /* For touch devices that don't support hover */
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: transparent;
  }
} 

.hero-content {
    padding-top: 100px;
}

/* ================================
   MOBILE MENU STYLES (Bootstrap Collapse)
   ================================ */
@media (max-width: 991.98px) {
  .navbar-toggler {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    border-radius: 0.375rem;
    transition: box-shadow 0.15s ease-in-out;
  }

  .navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 168, 232, 0.25);
  }

  .navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 168, 232, 0.1);
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: block;
    color: var(--color-medium-gray);
    text-decoration: none;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
  }

  /* Animation for collapsing/expanding */
  .navbar-collapse.collapsing {
    transition: height 0.35s ease;
  }

  .navbar-collapse.show {
    display: block;
  }

  .navbar-collapse:not(.show) {
    display: none;
  }
}



/* ================================
   IMPROVED TOGGLER ICON
   ================================ */
.navbar-toggler-icon i {
  transition: transform 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon i {
  transform: rotate(90deg);
}

/* ================================
   ACCESSIBILITY IMPROVEMENTS
   ================================ */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
  }

  .navbar-toggler {
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ================================
   SMOOTH ANIMATIONS
   ================================ */
@media (prefers-reduced-motion: no-preference) {
  .navbar-collapse {
    transition: all 0.35s ease-in-out;
  }
  
  .navbar-nav .nav-link {
    transition: all 0.3s ease;
  }
}