/* Responsive CSS - Adventure Van Rentals */

/* Large Desktops and above (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) {
    :root {
        --fs-h1: 1.875rem;
        --fs-h2: 1.625rem;
    }
}

/* Small Desktop / Large Tablet (992px - 1199px) */
@media (max-width: 1199px) {
    :root {
        --fs-h1: 1.75rem;
        --fs-h2: 1.5rem;
        --fs-h3: 1.375rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .timeline-item {
        width: 48%;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 2.5rem;
    }
    
    /* Navigation */
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    /* Hero Section */
    .hero-section {
        text-align: center;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section img {
        margin-bottom: 2rem;
        transform: none;
    }
    
    /* Timeline */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-item::before {
        left: -40px !important;
        right: auto !important;
    }
    
    /* Team Section */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process Section */
    .process-step {
        margin-bottom: 2rem;
    }
}

/* Mobile Landscape and Portrait (576px - 767px) */
@media (max-width: 767px) {
    :root {
        --fs-h1: 1.5rem;
        --fs-h2: 1.375rem;
        --fs-h3: 1.25rem;
        --fs-h4: 1.125rem;
        --fs-body: 0.9375rem;
        --spacing-lg: 2rem;
        --spacing-md: 1.5rem;
    }
    
    /* Header */
    .navbar-brand {
    font-size: 14px !important;
        font-size: 1.125rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    /* Services */
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    /* Features */
    .feature-item {
        margin-bottom: 1rem;
    }
    
    /* Price Cards */
    .price-card.featured {
        transform: none;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: var(--spacing-md);
    }
    
    /* Footer */
    .footer-section {
        text-align: center;
    }
    
    .footer-section .row > div {
        margin-bottom: 2rem;
    }
    
    /* Swiper - Disable autoplay and effects on mobile */
    .swiper {
        --swiper-navigation-size: 30px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* Small Mobile (320px - 575px) */
@media (max-width: 575px) {
    :root {
        --fs-h1: 1.375rem;
        --fs-h2: 1.25rem;
        --fs-h3: 1.125rem;
        --fs-h4: 1rem;
        --fs-body: 0.875rem;
        --fs-small: 0.8125rem;
        --spacing-xl: 3rem;
        --spacing-lg: 1.5rem;
        --spacing-md: 1rem;
        --spacing-sm: 0.75rem;
    }
    
    /* General */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    .hero-section p {
        font-size: 0.9375rem;
    }
    
    /* Cards and Boxes */
    .service-card,
    .feature-box,
    .price-card,
    .blog-card {
        border-radius: 15px;
    }
    
    /* Images */
    .service-card img,
    .blog-card img {
        height: 180px;
    }
    
    /* Team */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: calc(100% - 40px);
        margin-left: 40px !important;
        padding: 1rem;
    }
    
    .timeline-item::before {
        left: -30px !important;
        width: 15px;
        height: 15px;
    }
    
    /* Process Steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.125rem;
    }
    
    /* FAQ */
    .accordion-button {
        padding: 1rem;
        font-size: 0.9375rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
    
    /* Gallery */
    .gallery-section .col-6 {
        padding: 5px;
    }
    
    /* Buttons */
    .btn-primary {
        padding: 10px 30px;
        font-size: 0.9375rem;
    }
    
    /* Forms */
    .form-control {
        padding: 10px 15px;
        font-size: 0.9375rem;
    }
    
    /* Scroll to Top */
    .scroll-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}

/* Very Small Mobile (320px and below) */
@media (max-width: 359px) {
    :root {
        --fs-h1: 1.25rem;
        --fs-h2: 1.125rem;
        --fs-h3: 1rem;
        --fs-body: 0.8125rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.125rem;
    }
    
    .navbar-brand {
    font-size: 14px !important;
        font-size: 1rem;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 60px 0 40px;
    }
    
    .vh-100 {
        height: auto !important;
        min-height: 100vh;
    }
}

/* Print Styles */
@media print {
    /* Hide non-essential elements */
    .navbar,
    .scroll-top,
    .gallery-section,
    .contact-form,
    .footer-section {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: #000 !important;
        background: #fff !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images for retina displays */
    .hero-section {
        background-image: var(--gradient-hero), url('../INF_images/hero-bg@2x.webp');
    }
}

/* Hover Effects - Disable on Touch Devices */
@media (hover: none) {
    .service-card:hover,
    .feature-box:hover,
    .price-card:hover,
    .blog-card:hover,
    .career-item:hover,
    .case-item:hover {
        transform: none;
    }
    
    .service-card:hover img {
        transform: none;
    }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #1a3d29;
        --secondary-color: #d4581a;
        --accent-color: #2d6b7f;
    }
    
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .bg-light {
        background-color: #2a2a2a !important;
    }
    
    .card,
    .service-card,
    .feature-box,
    .price-card,
    .blog-card,
    .accordion-item {
        background-color: #2a2a2a;
        border-color: #3a3a3a;
    }
    
    .form-control {
        background-color: #2a2a2a;
        border-color: #3a3a3a;
        color: #e0e0e0;
    }
    
    .text-muted {
        color: #b0b0b0 !important;
    }
} 