/* Responsive CSS for Eco-Sustainable Template */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .service-card,
  .price-card,
  .team-member {
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .shape-1,
  .shape-2 {
    display: none;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  /* Disable animations on mobile for performance */
  .swiper {
    --swiper-navigation-size: 30px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .price-card {
    padding: 2.5rem 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 3.25rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Re-enable hover effects for tablets and up */
  .service-card:hover,
  .price-card:hover,
  .team-member:hover,
  .about-feature:hover,
  .feature-item:hover,
  .coreinfo-item:hover {
    transform: translateY(-5px);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    max-width: 1200px;
  }
}

/* Accessibility - Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .shape-1,
  .shape-2 {
    animation: none;
  }
  
  .swiper {
    --swiper-autoplay-delay: 0;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #2d5a2d;
    --secondary-sage: #4a6b6b;
    --accent-earth: #b8860b;
    --warm-terracotta: #cd853f;
    --deep-forest: #1e3a5f;
  }
  
  .service-card,
  .price-card,
  .team-member,
  .about-feature,
  .feature-item,
  .coreinfo-item {
    border: 2px solid #333;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .service-card,
  .price-card,
  .team-member {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
  
  .gallery-grid {
    display: none;
  }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding-top: 60px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Dark mode support (if user prefers) */
@media (prefers-color-scheme: dark) {
  /* This template is designed for light mode, but we can add subtle dark mode hints */
  .service-card,
  .price-card,
  .team-member,
  .about-feature,
  .feature-item,
  .coreinfo-item,
  .contact-form {
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
  }
}

/* Focus styles for better accessibility */
@media (any-hover: hover) {
  .btn-primary:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--accent-earth);
    outline-offset: 2px;
  }
}

/* Specific breakpoints for grid layouts */
@media (min-width: 576px) {
  .row-cols-sm-2 > * {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (min-width: 768px) {
  .row-cols-md-3 > * {
    flex: 0 0 auto;
    width: 33.333333%;
  }
}

@media (min-width: 992px) {
  .row-cols-lg-4 > * {
    flex: 0 0 auto;
    width: 25%;
  }
  
  .row-cols-lg-6 > * {
    flex: 0 0 auto;
    width: 16.666667%;
  }
}

/* Container adjustments for different screen sizes */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
} 