/* Responsive CSS for Rare Incense Subscription Template */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-section {
    min-height: 60vh;
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 1.5rem;
    padding-top: 225px;
}
  
  .service-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  /* No animations on mobile for better performance */
  .service-card:hover,
  .gallery-item:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 70vh;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .service-card {
    height: 100%;
  }
  
  .team-member {
    height: 100%;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

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

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

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
}

/* Dark Mode Support (if user prefers) */

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .gallery-item,
  .team-member {
    transition: none;
  }
  
  .hero-decorative {
    animation: none;
  }
}

/* Focus Improvements for Keyboard Navigation */
@media (min-width: 768px) {
  .navbar-nav .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }
} 
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
