/* ===== LocalCraft Responsive Styles ===== */

/* Mobile-First Responsive Design */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    
    /* Typography Adjustments */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3, .fs-5 {
        font-size: 1.125rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1.125rem;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        min-height: 70vh;
        padding: 40px 0;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    /* Button Adjustments */
    .btn-lg {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .btn {
        margin-bottom: 10px;
        width: 100%;
    }
    
    /* Card Spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Section Padding */
    section {
        padding: 40px 0;
    }
    
    /* Team Member Images */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Gallery Grid */
    .gallery .col-6 {
        margin-bottom: 10px;
    }
    
    /* Form Enhancements */
    .form-control {
        padding: 10px 12px;
    }
    
    /* Navbar Adjustments */
    .navbar-nav .nav-link {
        padding: 10px 15px;
        margin: 5px 0;
        text-align: center;
    }
    
    /* Footer Adjustments */
    footer {
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Contact Info Stacking */
    .contact-info .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Stats Numbers */
    .stats-number {
        font-size: 2.5rem;
    }
    
    /* Timeline Mobile */
    .border-start {
        border-left: none !important;
        border-top: 3px solid var(--primary-color) !important;
        padding-left: 0;
        padding-top: 1rem;
    }
    
    .border-start::before {
        left: 50%;
        top: -6px;
        transform: translateX(-50%);
    }
    
    /* Price Plan Cards */
    .price-plan .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Disable Animations on Mobile (following rules) */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 0.125rem 0.25rem var(--shadow-color);
    }
    
    /* Service Items Grid */
    .services .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Process Steps Mobile */
    .process-step {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Blog Grid Mobile */
    .blog-grid .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* FAQ Mobile */
    .faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    .faq .card {
        margin-bottom: 1rem;
    }
    
    /* Mobile Utility Classes */
    .mobile-center {
        text-align: center;
    }
    
    .mobile-full-width {
        width: 100%;
    }
    
    /* Hide desktop elements on mobile */
    .d-mobile-none {
        display: none !important;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    
    /* Typography Adjustments */
    h1, .display-4 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
    }
    
    /* Button Adjustments */
    .btn {
        width: auto;
        margin-right: 10px;
        margin-bottom: 10px;
    }
    
    /* Section Padding */
    section {
        padding: 50px 0;
    }
    
    /* Team Member Images */
    .team-member img {
        width: 140px;
        height: 140px;
    }
    
    /* Gallery Adjustments */
    .gallery .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Disable scroll animations for reduced motion */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation: none !important;
            transition: none !important;
        }
    }
    
    /* Stats Numbers */
    .stats-number {
        font-size: 2.75rem;
    }
    
    /* Form Layout */
    .contact-form .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    
    /* Typography */
    h1, .display-4 {
        font-size: 2.375rem;
    }
    
    h2 {
        font-size: 1.9375rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 85vh;
    }
    
    /* Section Padding */
    section {
        padding: 60px 0;
    }
    
    /* Team Member Images */
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    /* Gallery Grid Tablet */
    .gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Card Hover Effects Reduced */
    .card:hover {
        transform: translateY(-3px);
    }
    
    /* Navbar Tablet */
    .navbar-nav {
        margin-top: 1rem;
    }
    
    /* Footer Layout */
    footer .row > div {
        margin-bottom: 2rem;
    }
    
    /* Stats Layout */
    .stats .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Timeline Tablet */
    .timeline .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Disable horizontal scroll */
    body {
        overflow-x: hidden;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
    
    /* Full Typography */
    h1, .display-4 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Hero Section Desktop */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Section Padding */
    section {
        padding: 80px 0;
    }
    
    /* Enable full animations */
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px var(--shadow-color);
    }
    
    /* Team Member Images */
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    /* Gallery Full Grid */
    .gallery .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    /* Enable hover effects */
    .btn:hover {
        transform: translateY(-2px);
    }
    
    .btn-outline-primary:hover {
        transform: translateY(-1px);
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    
    /* Container Max Width */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced Typography */
    h1, .display-4 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2.125rem;
    }
    
    /* Section Padding */
    section {
        padding: 100px 0;
    }
    
    /* Enhanced Card Effects */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px var(--shadow-color);
    }
    
    /* Gallery Enhanced */
    .gallery img:hover {
        transform: scale(1.08);
    }
}

/* XXL Devices (Larger Desktops, 1400px and up) */
@media (min-width: 1400px) {
    
    /* Container Max Width */
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced Spacing */
    section {
        padding: 120px 0;
    }
    
    /* Typography Enhancements */
    h1, .display-4 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 568px) {
    
    /* Reduce hero height on landscape mobile */
    .hero-section {
        min-height: 100vh;
        padding: 20px 0;
    }
    
    /* Compact navbar */
    .navbar {
        padding: 8px 0;
    }
    
    /* Reduce section padding */
    section {
        padding: 30px 0;
    }
}

/* Print Styles for Better Printing */
@media print {
    
    /* Hide Interactive Elements */
    .navbar,
    .btn,
    footer,
    .breadcrumb {
        display: none !important;
    }
    
    /* Optimize for Print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    /* Ensure readable colors */
    .bg-dark,
    .bg-primary {
        background: #fff !important;
        color: #000 !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    /* Image sizing */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    /* Ensure crisp images on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* Enhance shadows for better visibility */
    .shadow-sm {
        box-shadow: 0 0.25rem 0.5rem var(--shadow-color) !important;
    }
    
    .shadow {
        box-shadow: 0 1rem 2rem var(--shadow-color) !important;
    }
}

/* Accessibility: Respect User Preferences */
@media (prefers-reduced-motion: reduce) {
    
    /* Remove all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover transforms */
    .card:hover,
    .btn:hover,
    img:hover {
        transform: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    
    /* Enhance contrast for better accessibility */
    .text-muted {
        color: #000 !important;
    }
    
    .bg-light {
        background-color: #fff !important;
        border: 2px solid #000;
    }
    
    .card {
        border: 2px solid #000 !important;
    }
    
    .btn {
        border: 2px solid #000 !important;
    }
}

/* Dark Mode Support (Future Enhancement) */

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