/* Eco-Friendly Picnic Blanket Template - Responsive CSS */
/* Mobile-first responsive design - Bootstrap 5 compliant */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* NO animations on mobile - per requirements */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 100vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-shape {
    display: none; /* Hide decorative shapes on mobile */
  }
  
  /* Section padding adjustments */
  section {
    padding: 2rem 0;
  }
  
  /* Card adjustments */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .process-step,
  .timeline-item,
  .career-card,
  .info-card,
  .blog-card,
  .faq-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  /* Contact form mobile */
  .contact-form,
  .contact-info {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Gallery images */
  .gallery-image {
    height: 200px;
  }
  
  /* Service images */
  .service-image {
    height: 180px;
  }
  
  /* Blog images */
  .blog-image {
    height: 180px;
  }
  
  /* Button adjustments */
  .btn-primary-custom {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Reduced animations on small devices */
  .feature-card:hover,
  .service-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  h1 {
    font-size: 1.875rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-shape-1 {
    width: 150px;
    height: 150px;
  }
  
  .hero-shape-2 {
    width: 120px;
    height: 120px;
  }
  
  .gallery-image {
    height: 220px;
  }
  
  .service-image,
  .blog-image {
    height: 190px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .gallery-image {
    height: 240px;
  }
  
  .service-image {
    height: 200px;
  }
  
  .blog-image {
    height: 200px;
  }
  
  /* Adjust card grid spacing */
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .info-card,
  .blog-card {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-shape-1 {
    width: 180px;
    height: 180px;
  }
  
  .hero-shape-2 {
    width: 140px;
    height: 140px;
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  /* Full size decorative shapes */
  .hero-shape-1 {
    width: 200px;
    height: 200px;
  }
  
  .hero-shape-2 {
    width: 150px;
    height: 150px;
  }
  
  /* Larger containers for better spacing */
  .container {
    max-width: 1140px;
  }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Slightly larger decorative elements */
  .hero-shape-1 {
    width: 220px;
    height: 220px;
  }
  
  .hero-shape-2 {
    width: 170px;
    height: 170px;
  }
}

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

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

/* Print styles */
@media print {
  .hero-shape,
  .navbar,
  .footer,
  .btn-primary-custom {
    display: none;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .info-card,
  .blog-card,
  .faq-card {
    box-shadow: none;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    page-break-inside: avoid;
  }
  
  body {
    background: white;
    color: black;
    overflow-x: hidden;
}
}

/* Focus states for better accessibility */
@media (min-width: 768px) {
  .service-card:focus-within,
  .feature-card:focus-within,
  .blog-card:focus-within {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
  }
}

/* Container queries support (modern browsers) */
@supports (container-type: inline-size) {
  .service-card,
  .feature-card,
  .price-card {
    container-type: inline-size;
  }
  
  @container (max-width: 300px) {
    .service-card .service-image,
    .blog-card .blog-image {
      height: 150px;
    }
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-section,
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .process-step,
  .timeline-item,
  .career-card,
  .info-card,
  .blog-card,
  .faq-card,
  .btn-primary-custom {
    transition: none;
    animation: none;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .blog-card:hover,
  .btn-primary-custom:hover {
    transform: none;
  }
}

/* Dark mode support (if user prefers) */

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .info-card,
  .blog-card,
  .faq-card {
    border: 2px solid var(--text-dark);
  }
  
  .btn-primary-custom {
    border: 2px solid var(--primary-green-dark);
  }
}

/* Aspect ratio containers for consistent image layouts */
.aspect-ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
  aspect-ratio: 1 / 1;
}

/* Responsive text sizing using clamp() for fluid typography */
@media (min-width: 320px) {
  h1 {
    font-size: clamp(1.75rem, 4vw, 2rem);
  }
  
  h2 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
  }
  
  h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  }
  
  .section-desc {
    font-size: clamp(0.95rem, 2vw, 1rem);
  }
}


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