/* ============================================
   NOVARIDE - TABLET PORTRAIT FIXES
   Force mobile layout on tablet portrait (768px - 900px)
   ============================================ */

/* ═══════════════════════════════════════════════════════════════
   GLOBAL: Force tablet portrait to use MOBILE layout
   This extends mobile behavior to tablets in portrait orientation
   ═══════════════════════════════════════════════════════════════ */

/* ========== COLLECTION GRID - CAROUSEL LIKE MOBILE ========== */
@media (min-width: 768px) and (max-width: 900px) {

    /* Large padding centers the card and hides next/prev cards */
    .collection-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 20px !important;
        padding: 20px calc((100vw - 400px) / 2) !important;
        max-width: 100vw !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        grid-template-columns: none !important;
    }

    .collection-grid .collection-card {
        flex: 0 0 400px !important;
        max-width: 400px !important;
        min-width: 400px !important;
        scroll-snap-align: center !important;
    }

    /* Show carousel indicators */
    .collection-scroll-fade,
    .collection-dots,
    .collection-swipe-hint {
        display: flex !important;
    }

    .collection-scroll-fade {
        display: block !important;
    }

    /* Active card effect like mobile */
    .collection-card.active-card {
        border-color: rgba(16, 185, 129, 0.35) !important;
        transform: translateY(-8px) scale(1.02) !important;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(16, 185, 129, 0.12) !important;
    }

    .collection-card.active-card::before {
        opacity: 1 !important;
    }

    .collection-card.active-card .collection-image img {
        transform: scale(1.05) !important;
    }

    .collection-card:not(.active-card) {
        opacity: 0.7 !important;
        transform: scale(0.95) !important;
    }
}

/* ========== ESSENCE GRID - SINGLE COLUMN LIKE MOBILE ========== */
@media (min-width: 768px) and (max-width: 900px) {
    .essence-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        max-width: 450px !important;
        margin: 0 auto !important;
        padding: 0 16px !important;
    }

    .essence-pillar {
        max-width: 100% !important;
    }

    .essence-section {
        padding: 80px 0 !important;
    }

    /* Active card effect */
    .essence-pillar.active-card {
        border-color: rgba(16, 185, 129, 0.5) !important;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(16, 185, 129, 0.2) !important;
        transform: translateY(-5px) !important;
    }

    .essence-pillar:not(.active-card) {
        opacity: 0.7 !important;
        transform: scale(0.95) !important;
    }
}

/* ========== CITIES GRID - SINGLE COLUMN LIKE MOBILE ========== */
@media (min-width: 768px) and (max-width: 900px) {
    .cities-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    .cities-section {
        padding: 80px 0 !important;
    }

    /* Active card effect */
    .city-card.active-card {
        transform: translateY(-10px) !important;
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.15) !important;
    }

    .city-card.active-card img {
        transform: scale(1.1) !important;
    }

    .city-card:not(.active-card) {
        opacity: 0.7 !important;
        transform: scale(0.95) !important;
    }
}

