/* ========================================
   RESPONSIVE STYLES
   Mobile Optimizations for Recycled Plastic Furniture Template
   ======================================== */

/* Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  
  /* No animations on mobile - respecting performance */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-section::before {
    display: none; /* Remove decorative elements on mobile */
  }
  
  /* Section spacing */
  .section {
    padding: 40px 0;
  }
  
  /* Cards and components */
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-study-card,
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  .service-image {
    height: 150px;
  }
  
  .service-content {
    padding: 1rem;
  }
  
  /* Feature items */
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .feature-icon i {
    font-size: 1.5rem;
  }
  
  /* Process steps */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .team-photo i {
    font-size: 2rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery */
  .gallery-placeholder {
    height: 200px;
  }
  
  .gallery-placeholder i {
    font-size: 2rem;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Timeline mobile adjustments */
  .timeline-item {
    padding-left: 2rem;
  }
  
  /* Career items */
  .career-item {
    padding: 1.5rem;
  }
  
  /* Core info icons */
  .core-info-icon {
    width: 60px;
    height: 60px;
  }
  
  .core-info-icon i {
    font-size: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  
  /* Reduced animations on small devices */
  @media (prefers-reduced-motion: no-preference) {
    .service-card:hover,
    .price-card:hover,
    .team-card:hover {
      transform: translateY(-3px);
    }
  }
  
  .hero-section {
    min-height: 85vh;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .service-image {
    height: 180px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  
  .hero-section {
    min-height: 90vh;
  }
  
  .section {
    padding: 60px 0;
  }
  
  /* Adjusted grid for tablets */
  .services-grid .col-md-6:nth-child(2n+1) {
    clear: left;
  }
  
  .features-grid .col-md-6:nth-child(2n+1) {
    clear: left;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  
  /* Standard desktop optimizations */
  .hero-section {
    min-height: 95vh;
  }
  
  .section {
    padding: 70px 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 80px 0;
  }
  
  /* Larger containers for wide screens */
  .container-xl {
    max-width: 1400px;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  
  /* Optimize for retina displays */
  .service-image,
  .gallery-placeholder,
  .blog-image,
  .case-study-image {
    background-size: cover;
    background-position: center;
  }
}

/* Print styles */
@media print {
  
  /* Hide navigation and interactive elements */
  .navbar,
  .btn,
  .contact-form,
  .footer {
    display: none !important;
  }
  
  /* Optimize colors for print */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  /* Page breaks */
  .section {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
    break-after: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
  
  /* High contrast mode adjustments */
  :root {
    --primary-green: #2D5016;
    --primary-blue: #1B4F72;
    --primary-coral: #B71C1C;
    --medium-gray: #424242;
    --dark-gray: #212121;
  }
  
  .btn-primary {
    background-color: #2D5016;
    border-color: #2D5016;
  }
  
  .form-control:focus {
    border-color: #2D5016;
    box-shadow: 0 0 0 0.2rem rgba(45, 80, 22, 0.5);
  }
}

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

/* Dark mode support (if system prefers dark) */

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