/* =====================================================
   RESPONSIVE STYLES - SLOW LIVING COMMUNITY
   Mobile-first approach with desktop enhancements
   ===================================================== */

/* Mobile First - Base styles for mobile devices */
@media (max-width: 576px) {
    /* Typography adjustments */
    .display-4 {
        font-size: 1.84rem;
        line-height: 1.3;
    }
    
    .lead {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.21rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
    
    /* Hero section adjustments */
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    #hero .col-lg-6:first-child {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.58rem;
    }
    
    /* Services cards */
    #services .card-img-top {
        height: 150px;
    }
    
    /* Team member images */
    .rounded-circle {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Contact form */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 1.69rem;
    }
    
    /* Gallery grid */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Process steps */
    #process .col-lg-2 {
        margin-bottom: 1.72rem;
    }
    
    /* FAQ cards */
    #faq .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* No animations on mobile to prevent performance issues */
    .card:hover {
        transform: none;
        box-shadow: 0 5px 8px rgba(0,0,0,0.1);
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Small tablets and large phones */
@media (min-width: 577px) and (max-width: 768px) {
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.43rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 80vh;
    }
    
    .display-4 {
        font-size: 2.26rem;
    }
    
    /* Services grid */
    #services .col-md-6 {
        margin-bottom: 1.64rem;
    }
    
    #services .card-img-top {
        height: 180px;
    }
    
    /* Team section */
    .rounded-circle {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Price plans */
    #priceplan .col-lg-4 {
        margin-bottom: 1.74rem;
    }
    
    /* Reduce card hover effects for touch devices */
    .card:hover {
        transform: translateY(-2px);
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 992px) {
    /* Typography */
    .display-4 {
        font-size: 2.58rem;
    }
    
    .navbar-brand {
        font-size: 1.47rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 70vh;
    }
    
    /* Services */
    #services .card-img-top {
        height: 190px;
    }
    
    /* Team images */
    .rounded-circle {
        width: 130px !important;
        height: 130px !important;
    }
    
    /* Gallery adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Desktop and large screens */
@media (min-width: 993px) {
    /* Enhanced hover effects for desktop */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 30px rgba(0,0,0,0.15);
    }
    
    /* Gallery enhanced hover */
    #gallery img:hover {
        transform: scale(1.08);
    }
    
    /* Services images */
    #services .card-img-top {
        height: 220px;
    }
    
    /* Team images */
    .rounded-circle {
        width: 150px !important;
        height: 150px !important;
    }
}

/* Large desktops */
@media (min-width: 1200px) {
    /* Container max-width adjustments for better readability */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced typography */
    .display-4 {
        font-size: 3rem;
    }
    
    .lead {
        font-size: 1.33rem;
    }
    
    /* Services cards */
    #services .card-img-top {
        height: 240px;
    }
    
    /* Hero section enhancements */
    #hero {
        min-height: 100vh;
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .display-4 {
        font-size: 3.51rem;
    }
    
    /* Services images */
    #services .card-img-top {
        height: 260px;
    }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    .navbar-brand {
        font-size: 1.12rem;
    }
    
    /* Reduce section padding in landscape */
    section {
        padding: 3rem 0;
    }
}

/* Print styles */
@media print {
    body {
        padding-top: 0;
    overflow-x: hidden;
}
    
    .navbar,
    #footer,
    .btn,
    .breadcrumb {
        display: none;
    }
    
    .card {
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
    }
    
    .text-primary {
        color: #000 !important;
    }
}

/* High contrast mode responsive adjustments */
@media (prefers-contrast: high) {
    @media (max-width: 768px) {
        .card {
            border-width: 2px;
        }
        
        .btn {
            border-width: 2px;
            font-weight: 600;
        }
    }
}

/* Reduced motion responsive behavior */
@media (prefers-reduced-motion: reduce) {
    @media (min-width: 993px) {
        .card:hover {
            transform: none;
            box-shadow: 0 8px 8px rgba(0,0,0,0.1);
        }
        
        #gallery img:hover {
            transform: none;
        }
    }
}

/* Dark mode support (if browser supports) */

/* Accessibility - Focus improvements for mobile */
@media (max-width: 768px) {
    .nav-link:focus,
    .btn:focus,
    .form-control:focus {
        outline: 3px solid var(--primary-pastel);
        outline-offset: 2px;
    }
    
    /* Larger touch targets for mobile */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Address bar hiding on mobile browsers */
@media (max-width: 768px) {
    #hero {
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    /* Portrait tablet specific styles */
    #hero .col-lg-6 {
        text-align: center;
    }
    
    #hero .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    .rounded-circle {
        width: 140px !important;
        height: 140px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    /* Landscape tablet specific styles */
    #hero {
        min-height: 60vh;
    }
    
    .navbar-brand {
        font-size: 1.38rem;
    }
} 