/* ====================================
   Responsive CSS File
   Mobile-First Approach
   ================================== */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(82, 183, 136, 0.25);
  }
  
  /* Hero Section */
  #hero {
    min-height: 100vh;
    text-align: center;
  }
  
  .hero-text {
    padding: 1rem 0;
    order: 2;
    padding-top: 200px;
}
  
  .hero-image {
    order: 1;
    margin-bottom: 2rem;
  }
  
  /* Buttons */
  .btn-primary,
  .btn-outline-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Sections */
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Cards */
  .feature-card,
  .service-card,
  .team-member,
  .review-card,
  .case-card,
  .career-card,
  .info-card,
  .blog-card {
    margin-bottom: 2rem;
  }
  
  /* Services */
  .service-image {
    height: 200px;
  }
  
  /* Pricing */
  .pricing-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .price {
    font-size: 2.5rem;
  }
  
  /* Team */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Contact */
  .contact-form,
  .contact-info {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Footer */
  #footer {
    padding: 3rem 0 2rem;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
  
  /* No hover effects on mobile */
  .feature-card:hover,
  .service-card:hover,
  .team-member:hover,
  .blog-card:hover,
  .pricing-card:hover,
  .btn-primary:hover,
  .btn-outline-primary:hover,
  .gallery-item:hover {
    transform: none;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Hero */
  #hero {
    text-align: center;
  }
  
  .hero-text {
    order: 2;
    padding-top: 200px;
}
  
  .hero-image {
    order: 1;
    margin-bottom: 2rem;
  }
  
  /* Buttons */
  .btn-primary,
  .btn-outline-primary {
    width: auto;
    margin-right: 1rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Contact */
  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero */
  .hero-text {
    padding: 2rem 0;
    padding-top: 200px;
}
  
  /* Services Grid */
  .services-grid .col-md-6:nth-child(odd) {
    padding-right: 1rem;
  }
  
  .services-grid .col-md-6:nth-child(even) {
    padding-left: 1rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Team */
  .team-photo {
    width: 140px;
    height: 140px;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Container spacing */
  .container {
    max-width: 960px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container spacing */
  .container {
    max-width: 1140px;
  }
  
  /* Hero section enhanced */
  #hero {
    min-height: 100vh;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Larger spacing for desktop */
  .section-padding {
    padding: 6rem 0;
  }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Enhanced gallery for ultra-wide */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  /* Reduce hero height on landscape mobile */
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp rendering on retina displays */
  .feature-icon,
  .process-number,
  .contact-icon,
  .info-icon {
    background-size: contain;
  }
}

/* Print Styles */
@media print {
  /* Hide non-essential elements */
  #header,
  #footer,
  .btn,
  .navbar {
    display: none;
  }
  
  /* Ensure good contrast */
  * {
    background: white !important;
    color: black !important;
  }
  
  /* Page breaks */
  .section-padding {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark Mode Support (if system prefers dark) */

/* Focus Management for Keyboard Navigation */
@media (max-width: 767.98px) {
  /* Ensure touch targets are at least 44px */
  .btn,
  .nav-link,
  .form-control {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improve tap target spacing */
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }
}

/* Container Queries Support (when available) */
@supports (container-type: inline-size) {
  .service-card {
    container-type: inline-size;
  }
  
  @container (max-width: 300px) {
    .service-content {
      padding: 1rem;
    }
    
    .service-price {
      font-size: 0.9rem;
      padding: 0.4rem 0.8rem;
    }
  }
}

/* Accessibility Enhancements */
@media (max-width: 991.98px) {
  /* Larger click areas on mobile */
  .navbar-toggler {
    padding: 0.5rem;
    min-width: 48px;
    min-height: 48px;
  }
  
  /* Better spacing for form elements */
  .form-control {
    margin-bottom: 1rem;
    min-height: 48px;
  }
  
  /* Ensure proper contrast ratios */
  .btn-outline-primary {
    border-width: 2px;
  }
}

/* iPhone X and similar devices with notches */
@supports (padding: max(0px)) {
  .navbar {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  #footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
} 