/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .section {
    padding: 3rem 0;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
  
  .price-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .timeline::before {
    left: 1rem;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    margin-left: 3rem;
  }
  
  .timeline-item::before {
    left: -2.5rem !important;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .hero-decorative:nth-child(2) {
    display: none;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    margin-left: 3rem;
  }
  
  .timeline::before {
    left: 1rem;
  }
  
  .timeline-item::before {
    left: -2.5rem !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline-item {
    width: 80%;
  }
  
  .timeline-item:nth-child(even) {
    left: 20%;
  }
  
  /* Disable autoplay and effects for Swiper on mobile */
  .swiper-slide {
    transition: none;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container-xxl {
    max-width: 1400px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../KEG_images/hero-bg@2x.webp');
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .hero-decorative {
    animation: none;
  }
  
  .service-card:hover,
  .team-card:hover,
  .price-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  * {
    transition-duration: 0.1s !important;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-decorative {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
    background: white;
    color: black;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  a {
    color: black !important;
    text-decoration: underline;
  }
}

/* Focus styles for accessibility */
@media (any-hover: none) {
  .service-card:focus,
  .team-card:focus,
  .price-card:focus,
  .blog-card:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
  }
}

/* Dark mode preference (basic support) */
@media (prefers-color-scheme: dark) {
  /* We're excluding dark mode styles as per requirements */
}

/* Container adjustments for different screen sizes */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
} 