/* =====================================================
   BERVIP TRAVEL - Responsive Styles
   ===================================================== */

html, body {
    overflow-x: hidden;
    width: 100%;
}

/* ─── Tablet (max-width: 991px) ─── */
@media (max-width: 991px) {
    :root {
        --section-padding: 70px 0;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px 40px;
        overflow-y: auto;
        transition: right var(--transition-base);
        z-index: 1000;
        gap: 0;
    }

    [dir="rtl"] .nav-menu {
        right: auto;
        left: -320px;
        border-left: none;
        border-right: 1px solid var(--border-color);
    }

    .nav-menu.open {
        right: 0;
    }

    [dir="rtl"] .nav-menu.open {
        right: auto;
        left: 0;
    }

    .nav-menu > li > a {
        padding: 14px 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu > li > a::after {
        display: none;
    }

    .nav-menu .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-primary);
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }

    .nav-menu li.submenu-open > .submenu {
        max-height: 500px;
    }

    .submenu a {
        padding-left: 28px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: flex;
        gap: 8px;
    }

    .nav-cta > a:first-child {
        display: none !important;
    }

    .nav-phone {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    /* Mobile Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hero */
    .hero-content .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Grids */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Top bar */
    .header-right {
        display: none;
    }
}

/* ─── Mobile Swiper Desktop Override ─── */
@media (min-width: 992px) {
    .mobile-swiper .swiper-wrapper {
        display: grid !important;
        transform: none !important;
    }
}

/* ─── Mobile (max-width: 767px) ─── */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px 0;
    }

    .container {
        padding: 0 16px;
    }

    /* Top Bar */
    .top-bar {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 90px 0 40px;
        margin-top: 0;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-form {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-item {
        padding: 20px 12px;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Grids */
    .services-grid,
    .vehicles-grid,
    .blog-grid,
    .testimonials-wrapper {
        grid-template-columns: 1fr;
    }

    /* Force Swiper flex layout on mobile - grid classes must not interfere */
    .mobile-swiper .swiper-wrapper {
        display: flex !important;
        gap: 0 !important;
    }

    .regions-grid {
        grid-template-columns: 1fr;
    }

    .region-card {
        flex-direction: column;
        text-align: center;
    }

    .region-price {
        text-align: center;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Team Grid - Responsive */
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .team-grid .team-card {
        min-width: 0;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-payments {
        margin-right: 0;
    }

    /* CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Page Header */
    .page-header {
        padding: 100px 0 15px;
    }

    /* WhatsApp */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float a {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .scroll-top {
        right: 80px;
        width: 40px;
        height: 40px;
    }

    [dir="rtl"] .whatsapp-float {
        left: 20px;
        right: auto;
    }

    [dir="rtl"] .scroll-top {
        left: 80px;
        right: auto;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 40px;
    }

    /* Cards */
    .card-image {
        height: 180px;
    }

    .card-body {
        padding: 20px;
    }
}

/* ─── Small Mobile (max-width: 480px) ─── */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.7rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}

/* ─── Large Desktop (min-width: 1400px) ─── */
@media (min-width: 1400px) {
    .container {
        max-width: 1360px;
    }
}
