/* Express Watch - Responsive CSS */
/* Mobile-First Responsive Design */

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575.98px) {
    :root {
        --font-size-base: 14px;
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Typography Adjustments */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
        text-align: center;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-section h2 {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-section p {
        font-size: var(--font-size-base);
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: var(--spacing-sm);
    }
    
    .navbar-nav .nav-link {
        padding: var(--spacing-sm) !important;
        margin: var(--spacing-xs) 0;
    }
    
    /* Service Cards */
    .service-card {
        margin-bottom: var(--spacing-lg);
    }
    
    .service-card img {
        height: 150px;
    }
    
    /* Feature Items */
    .feature-item, .feature-box {
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .feature-item i, .feature-box i {
        font-size: 2rem !important;
    }
    
    /* Price Cards */
    .price-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .price-card .price {
        font-size: 2rem;
    }
    
    /* Team Members */
    .team-member {
        margin-bottom: var(--spacing-lg);
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-4 {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Additional Pages */
    .technique-card, .battery-type, .test-method, .standard-item, .equipment-item,
    .care-tip, .issue-item, .warranty-item, .emergency-service, .schedule-item {
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    /* New Sections Mobile Styles */
    .case-study-card, .blog-card {
        margin-bottom: var(--spacing-lg);
    }
    
    .case-study-card img, .blog-card img {
        height: 150px;
    }
    
    .career-card, .coreinfo-card {
        margin-bottom: var(--spacing-lg);
        padding: var(--spacing-lg);
    }
    
    /* Process Steps Mobile */
    .process-step {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Timeline Mobile */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
        margin-bottom: var(--spacing-lg);
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -15px;
        border-width: 10px 15px 10px 0;
        border-color: transparent white transparent transparent;
    }
    
    /* Gallery Mobile */
    .gallery-section img {
        height: 200px;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        padding: var(--spacing-md) 0;
        margin-top: 60px;
    }
    
    /* Sections */
    section {
        padding: var(--spacing-lg) 0;
    }
    
    /* Blog Mobile */
    .blog-card .btn-outline-primary {
        font-size: var(--font-size-small);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* Small Devices (Landscape Phones) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section h2 {
        font-size: 1.375rem;
    }
    
    /* Service Cards */
    .service-card img {
        height: 180px;
    }
    
    /* Team Layout */
    .team-section .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Contact Form */
    .contact-section .col-md-4 {
        margin-bottom: var(--spacing-md);
    }
}

/* Medium Devices (Tablets) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: var(--spacing-xs) var(--spacing-sm) !important;
    }
    
    /* Service Cards */
    .service-card img {
        height: 200px;
    }
    
    /* Team Layout */
    .team-section .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Price Cards - 2 columns */
    .priceplan-section .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: var(--spacing-lg);
    }
    
    /* Swiper on Mobile */
    .testimonials-swiper .swiper-slide {
        padding: 0 var(--spacing-sm);
    }
    
    /* New Sections Tablet */
    .case-study-card img, .blog-card img {
        height: 180px;
    }
    
    .gallery-section img {
        height: 220px;
    }
    
    /* Timeline Tablet */
    .timeline-item {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Process Steps Tablet */
    .process-section .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: var(--spacing-md);
    }
}

/* Large Devices (Desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.75rem;
    }
    
    /* Service Cards */
    .service-card img {
        height: 220px;
    }
    
    /* Team Layout */
    .team-section .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* New Sections Desktop */
    .case-study-card img, .blog-card img {
        height: 200px;
    }
    
    .gallery-section img {
        height: 250px;
    }
}

/* Extra Large Devices (Large Desktops) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .container {
        max-width: 1200px;
    }
}

/* Mobile Swiper Adjustments - Disable autoplay and effects */
@media (max-width: 767.98px) {
    .swiper {
        overflow: visible;
    }
    
    .swiper-slide {
        width: 100% !important;
        margin-right: var(--spacing-md) !important;
    }
    
    .swiper-wrapper {
        transform: none !important;
    }
    
    /* Disable swiper effects on mobile */
    .swiper-slide-active {
        transform: none !important;
    }
    
    /* Stack testimonials vertically on mobile */
    .testimonials-swiper .swiper-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .testimonials-swiper .swiper-slide {
        width: 100% !important;
        margin-bottom: var(--spacing-md);
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: 80vh;
        padding: var(--spacing-md) 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .hero-section h2 {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-section p {
        margin-bottom: var(--spacing-md);
    }
}

/* High DPI Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-card img,
    .team-member img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .swiper-pagination,
    .breadcrumb-nav {
        display: none !important;
    }
    
    body {
    overflow-x: hidden;
        color: black !important;
        background: white !important;
    }
    
    .hero-section,
    .contact-section {
        background: white !important;
        color: black !important;
    }
    
    .service-card,
    .feature-item,
    .price-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .service-card:hover,
    .feature-item:hover,
    .feature-box:hover,
    .price-card:hover,
    .team-member:hover,
    .modern-card:hover,
    .technique-card:hover,
    .battery-type:hover,
    .test-method:hover,
    .standard-item:hover,
    .equipment-item:hover,
    .care-tip:hover,
    .issue-item:hover,
    .warranty-item:hover,
    .emergency-service:hover,
    .schedule-item:hover {
        transform: none !important;
    }
    
    .navbar-nav .nav-link:hover,
    .btn-primary:hover {
        transform: none !important;
    }
    
    .fade-in-up {
        animation: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --neutral-dark: #e0e0e0;
        --neutral-slate: #b0b0b0;
    }
    
    body {
    overflow-x: hidden;
        background-color: #121212;
        color: var(--neutral-dark);
    }
    
    .service-card,
    .feature-item,
    .feature-box,
    .price-card,
    .testimonial-card,
    .contact-form,
    .technique-card,
    .battery-type,
    .test-method,
    .standard-item,
    .equipment-item,
    .care-tip,
    .issue-item,
    .warranty-item,
    .emergency-service,
    .schedule-item {
        background: #1e1e1e !important;
        color: var(--neutral-dark) !important;
    }
    
    .accordion-body {
    overflow-x: hidden;
        background: #2a2a2a !important;
    }
    
    .form-control {
        background: #2a2a2a !important;
        color: var(--neutral-dark) !important;
        border-color: #404040 !important;
    }
    
    .bg-light {
        background: linear-gradient(45deg, #1a1a1a 0%, #2a2a2a 100%) !important;
    }
}

/* Accessibility Improvements */
@media (max-width: 767.98px) {
    /* Larger touch targets for mobile */
    .btn,
    .nav-link,
    .accordion-button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better spacing for form elements */
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Improved focus indicators */
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 2px solid var(--secondary-gold);
        outline-offset: 2px;
    }
}

/* Tablet Specific Adjustments */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-section {
        min-height: 100vh;
    }
    
    .service-card img {
        height: 180px;
    }
    
    .testimonials-swiper .swiper-slide {
        width: 80% !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-section .row {
        align-items: center;
    }
}

/* Ultra-wide Screen Support */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
}

/* Hover Effects Only on Non-Touch Devices */
@media (hover: hover) and (pointer: fine) {
    .service-card:hover,
    .feature-item:hover,
    .feature-box:hover,
    .price-card:hover,
    .team-member:hover,
    .modern-card:hover {
        transform: translateY(-8px);
    }
    
    .technique-card:hover,
    .battery-type:hover,
    .test-method:hover,
    .standard-item:hover,
    .equipment-item:hover,
    .care-tip:hover,
    .issue-item:hover,
    .warranty-item:hover,
    .emergency-service:hover,
    .schedule-item:hover {
        transform: translateY(-4px);
    }
}

/* Touch Device Specific */
@media (hover: none) and (pointer: coarse) {
    .service-card,
    .feature-item,
    .feature-box,
    .price-card,
    .team-member,
    .modern-card,
    .technique-card,
    .battery-type,
    .test-method,
    .standard-item,
    .equipment-item,
    .care-tip,
    .issue-item,
    .warranty-item,
    .emergency-service,
    .schedule-item {
        transition: box-shadow 0.3s ease;
    }
    
    .service-card:active,
    .feature-item:active,
    .feature-box:active,
    .price-card:active {
        box-shadow: var(--shadow-heavy);
    }
}

/* New Sections Tablet */
.case-study-card img, .blog-card img {
    height: 180px;
}

.gallery-section img {
    height: 220px;
} 