/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  /* Disable all animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Section padding */
  .section {
    padding: 2rem 0;
  }
  
  /* Service cards mobile */
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  /* Team photos mobile */
  .team-photo {
    height: 200px;
  }
  
  /* Gallery mobile */
  .gallery-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Form mobile */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Footer mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Price cards mobile */
  .price-card.featured {
    transform: none;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-photo {
    height: 220px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .gallery-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .gallery-row {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Enable hover effects only on larger screens */
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover {
    transform: translateY(-5px);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
  }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #666666;
    --neutral-color: #f0f0f0;
    --dark-color: #000000;
  }
  
  .navbar {
    background-color: white;
    border-bottom: 2px solid black;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .contact-form {
    border: 2px solid black;
  }
}

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

/* Container max-width adjustments */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1200px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .hero-blob-1,
  .hero-blob-2 {
    animation: none;
  }
  
  .service-card,
  .team-card,
  .gallery-item,
  .btn-primary {
    transition: none;
  }
}

/* Focus improvements for keyboard navigation */
@media (any-hover: none) {
  .service-card:focus,
  .team-card:focus,
  .gallery-item:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
  }
} 

.hero-content {
    padding-top: 275px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
