/* Solar Clean Pro - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography */
  .display-4 {
    font-size: 1.86rem;
  }
  
  .display-6 {
    font-size: 1.60rem;
  }
  
  h1 {
    font-size: 1.92rem;
  }
  
  h2 {
    font-size: 1.62rem;
  }
  
  /* Navbar */
  .navbar-brand {
    font-size: 1.36rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    text-align: center;
  }
  
  /* Hero Section */
  .hero-bg {
    padding: 2rem 0;
    min-height: 70vh;
  }
  
  .hero-bg h1 {
    font-size: 1.82rem;
    margin-bottom: 1rem;
  }
  
  .hero-bg p {
    font-size: 0.93rem;
  }
  
  /* Buttons */
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.98rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Cards */
  .card-body {
    padding: 1rem;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  /* Team Photos */
  .team-photo {
    width: 80px;
    height: 80px;
  }
  
  /* Process Steps */
  .process-step {
    width: 50px;
    height: 50px;
    font-size: 1.32rem;
  }
  
  /* Timeline Years */
  .timeline-year {
    width: 60px;
    height: 60px;
    font-size: 1rem;
  }
  
  /* Contact Form */
  .form-control {
    font-size: 0.94rem;
  }
  
  /* Section Padding */
  section {
    padding: 3rem 0;
  }
  
  /* Gallery */
  #gallery .col-md-4 {
    margin-bottom: 1rem;
  }
  
  /* Footer */
  footer {
    text-align: center;
  }
  
  .text-md-end {
    text-align: center !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  .display-4 {
    font-size: 2rem;
  }
  
  .display-6 {
    font-size: 1.83rem;
  }
  
  /* Hero Section */
  .hero-bg {
    min-height: 75vh;
  }
  
  /* Cards */
  .card-img-top {
    height: 190px;
  }
  
  /* Team Photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Process Steps */
  .process-step {
    width: 55px;
    height: 55px;
    font-size: 1.37rem;
  }
  
  /* Timeline Years */
  .timeline-year {
    width: 70px;
    height: 70px;
    font-size: 1.17rem;
  }
  
  /* Section Padding */
  section {
    padding: 4rem 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography */
  .display-4 {
    font-size: 2.34rem;
  }
  
  .display-6 {
    font-size: 1.90rem;
  }
  
  /* Hero Section */
  .hero-bg {
    min-height: 80vh;
  }
  
  /* Cards */
  .card-img-top {
    height: 200px;
  }
  
  /* Navigation */
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
  }
  
  /* Team Section */
  .team-photo {
    width: 110px;
    height: 110px;
  }
  
  /* Process and Timeline */
  .process-step,
  .timeline-year {
    margin-bottom: 1rem;
  }
  
  /* Contact Form */
  .contact-info {
    margin-top: 2rem;
  }
}

/* Large devices (desktops, 996px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero Section */
  .hero-bg {
    min-height: 85vh;
  }
  
  /* Cards Grid */
  .services .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* Team Layout */
  #team .row {
    justify-content: center;
  }
  
  /* Process Steps - Horizontal Layout */
  #process .row {
    justify-content: space-between;
  }
  
  /* Timeline - Better Spacing */
  #timeline .row {
    justify-content: space-between;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container Max Width */
  .container {
    max-width: 1140px;
  }
  
  /* Hero Section */
  .hero-bg {
    min-height: 90vh;
  }
  
  /* Typography */
  .display-4 {
    font-size: 2.51rem;
  }
  
  /* Large Screen Optimizations */
  .card-img-top {
    height: 220px;
  }
  
  /* Team Photos */
  .team-photo {
    width: 130px;
    height: 130px;
  }
  
  /* Enhanced Hover Effects */
  .card:hover {
    transform: translateY(-8px);
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Enhanced spacing for large screens */
  section {
    padding: 6rem 0;
  }
  
  .hero-bg {
    min-height: 95vh;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-bg {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  section {
    padding: 2rem 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Enhance shadows and borders for crisp display */
  .card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .btn {
    border-width: 1px;
  }
  
  .form-control {
    border-width: 1px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .card:hover {
    transform: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }
  
  .btn:hover {
    transform: none;
  }
  
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .nav-link {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }
  
  .form-control {
    min-height: 44px;
  }
}

/* Print Optimizations */
@media print {
  /* Remove backgrounds */
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  /* Page breaks */
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .card {
    border: 1px solid #c4c4c4;
    page-break-inside: avoid;
  }
  
  /* Hide interactive elements */
  .btn,
  .navbar,
  #gallery,
  footer {
    display: none !important;
  }
  
  /* Optimize text */
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  #gallery .img-fluid:hover {
    transform: none;
  }
  
  .card:hover .card-img-top {
    transform: none;
  }
}

/* Dark Mode Support */

/* Focus Indicators for Accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Container Queries Support (where available) */
@supports (container-type: inline-size) {
  .card {
    container-type: inline-size;
  }
  
  @container (max-width: 300px) {
    .card-body {
      padding: 0.75rem;
    }
    
    .card-title {
      font-size: 1rem;
    }
  }
} 