/* Memory Treasures - Responsive Styles */
/* Mobile-first approach with Bootstrap-style breakpoints */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  .container {
    padding: 0 var(--spacing-xs);
  }
  
  .navbar-brand {
    font-size: 1.34rem;
  }
  
  .navbar-nav .nav-link {
    margin: var(--spacing-xs) 0;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: 80vh;
    padding: var(--spacing-md) 0;
  }
  
  .hero-decorative {
    display: none;
  }
  
  h1 { font-size: 2.02rem; }
  h2 { font-size: 1.76rem; }
  h3 { font-size: 1.53rem; }
  
  .section {
    padding: var(--spacing-md) 0;
  }
  
  .col-12, .col-6, .col-4, .col-3, .col-2 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: var(--spacing-sm);
  }
  
  .service-card, .feature-card, .price-card {
    margin-bottom: var(--spacing-md);
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .coreinfo-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.34rem;
  }
  
  /* Disable autoplay and effects on mobile for Swiper as per requirements */
  .swiper-slide {
    transition: none !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-2 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Disable autoplay and effects on mobile for Swiper as per requirements */
  .swiper-slide {
    transition: none !important;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-3 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-2 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) {
  .col-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
  
  .hero-decorative {
    display: block;
  }
}

/* Navbar responsive behavior */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    margin-top: var(--spacing-sm);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
  }
  
  .navbar-nav .nav-link {
    color: var(--color-dark) !important;
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .navbar-nav .nav-link:hover {
    color: var(--color-primary) !important;
    background: rgba(211, 155, 99, 0.10);
    border-radius: var(--border-radius);
  }
}

/* Hero section responsiveness */
@media (max-width: 767.98px) {
  .hero-section {
  padding-top: 50px;
    text-align: center;
  }
  
  .hero-content .row {
    flex-direction: column-reverse;
  }
  
  .hero-content .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: var(--spacing-md);
  }
}

/* Contact form responsiveness */
@media (max-width: 575.98px) {
  .contact-form {
    padding: var(--spacing-md);
  }
}

/* Footer responsiveness */
@media (max-width: 767.98px) {
  .footer .row {
    text-align: center;
  }
  
  .footer .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: var(--spacing-md);
  }
  
  .footer-link {
    display: block;
    margin: var(--spacing-xs) 0;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar, .footer {
    display: none;
  }
  
  .hero-decorative {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #cf9773;
    --color-secondary: #bb7ca9;
    --color-tertiary: #7ba379;
    --color-quaternary: #b38f62;
    --color-quinary: #d09846;
    --color-dark: #000000;
    --color-muted: #1c1c1c;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
  
  .card, .service-card, .feature-card, .price-card {
    border: 2px solid var(--color-dark);
  }
}

/* Reduced motion preferences - enhanced */
@media (prefers-reduced-motion: reduce) {
  .hero-decorative,
  .swiper-slide,
  .carousel-item {
    animation: none !important;
    transition: none !important;
  }
  
  .fade-in {
    animation: none;
  }
  
  *:hover {
    transform: none !important;
  }
}


/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
  padding-top: 50px;
    min-height: 90vh;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.13rem;
  }
  
  .nav-link {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .faq-question {
    padding: var(--spacing-md);
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-image,
  .blog-image,
  .gallery-image,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
} 