/* Smart Home Device Installation Service - Responsive Styles */

/* Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* NO ANIMATIONS ON MOBILE - Strict Rule */
  * {
    animation: none;
    transition: none;
  }
  
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .price-plan-card.featured {
    transform: none;
  }
  
  .process-step,
  .case-study-card,
  .career-card,
  .core-info-card {
    padding: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .service-card {
    padding: 1.75rem;
  }
  
  .team-photo {
    width: 175px;
    height: 175px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item img {
    height: 275px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .service-card,
  .review-card,
  .faq-card {
    box-shadow: none;
    border: 1px solid #dee2e6;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .service-card,
  .review-card,
  .faq-card,
  .blog-card {
    border: 2px solid var(--neutral-gray-dark);
  }
  
  .btn-primary {
    border: 2px solid var(--primary-blue-dark);
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 1rem;
  }
  
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Accessibility - Focus States */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
}

/* Dark Mode Support (if needed in future) */

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