/* Responsive Design - Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding: 0 15px;
  }
  
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  #hero::before {
    display: none;
  }
  
  .hero-content h1 {
    font-size: 1.6rem;
  }
  
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .review-card {
    margin-bottom: 2rem;
  }
  
  .price-card.featured {
    transform: none;
    border: 2px solid var(--primary-blue);
  }
  
  .contact-form,
  .contact-info {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  .process-step {
    margin-bottom: 2rem;
  }
  
  .timeline-item {
    margin-bottom: 1.5rem;
  }
  
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .faq-card {
    margin-bottom: 1rem;
    padding: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .service-card,
  .price-card {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    margin-bottom: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-content {
    padding-right: 2rem;
    padding-top: 175px;
}
  
  .price-card.featured {
    transform: scale(1.02);
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  .review-card {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .service-card:hover,
  .feature-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: translateY(-8px);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.5rem 1rem;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-card img,
  .team-photo,
  .gallery-item img,
  .blog-card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  #header,
  #footer,
  .btn,
  .navbar {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    overflow-x: hidden;
}
  
  .container {
    width: 100% !important;
    max-width: none !important;
  }
  
  .section-title {
    page-break-after: avoid;
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 767.98px) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .navbar-toggler {
    padding: 8px 12px;
    border: 2px solid var(--primary-blue);
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  }
  
  .nav-link {
    padding: 1rem;
    font-size: 1.1rem;
  }
}

/* Dark mode support (respects system preference) */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .feature-card,
  .team-card,
  .blog-card,
  .gallery-item {
    transition: none;
  }
  
  .service-card:hover,
  .feature-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* Focus management for keyboard navigation */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Mobile navigation improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-item {
    margin-bottom: 0.5rem;
  }
  
  .navbar-nav .nav-link {
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: var(--light-blue);
  }
}

/* Grid adjustments for different screen sizes */
@media (max-width: 575.98px) {
  .row > [class*="col-"] {
    margin-bottom: 1rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Typography scaling */
@media (max-width: 575.98px) {
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* Image optimization for mobile */
@media (max-width: 767.98px) {
  .gallery-item img {
    height: 200px;
  }
  
  .blog-card img {
    height: 180px;
  }
  
  .service-card img {
    width: 60px;
    height: 60px;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
} 