/* Responsive Design for Art Auction Template */
/* Mobile-first approach with Bootstrap 5 grid system */

/* Base Mobile Styles (320px and up) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    text-align: center;
    padding: 40px 0;
  }
  
  .hero-decorative-shape {
    display: none;
  }
  
  /* Section padding adjustments */
  section {
    padding: 40px 0 !important;
  }
  
  /* Service cards mobile */
  .service-card {
    padding: 25px 20px;
    margin-bottom: 20px;
  }
  
  .service-image {
    height: 150px;
  }
  
  /* Team cards mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 30px 20px;
    margin: 0 15px;
  }
  
  /* Price cards mobile */
  .price-card {
    padding: 30px 20px;
    margin-bottom: 20px;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .gallery-image {
    height: 250px;
  }
  
  /* Blog cards mobile */
  .blog-image {
    height: 200px;
  }
  
  .blog-content {
    padding: 20px;
  }
  
  /* Footer mobile */
  #footer {
    padding: 40px 0 20px;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 30px;
  }
  
  /* Process steps mobile */
  .process-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  /* Feature cards mobile */
  .feature-card,
  .feature-highlight,
  .info-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Hero adjustments */
  #hero {
    min-height: 85vh;
  }
  
  /* Service cards */
  .service-card {
    padding: 30px 25px;
  }
  
  .service-image {
    height: 180px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Contact form */
  .contact-form {
    padding: 40px 30px;
  }
  
  /* Price cards */
  .price-card {
    padding: 40px 30px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Section spacing */
  section {
    padding: 60px 0 !important;
  }
  
  /* Hero section */
  #hero {
    min-height: 90vh;
  }
  
  /* Service cards */
  .service-image {
    height: 200px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .gallery-image {
    height: 280px;
  }
  
  /* Team layout */
  .team-photo {
    width: 130px;
    height: 130px;
  }
  
  /* Blog images */
  .blog-image {
    height: 220px;
  }
  
  /* Price cards */
  .price-value {
    font-size: 2.75rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full section padding */
  section {
    padding: 80px 0 !important;
  }
  
  /* Hero section */
  #hero {
    min-height: 95vh;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Service layout adjustments */
  .service-card {
    padding: 35px 30px;
  }
  
  /* Team and other cards */
  .feature-card,
  .review-card,
  .case-card {
    padding: 35px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Maximum widths for very large screens */
  .container {
    max-width: 1140px;
  }
  
  /* Hero section full height */
  #hero {
    min-height: 100vh;
  }
  
  /* Gallery optimal layout */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Larger cards for better spacing */
  .feature-card,
  .service-card,
  .review-card,
  .case-card,
  .team-card {
    padding: 40px;
  }
  
  /* Contact form maximum width */
  .contact-form {
    max-width: 800px;
    margin: 0 auto;
  }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Enhanced gallery for ultra-wide */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Larger hero decorative shapes */
  .hero-shape-1 {
    width: 400px;
    height: 400px;
    right: -200px;
  }
  
  .hero-shape-2 {
    width: 300px;
    height: 300px;
    left: -150px;
  }
}

/* Portrait tablet and small laptop adjustments */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  /* Reduce hero height for portrait mode */
  #hero {
    min-height: 70vh;
  }
  
  /* Adjust card spacing */
  .service-card,
  .feature-card,
  .review-card {
    margin-bottom: 30px;
  }
  
  /* Gallery adjustment for portrait tablets */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Landscape phone adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
  /* Reduce hero height for landscape phones */
  #hero {
    min-height: 60vh;
    padding: 20px 0;
  }
  
  /* Compact section spacing */
  section {
    padding: 30px 0 !important;
  }
  
  /* Smaller headers */
  h1 {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
}

/* High DPI screen adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper borders and shadows for retina displays */
  .feature-card,
  .service-card,
  .review-card,
  .contact-form {
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.08);
  }
  
  /* Crisper text rendering */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
}

/* Print styles */
@media print {
  /* Hide navigation and decorative elements */
  #header,
  #footer,
  .hero-decorative-shape,
  .btn,
  .navbar {
    display: none !important;
  }
  
  /* Optimize for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  /* Page breaks */
  section {
    page-break-inside: avoid;
    padding: 20px 0 !important;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
    color: black;
  }
  
  /* Remove shadows and gradients */
  * {
    background: white !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* Reduced motion compliance */
@media (prefers-reduced-motion: reduce) {
  /* Disable all transitions and animations */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove transform effects */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .review-card:hover,
  .case-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .career-card:hover,
  .info-card:hover,
  .feature-highlight:hover,
  .price-card:hover,
  .btn-primary:hover {
    transform: none !important;
  }
}

/* Focus styles for accessibility */
@media (min-width: 768px) {
  /* Enhanced focus indicators for larger screens */
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
  }
}

/* Dark mode support (if user prefers dark schemes) */