/* ==============================================
   RESPONSIVE STYLES - BOUTIQUE PUZZLE STORE
   Mobile Optimization & Accessibility
   ============================================== */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .icon-large {
    font-size: 3.5rem;
  }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
  .hero-section {
    padding: 0 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
  .hero-content {
    text-align: left;
    padding-top: 0;
}
  
  .section-padding {
    padding: 5rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-info-item {
    justify-content: flex-start;
  }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) {
  .hero-decoration {
    display: block;
  }
  
  .card-deck {
    display: flex;
    flex-wrap: wrap;
  }
}

/* Extra Small Devices (575px and down) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  /* Section Spacing */
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Hero Section Mobile */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 1rem;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  /* Hide decorative elements on mobile */
  .hero-decoration {
    display: none;
  }
  
  /* Card Adjustments */
  .puzzle-card,
  .service-card,
  .team-card,
  .review-card {
    margin-bottom: 1.5rem;
  }
  
  /* Disable card hover effects on mobile */
  .puzzle-card:hover,
  .service-card:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(125, 125, 128, 0.15);
  }
  
  /* Gallery Mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Blog Mobile */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Form Mobile */
  .form-control {
    padding: 1rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn-puzzle-primary,
  .btn-puzzle-secondary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }
  
  /* Contact Info Mobile */
  .contact-info-item {
    flex-direction: column;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .contact-info-item i {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  /* Footer Mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  /* Table Responsive */
  .table-responsive {
    border: none;
  }
  
  /* Navbar Mobile */
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
  
  /* Price Badge Mobile */
  .price-badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }
  
  .service-price {
    font-size: 1.25rem;
  }
  
  /* Team Photo Mobile */
  .team-photo {
    height: 200px;
  }
  
  /* Icon Adjustments */
  .icon-large {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }
  
  .icon-medium {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
}

/* CRITICAL: No animations on mobile scroll */
@media (max-width: 767.98px) {
  /* Disable all scroll-triggered animations on mobile */
  [data-sal],
  .sal-animate,
  .sr-element {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Disable hover effects on touch devices */
  .puzzle-card:hover,
  .service-card:hover,
  .gallery-item:hover img,
  .btn-puzzle-primary:hover,
  .btn-puzzle-secondary:hover {
    transform: none;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .puzzle-card:hover,
  .service-card:hover,
  .navbar-nav .nav-link:hover,
  .gallery-item:hover img {
    transform: none;
    box-shadow: inherit;
    color: inherit;
  }
  
  /* Larger touch targets */
  .btn,
  .nav-link,
  .form-control {
    min-height: 44px;
  }
  
  /* Touch-friendly spacing */
  .navbar-nav .nav-link {
    padding: 1rem;
  }
}

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

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

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-decoration {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 1rem;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
  
  .puzzle-card,
  .service-card,
  .review-card,
  .faq-card {
    box-shadow: none;
    border: 1px solid #c5c5c5;
    page-break-inside: avoid;
  }
} 