/* ==========================================================================
   Smart Recycling-Bin Manufacturing - Responsive Styles
   Mobile-First Approach with Bootstrap 5 Grid System
   ========================================================================== */

/* ==========================================================================
   Extra Small devices (portrait phones, less than 576px)
   ========================================================================== */

/* Conservative font sizes for mobile */
@media (max-width: 575.98px) {
  :root {
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --font-size-h4: 1.125rem;
    --font-size-h5: 1rem;
    --font-size-h6: 0.875rem;
    --section-padding: 3rem 0;
    --card-padding: 1.5rem;
  }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-section .col-md-6 {
    margin-bottom: 2rem;
  }
  
  .services-card {
    margin-bottom: 2rem;
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  .reviews-card {
    margin-bottom: 2rem;
  }
  
  .faq-card {
    margin-bottom: 1.63rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer .col-md-3 {
    margin-bottom: 2rem;
  }
}

/* ==========================================================================
   Small devices (landscape phones, 576px and up)
   ========================================================================== */

@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --font-size-h1: 1.875rem;
    --font-size-h2: 1.625rem;
    --font-size-h3: 1.375rem;
    --font-size-h4: 1.25rem;
    --font-size-h5: 1.125rem;
    --font-size-h6: 1rem;
    --section-padding: 4rem 0;
    --card-padding: 1.75rem;
  }
  
  .hero-section {
    min-height: 85vh;
  }
  
  .services-card {
    margin-bottom: 2rem;
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  .reviews-card {
    margin-bottom: 2rem;
  }
  
  .footer .col-md-3 {
    margin-bottom: 2rem;
  }
}

/* ==========================================================================
   Medium devices (tablets, 768px and up)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 991.98px) {
  :root {
    --section-padding: 4.5rem 0;
    --card-padding: 2rem;
  }
  
  .hero-section {
    min-height: 90vh;
  }
  
  .services-card {
    margin-bottom: 2rem;
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  .reviews-card {
    margin-bottom: 2rem;
  }
  
  .footer .col-md-3 {
    margin-bottom: 1.64rem;
  }
}

/* ==========================================================================
   Large devices (desktops, 992px and up)
   ========================================================================== */

@media (min-width: 992px) and (max-width: 1199.98px) {
  :root {
    --section-padding: 5rem 0;
    --card-padding: 2rem;
  }
  
  .hero-section {
    min-height: 95vh;
  }
  
  .services-card {
    margin-bottom: 2rem;
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  .reviews-card {
    margin-bottom: 2rem;
  }
}

/* ==========================================================================
   Extra large devices (large desktops, 1200px and up)
   ========================================================================== */

@media (min-width: 1200px) {
  :root {
    --section-padding: 5rem 0;
    --card-padding: 2rem;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .services-card {
    margin-bottom: 2rem;
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  .reviews-card {
    margin-bottom: 2rem;
  }
}

/* ==========================================================================
   Navigation Responsiveness
   ========================================================================== */

@media (max-width: 991.98px) {
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-item {
    margin-bottom: 0.66rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
}

/* ==========================================================================
   Hero Section Responsiveness
   ========================================================================== */

@media (max-width: 767.98px) {
  .hero-section {
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-section .col-md-6:first-child {
    order: 2;
  }
  
  .hero-section .col-md-6:last-child {
    order: 1;
    margin-bottom: 2rem;
  }
  
  .hero-section h1 {
    font-size: 1.81rem;
    margin-bottom: 1rem;
    padding-top: 250px;
}
  
  .hero-section p {
    font-size: 1rem;
    margin-bottom: 1.60rem;
  }
}

/* ==========================================================================
   Services Grid Responsiveness
   ========================================================================== */

@media (max-width: 575.98px) {
  .services-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .services-grid .col-lg-4:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .services-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .services-grid .col-lg-4:nth-last-child(-n+2) {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   Team Grid Responsiveness
   ========================================================================== */

@media (max-width: 575.98px) {
  .team-grid .col-lg-3 {
    margin-bottom: 2rem;
  }
  
  .team-grid .col-lg-3:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .team-grid .col-lg-3 {
    margin-bottom: 2rem;
  }
  
  .team-grid .col-lg-3:nth-last-child(-n+2) {
    margin-bottom: 0;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .team-grid .col-lg-3 {
    margin-bottom: 2rem;
  }
  
  .team-grid .col-lg-3:nth-last-child(-n+3) {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   Reviews Grid Responsiveness
   ========================================================================== */

@media (max-width: 575.98px) {
  .reviews-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .reviews-grid .col-lg-4:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .reviews-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .reviews-grid .col-lg-4:nth-last-child(-n+2) {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   FAQ Grid Responsiveness
   ========================================================================== */

@media (max-width: 767.98px) {
  .faq-grid .col-lg-6 {
    margin-bottom: 1.73rem;
  }
  
  .faq-grid .col-lg-6:last-child {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   Contact Section Responsiveness
   ========================================================================== */

@media (max-width: 767.98px) {
  .contact-section .col-lg-8 {
    margin-bottom: 2rem;
  }
  
  .contact-info {
    text-align: center;
  }
  
  .contact-info .row .col-md-4 {
    margin-bottom: 1.65rem;
  }
  
  .contact-info .row .col-md-4:last-child {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   Footer Responsiveness
   ========================================================================== */

@media (max-width: 767.98px) {
  .footer .col-md-3 {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .footer .col-md-3:last-child {
    margin-bottom: 1rem;
  }
}

/* ==========================================================================
   Gallery Responsiveness
   ========================================================================== */

@media (max-width: 575.98px) {
  .gallery-grid .col-lg-4 {
    margin-bottom: 1rem;
  }
  
  .gallery-grid .col-lg-4:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .gallery-grid .col-lg-4 {
    margin-bottom: 1rem;
  }
  
  .gallery-grid .col-lg-4:nth-last-child(-n+2) {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   Blog Grid Responsiveness
   ========================================================================== */

@media (max-width: 575.98px) {
  .blog-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .blog-grid .col-lg-4:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .blog-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .blog-grid .col-lg-4:nth-last-child(-n+2) {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   Additional Pages Responsiveness
   ========================================================================== */

@media (max-width: 767.98px) {
  .additional-page-section {
    text-align: center;
    padding: 3rem 0;
  }
  
  .additional-page-section .col-lg-6 {
    margin-bottom: 2rem;
  }
  
  .additional-page-section .col-lg-6:last-child {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   Breadcrumb Responsiveness
   ========================================================================== */

@media (max-width: 575.98px) {
  .breadcrumb-section {
    padding: 2rem 0;
  }
  
  .breadcrumb-section img {
    max-width: 100%;
    height: auto;
  }
}

/* ==========================================================================
   Accessibility - Respect prefers-reduced-motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-section::before,
  .hero-section::after {
    animation: none;
  }
  
  .services-card:hover,
  .team-card:hover,
  .features-item:hover {
    transform: none;
  }
}

/* ==========================================================================
   High Contrast Mode Support
   ========================================================================== */

@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.5);
  }
  
  .services-card,
  .team-card,
  .reviews-card,
  .faq-card,
  .contact-form {
    border: 2px solid var(--border-color);
  }
}

/* ==========================================================================
   Dark Mode Support (Optional)
   ========================================================================== */


/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  .services-card,
  .team-card,
  .reviews-card,
  .faq-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .footer {
    padding: 1rem 0;
  }
} 