/* ========== TRUST GRID - SINGLE COLUMN LIKE MOBILE ========== */
@media (min-width: 768px) and (max-width: 900px) {
    .trust-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    .trust-section {
        padding: 80px 0 !important;
    }

    .trust-header {
        margin-bottom: 48px !important;
    }

    .trust-card {
        padding: 40px 24px !important;
    }

    .trust-value {
        font-size: 2.2rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER - APPLE-LEVEL HORIZONTAL DESIGN
   Smart 2x2 grid for link sections, brand at top, elegant & compact
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 900px) {

    /* Footer container - compact */
    .footer {
        padding: 48px 0 32px !important;
    }

    /* Smart grid: brand full-width, then 2x2 for links */
    .footer-grid,
    .footer-grid-5 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px 32px !important;
        max-width: 700px !important;
        margin: 0 auto !important;
    }

    /* Brand takes full width at top - left aligned */
    .footer-brand {
        grid-column: 1 / -1 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 20px !important;
        text-align: left !important;
        padding-bottom: 24px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        margin-bottom: 8px !important;
    }

    .footer-logo {
        flex-shrink: 0 !important;
    }

    .footer-logo-img {
        height: 26px !important;
    }

    .footer-brand-description {
        max-width: 280px !important;
        margin: 0 !important;
        text-align: left !important;
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
        color: rgba(255, 255, 255, 0.5) !important;
    }

    /* Each link section in 2x2 grid - left aligned for professional look */
    .footer-grid-5>div:not(.footer-brand) {
        text-align: left !important;
    }

    /* Compact section titles */
    .footer-title {
        font-size: 0.65rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.12em !important;
        text-transform: uppercase !important;
        color: rgba(255, 255, 255, 0.35) !important;
        margin-bottom: 12px !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }

    /* Compact links - left aligned */
    .footer-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .footer-link {
        font-size: 0.85rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
        transition: color 0.3s ease !important;
    }

    .footer-link:hover {
        color: var(--nova-green) !important;
    }

    .footer-link::before {
        display: none !important;
    }

    /* Footer bottom - horizontal */
    .footer-bottom {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 16px !important;
        padding-top: 24px !important;
        margin-top: 24px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .footer-copyright {
        font-size: 0.7rem !important;
        color: rgba(255, 255, 255, 0.4) !important;
        line-height: 1.4 !important;
    }

    /* Social icons - compact */
    .footer-social {
        display: flex !important;
        gap: 16px !important;
    }

    .footer-social a {
        color: rgba(255, 255, 255, 0.4) !important;
        transition: all 0.3s ease !important;
    }

    .footer-social a:hover {
        color: var(--nova-green) !important;
    }

    .footer-social svg,
    .footer-social .icon {
        width: 18px !important;
        height: 18px !important;
    }
}

/* ========== HERO SECTION ========== */
@media (min-width: 768px) and (max-width: 900px) {
    .hero-flagship-content {
        padding: 0 20px !important;
        max-width: 100% !important;
    }

    .hero-flagship-headline {
        font-size: clamp(2rem, 8vw, 2.8rem) !important;
    }

    .hero-flagship-subline {
        font-size: 0.7rem !important;
    }

    .hero-flagship-cta {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
    }

    .btn-flagship-primary,
    .btn-flagship-secondary {
        padding: 16px 32px !important;
        font-size: 0.95rem !important;
        width: auto !important;
        min-width: 220px !important;
    }

    /* Scroll indicator centered */
    .hero-scroll-indicator {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
}

/* ========== TESTIMONIAL SECTION ========== */
@media (min-width: 768px) and (max-width: 900px) {
    .testimonial-section {
        padding: 80px 0 !important;
    }

    .testimonial-quote {
        font-size: 1.3rem !important;
        padding: 0 20px !important;
    }
}

/* ========== FINAL CTA SECTION ========== */
@media (min-width: 768px) and (max-width: 900px) {
    .final-cta-headline {
        font-size: clamp(2rem, 6vw, 3rem) !important;
    }

    .final-cta-btn {
        padding: 16px 36px !important;
        font-size: 1rem !important;
    }
}

/* ========== NAV - MOBILE STYLE ========== */
@media (min-width: 768px) and (max-width: 900px) {
    .nav-inner {
        padding: 0 20px !important;
    }

    .nav-logo-img {
        height: 40px !important;
    }

    .nav.scrolled .nav-logo-img {
        height: 32px !important;
    }

    /* Show hamburger menu */
    .nav-toggle {
        display: flex !important;
    }

    /* Hide desktop nav menu - show as overlay */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 16px !important;
        background: rgba(0, 0, 0, 0.98) !important;
        backdrop-filter: blur(50px) !important;
        z-index: 99999 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: scale(0.95) !important;
        transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }

    .nav-menu.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: scale(1) !important;
    }

    .nav-link {
        font-size: 1.8rem !important;
        font-weight: 300 !important;
        padding: 16px 32px !important;
    }

    .nav-cta {
        margin-left: 0 !important;
        margin-top: 32px !important;
        font-size: 1rem !important;
        padding: 16px 40px !important;
    }
}

