/* CamperCraft - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  h1 {
    font-size: 2.12rem;
  }
  
  h2 {
    font-size: 1.81rem;
  }
  
  h3 {
    font-size: 1.40rem;
  }
  
  .navbar-brand {
    font-size: 1.40rem !important;
  }
  
  .hero-content {
  padding-top: 100px !important;
    padding: 1rem 0;
    text-align: center;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .service-card,
  .feature-item,
  .review-card {
    margin-bottom: 1.65rem;
  }
  
  .team-photo {
    width: 80px;
    height: 80px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-content {
    width: calc(100% - 40px);
    margin-left: 40px !important;
  }
  
  .process-step {
    margin-bottom: 1.65rem;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.40rem;
  }
  
  .gallery-image {
    height: 150px;
  }
  
  /* Disable autoplay and effects on mobile for Swiper */
  .swiper {
    --swiper-autoplay-delay: 0;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-content {
  padding-top: 100px !important;
    padding: 1.5rem 0;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }
  
  .timeline::before {
    left: 30px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
  padding-top: 50px;
    min-height: 70vh;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .timeline-content {
    width: 45%;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
  }
  
  /* Enable autoplay for tablets and up */
  .swiper {
    --swiper-autoplay-delay: 3000;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section {
  padding-top: 50px;
    min-height: 80vh;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .feature-item:hover,
  .service-card:hover,
  .blog-card:hover,
  .case-study-card:hover {
    transform: translateY(-10px);
  }
  
  .gallery-image:hover {
    transform: scale(1.1);
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
  padding-top: 50px;
    min-height: 100vh;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Extra Extra Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Reduced Motion Media Query */
@media (prefers-reduced-motion: reduce) {
  .feature-item,
  .service-card,
  .blog-card,
  .case-study-card,
  .gallery-image,
  .btn-primary {
    transition: none;
  }
  
  .feature-item:hover,
  .service-card:hover,
  .blog-card:hover,
  .case-study-card:hover {
    transform: none;
  }
  
  .gallery-image:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  /* Disable Swiper autoplay and transitions */
  .swiper {
    --swiper-autoplay-delay: 0;
  }
  
  .swiper-slide {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .feature-item,
  .review-card,
  .contact-form {
    border: 2px solid var(--dark-gray);
  }
  
  .btn-primary {
    border: 2px solid var(--white);
  }
}


/* Print styles */
@media print {
  .header,
  .footer,
  .contact-form,
  .swiper-pagination,
  .breadcrumb-nav {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Orientation specific styles */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
  padding-top: 50px;
    min-height: 100vh;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--primary-sunset);
  outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-forest);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 6px;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-sage);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-forest);
} 