/* Responsive Design for Rustic Homeware Store */

/* Mobile First Approach */
@media (max-width: 767.98px) {
  /* Conservative font sizes for mobile */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  
  .navbar-brand { font-size: 1.2rem !important; }
  
  /* Prevent horizontal overflow on mobile */
  html, body {
    overflow-x: hidden;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Hero section mobile adjustments */
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  /* Section padding adjustments */
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Service items stack on mobile */
  .service-item {
    margin-bottom: 1.5rem;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Contact form adjustments */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Footer padding */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  /* Blog items full width on mobile */
  .blog-item {
    margin-bottom: 1.5rem;
  }
  
  /* FAQ adjustments */
  .faq-question {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Disable Swiper autoplay and effects on mobile */
  .swiper-container {
    --swiper-autoplay-delay: 0;
    overflow: hidden;
    width: 100%;
  }
  
  .swiper-slide {
    transform: none !important;
    width: 100%;
    flex-shrink: 0;
  }
  
  .swiper-wrapper {
    width: 100%;
  }
  
  /* Prevent horizontal overflow */
  .reviews-section {
    overflow-x: hidden;
  }
  
  .review-item {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
  
  /* Gallery items smaller spacing */
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.4rem; }
}

/* Large screens */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .service-item:hover {
    transform: translateY(-15px);
  }
  
  .about-feature:hover {
    transform: translateY(-8px);
  }
}

/* Navigation responsive */
@media (max-width: 991.98px) {
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
    padding: 0.5rem 1rem;
  }
}

/* Print styles */
@media print {
  .navbar, .footer {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    page-break-after: always;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-item, .about-feature, .team-member {
    border: 2px solid var(--primary-charcoal);
  }
  
  .btn-primary {
    border: 2px solid var(--primary-charcoal);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .service-item:hover,
  .about-feature:hover,
  .blog-item:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
} 