/* Mobile First Responsive Design */

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  .sal-animate {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.125rem; }
  
  /* Hero section adjustments */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Section padding */
  section {
    padding: 2rem 0;
  }
  
  /* Cards spacing */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Service cards stack */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Team photos smaller */
  .team-photo {
    height: 200px;
  }
  
  /* Gallery items smaller */
  .gallery-item img {
    height: 200px;
  }
  
  /* Form spacing */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Button full width */
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Navbar brand smaller */
  .navbar-brand {
    font-size: 1.125rem !important;
  }
  
  /* Footer spacing */
  #footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Process steps mobile layout */
  .process-step {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
  }
  
  .process-step::before {
    position: static;
    transform: none;
    margin: 0 auto 1rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Timeline mobile adjustments */
  .timeline-item {
    padding-left: 2rem;
  }
  
  /* Pricing cards mobile */
  .pricing-card.featured {
    transform: none;
    border: 2px solid var(--accent-sage);
  }
  
  .pricing-card.featured::before {
    position: static;
    transform: none;
    display: inline-block;
    margin-bottom: 1rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  
  /* Hero adjustments */
  #hero {
    min-height: 85vh;
  }
  
  /* Section padding */
  section {
    padding: 3rem 0;
  }
  
  /* Service grid 2 columns */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Team photos */
  .team-photo {
    height: 220px;
  }
  
  /* Gallery items */
  .gallery-item img {
    height: 220px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  /* Hero full height */
  #hero {
    min-height: 90vh;
  }
  
  /* Section padding */
  section {
    padding: 3.5rem 0;
  }
  
  /* Service grid adjustments */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Team layout */
  .team-photo {
    height: 240px;
  }
  
  /* Gallery grid */
  .gallery-item {
    margin-bottom: 1.5rem;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  /* Testimonials 2 columns */
  .testimonial-card {
    margin-bottom: 1.5rem;
  }
  
  /* FAQ 2 columns */
  .faq-card {
    height: 100%;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full hero height */
  #hero {
    min-height: 100vh;
  }
  
  /* Section padding */
  section {
    padding: 4rem 0;
  }
  
  /* Service grid 3 columns */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Team grid adjustments */
  .team-photo {
    height: 250px;
  }
  
  /* Gallery 3 columns */
  .gallery-item img {
    height: 250px;
  }
  
  /* Blog 3 columns */
  .blog-card {
    margin-bottom: 2rem;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max-width adjustments */
  .container {
    max-width: 1140px;
  }
  
  /* Hero section */
  #hero {
    min-height: 100vh;
  }
  
  /* Full section padding */
  section {
    padding: 4rem 0;
  }
  
  /* Service cards optimal spacing */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Team optimal layout */
  .team-photo {
    height: 250px;
  }
  
  /* Gallery optimal grid */
  .gallery-item {
    margin-bottom: 2rem;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  /* FAQ optimal layout */
  .faq-card {
    height: 100%;
  }
  
  /* Blog optimal grid */
  .blog-card {
    margin-bottom: 2rem;
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-decorative {
    display: none;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .card {
    box-shadow: 0 2px 8px rgba(45, 90, 61, 0.1);
  }
  
  .card:hover {
    box-shadow: 0 4px 16px rgba(45, 90, 61, 0.15);
  }
}

/* Print Styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .navbar,
  #footer,
  .btn,
  .hero-decorative {
    display: none !important;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* Accessibility - Focus States */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .navbar-nav .nav-link:focus {
    outline: 2px solid var(--accent-sage);
    outline-offset: 2px;
  }
}

/* Dark Mode Support (if needed) */

/* Reduced Data Usage */
@media (prefers-reduced-data: reduce) {
  /* Disable hover effects and transitions to save bandwidth */
  *:hover {
    transform: none !important;
  }
  
  .card:hover,
  .btn:hover,
  .team-card:hover {
    transform: none !important;
  }
}

/* Container Adjustments for Better Spacing */
@media (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }
} 