/* Responsive Styles - Landlord Compliance Audit Template */

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .service-card,
  .price-card,
  .about-feature {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .price {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  footer {
    padding: 2rem 0 1rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .service-card,
  .price-card {
    padding: 2rem;
  }
  
  .team-member img {
    width: 175px;
    height: 175px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.25rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3.25rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    max-width: 960px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Height-based Media Queries */
@media (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle,
  .hero-desc {
    margin-bottom: 1rem;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-item img,
  .service-card .card-img-top,
  .team-member img {
    image-rendering: crisp-edges;
  }
}

/* Hover-capable Devices */
@media (hover: hover) {
  .service-card:hover,
  .price-card:hover,
  .about-feature:hover,
  .feature-item:hover,
  .gallery-item:hover,
  .blog-item:hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}

/* Touch Devices */
@media (hover: none) {
  .service-card:hover,
  .price-card:hover,
  .about-feature:hover,
  .feature-item:hover,
  .gallery-item:hover,
  .blog-item:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  @page {
    margin: 2cm;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .hero-section,
  .gallery-section,
  .reviews-section {
    page-break-inside: avoid;
  }
  
  .section-title {
    page-break-after: avoid;
  }
  
  .service-card,
  .price-card,
  .about-feature {
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
  
  .navbar,
  .swiper-pagination,
  .btn-primary {
    display: none;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* Accessibility Enhancements */
@media (prefers-contrast: high) {
  :root {
    --primary-sage: #4A5D3A;
    --primary-lavender: #6B5F6E;
    --primary-peach: #B4746A;
    --primary-cream: #D4C39A;
    --primary-dusty-blue: #748A96;
    --medium-gray: #495057;
  }
}

@media (prefers-color-scheme: dark) {
  /* Dark mode styles would go here if needed */
  /* Currently not implemented as per requirements */
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .shape {
    animation: none;
  }
  
  .swiper {
    scroll-behavior: auto;
  }
  
  .service-card,
  .price-card,
  .about-feature,
  .feature-item,
  .gallery-item,
  .blog-item,
  .team-member img {
    transition: none;
  }
}

/* Container Responsive Adjustments */
@media (max-width: 1199.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 767.98px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }
  
  .col,
  [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Flexbox Adjustments for Different Screen Sizes */
@media (max-width: 991.98px) {
  .d-lg-flex {
    display: block !important;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .about-feature,
  .feature-item,
  .coreinfo-item {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .d-md-flex {
    display: block !important;
  }
  
  .text-md-start {
    text-align: center !important;
  }
  
  .text-md-end {
    text-align: center !important;
  }
}

/* Navigation Responsive Adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(156, 175, 136, 0.95);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Footer Responsive Adjustments */
@media (max-width: 767.98px) {
  .footer-content {
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
  
  .footer-section:last-child {
    margin-bottom: 0;
  }
}

/* Form Responsive Adjustments */
@media (max-width: 575.98px) {
  .form-control {
    padding: 0.75rem;
    font-size: 1rem;
  }
  
  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Swiper Responsive Settings */
@media (max-width: 767.98px) {
  .swiper {
    padding-bottom: 2rem;
  }
  
  .swiper-pagination {
    bottom: 0;
  }
}

/* Image Responsive Enhancements */
@media (max-width: 575.98px) {
  .gallery-item img {
    height: 200px;
  }
  
  .blog-item img {
    height: 150px;
  }
  
  .service-card .card-img-top {
    height: 150px;
  }
} 