/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .service-card .card-body,
    .blog-card .card-body,
    .case-study-card .card-body {
        padding: 1rem;
    }
    
    .price-card,
    .feature-box,
    .info-card,
    .job-card {
        padding: 1rem;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    
    .timeline-item::after {
        left: 10px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 10px;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .reviews-swiper {
        padding: 1rem 0;
    }
    
    .review-card {
        margin: 0 0.5rem;
        padding: 1rem;
    }
    
    /* Disable autoplay and effects on mobile for Swiper */
    .swiper {
        --swiper-navigation-size: 30px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .timeline::after {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    
    .timeline-item::after {
        left: 20px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 20px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .timeline-item {
        width: 50%;
    }
    
    .timeline::after {
        left: 50%;
        margin-left: -2px;
    }
    
    .timeline-item::after {
        right: -10px;
    }
    
    .timeline-item:nth-child(even) {
        left: 50%;
    }
    
    .timeline-item:nth-child(even)::after {
        left: -10px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .container {
        max-width: 960px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
}

/* Mobile specific adjustments */
@media (max-width: 767.98px) {
    /* Disable hover effects on mobile */
    .feature-box:hover,
    .service-card:hover,
    .price-card:hover,
    .blog-card:hover,
    .case-study-card:hover,
    .job-card:hover,
    .info-card:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    /* Stack columns on mobile */
    .row > [class*="col-"] {
        margin-bottom: 1rem;
    }
    
    /* Mobile navigation improvements */
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.1);
        padding-top: 1rem;
    }
    
    /* Contact form improvements */
    .contact-form .row > .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Gallery spacing on mobile */
    .gallery .row > [class*="col-"] {
        margin-bottom: 0.5rem;
    }
    
    /* Blog grid improvements */
    #blog_grid .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Price card featured scaling adjustment */
    .price-card.featured {
        transform: none;
        border-width: 2px;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Adjust team member layout */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process steps layout */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Service cards spacing */
    .service-card {
        margin-bottom: 2rem;
    }
}

/* Desktop and up - Enhanced hover effects */
@media (min-width: 992px) {
    .feature-box:hover,
    .service-card:hover,
    .blog-card:hover,
    .case-study-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    }
    
    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(45, 80, 22, 0.3);
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .swiper-pagination,
    .accordion-button {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    .container {
        max-width: 100%;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #000000;
        --primary-brown: #000000;
        --primary-blue: #000000;
        --primary-gray: #000000;
        --primary-gold: #000000;
        --light-gray: #ffffff;
        --dark-gray: #000000;
    }
    
    .btn-primary {
        background: #000000;
        border: 2px solid #000000;
        color: #ffffff;
    }
    
    .btn-primary:hover {
        background: #ffffff;
        color: #000000;
    }
}

/* Focus management for accessibility */
@media (min-width: 768px) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 3px solid var(--primary-gold);
        outline-offset: 2px;
    }
}

/* Dark mode support (even though excluded, keeping structure for future) */
@media (prefers-color-scheme: dark) {
    /* Structure ready but styles omitted as per requirements */
}

/* Landscape phone specific */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        min-height: 500px;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    .section-padding {
        padding: 30px 0;
    }
}

/* Mobile Swiper adjustments for autoplay/effects disabled */
@media (max-width: 767.98px) {
    .swiper {
        --swiper-pagination-bullet-size: 8px;
    }
    
    .swiper-slide {
        transition: none;
    }
    
    .reviews-swiper .swiper-slide {
        width: 90%;
        margin-right: 10px;
    }
}

/* Ensure proper stacking on all mobile devices */
@media (max-width: 575.98px) {
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-6,
    .col-md-4,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
} 