/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-section {
  padding-top: 50px;
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2.12rem;
  }
  
  .hero-decorative {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .priceplan-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .navbar-brand {
    font-size: 1.26rem !important;
  }
  
  h1 { font-size: 2.12rem; }
  h2 { font-size: 1.82rem; }
  h3 { font-size: 1.65rem; }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  /* Disable Swiper autoplay and effects on mobile */
  .swiper-container {
    --swiper-autoplay-delay: 0;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  
  .priceplan-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-section h1 {
    font-size: 2.37rem;
  }
  
  /* Disable Swiper autoplay and effects on mobile */
  .swiper-container {
    --swiper-autoplay-delay: 0;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  
  .priceplan-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: 90vh;
  }
  
  .hero-decorative {
    width: 250px;
    height: 250px;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
  
  .priceplan-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: 100vh;
  }
  
  .hero-decorative {
    width: 300px;
    height: 300px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }
  
  .priceplan-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  .container {
    max-width: 1200px;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: 100vh;
  }
  
  .hero-decorative {
    width: 350px;
    height: 350px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .swiper-container,
  .breadcrumb {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: auto !important;
    background: white !important;
    color: black !important;
  }
  
  .contact-section {
    background: white !important;
    color: black !important;
  }
  
  .service-card,
  .review-slide,
  .blog-card {
    box-shadow: none !important;
    border: 1px solid #d6c7c5 !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-sepia: #000000;
    --primary-charcoal: #000000;
    --primary-cream: #ffffff;
    --primary-amber: #000000;
    --primary-silver: #757171;
  }
  
  .service-card,
  .review-slide,
  .blog-card,
  .team-member,
  .contact-form {
    border: 2px solid #000000 !important;
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
  padding-top: 50px;
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
  .service-card:focus-within,
  .blog-card:focus-within,
  .team-member:focus-within {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
  }
}

/* Hover Effects Only for Non-Touch Devices */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover,
  .feature-item:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: translateY(-5px);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card,
  .feature-item,
  .blog-card,
  .gallery-item,
  .btn-primary {
    transform: none !important;
  }
  
  .nav-link {
    padding: 1rem !important;
  }
  
  .form-control {
    font-size: 18.00px; /* Prevents zoom on iOS */
  }
}

/* Container Adjustments */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
} 