/* PropertyLens Pro - Responsive CSS */

/* Mobile First Approach */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .hero-section {
        min-height: 100vh;
    }
}

/* Large Devices (992px to 1199px) */
@media (max-width: 1199.98px) {
    :root {
        --section-padding: 60px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    .process-number,
    .quality-number {
        width: 50px;
        height: 50px;
        font-size: 1.125rem;
    }
}

/* Medium Devices (768px to 991px) */
@media (max-width: 991.98px) {
    :root {
        --section-padding: 50px;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.125rem !important;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    /* Typography Adjustments */
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.375rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    /* Process Elements */
    .process-number,
    .quality-number {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .training-badge {
        width: 60px;
        height: 60px;
        font-size: 0.75rem;
    }
}

/* Small Devices (576px to 767px) */
@media (max-width: 767.98px) {
    :root {
        --section-padding: 40px;
        --font-size-base: 15px;
    }
    
    /* Typography - Mobile Friendly */
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3, h4, h5 {
        font-size: 1.125rem;
        line-height: 1.4;
    }
    
    p {
        font-size: var(--font-size-base);
        line-height: 1.5;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 70vh;
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        border-top: 1px solid var(--color-neutral-light);
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    /* Cards and Spacing */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    .mb-4 {
        margin-bottom: 2rem !important;
    }
    
    /* Form Elements */
    .form-control {
        padding: 0.625rem 0.75rem;
        font-size: var(--font-size-base);
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: var(--font-size-base);
    }
    
    /* Contact Section */
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Team Section - Stack Vertically */
    .team .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Services Grid */
    .services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Price Plan */
    .priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Timeline Mobile */
    .timeline {
        padding-left: 0.5rem;
    }
    
    .timeline-item {
        padding-left: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .timeline-item::before {
        left: -1rem;
    }
    
    /* Process Numbers Mobile */
    .process-number,
    .quality-number {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .training-badge {
        width: 50px;
        height: 50px;
        font-size: 0.625rem;
        margin-bottom: 0.75rem;
    }
    
    /* Gallery Mobile */
    .gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
}

/* Extra Small Devices (575px and down) */
@media (max-width: 575.98px) {
    :root {
        --section-padding: 30px;
        --font-size-base: 14px;
    }
    
    /* Container Padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    h3, h4, h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 60vh;
        padding-top: 80px;
        padding-bottom: 30px;
    }
    
    /* Navbar Brand Extra Small */
    .navbar-brand {
        font-size: 0.875rem !important;
    }
    
    /* Cards */
    .card-body {
        padding: 0.75rem;
    }
    
    /* Form Elements */
    .form-control {
        padding: 0.5rem;
        font-size: 14px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 14px;
    }
    
    /* Price Display */
    .price {
        font-size: 1.25rem;
    }
    
    /* Icon Sizing */
    .fa-3x {
        font-size: 2rem !important;
    }
    
    .fa-2x {
        font-size: 1.5rem !important;
    }
    
    /* Breadcrumb */
    .breadcrumb-section {
        padding-top: 80px;
        padding-bottom: 15px;
    }
    
    .breadcrumb-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Team Images */
    .team img {
        width: 80px;
        height: 80px;
        object-fit: cover;
    }
    
    /* Process Elements Extra Small */
    .process-number,
    .quality-number {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
    
    .training-badge {
        width: 45px;
        height: 45px;
        font-size: 0.5rem;
        line-height: 1.2;
    }
}

/* Mobile Specific - No Scroll Animations */
@media (max-width: 991.98px) {
    /* Disable all scroll-based animations on mobile */
    * {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
    
    /* Exception for essential UI transitions */
    .btn,
    .form-control,
    .card {
        transition: none !important;
    }
    
    .card:hover {
        transform: none !important;
        box-shadow: var(--shadow-sm) !important;
    }
}

/* Landscape Mobile Phones */
@media (max-height: 480px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: 20px;
    }
    
    :root {
        --section-padding: 20px;
    }
    
    .navbar-collapse {
        max-height: 200px;
        overflow-y: auto;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .breadcrumb-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */

/* Print Media Queries */
@media print {
    /* Hide non-essential elements for printing */
    .hero-section::before,
    .process-number,
    .quality-number,
    .training-badge {
        background: none !important;
        border: 1px solid #000 !important;
        color: #000 !important;
    }
    
    .timeline::before,
    .timeline-item::before {
        background: #000 !important;
    }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #0000ff;
        --color-secondary: #008000;
        --color-accent: #ff8c00;
        --color-neutral: #000000;
        --color-complement: #800080;
    }
    
    .card {
        border: 1px solid #000 !important;
    }
    
    .btn {
        border: 2px solid #000 !important;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none !important;
    }
    
    .loading-placeholder {
        animation: none !important;
        background: var(--color-neutral-light) !important;
    }
    
    .card:hover {
        transform: none !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .btn:hover {
        opacity: 1;
    }
}

/* Focus Visible for Better Keyboard Navigation */
@supports selector(:focus-visible) {
    .btn:focus:not(:focus-visible),
    .form-control:focus:not(:focus-visible),
    .nav-link:focus:not(:focus-visible) {
        outline: none;
        box-shadow: none;
    }
}

/* Container Queries (Progressive Enhancement) */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .card-body {
            padding: 0.5rem;
        }
        
        .card-title {
            font-size: 0.875rem;
        }
    }
}


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