/* Responsive Styles for Garden Plans Template */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: var(--font-size-base);
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .hero-shape {
    display: none;
  }
  
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.75rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .about-feature {
    margin-bottom: 1.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .service-card img {
    height: 180px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container-fluid {
    max-width: var(--container-max-width);
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Mobile-specific optimizations */
@media (max-width: 767.98px) {
  .navbar-collapse {
    background: var(--color-primary-dark);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-item i {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .timeline-item {
    border-left: none;
    border-top: 3px solid var(--color-secondary);
    padding-left: 0;
    padding-top: 2rem;
    margin-bottom: 3rem;
  }
  
  .timeline-item::before {
    left: 0;
    top: -9px;
  }
  
  .review-item::before {
    display: none;
  }
  
  .priceplan-card,
  .service-card,
  .about-feature {
    margin-bottom: 2rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .btn-primary {
    width: 100%;
    margin-top: 1rem;
  }
}

/* Tablet specific optimizations */
@media (min-width: 768px) and (max-width: 991.98px) {
  .about-feature {
    padding: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .review-item {
    padding: 1.5rem;
  }
  
  .casestudy-item,
  .career-item {
    padding: 1.5rem;
  }
}

/* Swiper specific responsive styles */
@media (max-width: 767.98px) {
  .swiper {
    padding-bottom: 2rem;
  }
  
  .swiper-slide {
    margin-bottom: 1rem;
  }
  
  /* Disable autoplay and effects on mobile */
  .swiper-container-autoplay {
    --swiper-autoplay-delay: 0;
  }
  
  .swiper-effect-fade,
  .swiper-effect-cube,
  .swiper-effect-coverflow,
  .swiper-effect-flip {
    --swiper-effect: none;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../images/hero-garden@2x.webp');
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-shape,
  .btn,
  .contact-form,
  .footer {
    display: none !important;
  }
  
  body { overflow-x: hidden;
    font-size: 12pt;
    color: black;
    background: white;
  }
  
  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4 {
    color: black;
    page-break-after: avoid;
  }
  
  .service-card,
  .about-feature,
  .review-item {
    border: 1px solid #ddd;
    page-break-inside: avoid;
    margin-bottom: 20px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .hero-shape,
  .service-card,
  .about-feature,
  .feature-item,
  .team-member img,
  .gallery-item {
    transition: none;
  }
  
  .swiper {
    --swiper-autoplay: false;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #000000;
    --color-secondary: #333333;
    --color-accent: #666666;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  }
  
  .form-control {
    border: 3px solid #000;
  }
  
  .btn-primary {
    background: #000;
    color: #fff;
    border: 2px solid #000;
  }
}

/* Dark mode detection (if supported by browser) */
@media (prefers-color-scheme: dark) {
  /* Note: Following requirements, we exclude dark mode styles */
  /* This media query is here for future compatibility */
}
