/* ========================================
   Landlord Compliance Audit - Responsive CSS
   ======================================== */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }
  
  .hero-section h1 {
    font-size: 3.5rem;
  }
}

/* Large Devices (992px to 1399px) */
@media (max-width: 1399px) {
  .hero-section h1 {
    font-size: 3rem;
  }
}

/* Medium Devices (768px to 991px) */
@media (max-width: 991px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.375rem; }
  
  .hero-section {
    padding: 4rem 0;
    min-height: 80vh;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .feature-box {
    margin-bottom: 2rem;
  }
  
  .process-step::after {
    display: none;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link::after {
    display: none;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small Devices (576px to 767px) */
@media (max-width: 767px) {
  /* Typography */
  html {
    font-size: 14px;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  
  p {
    font-size: 0.95rem;
  }
  
  /* Header */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .shape-1,
  .shape-2 {
    width: 200px;
    height: 200px;
  }
  
  /* Services */
  .service-price {
    font-size: 1.5rem;
  }
  
  /* Features */
  .feature-box i {
    font-size: 3rem;
  }
  
  /* Team */
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  /* Process */
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  /* Contact */
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-info {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  /* Footer */
  footer {
    text-align: center;
  }
  
  .footer-widget {
    margin-bottom: 2rem;
  }
  
  /* Sections Padding */
  .hero-section,
  .about-section,
  .services-section,
  .features-section,
  .team-section,
  .reviews-section,
  .process-section,
  .faq-section,
  .gallery-section,
  .contact-section,
  .blog-section {
    padding: 3rem 0;
  }
  
  /* Swiper - Disable autoplay and effects on mobile */
  .swiper {
    --swiper-navigation-size: 30px;
  }
  
  .swiper-autoplay {
    display: none;
  }
  
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
  
  .swiper-pagination {
    bottom: 0;
  }
}

/* Extra Small Devices (less than 576px) */
@media (max-width: 575px) {
  /* Container */
  .container {
    padding: 0 0.75rem;
  }
  
  /* Typography */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.125rem; }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  /* Buttons */
  .btn-gradient {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }
  
  /* Cards */
  .feature-card,
  .service-card,
  .review-card {
    padding: 1.5rem;
  }
  
  .service-card img {
    height: 200px;
  }
  
  /* Accordion */
  .accordion-button {
    padding: 1rem;
    font-size: 0.875rem;
  }
  
  .accordion-body {
    overflow-x: hidden;
    padding: 1rem;
  }
  
  /* Blog */
  .blog-card img {
    height: 150px;
  }
  
  /* Forms */
  .form-control,
  .form-select {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
  }
  
  /* Space Page */
  #space {
    font-size: 2rem;
  }
}

/* Orientation: Landscape on Small Devices */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
}

/* Print Styles */
@media print {
  /* Hide unnecessary elements */
  header,
  footer,
  .navbar,
  .btn,
  .swiper-button-prev,
  .swiper-button-next,
  .swiper-pagination {
    display: none !important;
  }
  
  /* Reset backgrounds */
  body {
    overflow-x: hidden;
    background: white;
    color: black;
  }
  
  /* Page breaks */
  .hero-section,
  .about-section,
  .services-section,
  .features-section,
  .team-section,
  .contact-section {
    page-break-after: always;
  }
  
  /* Links */
  a {
    color: black;
    text-decoration: underline;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
  /* Optimize images for retina */
  .gallery-item img,
  .service-card img,
  .blog-card img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Hover Effects - Disable on Touch Devices */
@media (hover: none) {
  .service-card:hover,
  .feature-card:hover,
  .team-member:hover,
  .blog-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-gradient:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000;
    --secondary-color: #000;
    --accent-color: #000;
    --text-dark: #000;
    --bg-light: #fff;
  }
  
  .btn-gradient {
    background: #000;
    color: #fff;
    border: 2px solid #000;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #ECF0F1;
    --text-light: #2C3E50;
    --bg-light: #1C2833;
    --bg-dark: #F8F9FA;
  }
  
  body {
    overflow-x: hidden;
    background-color: var(--bg-dark);
    color: var(--text-light);
  }
  
  header {
    background: #2C3E50;
  }
  
  .feature-card,
  .service-card,
  .review-card {
    background: #34495E;
    border-color: #2C3E50;
  }
}

/* Custom Breakpoint for Navbar Collapse */
@media (max-width: 991px) {
  .navbar-collapse {
    background: white;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
  }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
  .hero-section {
    min-height: -webkit-fill-available;
  }
  
  /* Fix for 100vh on iOS */
  #space {
    min-height: -webkit-fill-available;
  }
}

/* Animation Performance on Low-End Devices */
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  /* Disable complex animations */
  .fade-in,
  .swiper-wrapper {
    animation: none !important;
  }
  
  /* Simplify transitions */
  * {
    transition-duration: 0.1s !important;
  }
}

/* Tablet Specific Adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 750px;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Bootstrap 5 Overrides for Better Responsive */
@media (max-width: 767px) {
  .row {
    --bs-gutter-x: 1rem;
  }
  
  .col-12 {
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
  }
} 