/* Responsive CSS for Sustainable Textile Recycling Service */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Navbar adjustments */
  .navbar-brand {
    font-size: 1rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  #hero::before,
  #hero::after {
    display: none;
  }
  
  /* Service cards mobile */
  .service-card {
    margin-bottom: 2rem;
  }
  
  .service-image {
    height: 150px;
  }
  
  /* Team photos mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Process steps mobile */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  /* Cards padding mobile */
  .feature-card,
  .pricing-card,
  .team-card,
  .review-card,
  .case-study-content,
  .career-card {
    padding: 1.5rem;
  }
  
  /* Section padding mobile */
  section {
    padding: 3rem 0;
  }
  
  /* No animations on mobile for reduced motion */
  * {
    transition-duration: 0.1s !important;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .pricing-card:hover,
  .case-study-card:hover,
  .career-card:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  #hero {
    min-height: 90vh;
  }
  
  /* Gallery adjustments */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Service grid */
  .service-card {
    margin-bottom: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero full height */
  #hero {
    min-height: 100vh;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Team photos */
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  /* Pricing cards */
  .pricing-card.featured {
    transform: scale(1.02);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full typography */
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Service grid optimization */
  .service-card {
    margin-bottom: 2rem;
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max width */
  .container {
    max-width: 1140px;
  }
  
  /* Full gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Enhanced hover effects for desktop */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .pricing-card:hover,
  .case-study-card:hover,
  .career-card:hover {
    transform: translateY(-8px);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 100vh;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-image,
  .team-photo,
  .gallery-image,
  .blog-image,
  .case-study-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .navbar,
  #footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .row {
    page-break-inside: avoid;
  }
}

/* Accessibility enhancements */
@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-content,
  .feature-card,
  .service-card,
  .team-card,
  .pricing-card,
  .case-study-card,
  .career-card {
    transform: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #000000;
    --primary-green-light: #333333;
    --primary-green-dark: #000000;
    --accent-sage: #666666;
    --neutral-cream: #ffffff;
    --neutral-cream-light: #ffffff;
  }
  
  .btn-primary {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
  }
  
  .btn-primary:hover {
    background-color: #333333;
    border-color: #333333;
  }
}

/* Dark mode preferences */

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .navbar-nav .nav-link {
    padding: 1rem;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .pricing-card:hover,
  .case-study-card:hover,
  .career-card:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.1);
  }
} 

body {
    overflow-x: hidden;
}