/* Responsive CSS for Home Energy Storage Installation Service */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Disable all animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 100vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-decorative {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Section padding reduction */
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Service cards */
  .service-card {
    margin-bottom: 2rem;
  }
  
  .service-card:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  /* Team cards */
  .team-card {
    margin-bottom: 2rem;
  }
  
  .team-card:hover {
    transform: none;
  }
  
  /* Process items */
  .process-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .process-number {
    left: 1.5rem;
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 200px;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Button adjustments */
  .btn-primary:hover {
    transform: none;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Reduce animations but don't eliminate completely */
  .service-card:hover,
  .team-card:hover {
    transform: translateY(-2px);
  }
  
  .hero-section {
    min-height: 90vh;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .process-item {
    padding: 1.75rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 4.5rem 0;
  }
  
  .contact-form {
    padding: 2.75rem;
  }
  
  .gallery-item img {
    height: 230px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .gallery-item img {
    height: 250px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .gallery-item img {
    height: 280px;
  }
  
  /* Larger decorative elements for big screens */
  .hero-blob-1 {
    width: 400px;
    height: 400px;
  }
  
  .hero-blob-2 {
    width: 250px;
    height: 250px;
  }
}

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

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .section-padding {
    padding: 2.5rem 0;
  }
}

/* Print styles */
@media print {
  .hero-decorative,
  .navbar,
  .footer,
  .btn {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    background: white;
    color: black;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
}

/* Accessibility improvements */
@media (max-width: 575.98px) {
  /* Larger touch targets on mobile */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .form-control {
    min-height: 44px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Better spacing for touch */
  .navbar-nav .nav-link {
    padding: 1rem;
  }
  
  /* Ensure readability */
  body {
    font-size: 16px;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
}

/* Reduced motion support across all breakpoints */
@media (prefers-reduced-motion: reduce) {
  .hero-section,
  .service-card,
  .team-card,
  .gallery-item img,
  .btn-primary,
  .process-item {
    animation: none !important;
    transition: none !important;
  }
  
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover img,
  .btn-primary:hover {
    transform: none !important;
  }
} 

.hero-section h1 {
    padding-top: 250px;
}