/* Responsive Design - Mobile First */

/* Mobile devices (up to 767px) */
@media (max-width: 767.98px) {
    /* Disable autoplay and effects for Swiper on mobile */
    .swiper-container {
        --swiper-autoplay-delay: 0;
    }
    
    .swiper-slide {
        transition: none !important;
    }
    
    /* Hero section mobile adjustments */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    /* Hide decorative shapes on mobile */
    .hero-shape {
        display: none;
    }
    
    /* Sections mobile padding */
    .section {
        padding: 3rem 0;
    }
    
    /* Service cards mobile */
    .service-card {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .service-image {
        height: 150px;
    }
    
    /* Team cards mobile */
    .team-card {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    /* Gallery mobile */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.5rem;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    /* Typography mobile adjustments */
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    
    /* Navbar mobile */
    .navbar-brand {
        font-size: 18px !important;
    }
    
    /* Footer mobile */
    .footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    /* Review cards mobile */
    .review-card {
        margin: 0.5rem 0;
        padding: 1.5rem;
    }
}

/* Tablet devices (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .team-card {
        margin-bottom: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .contact-form {
        padding: 2.5rem;
    }
    
    /* Show some decorative elements */
    .hero-shape-1 {
        width: 150px;
        height: 150px;
    }
    
    .hero-shape-2 {
        width: 100px;
        height: 100px;
    }
}

/* Desktop devices (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .gallery-item img {
        height: 220px;
    }
}

/* Large desktop devices (1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: var(--font-size-h1);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-h3);
    }
    
    .section {
        padding: 6rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    /* Full decorative elements */
    .hero-shape-1,
    .hero-shape-2 {
        display: block;
    }
}

/* Extra large screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .section {
        padding: 7rem 0;
    }
    
    .hero-shape-1 {
        width: 250px;
        height: 250px;
    }
    
    .hero-shape-2 {
        width: 200px;
        height: 200px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-shape,
    .btn,
    .contact-form,
    .footer {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
        background: white !important;
        color: black !important;
    }
    
    .section {
        padding: 2rem 0;
        background: white !important;
    }
    
    body {
        font-size: 12px;
        background: white !important;
        color: black !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-brown: #000000;
        --primary-green: #008000;
        --primary-cream: #FFFFFF;
        --primary-orange: #FF4500;
        --primary-gray: #808080;
        --dark-gray: #000000;
        --light-cream: #FFFFFF;
    }
    
    .service-card,
    .team-card,
    .review-card,
    .faq-item {
        border: 2px solid #000000;
    }
    
    .navbar {
        border-bottom: 2px solid #000000;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-shape-1,
    .hero-shape-2 {
        animation: none !important;
    }
    
    .service-card:hover,
    .team-card:hover,
    .gallery-item:hover,
    .btn-submit:hover {
        transform: none !important;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus styles for accessibility */
.navbar-nav .nav-link:focus,
.btn:focus,
.form-control:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-orange);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
} 