/* Responsive Styles for Tiny-Home Customization Template */

/* Mobile-first approach with Bootstrap 5 breakpoints */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Cards padding reduction */
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  /* Section padding reduction */
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Gallery items stack */
  .gallery-item img {
    height: 200px;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Price values smaller on mobile */
  .price-value {
    font-size: 2rem;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* NO ANIMATIONS ON MOBILE - Respect accessibility */
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .service-card,
  .price-card {
    padding: 1.8rem;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .price-card.featured {
    transform: scale(1.02); /* Reduced scale on tablets */
  }
  
  .hero-decorative {
    width: 150px;
    height: 150px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Default styles apply, minimal adjustments */
  .container {
    max-width: 1140px;
  }
}

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

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp rendering on retina displays */
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

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

/* Print styles */
@media print {
  .navbar,
  .footer,
  .hero-decorative {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
}

/* Dark mode support (if user prefers) */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .blog-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  .hero-decorative {
    animation: none;
  }
}

/* Focus management for accessibility */
@media (max-width: 767.98px) {
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(143, 188, 143, 0.5);
  }
  
  .btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(226, 149, 120, 0.5);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .blog-card:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .navbar-nav .nav-link {
    padding: 1rem 0.5rem;
  }
}

/* Very small screens (320px and below) */
@media (max-width: 320px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1 {
    font-size: 1.4rem;
  }
  
  .service-card,
  .contact-form {
    padding: 1rem;
  }
  
  .price-value {
    font-size: 1.8rem;
  }
}

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