/* =================================
   EcoSwag Rentals - Responsive CSS
   Mobile-First Responsive Design
   ================================= */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable all scroll animations */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    /* Typography Adjustments */
    :root {
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: var(--font-size-base);
    }
    
    .navbar-nav .nav-link {
        font-size: var(--font-size-sm);
        padding: 0.5rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    #hero-title-1 {
        font-size: var(--font-size-3xl);
        margin-bottom: 0.96rem;
    }
    
    #hero-subtitle-1 {
        font-size: var(--font-size-lg);
        margin-bottom: 0.83rem;
    }
    
    #hero-desc-1 {
        font-size: var(--font-size-base);
        margin-bottom: 1.62rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-card,
    .career-card,
    .info-card,
    .blog-card {
        padding: 1.5rem;
        margin-bottom: 1.74rem;
    }
    
    /* Price Cards */
    .price-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .price-card .card-header {
        margin: -1.5rem -1.5rem 1rem -1.5rem;
        padding: 1.5rem;
    }
    
    .price-card .price {
        font-size: var(--font-size-2xl);
    }
    
    /* Team Members */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
    
    /* Timeline */
    .timeline-item {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    /* Gallery */
    .gallery-section {
        padding: 2rem 0;
    }
    
    .gallery-section img {
        height: 150px;
        margin-bottom: 0.68rem;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 90vh;
    }
    
    #hero-title-1 {
        font-size: var(--font-size-4xl);
    }
    
    /* Cards */
    .service-card,
    .blog-card {
        height: auto;
    }
    
    /* Team Members */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process Steps */
    .process-step .step-number {
        width: 55px;
        height: 55px;
    }
    
    /* Gallery */
    .gallery-section img {
        height: 180px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation */
    .navbar-brand {
        font-size: var(--font-size-lg);
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
    }
    
    /* Cards */
    .service-card img,
    .blog-card img {
        height: 180px;
    }
    
    /* Team Grid */
    .team-section .row {
        justify-content: center;
    }
    
    .team-section .col-md-4 {
        max-width: 200px;
        margin-bottom: 2rem;
    }
    
    /* Contact Section */
    .contact-section .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    /* Footer */
    .footer .col-lg-4 {
        margin-bottom: 1.60rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container */
    .container {
        max-width: 960px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 70vh;
    }
    
    /* Service Cards */
    .service-card img {
        height: 200px;
    }
    
    /* Team Layout */
    .team-section .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Timeline */
    .timeline-section .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container */
    .container {
        max-width: 1140px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Enhanced Hover Effects for Desktop */
    .navbar-nav .nav-link:hover {
        transform: translateY(-6px);
    }
    
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .review-card:hover,
    .case-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover {
        transform: translateY(-8px);
    }
    
    .gallery-section img:hover {
        transform: scale(1.08);
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .navbar {
        box-shadow: 0 4px 8px rgba(52, 102, 31, 0.15);
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-card,
    .career-card,
    .info-card,
    .blog-card {
        box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .gallery-section,
    .contact-form,
    footer {
        display: none;
    }
    
    .hero-section {
        background: white;
        color: black;
        page-break-after: always;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-card,
    .career-card,
    .info-card,
    .blog-card {
        border: 1px solid #dfd5d4;
        box-shadow: none;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: smaller;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .hero-section::after {
        display: none;
    }
    
    .navbar-nav .nav-link:hover {
        transform: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .review-card:hover,
    .case-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover {
        transform: none;
    }
    
    .gallery-section img:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Dark Mode Support (if system preference) */

/* Focus Styles for Accessibility */
@media (min-width: 768px) {
    .navbar-nav .nav-link:focus,
    .btn:focus,
    .form-control:focus,
    .accordion-button:focus {
        outline: 2px solid var(--forest-green);
        outline-offset: 2px;
    }
}

/* Hover States for Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .navbar-nav .nav-link:hover {
        transform: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .review-card:hover,
    .case-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover {
        transform: none;
    }
    
    .gallery-section img:hover {
        transform: none;
    }
}

/* Specific Mobile Optimizations */
@media (max-width: 767.98px) {
    /* Disable all scroll animations on mobile */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    /* Optimize tap targets */
    .navbar-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    /* Form Optimizations */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    /* Accordion Optimizations */
    .accordion-button {
        min-height: 44px;
        font-size: var(--font-size-sm);
    }
    
    /* Gallery Grid Adjustments */
    .gallery-section .col-6 {
        padding: 0.25rem;
    }
    
    /* Footer Mobile Layout */
    .footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* iOS Safari Specific */
@supports (-webkit-appearance: none) {
    .form-control {
        -webkit-appearance: none;
        border-radius: 8px;
    }
    
    .btn {
        -webkit-appearance: none;
        border-radius: 8px;
    }
} 

.hero-section h1 {
    padding-top: 275px;
}