/* Smart Home Device Installation Service - Responsive Styles */
/* Mobile-First Approach */

/* ========================================
   PREFERS-REDUCED-MOTION OVERRIDE
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-section {
    background: var(--color-primary-light);
  }
  
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary-custom:hover,
  .btn-secondary-custom:hover {
    transform: none;
  }
}

/* ========================================
   BASE MOBILE STYLES (320px+)
   ======================================== */
.hero-section {
  min-height: 80vh;
  padding: var(--spacing-lg) 0;
}

.section-padding {
  padding: var(--spacing-lg) 0;
}

.service-card,
.team-card,
.review-card,
.faq-card {
  margin-bottom: var(--spacing-md);
}

.navbar-brand {
  font-size: var(--font-size-base);
}

h1 {
  font-size: var(--font-size-2xl);
}

h2 {
  font-size: var(--font-size-xl);
}

h3 {
  font-size: var(--font-size-lg);
}

.team-photo {
  height: 200px;
}

.gallery-image {
  height: 150px;
}

/* Mobile Navigation Improvements */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Mobile Form Improvements */
.form-control {
  font-size: 16px; /* Prevents zoom on iOS */
}

/* ========================================
   SMALL DEVICES (576px+)
   ======================================== */
@media (min-width: 576px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .navbar-brand {
    font-size: var(--font-size-lg);
  }
  
  h1 {
    font-size: var(--font-size-3xl);
  }
  
  .team-photo {
    height: 220px;
  }
  
  .gallery-image {
    height: 180px;
  }
  
  .service-card {
    padding: var(--spacing-lg);
  }
}

/* ========================================
   MEDIUM DEVICES (768px+)
   ======================================== */
@media (min-width: 768px) {
  .hero-section {
    min-height: 90vh;
    padding: var(--spacing-xl) 0;
  }
  
  .section-padding {
    padding: var(--spacing-xl) 0;
  }
  
  h1 {
    font-size: var(--font-size-3xl);
    line-height: 1.2;
  }
  
  h2 {
    font-size: var(--font-size-2xl);
  }
  
  .team-photo {
    height: 250px;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  /* Improved spacing for tablet */
  .service-card,
  .team-card {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Better card layouts on tablets */
  .service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .service-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

/* ========================================
   LARGE DEVICES (992px+)
   ======================================== */
@media (min-width: 992px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .navbar-brand {
    font-size: var(--font-size-xl);
  }
  
  /* Enhanced typography for desktop */
  h1 {
    font-size: var(--font-size-3xl);
    line-height: 1.1;
  }
  
  /* Desktop-specific spacing */
  .section-padding {
    padding: calc(var(--spacing-xl) * 1.5) 0;
  }
  
  /* Improved hover effects for desktop */
  .service-card:hover {
    transform: translateY(-8px);
  }
  
  .team-card:hover {
    transform: translateY(-5px);
  }
  
  /* Enhanced gallery for desktop */
  .gallery-image {
    height: 250px;
  }
  
  .gallery-item:hover {
    transform: scale(1.03);
  }
  
  /* Desktop navigation improvements */
  .nav-link {
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
  }
  
  .nav-link:hover {
    background-color: var(--color-primary-light);
  }
}

/* ========================================
   EXTRA LARGE DEVICES (1200px+)
   ======================================== */
@media (min-width: 1200px) {
  .hero-section {
    padding: calc(var(--spacing-xl) * 2) 0;
  }
  
  .section-padding {
    padding: calc(var(--spacing-xl) * 2) 0;
  }
  
  /* Larger containers for wide screens */
  .container-xl {
    max-width: 1320px;
  }
  
  /* Enhanced spacing for large screens */
  .service-card,
  .team-card {
    margin-bottom: var(--spacing-xl);
  }
  
  /* Better image sizing for large screens */
  .team-photo {
    height: 280px;
  }
  
  .gallery-image {
    height: 280px;
  }
}

/* ========================================
   EXTRA EXTRA LARGE DEVICES (1400px+)
   ======================================== */
@media (min-width: 1400px) {
  .hero-section {
    padding: calc(var(--spacing-xl) * 2.5) 0;
  }
  
  /* Maximum comfortable reading width */
  .text-content {
    max-width: 65ch;
  }
  
  /* Enhanced image sizes for ultra-wide */
  .team-photo {
    height: 300px;
  }
  
  .gallery-image {
    height: 300px;
  }
}

/* ========================================
   LANDSCAPE ORIENTATION ADJUSTMENTS
   ======================================== */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: var(--spacing-lg) 0;
  }
  
  /* Reduced vertical spacing on landscape mobile */
  .section-padding {
    padding: var(--spacing-md) 0;
  }
}

/* ========================================
   HIGH DPI / RETINA DISPLAYS
   ======================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-photo,
  .gallery-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .navbar,
  .footer,
  .btn,
  .decorative-blob {
    display: none;
  }
  
  .hero-section {
    background: none;
    min-height: auto;
    padding: 1rem 0;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .faq-card {
    box-shadow: none;
    border: 1px solid #e5e0e0;
    page-break-inside: avoid;
  }
  
  * {
    background: transparent !important;
    color: black !important;
  }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
@media (max-width: 576px) {
  /* Improved touch targets for mobile */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 1rem;
  }
  
  /* Better form accessibility on mobile */
  .form-control {
    min-height: 44px;
  }
  
  /* Improved text readability */
  body {
    line-height: 1.7;
  }
}

/* ========================================
   CONTAINER RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */
@media (max-width: 768px) {
  /* Disable complex animations on mobile for better performance */
  .decorative-blob {
    display: none;
  }
  
  /* Simplified shadows on mobile */
  .service-card,
  .team-card,
  .review-card {
    box-shadow: var(--shadow-sm);
  }
} 

.hero-section h1 {
    padding-top: 150px;
}