/* =================================
   RESPONSIVE STYLES
   Mobile Solar Charging Stations
   ================================= */

/* Mobile First Approach */
@media (max-width: 575.98px) {
  /* Extra Small devices */
  /* Removed container override */
  
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: var(--spacing-md);
  }
  
  /* Services grid mobile */
  .service-card {
    margin-bottom: var(--spacing-md);
  }
  
  /* Team members mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: var(--spacing-md);
  }
  
  /* Gallery mobile */
  /* Removed gallery-grid custom styles */
  
  /* Navigation mobile */
  .navbar-nav {
    padding-top: var(--spacing-sm);
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid #eee;
  }
  
  /* Process steps mobile */
  .process-step {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Price cards mobile */
  .price-card {
    margin-bottom: var(--spacing-md);
  }
  
  /* Remove animations on mobile for performance */
  .feature-item:hover,
  .service-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  /* Small devices */
  /* Removed gallery-grid and features-grid custom styles */
}

@media (min-width: 768px) and (max-width: 991.98px) {
  /* Medium devices */
  /* Removed gallery-grid and features-grid custom styles */
  
  /* Hero adjustments */
  #hero {
    min-height: 80vh;
  }
  
  /* Team layout - Removed custom grid to avoid Bootstrap conflicts */
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Large devices */
  /* Removed gallery-grid and features-grid custom styles */
  
  /* Services and Team layout - Removed custom grids to avoid Bootstrap conflicts */
}

@media (min-width: 1200px) {
  /* Extra Large devices */
  /* Removed gallery-grid and features-grid custom styles */
  
  /* Services, Team and Price plans layout - Removed custom grids to avoid Bootstrap conflicts */
  
  /* Hero full desktop */
  #hero {
    min-height: 100vh;
  }
  
  .hero-decorative {
    display: block;
  }
}

/* Landscape mobile orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
  #hero {
    min-height: 50vh;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-image,
  .blog-image,
  .gallery-item,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Print styles */
@media print {
  #header,
  #footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
}

/* Accessibility - Focus styles */
@media (prefers-reduced-motion: no-preference) {
  .feature-item,
  .service-card,
  .blog-card,
  .gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}

/* Dark mode support */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-decorative {
    display: none;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .feature-item,
  .service-card,
  .review-card,
  .case-study-card,
  .timeline-content,
  .career-position,
  .info-card,
  .blog-card,
  .faq-card {
    border: 2px solid var(--text-dark);
  }
  
  .btn-primary {
    border: 2px solid var(--text-dark);
  }
}

/* Removed container overrides to avoid Bootstrap conflicts */

/* Navbar responsive improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-sm);
    box-shadow: var(--shadow-md);
  }
  
  .navbar-nav .nav-link {
    text-align: center;
    padding: 0.75rem !important;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Footer responsive */
@media (max-width: 767.98px) {
  #footer .row > div {
    margin-bottom: var(--spacing-md);
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: var(--spacing-md);
  }
}

/* Form responsive improvements */
@media (max-width: 767.98px) {
  .form-row .col-md-6 {
    margin-bottom: var(--spacing-sm);
  }
  
  .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
  }
}

/* Timeline responsive */
@media (max-width: 767.98px) {
  .timeline-item {
    padding-left: var(--spacing-md);
  }
  
  .timeline-marker {
    left: 0.5rem;
  }
}

/* Process steps responsive */
@media (max-width: 767.98px) {
  .process-steps {
    text-align: center;
  }
  
  .process-step::after {
    display: none;
  }
} 