/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    .display-4 {
        font-size: 1.94rem;
    }
    
    .h2 {
        font-size: 1.62rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 80vh;
        padding: 2rem 0;
        text-align: center;
    }
    
    #hero .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    /* Hide decorative shapes on mobile */
    .hero-shape {
        display: none;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.37rem;
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.56rem;
    }
    
    /* Team photos smaller on mobile */
    .team-photo {
        width: 150px;
        height: 150px;
    }
    
    /* Price display adjustment */
    .price {
        font-size: 2rem;
    }
    
    /* Contact form spacing */
    .form-control {
        margin-bottom: 1rem;
    }
    
    /* Gallery grid adjustment */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer text size */
    #footer {
        font-size: 1.03rem;
    }
    
    /* Disable animations on mobile to respect reduced motion */
    * {
        transition-duration: 0s;
        animation-duration: 0s;
    }
    
    .card:hover {
        transform: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .h2 {
        font-size: 1.77rem;
    }
    
    #hero {
        min-height: 85vh;
    }
    
    .team-photo {
        width: 175px;
        height: 175px;
    }
    
    .price {
        font-size: 2.56rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.33rem;
    }
    
    .h2 {
        font-size: 1.93rem;
    }
    
    #hero {
        min-height: 90vh;
    }
    
    .team-photo {
        width: 185px;
        height: 185px;
    }
    
    /* Services grid adjustment */
    .col-md-6 {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .display-4 {
        font-size: 2.55rem;
    }
    
    .h2 {
        font-size: 2rem;
    }
    
    #hero {
        min-height: 100vh;
    }
    
    /* Show decorative elements */
    .hero-shape {
        display: block;
    }
    
    .team-photo {
        width: 200px;
        height: 200px;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 2.82rem;
    }
    
    .h2 {
        font-size: 2.38rem;
    }
    
    /* Enhanced hover effects for larger screens */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 22px 40px rgba(0, 0, 0, 0.15);
    }
    
    .feature-card:hover {
        transform: translateY(-8px);
    }
    
    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 11px 25px rgba(48, 147, 96, 0.40);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .display-4 {
        font-size: 1.51rem;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* High DPI / Retina 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;
    overflow-x: hidden;
}
}

/* Print styles */
@media print {
    .navbar,
    #hero .btn,
    .btn,
    #footer {
        display: none;
    }
    
    body {
        padding-top: 0;
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    .card {
        border: 1px solid #bab9b9;
        break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
    }
}

/* Focus management for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
    .nav-link:focus,
    .btn:focus,
    .form-control:focus {
        transition: outline-offset 1.06s ease;
    }
}

/* Dark mode support (if system preference) */

/* Specific breakpoints for grid system */
@media (min-width: 576px) {
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

/* Container responsive behavior */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Spacing adjustments for different screen sizes */
@media (max-width: 767.98px) {
    .py-5 {
        padding-top: 2.62rem;
        padding-bottom: 2.65rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    .mt-5 {
        margin-top: 2rem;
    }
}

/* Gallery responsive behavior */
@media (max-width: 767.98px) {
    #gallery .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #gallery .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Form responsive adjustments */
@media (max-width: 767.98px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Navigation responsive behavior */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
} 