/* Responsive Styles */

/* Extra large devices (large desktops, 1200px and up) */
@media (max-width: 1400px) {
  .container {
    max-width: 1140px;
  }
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
  
  h1 {
    font-size: 2.75rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .about-content {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .contact-info {
    order: 2;
  }
  
  .contact-form {
    order: 1;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  html {
    font-size: 14px;
  }
  
  .container {
    max-width: 540px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .header .container {
    position: relative;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 80px var(--spacing-md) var(--spacing-md);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu ul {
    flex-direction: column;
  }
  
  .nav-menu li {
    margin: 0 0 var(--spacing-xs);
  }
  
  .nav-menu a {
    display: block;
    padding: var(--spacing-xs) 0;
  }
  
  .mobile-nav-toggle {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
  }
  
  .mobile-nav-toggle.active {
    position: fixed;
    right: var(--spacing-md);
    top: var(--spacing-md);
  }
  
  .services-grid,
  .team-grid,
  .core-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
  }
  
  .hero-bg {
    width: 100%;
    height: 50%;
    top: auto;
    bottom: 0;
    opacity: 0.3;
  }
  
  .price-grid {
    grid-template-columns: 1fr;
  }
  
  .price-card {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .swiper-container {
    --swiper-autoplay-delay: 0 !important;
  }
} 