/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* NO ANIMATIONS ON MOBILE */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Conservative mobile typography */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  /* Hero adjustments */
  #hero {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-shape {
    display: none;
  }
  
  /* Service cards stack */
  .service-card {
    margin-bottom: 20px;
  }
  
  /* Price cards no scale */
  .price-card.featured {
    transform: none;
  }
  
  /* Team images smaller */
  .team-image {
    width: 80px;
    height: 80px;
  }
  
  /* Contact form padding */
  .contact-form {
    padding: 20px;
  }
  
  /* Gallery items single column */
  .gallery-item img {
    height: 200px;
  }
  
  /* Section padding reduced */
  .section-padding {
    padding: 40px 0;
  }
  
  /* Footer text center */
  #footer .text-center {
    text-align: center !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  
  #hero {
    min-height: 80vh;
  }
  
  .service-card {
    margin-bottom: 20px;
  }
  
  .team-image {
    width: 100px;
    height: 100px;
  }
  
  .section-padding {
    padding: 60px 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  h1 { font-size: 1.875rem; }
  
  #hero {
    min-height: 90vh;
  }
  
  .hero-shape {
    opacity: 0.05;
  }
  
  .service-card {
    margin-bottom: 30px;
  }
  
  .section-padding {
    padding: 70px 0;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Full animations and effects enabled */
  .service-card:hover {
    transform: translateY(-5px);
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  
  .card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }
  
  .price-card.featured {
    transform: scale(1.05);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-shape {
    opacity: 0.1;
  }
  
  .hero-shape-1 {
    width: 250px;
    height: 250px;
  }
  
  .hero-shape-2 {
    width: 200px;
    height: 200px;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

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

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .service-card,
  .review-card,
  .blog-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
}

/* Print styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .navbar,
  #footer,
  .btn {
    display: none !important;
  }
  
  #hero {
    min-height: auto;
  }
  
  .section-padding {
    padding: 20px 0;
  }
}

/* Accessibility - Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-shape,
  .service-card:hover,
  .gallery-item:hover img,
  .card-hover:hover {
    transform: none !important;
  }
}

/* Dark mode preference */

/* Contrast preference */
@media (prefers-contrast: high) {
  .service-card,
  .review-card,
  .blog-card,
  .contact-form {
    border: 2px solid #333;
  }
  
  .btn-primary {
    border: 2px solid var(--sage-dark);
  }
} 

body {
    overflow-x: hidden;
}