/* ========================================
   VINTAGE POSTER REPRODUCTION SHOP TEMPLATE
   Responsive Stylesheet - Mobile Optimization
   ======================================== */

/* ========================================
   MOBILE FIRST APPROACH
   ======================================== */

/* Disable animations on mobile as per requirements */
@media (max-width: 768px) {
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* SAL.js disabled on mobile - Commented out based on memory */
  /*
  [data-sal] {
    opacity: 1 !important;
    transform: none !important;
  }
  */
}

/* ========================================
   SMALL DEVICES (576px and down)
   ======================================== */

@media (max-width: 575.98px) {
  
  /* Typography */
  h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  p {
    font-size: 0.95rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Header & Navigation */
  .navbar {
    padding: 0.75rem 0;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Sections */
  section {
    padding: 40px 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-subtitle {
    font-size: 0.85rem;
  }
  
  /* Cards and Items */
  .service-card,
  .feature-item,
  .price-card,
  .review-card,
  .case-item,
  .career-item,
  .info-item,
  .contact-form,
  .contact-info,
  .blog-card,
  .faq-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .service-image {
    height: 150px;
  }
  
  /* Team Section */
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .team-member {
    margin-bottom: 1.5rem;
  }
  
  /* Process Section */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .process-step {
    margin-bottom: 1.5rem;
  }
  
  /* Timeline Section */
  .timeline-item {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Contact Section */
  .contact-item {
    margin-bottom: 1rem;
  }
  
  .contact-icon {
    width: 25px;
    font-size: 1rem;
  }
  
  .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  /* Footer */
  #footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .footer-title {
    font-size: 1.1rem;
  }
  
  .footer-description,
  .footer-link {
    font-size: 0.9rem;
  }
  
  .copyright {
    font-size: 0.85rem;
  }
}

/* ========================================
   MEDIUM DEVICES (576px to 767.98px)
   ======================================== */

@media (min-width: 576px) and (max-width: 767.98px) {
  
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 85vh;
  }
  
  /* Sections */
  section {
    padding: 50px 0;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .gallery-image {
    height: 220px;
  }
  
  /* Cards */
  .service-card,
  .feature-item,
  .price-card,
  .review-card {
    padding: 2rem 1.5rem;
  }
  
  .service-image {
    height: 180px;
  }
  
  /* Team */
  .team-photo {
    width: 180px;
    height: 180px;
  }
}

/* ========================================
   LARGE DEVICES (768px to 991.98px)
   ======================================== */

@media (min-width: 768px) and (max-width: 991.98px) {
  
  /* Typography */
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.85rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 90vh;
  }
  
  .hero-decorative {
    width: 300px;
    height: 300px;
    right: -5%;
  }
  
  /* Sections */
  section {
    padding: 60px 0;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .gallery-image {
    height: 240px;
  }
  
  /* Services */
  .service-image {
    height: 190px;
  }
}

/* ========================================
   EXTRA LARGE DEVICES (992px to 1199.98px)
   ======================================== */

@media (min-width: 992px) and (max-width: 1199.98px) {
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Hero */
  .hero-decorative {
    width: 350px;
    height: 350px;
    right: -8%;
  }
}

/* ========================================
   EXTRA EXTRA LARGE DEVICES (1200px and up)
   ======================================== */

@media (min-width: 1200px) {
  
  /* Container adjustments */
  .container {
    max-width: 1140px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .gallery-image {
    height: 280px;
  }
  
  /* Hero */
  .hero-decorative {
    width: 400px;
    height: 400px;
    right: -10%;
  }
  
  /* Large screen optimizations */
  .service-card,
  .feature-item,
  .price-card {
    padding: 2.5rem 2rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 3rem;
  }
}

/* ========================================
   LANDSCAPE ORIENTATION
   ======================================== */

@media (orientation: landscape) and (max-height: 500px) {
  
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  section {
    padding: 40px 0;
  }
}

/* ========================================
   HIGH DPI DISPLAYS
   ======================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  
  /* Optimize for retina displays */
  .team-photo,
  .service-image,
  .gallery-image {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  
  /* Hide non-essential elements */
  .navbar,
  #hero .hero-decorative,
  .btn,
  .contact-form,
  #footer {
    display: none;
  }
  
  /* Optimize text for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
    overflow-x: hidden;
}
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }
  
  /* Ensure content flows properly */
  section {
    page-break-inside: avoid;
    padding: 20pt 0;
  }
  
  /* Optimize images for print */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Add page breaks */
  .page-break {
    page-break-before: always;
  }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus styles for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--color-vintage-rust);
    outline-offset: 2px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .feature-item,
  .price-card,
  .review-card,
  .blog-card,
  .faq-item,
  .contact-form,
  .contact-info {
    border: 2px solid var(--color-navy-dark);
  }
  
  .btn-primary {
    border: 2px solid var(--color-navy-dark);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  
  /* Remove 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 transform effects */
  .service-card:hover,
  .feature-item:hover,
  .price-card:hover,
  .review-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .btn-primary:hover {
    transform: none !important;
  }
}

/* ========================================
   UTILITIES FOR RESPONSIVE DESIGN
   ======================================== */

/* Hide elements on specific breakpoints */
.d-mobile-none {
  display: none;
}

@media (min-width: 768px) {
  .d-mobile-none {
    display: block;
  }
  
  .d-desktop-none {
    display: none;
  }
}

/* Responsive text alignment */
.text-mobile-center {
  text-align: center;
}

@media (min-width: 768px) {
  .text-mobile-center {
    text-align: left;
  }
}

/* Responsive spacing */
.mb-mobile-3 {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .mb-mobile-3 {
    margin-bottom: 3rem;
  }
}

/* Responsive padding for containers */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 576px) {
  .container-fluid {
    padding-left: 30px;
    padding-right: 30px;
  }
}


.hero-content {
    padding-top: 125px;
}