/* Responsive CSS for Upcycled Wood Home Décor Shop */

/* Mobile First Approach */
/* Base styles are for mobile, then we enhance for larger screens */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container-sm {
    max-width: 540px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 768px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Hero section mobile adjustments */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Services grid mobile */
  .service-card {
    margin-bottom: 30px;
  }
  
  /* Features mobile layout */
  .feature-item {
    padding: 20px;
    margin-bottom: 30px;
  }
  
  .feature-image {
    height: 150px;
  }
  
  .info-image {
    height: 130px;
  }
  
  .feature-number {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }
  
  /* Price cards mobile */
  .price-card {
    margin-bottom: 30px;
    padding: 30px 20px;
  }
  
  .price-card.featured {
    transform: none; /* Remove scale on mobile */
  }
  
  .price-amount {
    font-size: 2.5rem;
  }
  
  /* Team members mobile */
  .team-member {
    padding: 20px;
    margin-bottom: 30px;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Process steps mobile */
  .process-step::after {
    display: none; /* Remove connecting lines on mobile */
  }
  
  .process-step {
    padding: 20px;
    margin-bottom: 30px;
  }
  
  .process-icon {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 30px 20px;
  }
  
  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  /* Info grid mobile */
  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .info-card {
    padding: 25px 20px;
  }
  
  /* Footer mobile */
  #footer {
    padding: 40px 0 20px;
  }
  
  .footer-section {
    margin-bottom: 30px;
    text-align: center;
  }
  
  /* No animations on mobile for better performance */
  .service-card:hover,
  .feature-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .career-card:hover {
    transform: none;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Typography for very small screens */
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  /* Hero adjustments */
  #hero {
    min-height: 70vh;
    padding: 40px 0;
  }
  
  /* Services single column */
  .service-card {
    margin-bottom: 25px;
  }
  
  .service-content {
    padding: 20px;
  }
  
  /* Gallery single column on very small screens */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    height: 180px;
  }
  
  /* Contact form adjustments */
  .form-control {
    padding: 12px;
  }
  
  .btn-primary {
    padding: 12px 25px;
    width: 100%;
  }
  
  /* Price cards adjustments */
  .price-amount {
    font-size: 2rem;
  }
  
  /* Review cards */
  .review-card {
    padding: 20px;
  }
  
  .review-card::before {
    font-size: 3rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container-lg {
    max-width: 960px;
  }
  
  /* Enhanced hover effects for desktop */
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  }
  
  .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  }
  
  /* Process steps with connecting lines */
  .process-step::after {
    display: block;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
  
  /* Larger typography for big screens */
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.9rem;
  }
  
  /* Hero enhancements */
  #hero {
    min-height: 100vh;
  }
  
  .hero-decorative {
    width: 250px;
    height: 250px;
  }
  
  /* Gallery enhanced grid */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
  }
  
  .gallery-item {
    height: 280px;
  }
  
  /* Info grid enhanced */
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  /* Maximum enhancements for very large screens */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* Print styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar,
  .hero-decorative,
  .btn,
  #footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  p {
    orphans: 3;
    widows: 3;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-wood: #4A2C17;
    --primary-sage: #5A6B4C;
    --primary-cream: #FFFFFF;
    --primary-terracotta: #B85A3F;
    --primary-charcoal: #000000;
  }
  
  .btn-primary {
    border: 2px solid var(--primary-charcoal);
  }
  
  .form-control {
    border: 2px solid var(--primary-charcoal);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-decorative {
    display: none;
  }
}

/* Dark mode support (optional enhancement) */

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--primary-terracotta);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-terracotta);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
} 