/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Typography adjustments */
    .display-4 {
        font-size: 1.8rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .h5 {
        font-size: 1rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: 80vh;
        padding: 1rem 0;
    }
    
    .hero-content {
        text-align: center;
        padding: 1rem 0;
    padding-top: 100px;
}
    
    /* No animations on mobile for performance */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .review-card:hover {
        transform: none;
    }
    
    /* Stack cards vertically on mobile */
    .row.g-4 > * {
        margin-bottom: 1.5rem;
    }
    
    /* Mobile navigation */
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    /* Team members mobile */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Services grid mobile */
    .service-card .card-img-top {
        height: 180px;
    }
    
    /* Footer mobile */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 85vh;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .service-card .card-img-top {
        height: 190px;
    }
    
    .team-member img {
        width: 90px;
        height: 90px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .display-4 {
        font-size: 2.3rem;
    }
    
    /* Enable subtle hover effects on tablets */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover {
        transform: translateY(-3px);
    }
    
    .service-card .card-img-top {
        height: 200px;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Gallery adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        min-height: 95vh;
    }
    
    .display-4 {
        font-size: 2.4rem;
    }
    
    /* Full hover effects on desktop */
    .feature-card:hover {
        transform: translateY(-5px);
    }
    
    .service-card:hover {
        transform: translateY(-8px);
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced hover effects on large screens */
    .service-card:hover {
        transform: translateY(-10px);
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 1rem 0;
    padding-top: 100px;
}
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .service-card .card-img-top,
    .blog-post .card-img-top {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .breadcrumbs {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .hero-section {
        background: none;
        color: black;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations for users who prefer reduced motion */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .review-card:hover,
    .btn:hover {
        transform: none !important;
    }
}

/* Dark mode support */

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* Ensure minimum touch target size on mobile */
@media (max-width: 767.98px) {
    .btn,
    .nav-link,
    .form-control {
        min-height: 44px;
        min-width: 44px;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Container adjustments for different screen sizes */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Specific adjustments for common breakpoints */
@media (max-width: 480px) {
    .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .team-member {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Ensure proper spacing on all devices */
.section {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

@media (min-width: 992px) {
    .section {
        padding: 5rem 0;
    }
} 