/* ===================================
   MOBILE RESPONSIVE FIXES
   العالمي ليموزين - Mobile Optimized
   =================================== */

/* ===========================
   Mobile Header with Hamburger Menu
=========================== */

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #af9247;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hide/Show Header on Scroll (Mobile Only) */
@media (max-width: 768px) {
    header {
        transform: translateY(0);
        transition: transform 0.3s ease-in-out;
    }
    
    header.header-hidden {
        transform: translateY(-100%);
    }
    
    header.header-visible {
        transform: translateY(0);
    }
}

/* ===========================
   Mobile Navigation Overrides
=========================== */

@media (max-width: 768px) {
    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide desktop navigation */
   .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
        overflow: hidden;
        transition: all 0.4s ease;
        z-index: 1001;
        border-top: 2px solid #af9247;
    }
    
      .nav-menu.active {
        height: 320px;
        padding: 20px 0;
    }
    
    .nav-menu a {
        display: block;
        width: 200px;
        margin: 8px auto;
        padding: 10px;
        text-align: center;
        background: rgba(175, 146, 71, 0.1);
        border-radius: 20px;
        border: 1px solid rgba(175, 146, 71, 0.3);
    }
    
        /* منع أي ترتيب أفقي */
    .nav-menu a:nth-child(1) { clear: both; }
    .nav-menu a:nth-child(2) { clear: both; }
    .nav-menu a:nth-child(3) { clear: both; }
    .nav-menu a:nth-child(4) { clear: both; }
}
    
    .nav-menu.active a {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Header layout for mobile */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }
    
    /* Logo section mobile */
    .logo-section {
        gap: 15px;
    }
    
    .logo-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .logo-text {
        font-size: 1.2rem;
        line-height: 1.2;
    }
    
    /* Hide phone numbers on very small screens */
    .phone-numbers {
        display: none;
    }
}

/* ===========================
   Content Spacing for Mobile Header
=========================== */

@media (max-width: 768px) {
    .hero,
    .about-hero,
    .services-hero,
    .contact-hero {
        margin-top: 80px; /* Reduced from 120px */
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .hero {
        height: 70vh; /* Reduced from 100vh */
        background-attachment: scroll; /* Fix for mobile */
    }
    
    .about-hero,
    .services-hero,
    .contact-hero {
        background-attachment: scroll; /* Fix for mobile */
    }
}

/* ===========================
   Long Text Optimization
=========================== */

@media (max-width: 768px) {
    /* Hero content text */
    .hero-content h1,
    .about-hero-content h1,
    .services-hero-content h1,
    .contact-hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-content p,
    .about-hero-content p,
    .services-hero-content p,
    .contact-hero-content p {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 25px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.8rem;
        line-height: 1.4;
        margin-bottom: 30px;
    }
    
    /* Long paragraphs in content */
    .story-text p,
    .vm-card p,
    .booking-text p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: justify;
        margin-bottom: 15px;
    }
    
    /* Service descriptions */
    .service-card h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* ===========================
   WhatsApp Booking Section Mobile Fix
=========================== */

@media (max-width: 768px) {
    .whatsapp-booking {
        padding: 60px 0;
    }
    
    .booking-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .booking-text {
        order: 1;
    }
    
    .booking-image {
        order: 2;
        display: flex;
        justify-content: center;
    }
    
    .booking-image .car-image-placeholder {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .booking-text h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .booking-list {
        text-align: right;
        max-width: 300px;
        margin: 0 auto 25px;
    }
    
    .whatsapp-btn-large {
        font-size: 1rem;
        padding: 12px 25px;
        margin-top: 15px;
    }
}

/* ===========================
   Fixed Contact Buttons Mobile
=========================== */

@media (max-width: 768px) {
    .fixed-contact {
        bottom: 20px;
        right: 15px;
        gap: 12px;
    }
    
    .contact-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* ===========================
   Cards and Grids Mobile Optimization
=========================== */

@media (max-width: 768px) {
    /* All grid layouts become single column */
    .services-grid,
    .destinations-grid,
    .vm-grid,
    .values-grid,
    .contact-grid,
    .special-grid,
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .main-services .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Features list mobile */
    .features-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 20px;
        text-align: center;
        flex-direction: column;
        gap: 15px;
    }
    
    /* Cards padding reduction */
    .service-card,
    .vm-card,
    .contact-card,
    .special-item {
        padding: 25px 20px;
        min-height: auto;
    }
}

/* ===========================
   Buttons and CTA Mobile
=========================== */

@media (max-width: 768px) {
    .cta-button {
        font-size: 1rem;
        padding: 12px 30px;
        width: auto;
        min-width: 200px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .whatsapp-cta,
    .phone-cta {
        width: 250px;
        text-align: center;
        padding: 12px 20px;
    }
}

/* ===========================
   Footer Mobile Optimization
=========================== */

@media (max-width: 768px) {
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        text-align: center;
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .footer-section p {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .social-links {
        gap: 20px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* ===========================
   Map and Location Mobile
=========================== */

@media (max-width: 768px) {
    .office-location {
        padding: 60px 0;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .map-container {
        height: 250px;
        order: 2;
    }
    
    .location-info {
        order: 1;
        gap: 20px;
    }
    
    .info-item {
        padding: 20px;
        gap: 15px;
    }
}

/* ===========================
   Swiper Mobile Fixes
=========================== */

@media (max-width: 768px) {
    .fleet-swiper {
        padding: 0 15px;
    }
    
    .swiper-slide {
        padding: 20px;
    }
    
    .car-image-swiper {
        height: 150px;
        margin-bottom: 15px;
    }
    
    .swiper-slide h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .swiper-slide .model,
    .swiper-slide .capacity {
        font-size: 0.9rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
        margin-top: -17.5px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px;
    }
}

/* ===========================
   Emergency Section Mobile
=========================== */

@media (max-width: 768px) {
    .emergency-contact {
        padding: 50px 0;
    }
    
    .emergency-card {
        padding: 20px;
    }
    
    .emergency-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .emergency-content h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .emergency-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .emergency-btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* ===========================
   Very Small Screens (320px-480px)
=========================== */

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Logo even smaller */
    .logo-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1rem;
        line-height: 1.1;
    }
    
    /* Hero adjustments */
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Cards padding */
    .service-card,
    .vm-card,
    .contact-card {
        padding: 20px 15px;
    }
    
    /* Fixed contact */
    .fixed-contact {
        right: 10px;
        bottom: 15px;
    }
    
    .contact-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Footer */
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ===========================
   Landscape Mobile Orientation
=========================== */

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        margin-top: 70px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .nav-menu.active {
        height: 200px;
    }
}


/* حل سريع للصفحة الرئيسية */
@media (max-width: 768px) {
    .hero {
        margin-top: 45px !important;
        padding-top: 15px !important;
    }
}

