/* ===================================
   Bouhloucar - Responsive Styles
   =================================== */

/* ===================================
   Tablet Styles (max-width: 1024px)
   =================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.25rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .club-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .club-benefits {
        grid-template-columns: 1fr;
    }
    
    .vehicles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* ===================================
   Mobile Styles (max-width: 768px)
   =================================== */
@media (max-width: 768px) {
    /* Typography */
    html {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Navigation */
    .nav-wrapper {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--light-gray);
        font-size: 1.1rem;
    }
    
    .nav-actions {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-top: var(--spacing-sm);
    }
    
    .phone-btn {
        padding: 0.75rem 1rem;
    }
    
    .phone-btn span {
        display: none;
    }
    
    .hamburger {
        display: flex;
        order: 2;
        z-index: 1001;
        padding: 0.75rem;
        -webkit-tap-highlight-color: transparent;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Fix touch targets for mobile */
    .btn {
        min-height: 44px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .btn-small {
        min-height: 40px;
        padding: 0.75rem 1.25rem;
    }
    
    /* WhatsApp button mobile fix */
    .whatsapp-float {
        bottom: 20px !important;
        right: 20px !important;
        width: 56px !important;
        height: 56px !important;
        font-size: 28px !important;
        z-index: 9999 !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Back to top button mobile */
    .back-to-top {
        bottom: 90px !important;
        right: 20px !important;
        width: 48px !important;
        height: 48px !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Hero Carousel */
    .hero-carousel {
        height: 500px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 1rem;
    }
    
    .carousel-btn.next {
        right: 1rem;
    }
    
    .carousel-indicators {
        bottom: 1rem;
    }
    
    /* Booking Widget */
    .booking-card {
        padding: var(--spacing-md);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    /* About Section */
    .about-image img {
        height: 300px;
    }
    
    .experience-badge {
        bottom: 1rem;
        right: 1rem;
        padding: 1rem;
    }
    
    .badge-number {
        font-size: 2rem;
    }
    
    /* Club Highlight */
    .club-icon {
        font-size: 3rem;
    }
    
    .club-text h2 {
        font-size: 1.5rem;
    }
    
    .club-text p {
        font-size: 1rem;
    }
    
    /* Vehicles Grid */
    .vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ===================================
   Small Mobile (max-width: 480px)
   =================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-carousel {
        height: 400px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-subtitle {
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .booking-card {
        padding: 1rem;
    }
    
    .club-icon {
        font-size: 2.5rem;
    }
    
    .club-text h2 {
        font-size: 1.25rem;
    }
    
    .vehicle-image {
        height: 180px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
}

/* ===================================
   Landscape Mobile (max-height: 500px)
   =================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-carousel {
        height: 100vh;
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .slide-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .header,
    .hamburger,
    .carousel-btn,
    .carousel-indicators,
    .cta-section,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        text-decoration: underline;
    }
    
    .section-title {
        page-break-after: avoid;
    }
}

/* ===================================
   Accessibility Enhancements
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .carousel-slide {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-orange: #FF6B00;
        --dark-blue: #000080;
        --white: #FFFFFF;
        --black: #000000;
    }
    
    .btn-outline,
    .btn-outline-white {
        border-width: 3px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2a2a2a;
        --black: #ffffff;
        --dark-blue: #e0e0e0;
        --dark-gray: #b0b0b0;
    }
    
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .header {
        background: #2a2a2a;
    }
    
    .booking-card,
    .vehicle-card,
    .feature-card,
    .testimonial-card {
        background: #2a2a2a;
    }
    
    .form-group input,
    .form-group select {
        background: #1a1a1a;
        color: #e0e0e0;
        border-color: #3a3a3a;
    }
}
