/* Vintage Trailer Restoration - Responsive CSS */

/* Mobile First Approach - Base styles are for mobile */

/* Mobile devices (phones, less than 768px) */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  /* Disable Swiper autoplay/effects on mobile */
  .swiper-container .swiper-slide {
    transition: none !important;
  }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktops (992px and up) */
@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: translateY(-10px);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1200px;
  }
  
  .hero-section .row {
    align-items: center;
  }
  
  .section-desc {
    font-size: 1.1rem;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1400px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black !important;
    background: white !important;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-rust: #B71C1C;
    --primary-sage: #2E7D32;
    --primary-charcoal: #000000;
    --cream-light: #FFFFFF;
  }
  
  .service-card,
  .team-card,
  .blog-card {
    border: 2px solid var(--primary-charcoal);
  }
}

/* Dark mode preference (excluded as per requirements) */

/* Reduced motion preferences handled in main.css */

/* Focus improvements for accessibility */
@media (any-hover: hover) {
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: translateY(-5px);
  }
}

/* Touch device optimizations */
@media (any-pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 1rem !important;
  }
  
  .faq-question {
    padding: 1.5rem;
  }
} 