/* Responsive Styles for Refurbished Appliances Marketplace */

/* Mobile First Approach - Bootstrap 5 Compatible */

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  p {
    font-size: 0.95rem;
  }
  
  /* Hero Section Mobile */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-decorative {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Section Padding Reduction */
  .section-padding {
    padding: 40px 0;
  }
  
  /* Card Spacing */
  .feature-card,
  .service-card,
  .price-card,
  .review-card,
  .faq-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact Form Mobile */
  .contact-form {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  /* Team Photos Mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Process Numbers */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  /* Navigation Mobile - Use Bootstrap 5 Standard */
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
  
  /* Remove animations on mobile to respect performance */
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover {
    transform: none;
  }
  
  /* Gallery mobile optimization */
  .gallery-section img {
    margin-bottom: 1rem;
  }
  
  /* Footer mobile */
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.625rem;
  }
  
  /* Hero section adjustment */
  .hero-section {
    min-height: 85vh;
  }
  
  /* Section padding adjustment */
  .section-padding {
    padding: 50px 0;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem;
  }
  
  /* Remove hover animations on small devices */
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover {
    transform: translateY(-2px);
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Section padding */
  .section-padding {
    padding: 60px 0;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Price card featured scaling */
  .price-card.featured {
    transform: scale(1.02);
  }
  
  /* Contact form */
  .contact-form {
    padding: 2.5rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full section padding */
  .section-padding {
    padding: 70px 0;
  }
  
  /* Hero section full height */
  .hero-section {
    min-height: 95vh;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Maximum section padding */
  .section-padding {
    padding: 80px 0;
  }
  
  /* Hero section full height */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Container max-width for very large screens */
  .container {
    max-width: 1140px;
  }
}

/* Landscape Mobile Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 70vh;
  }
  
  .section-padding {
    padding: 30px 0;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp images on high DPI displays */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  /* Hide navigation and decorative elements */
  .navbar,
  .hero-decorative,
  .breadcrumb-container {
    display: none;
  }
  
  /* Ensure good contrast for printing */
  body {
    color: #000;
    background: #fff;
    overflow-x: hidden;
}
  
  /* Remove shadows and effects */
  .card,
  .feature-card,
  .service-card,
  .price-card,
  .review-card,
  .faq-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Accessibility Improvements */
@media (max-width: 767.98px) {
  /* Larger touch targets for mobile */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .nav-link {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }
  
  /* Better form field spacing */
  .form-control {
    min-height: 44px;
    margin-bottom: 1rem;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove transforms */
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .price-card.featured {
    transform: none !important;
  }
}

/* Dark Mode Support (if user prefers) */

/* Focus Management for Better Accessibility */
@media (max-width: 991.98px) {
  /* Ensure focus is visible on mobile */
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
}

/* Specific Mobile Layout Adjustments */
@media (max-width: 575.98px) {
  /* Stack elements vertically on very small screens */
  .row.g-4 > * {
    margin-bottom: 1.5rem !important;
  }
  
  /* Reduce margins for mobile */
  .mb-4,
  .my-4 {
    margin-bottom: 1.5rem !important;
  }
  
  .mt-4,
  .my-4 {
    margin-top: 1.5rem !important;
  }
  
  /* Better mobile typography */
  .lead {
    font-size: 1rem;
  }
  
  /* Mobile-friendly card layouts */
  .card-body {
    padding: 1rem;
  }
}

/* Tablet Specific Adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Optimize for tablet layouts */
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 2rem;
  }
}

/* Performance Optimizations for Mobile */
@media (max-width: 767.98px) {
  /* Reduce complexity for better performance */
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  /* Simpler shadows on mobile */
  .card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}


.hero-section h1 {
    padding-top: 250px;
}