/* ========== SCROLL-TO-TOP BUTTON ========== */
@media (min-width: 768px) and (max-width: 900px) {

    #scrollToTop,
    .scroll-to-top {
        left: 24px !important;
        right: auto !important;
        bottom: 24px !important;
    }
}

/* ========== CONTAINER PADDING ========== */
@media (min-width: 768px) and (max-width: 900px) {
    .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CAROUSEL DOTS & SWIPE HINTS - TABLET PORTRAIT
   Same as mobile experience for consistent UX
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 900px) {

    /* ========== GENERIC CAROUSEL DOTS ========== */
    .carousel-dots,
    .collection-dots,
    .testimonial-dots,
    .blog-carousel-dots,
    .scooter-dots,
    .accessory-dots,
    [class*="-dots"] {
        display: flex !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 16px 0 !important;
        margin-top: 16px !important;
    }

    .carousel-dots .dot,
    .collection-dots .dot,
    .testimonial-dots .dot,
    [class*="-dots"] .dot {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border: none !important;
        cursor: pointer !important;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }

    .carousel-dots .dot:hover,
    .collection-dots .dot:hover,
    [class*="-dots"] .dot:hover {
        background: rgba(255, 255, 255, 0.5) !important;
        transform: scale(1.2) !important;
    }

    .carousel-dots .dot.active,
    .collection-dots .dot.active,
    .testimonial-dots .dot.active,
    [class*="-dots"] .dot.active {
        width: 24px !important;
        border-radius: 10px !important;
        background: var(--nova-green) !important;
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.5) !important;
    }

    /* ========== SWIPE HINTS ========== */
    .swipe-hint,
    .collection-swipe-hint,
    .carousel-swipe-hint,
    [class*="-swipe-hint"] {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        color: rgba(255, 255, 255, 0.5) !important;
        font-size: 0.8rem !important;
        font-weight: 500 !important;
        letter-spacing: 0.05em !important;
        padding: 12px 0 !important;
        animation: tabletSwipePulse 2s ease-in-out infinite !important;
    }

    .swipe-hint svg,
    .collection-swipe-hint svg,
    [class*="-swipe-hint"] svg {
        width: 18px !important;
        height: 18px !important;
        animation: tabletSwipeArrow 1.5s ease-in-out infinite !important;
    }

    @keyframes tabletSwipePulse {

        0%,
        100% {
            opacity: 0.5;
        }

        50% {
            opacity: 1;
        }
    }

    @keyframes tabletSwipeArrow {

        0%,
        100% {
            transform: translateX(0);
        }

        50% {
            transform: translateX(6px);
        }
    }

    /* Hide swipe hint after user interaction */
    .swipe-hint.hidden,
    .collection-swipe-hint.hidden,
    [class*="-swipe-hint"].hidden {
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.5s ease !important;
    }

    /* ========== SCROLL FADE INDICATORS ========== */
    .scroll-fade,
    .collection-scroll-fade,
    [class*="-scroll-fade"] {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 60px !important;
        pointer-events: none !important;
        z-index: 5 !important;
    }

    .scroll-fade.left,
    .collection-scroll-fade.left,
    [class*="-scroll-fade"].left {
        left: 0 !important;
        background: linear-gradient(90deg, rgba(10, 10, 10, 0.8) 0%, transparent 100%) !important;
    }

    .scroll-fade.right,
    .collection-scroll-fade.right,
    [class*="-scroll-fade"].right {
        right: 0 !important;
        background: linear-gradient(-90deg, rgba(10, 10, 10, 0.8) 0%, transparent 100%) !important;
    }

    /* ========== GENERIC ACTIVE CARD EFFECTS FOR ALL CAROUSELS ========== */

    /* Scooter cards */
    .scooter-card.active-card,
    .product-card.active-card {
        border-color: rgba(16, 185, 129, 0.35) !important;
        transform: translateY(-10px) scale(1.02) !important;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(16, 185, 129, 0.12) !important;
    }

    .scooter-card:not(.active-card),
    .product-card:not(.active-card) {
        opacity: 0.7 !important;
        transform: scale(0.95) !important;
    }

    /* Blog article cards */
    .blog-card.active-card,
    .article-card.active-card {
        border-color: rgba(16, 185, 129, 0.35) !important;
        transform: translateY(-8px) scale(1.02) !important;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(16, 185, 129, 0.1) !important;
    }

    .blog-card:not(.active-card),
    .article-card:not(.active-card) {
        opacity: 0.7 !important;
        transform: scale(0.95) !important;
    }

    /* Accessory cards */
    .accessory-card.active-card {
        border-color: rgba(16, 185, 129, 0.35) !important;
        transform: translateY(-8px) scale(1.02) !important;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(16, 185, 129, 0.12) !important;
    }

    .accessory-card.active-card::before {
        opacity: 1 !important;
    }

    .accessory-card.active-card .card-image {
        transform: scale(1.05) !important;
    }

    .accessory-card:not(.active-card) {
        opacity: 0.7 !important;
        transform: scale(0.95) !important;
    }

    /* Service cards */
    .service-card.active-card {
        border-color: rgba(16, 185, 129, 0.4) !important;
        transform: translateY(-8px) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(16, 185, 129, 0.1) !important;
    }

    .service-card:not(.active-card) {
        opacity: 0.7 !important;
        transform: scale(0.95) !important;
    }

    /* Feature cards */
    .feature-card.active-card {
        border-color: rgba(16, 185, 129, 0.4) !important;
        transform: translateY(-5px) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 25px rgba(16, 185, 129, 0.1) !important;
    }

    .feature-card:not(.active-card) {
        opacity: 0.75 !important;
        transform: scale(0.97) !important;
    }

    /* Testimonial cards */
    .testimonial-card.active-card {
        border-color: rgba(16, 185, 129, 0.35) !important;
        transform: scale(1.02) !important;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.12) !important;
    }

    .testimonial-card:not(.active-card) {
        opacity: 0.6 !important;
        transform: scale(0.92) !important;
    }

    /* FAQ items */
    .faq-item.active-card {
        border-color: rgba(16, 185, 129, 0.3) !important;
    }

    /* Generic cards */
    .card.active-card,
    .card-glass.active-card {
        border-color: rgba(16, 185, 129, 0.35) !important;
        transform: translateY(-5px) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 25px rgba(16, 185, 129, 0.1) !important;
    }

    .card:not(.active-card),
    .card-glass:not(.active-card) {
        opacity: 0.75 !important;
        transform: scale(0.97) !important;
    }

    /* ========== HORIZONTAL CAROUSEL LAYOUTS FOR GRIDS ========== */

    /* Generic grid to horizontal carousel */
    .grid-3,
    .grid-4,
    .testimonials-grid,
    .blog-grid,
    .services-grid,
    .features-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 16px !important;
        padding: 20px 5% !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .grid-3::-webkit-scrollbar,
    .grid-4::-webkit-scrollbar,
    .testimonials-grid::-webkit-scrollbar,
    .blog-grid::-webkit-scrollbar,
    .services-grid::-webkit-scrollbar,
    .features-grid::-webkit-scrollbar {
        display: none !important;
    }

    .grid-3>*,
    .grid-4>* {
        flex: 0 0 85% !important;
        max-width: 400px !important;
        scroll-snap-align: center !important;
    }

    .testimonials-grid>*,
    .blog-grid>*,
    .services-grid>*,
    .features-grid>* {
        flex: 0 0 88% !important;
        max-width: 420px !important;
        scroll-snap-align: center !important;
    }

    /* All cards have smooth transitions */
    .collection-card,
    .scooter-card,
    .product-card,
    .blog-card,
    .article-card,
    .accessory-card,
    .service-card,
    .feature-card,
    .testimonial-card,
    .card,
    .card-glass {
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
}