/* EcoSleeve Pro - Responsive CSS */
/* Mobile-first responsive design with no animations on mobile */

/* Mobile Styles (up to 767px) */
@media (max-width: 767.98px) {
    /* Disable all animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Conservative font sizes for mobile */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    h1, .h1 {
        font-size: 1.5rem;
    }
    
    h2, .h2 {
        font-size: 1.35rem;
    }
    
    h3, .h3 {
        font-size: 1.2rem;
    }
    
    h4, .h4 {
        font-size: 1.1rem;
    }
    
    h5, .h5 {
        font-size: 1rem;
    }
    
    p, .lead {
        font-size: 0.9rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: 70vh;
        background: var(--light-gray);
    }
    
    .hero-content {
        padding: 2rem 1rem;
        text-align: center;
    padding-top: 200px;
}
    
    .hero-shapes {
        display: none;
    }
    
    /* Mobile spacing */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Cards mobile */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .blog-card,
    .faq-card {
        margin-bottom: 1rem;
        border-radius: 10px;
    }
    
    /* Team section mobile */
    .team-member {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
        border-width: 2px;
    }
    
    /* Timeline mobile */
    .timeline-item {
        padding-left: 60px;
        margin-bottom: 2rem;
    }
    
    .timeline-marker {
        width: 15px;
        height: 15px;
    }
    
    .timeline-item::before {
        left: 7px;
    }
    
    /* Process steps mobile */
    .process-step {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto 1rem;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    /* Gallery mobile */
    .gallery .col-lg-3 {
        margin-bottom: 0.5rem;
    }
    
    /* Navigation mobile */
    .navbar-collapse {
        background: var(--white);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 5px;
        margin-bottom: 0.25rem;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: var(--light-gray);
    }
    
    /* Footer mobile */
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Button mobile */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Additional page mobile styles */
    .blog-item,
    .featured-article,
    .news-item,
    .resource-card,
    .subscription-benefit {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .news-date {
        min-width: 60px;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .partnership-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .partnership-icon {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
}

/* Tablet Styles (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Tablet-specific adjustments */
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-content {
        padding: 3rem 2rem;
    padding-top: 200px;
}
    
    /* Team grid for tablets */
    .col-lg-2-4 {
        width: 33.333333%;
    }
    
    /* Process steps for tablets */
    .process-step {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Timeline for tablets */
    .timeline-item {
        padding-left: 70px;
    }
    
    /* Cards spacing for tablets */
    .feature-card,
    .service-card,
    .pricing-card {
        margin-bottom: 1.5rem;
    }
}

/* Desktop Styles (992px and up) */
@media (min-width: 992px) {
    /* Full desktop experience with animations */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Hover effects for desktop */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .faq-card:hover {
        /* Hover effects already defined in main.css */
    }
    
    /* Desktop navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        margin: 0 0.25rem;
        border-radius: 20px;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: var(--primary-color);
        color: var(--white) !important;
    }
}

/* Large Desktop Styles (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Larger spacing for big screens */
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* Enhanced hero for large screens */
    .hero-content {
        padding: 4rem 3rem;
    padding-top: 200px;
}
    
    .hero-image img {
        border-radius: 20px;
    }
}

/* Extra Large Desktop Styles (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Maximum spacing for very large screens */
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* Print Styles */
@media print {
    * {
        color: black !important;
        background: white !important;
        box-shadow: none !important;
    }
    
    .navbar,
    footer,
    .btn,
    .hero-shapes {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        min-height: auto !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #333333;
        --accent-color: #666666;
        --neutral-color: #000000;
        --earth-color: #444444;
        --white: #ffffff;
        --light-gray: #f0f0f0;
        --medium-gray: #808080;
        --dark-gray: #404040;
    }
    
    .card,
    .feature-card,
    .service-card {
        border: 2px solid #000000 !important;
    }
}

/* Reduced motion support (already in main.css but reinforced here) */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-shapes {
        display: none;
    }
}

/* Dark mode support */

/* Orientation-specific styles */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    padding-top: 200px;
}
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Touch-friendly button sizes */
    .btn {
        min-height: 48px;
        min-width: 48px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }
}

/* Specific mobile breakpoints */
@media (max-width: 575.98px) {
    /* Extra small mobile devices */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    padding-top: 200px;
}
    
    .contact-form,
    .contact-info {
        padding: 1rem;
    }
    
    /* Stack all columns on very small screens */
    .col-lg-4,
    .col-lg-6,
    .col-md-6 {
        margin-bottom: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    /* Small mobile devices */
    .hero-content {
        padding: 2rem 1.5rem;
    padding-top: 200px;
}
    
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
}

/* Accessibility improvements */
@media (max-width: 767.98px) {
    /* Ensure touch targets are at least 44px */
    .btn,
    .nav-link,
    .form-control {
        min-height: 44px;
    }
    
    /* Improve text readability on mobile */
    body {
        line-height: 1.6;
    overflow-x: hidden;
}
    
    /* Better spacing for mobile reading */
    p {
        margin-bottom: 1.25rem;
    }
    
    /* Mobile-friendly form elements */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    /* Better mobile navigation */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 2px var(--primary-color);
    }
} 