/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.25rem;
    --section-padding: 2rem 0;
  }
  
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  /* Disable autoplay and effects on mobile for Swiper */
  .swiper-container {
    --swiper-navigation-size: 20px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-content {
    padding: 2rem 0;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    margin-bottom: 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1.5rem !important;
  }
  
  /* Enable Swiper autoplay and effects on tablet and up */
  .swiper-button-next,
  .swiper-button-prev {
    display: flex;
  }
  
  .service-image {
    height: 220px;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .contact-form {
    padding: 4rem;
  }
  
  .service-card {
    padding: 3rem 2.5rem;
  }
  
  .price-card {
    padding: 4rem 2.5rem;
  }
  
  .team-card {
    padding: 2.5rem;
  }
  
  .review-card {
    padding: 3rem;
  }
  
  .feature-card {
    padding: 2.5rem;
  }
  
  .service-image {
    height: 240px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.75rem;
  }
  
  .container-fluid {
    max-width: 1400px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .service-image {
    height: 260px;
  }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .section-padding {
    padding: 6rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 2.5rem;
  }
}

/* Height-based media queries for better hero section */
@media (min-height: 800px) {
  .hero-section {
    min-height: 90vh;
  }
}

@media (min-height: 900px) {
  .hero-section {
    min-height: 100vh;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .contact-section {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4 {
    page-break-after: avoid;
  }
}

/* Focus states for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-lavender);
    outline-offset: 2px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-charcoal: #000000;
    --charcoal-light: #333333;
    --primary-cream: #ffffff;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .feature-card,
  .blog-card {
    border: 2px solid var(--primary-charcoal);
  }
} 