/* =====================================================
   TYLOS EV - RESPONSIVE CSS
   Covers Mobile (≤767px), Tablet (768px–992px), Desktop (≥993px)
   ===================================================== */

/* =====================================================
   NAVBAR BEAUTIFICATION
   Taller, more refined navigation bar with smooth transitions
   ===================================================== */

/* --- Remove black background on ALL pages initially --- */
/* Base header: transparent by default (shows dark background only after scroll) */
header:not(.smaller):not(.header-mobile) {
    background: transparent !important;
    border-bottom: none !important;
    transition: background 0.4s ease, box-shadow 0.4s ease !important;
}

/* scroll-light pages (about, gallery, etc): white header once scrolled enough */
header.scroll-light:not(.smaller):not(.header-mobile) {
    background: rgba(255, 255, 255, 0.0) !important;
    border-bottom: none !important;
}

/* transparent pages (index): fully clear */
header.transparent:not(.smaller):not(.header-mobile) {
    background: transparent !important;
    border-bottom: none !important;
}

/* --- Increase navbar height via larger link padding --- */
#mainmenu > li > a {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    font-weight: 600 !important;
    transition: color 0.3s ease, opacity 0.3s ease !important;
}

/* --- Scrolled/smaller state stays proportional --- */
header.smaller #mainmenu > li > a {
    padding-top: 22px !important;
    padding-bottom: 22px !important;
}

/* --- White navbar on scroll (ALL pages) --- */
header.smaller {
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.10), 0 1px 0 0 rgba(200, 30, 30, 0.20) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

/* --- Logo size and hover animation --- */
#logo img {
    height: 52px !important;
    width: auto !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}

#logo:hover img {
    transform: scale(1.04) !important;
    opacity: 0.88 !important;
}

header.smaller #logo img {
    height: 42px !important;
    width: auto !important;
}

/* --- Active menu item accent underline animation --- */
/* --- Active menu item accent underline animation --- */
#mainmenu > li > a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 30px !important;
    top: auto !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: var(--primary-color) !important;
    transition: width 0.3s ease !important;
    border-radius: 2px !important;
}

#mainmenu > li:hover > a::after,
#mainmenu > li > a.active::after {
    width: 100% !important;
}

header.smaller #mainmenu > li > a::after {
    bottom: 14px !important;
    top: auto !important;
}

/* --- CTA button vertical alignment in taller bar --- */
.menu_side_area {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Global Overrides */
footer {
    padding-top: 20px !important;
}

/* Nav text: dark on all pages initially (background is transparent/white) */
header:not(.smaller):not(.header-mobile) #mainmenu a {
    color: #111111 !important;
}

/* --- Footer logo: use full stacked logo at a proper size --- */
footer img[src*="logo-full"] {
    height: 80px !important;
    width: auto !important;
}

/* White when any header scrolls — navbar is now always white after scroll */
header.smaller #mainmenu a {
    color: #111111 !important;
}

/* Black again when scroll-light header scrolls to white bg */
header.smaller.scroll-light #mainmenu li a {
    color: #111111 !important;
}

/* White background + black text in mobile hamburger menu overlay */
header.header-mobile {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}
header.header-mobile #mainmenu a {
    color: #000000 !important;
}
#menu-btn {
    color: #000000 !important;
    font-size: 24px !important;
    line-height: 32px !important;
}

/* Hide main menu by default when header is not open */
header.header-mobile:not(.menu-open) #mainmenu {
    display: none !important;
}

/* Premium fullscreen overlay navigation when mobile menu is open */
header.header-mobile.menu-open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease-in-out !important;
}

header.header-mobile.menu-open .container,
header.header-mobile.menu-open .row,
header.header-mobile.menu-open .col-md-12,
header.header-mobile.menu-open .de-flex {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Position Logo at top-left and Menu Button at top-right inside open menu */
header.header-mobile.menu-open .de-flex-col:first-child {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
}

header.header-mobile.menu-open .de-flex-col:last-child {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
}

header.header-mobile.menu-open .header-col-mid {
    display: block !important;
    margin-top: 60px !important;
}

header.header-mobile.menu-open #mainmenu {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    position: static !important;
}

header.header-mobile.menu-open #mainmenu > li {
    display: block !important;
    margin: 0 !important;
    opacity: 0;
    animation: fadeInMenu 0.4s forwards;
}

header.header-mobile.menu-open #mainmenu > li:nth-child(1) { animation-delay: 0.05s; }
header.header-mobile.menu-open #mainmenu > li:nth-child(2) { animation-delay: 0.1s; }
header.header-mobile.menu-open #mainmenu > li:nth-child(3) { animation-delay: 0.15s; }
header.header-mobile.menu-open #mainmenu > li:nth-child(4) { animation-delay: 0.2s; }
header.header-mobile.menu-open #mainmenu > li:nth-child(5) { animation-delay: 0.25s; }
header.header-mobile.menu-open #mainmenu > li:nth-child(6) { animation-delay: 0.3s; }

header.header-mobile.menu-open #mainmenu > li > a {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 8px 20px !important;
    transition: color 0.3s ease !important;
}

header.header-mobile.menu-open #mainmenu > li > a:hover {
    color: var(--primary-color) !important;
}

/* Dark Scheme Support for Mobile Menu */
body.dark-scheme header.header-mobile {
    background: #121212 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.dark-scheme header.header-mobile #mainmenu a {
    color: #ffffff !important;
}
body.dark-scheme #menu-btn {
    color: #ffffff !important;
}
body.dark-scheme header.header-mobile.menu-open {
    background: rgba(18, 18, 18, 0.98) !important;
}
body.dark-scheme header.header-mobile.menu-open #mainmenu > li > a {
    color: #ffffff !important;
}
body.dark-scheme header.header-mobile.menu-open #menu-btn {
    color: #ffffff !important;
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix "Book a Test Ride" button visibility on light/white headers */
.menu_side_area a.btn-line {
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.35) !important;
    background: transparent !important;
}
.menu_side_area a.btn-line:hover {
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    background: var(--primary-color) !important;
}

/* When the header scrolls to a dark background (homepage scrolled state), make the button white */
header.smaller:not(.scroll-light):not(.header-light) .menu_side_area a.btn-line {
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    background: transparent !important;
}
header.smaller:not(.scroll-light):not(.header-light) .menu_side_area a.btn-line:hover {
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    background: var(--primary-color) !important;
}

/* Align team social icons perfectly */
.team-member .relative {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.team-member .p-3.text-center {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}
.team-member .social-icons {
    margin-top: auto !important;
}

/* ── Jarallax: On mobile, show background-image naturally ── */
@media (max-width: 992px) {
    /* Section must be relative so the absolute img is positioned inside it */
    .jarallax {
        position: relative !important;
        overflow: hidden !important;
    }
    /* Make the jarallax-img act like a CSS background image */
    .jarallax-img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: right center !important;
        z-index: 0 !important;
    }
    /* Ensure content appears ABOVE the background image */
    .jarallax > .container,
    .jarallax > .wow,
    .jarallax > div {
        position: relative !important;
        z-index: 1 !important;
    }
}

/* ── TABLET (768px – 992px) ── */
@media (min-width: 768px) and (max-width: 992px) {
    .container {
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    h1 { font-size: 36px !important; line-height: 1.2 !important; }
    h2 { font-size: 28px !important; }
    .de-flex { flex-wrap: wrap !important; }
    #subheader h1 { font-size: 36px !important; }
}

/* ── MOBILE (≤767px) ── */
@media (max-width: 767px) {
    /* Base */
    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    #wrapper {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Container */
    .container, .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    /* Allow Bootstrap grid classes to behave normally on mobile */

    /* Sections full width */
    section, header, footer {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Force visibility and disable animations on mobile to prevent clipping */
    .wow {
        visibility: visible !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    /* Fix reversed feature blocks layout (Column 3) on mobile */
    .col-lg-4 .pr-90 {
        padding-right: 0 !important;
        padding-left: 90px !important;
    }
    .col-lg-4 .text-end {
        text-align: left !important;
    }
    .col-lg-4 .absolute.end-0 {
        right: auto !important;
        left: 0 !important;
    }
    .col-lg-4 .absolute.start-0 {
        left: auto !important;
        right: 0 !important;
    }

    /* Typography */
    h1, #subheader h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    h2 { font-size: 22px !important; }
    h3 { font-size: 18px !important; }
    p { font-size: 14px !important; }

    /* Hero Slider CTA Buttons Stacking */
    .sw-text-wrapper .flex-row {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 10px !important;
    }
    .sw-text-wrapper .flex-row a {
        width: 100% !important;
        max-width: 290px !important;
        text-align: center !important;
        margin: 4px 0 !important;
    }

    /* Header / Navigation */
    .mode-switch-wrapper {
        display: none !important;
    }
    .menu_side_area .btn-main,
    .menu_side_area .btn-line {
        display: none !important;
    }
    .de-flex {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }
    #logo img {
        max-width: 130px !important;
        height: auto !important;
    }

    /* Marquee */
    .de-marquee-list {
        overflow: hidden !important;
        max-width: 100vw !important;
    }

    /* Swiper slider */
    .swiper-container {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }
    .sw-caption {
        padding: 15px !important;
        max-width: 100% !important;
    }
    .sw-caption h1,
    .sw-caption .slider_text h1 {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }
    
    /* Scale down banner text and icons */
    .sw-text-wrapper h3 { font-size: 16px !important; }
    .sw-text-wrapper .fs-40 { font-size: 24px !important; margin-bottom: 0 !important; }
    .sw-text-wrapper .fs-18 { font-size: 14px !important; }
    .sw-text-wrapper .fs-14 { font-size: 11px !important; }
    .sw-text-wrapper .p-2 { padding: 8px 4px !important; }
    
    /* Force stats blocks to stay inline and shrink properly */
    .sw-text-wrapper .row {
        flex-wrap: nowrap !important;
        margin-left: -4px !important;
        margin-right: -4px !important;
    }
    .sw-text-wrapper .row > [class*="col-"] {
        padding-left: 4px !important;
        padding-right: 4px !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
    }
    
    /* Scale down scooter image */
    .slider-extra img {
        max-width: 80% !important;
        margin: 0 auto !important;
        display: block !important;
    }

    /* Subheader banner */
    #subheader {
        min-height: auto !important;
        padding: 80px 0 40px !important;
    }

    /* Footer */
    footer .col-lg-4,
    footer .col-sm-6 {
        margin-bottom: 30px !important;
    }

    /* CTA buttons */
    .btn-main, .btn-line {
        font-size: 13px !important;
        padding: 10px 18px !important;
    }

    /* Scooter grid */
    .scooter-grid {
        grid-template-columns: 1fr !important;
    }

    /* Testimonial card responsive layout on mobile */
    .soft-shadow {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        overflow: hidden !important;
    }
    .soft-shadow > img {
        position: relative !important;
        width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
        object-position: top !important;
        order: 1 !important;
        right: auto !important;
        top: auto !important;
    }
    .soft-shadow > div.w-60 {
        width: 100% !important;
        order: 2 !important;
        padding: 24px 24px 10px 24px !important;
    }
    .soft-shadow > div.w-60 blockquote {
        padding-bottom: 20px !important;
        margin-bottom: 0 !important;
    }
    .soft-shadow > div.absolute.start-0.bottom-0 {
        position: relative !important;
        order: 3 !important;
        padding-left: 24px !important;
        padding-bottom: 24px !important;
        left: auto !important;
        bottom: auto !important;
    }
    .soft-shadow > div.absolute.top-0.end-0 {
        z-index: 1010 !important;
        color: rgba(255, 255, 255, 0.8) !important;
    }
}


/* Custom Layouts for Mobile and Tablet (max 992px) */
@media (max-width: 992px) {
    /* Mobile Features Slider */
    .features-mobile-slider {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
    }
    .features-mobile-slider::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar for cleaner look */
    }

    /* Mobile Cards Slider */
    .cards-mobile-slider,
    .testi-mobile-slider {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px !important;
    }
    .cards-mobile-slider::-webkit-scrollbar,
    .testi-mobile-slider::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar for cleaner look */
    }
    .cards-mobile-slider > [class*="col-"] {
        flex: 0 0 85% !important;
        max-width: 85% !important;
        scroll-snap-align: start !important;
    }
    .testi-mobile-slider > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        scroll-snap-align: center !important;
        scroll-snap-stop: always !important;
    }

    /* Team slider on mobile */
    .team-mobile-slider {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        padding-bottom: 20px !important;
        margin-right: -12px !important;
        margin-left: -12px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        scroll-behavior: smooth;
    }
    .team-mobile-slider > .team-member {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        scroll-snap-align: center !important;
    }
    .team-mobile-slider::-webkit-scrollbar {
        display: none !important; 
    }
    .team-header-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        scroll-snap-align: start !important;
    }

    .features-mobile-slider > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        scroll-snap-align: start !important;
        padding-right: 0px !important; /* Remove right padding so it centers perfectly */
    }

    /* Split section layout on mobile (Image and Quote) */
    .section-split {
        display: flex !important;
        flex-direction: column !important;
    }
    .section-split .split-image {
        position: relative !important;
        height: 350px !important; /* Force a height so the image is visible */
        order: 1 !important; /* Put image on top */
        width: 100% !important;
    }
    .section-split .container {
        order: 2 !important; /* Put text below image */
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    /* Stats horizontal alignment on mobile */
    #content .row.stats-mobile-horizontal,
    #content .stats-mobile-horizontal,
    .row.stats-mobile-horizontal,
    .stats-mobile-horizontal {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    #content .row.stats-mobile-horizontal > [class*="col-"],
    #content .stats-mobile-horizontal > [class*="col-"],
    #content .stats-mobile-horizontal > div,
    .stats-mobile-horizontal > div {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
        padding: 0 4px !important;
        margin-bottom: 0 !important;
    }
    .stats-mobile-horizontal .de_count {
        padding-left: 0 !important;
        text-align: center !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    .stats-mobile-horizontal .de_count i {
        position: relative !important;
        display: block !important;
        font-size: 28px !important;
        margin-bottom: 8px !important;
        margin-top: 0 !important;
    }
    .stats-mobile-horizontal .de_count h3, 
    .stats-mobile-horizontal .de_count .timer {
        font-size: 20px !important;
        margin-bottom: 2px !important;
    }

    /* Force footer links horizontal layout */
    .footer-links-row {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    .footer-links-row > div {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Horizontal footer contact */
    .footer-contact-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 5px !important;
    }
    .footer-contact-item {
        flex: 1 !important;
        font-size: 10px !important;
        line-height: 1.3 !important;
    }
    .footer-contact-item .fw-bold {
        font-size: 11px !important;
        margin-bottom: 5px !important;
        display: flex !important;
        align-items: flex-start !important;
    }
    .footer-contact-item i {
        font-size: 14px !important;
        margin-right: 5px !important;
        margin-bottom: 0 !important;
        margin-top: -1px !important;
    }
    .footer-contact-spacer {
        display: none !important;
    }

    /* Images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    .img-fluid {
        width: 100% !important;
    }

    footer {
        padding-top: 20px !important;
    }
}

/* Global Footer Styles */
footer h5,
footer .widget h5 {
    color: #ffffff !important;
}

/* Keep subheader stats boxes horizontal on vehicle single pages */
#subheader .col-4,
.pt80 .col-4,
.subheader-stats .col-4 {
    width: 33.333% !important;
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
}

/* Dot 1 (first dot, top-right): Shift to display to the left (downwards) */
.de-dot:nth-child(2) .d-content,
.de-dot[style*="left:61%"] .d-content,
.de-dot[style*="left: 61%"] .d-content {
    position: absolute !important;
    right: 100% !important;
    left: auto !important;
    margin-left: 0 !important;
    margin-right: 15px !important;
    transform-origin: top right !important;
}

/* Dot 2 (second dot, bottom-right): Shift to display to the left and upwards */
.de-dot:nth-child(3) .d-content,
.de-dot[style*="top:77%"] .d-content,
.de-dot[style*="top: 77%"] .d-content {
    position: absolute !important;
    right: 100% !important;
    left: auto !important;
    bottom: 100% !important;
    top: auto !important;
    margin-left: 0 !important;
    margin-right: 15px !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    transform-origin: bottom right !important;
}

/* Dot 4 (fourth dot, bottom-left): Shift to display to the right and upwards */
.de-dot:nth-child(5) .d-content,
.de-dot[style*="top:66%"] .d-content,
.de-dot[style*="top: 66%"] .d-content {
    position: absolute !important;
    left: 100% !important;
    right: auto !important;
    bottom: 100% !important;
    top: auto !important;
    margin-right: 0 !important;
    margin-left: 15px !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    transform-origin: bottom left !important;
}

@media (max-width: 767px) {
    #subheader .col-4 .fs-40,
    .pt80 .col-4 .fs-40,
    .subheader-stats .col-4 .fs-40 {
        font-size: 28px !important;
    }
    #subheader .col-4 .fs-18,
    .pt80 .col-4 .fs-18,
    .subheader-stats .col-4 .fs-18 {
        font-size: 14px !important;
    }
    #subheader .col-4 .fs-14,
    .pt80 .col-4 .fs-14,
    .subheader-stats .col-4 .fs-14 {
        font-size: 11px !important;
    }
    #subheader .col-4 .p-2,
    .pt80 .col-4 .p-2,
    .subheader-stats .col-4 .p-2 {
        padding: 6px 4px !important;
    }

    /* Scale down dot tooltips on mobile screens to prevent overflow */
    .de-dot .d-content {
        width: 165px !important;
        padding: 12px 15px !important;
        font-size: 13px !important;
        line-height: 1.4em !important;
    }
}

/* =====================================================
   GLOBAL LAYOUT FIXES FOR MOBILE & TABLET (<= 991px)
   Forced container bounds, correct column stacking, and offsets
   ===================================================== */
@media only screen and (max-width: 991px) {
    /* Prevent horizontal scrolling on the root levels */
    html, body, #wrapper {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Force all sections and footers to be exactly full width */
    #content section, 
    footer {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Make containers fit exactly to viewport with 15px safe gutters */
    #content .container, 
    #content .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Force Bootstrap rows to wrap and span full width */
    #content .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    /* Force columns inside the content area to stack vertically by default */
    #content [class*="col-"] {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    
    /* Preserve horizontal layout for sliders, stats grid, and footer links */
    #content .features-mobile-slider > [class*="col-"],
    #content .cards-mobile-slider > [class*="col-"],
    #content .testi-mobile-slider > [class*="col-"],
    #content .team-mobile-slider > .team-member,
    #content .footer-links-row > div,
    #content .footer-contact-row > div,
    #content .subheader-stats .col-4,
    #content #subheader .col-4,
    #content .sw-text-wrapper .col-4,
    #content .slider-extra .col-4 {
        width: auto !important;
        flex-grow: 1 !important;
        max-width: none !important;
    }
    
    /* Mobile slider slide scaling overrides */
    #content .features-mobile-slider > [class*="col-"],
    #content .testi-mobile-slider > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    #content .cards-mobile-slider > [class*="col-"] {
        flex: 0 0 85% !important;
        max-width: 85% !important;
    }
    
    #content .row.stats-mobile-horizontal,
    #content .stats-mobile-horizontal {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
    
    #content .row.stats-mobile-horizontal > [class*="col-"],
    #content .stats-mobile-horizontal > [class*="col-"],
    #content .stats-mobile-horizontal > div {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
        padding: 0 4px !important;
    }
    
    #content .row.testi-mobile-slider,
    .row.testi-mobile-slider {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        scroll-padding-left: 15px !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 25px !important;
        gap: 20px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    #content .team-mobile-slider > .team-member {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Eliminate offset margin columns on mobile */
    #content [class*="offset-"] {
        margin-left: 0 !important;
    }
    
    /* Jarallax structural layer constraints */
    .jarallax > [id^="jarallax-container-"] {
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    .jarallax > div {
        width: 100vw !important;
    }
}

/* ══════════════════════════════════════════════════════
   HERO BANNER RESPONSIVE POLISH (ALL TABLETS & MOBILE ≤1199px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
    /* 1. Optimize banner padding and vertically center content */
    #content .sw-caption {
        padding: 20px 20px 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #content .sw-caption .spacer-double {
        height: 20px !important;
        display: block !important;
    }
    #content .sw-caption .spacer-single {
        height: 15px !important;
        display: block !important;
    }
    #content .sw-caption .spacer-30 {
        height: 15px !important;
        display: block !important;
    }

    /* 2. Increase scooter image size so it is LARGE, clear, and centered on iPads/tablets */
    #content .sw-caption .slider-extra.d-block.d-xl-none {
        margin: 15px 0 20px !important;
        text-align: center !important;
    }
    #content .sw-caption .slider-extra.d-block.d-xl-none img,
    #content .sw-caption .slider-extra img {
        max-width: 85% !important;
        max-height: 380px !important;
        width: auto !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
        object-fit: contain !important;
    }

    /* 3. Keep the 3 spec cards (Range, Speed, Power) in 1 horizontal row side-by-side */
    #content .sw-text-wrapper .row,
    #content .slider-extra .row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        margin-left: -6px !important;
        margin-right: -6px !important;
        gap: 8px !important;
        justify-content: center !important;
        align-items: stretch !important;
        max-width: 650px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    #content .sw-text-wrapper .row > [class*="col-"],
    #content .slider-extra .row > [class*="col-"],
    #content .sw-text-wrapper .col-4,
    #content .slider-extra .col-4 {
        width: 33.333% !important;
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    #content .sw-text-wrapper .bg-dark,
    #content .slider-extra .bg-dark {
        padding: 12px 6px !important;
        border-radius: 14px !important;
        text-align: center !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.06) !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    #content .sw-text-wrapper .fs-40,
    #content .slider-extra .fs-40 {
        font-size: 24px !important;
        margin-bottom: 3px !important;
    }
    #content .sw-text-wrapper .fs-18,
    #content .slider-extra .fs-18 {
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
    }
    #content .sw-text-wrapper .fs-14,
    #content .slider-extra .fs-14 {
        font-size: 11px !important;
        opacity: 0.65 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    /* 4. Make CTA buttons side-by-side horizontally and always visible above bottom banner */
    #content .sw-text-wrapper .d-flex.flex-row,
    #content .sw-text-wrapper .flex-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 500px !important;
        margin: 20px auto 30px !important;
    }
    #content .sw-text-wrapper .d-flex.flex-row a,
    #content .sw-text-wrapper .flex-row a {
        flex: 1 1 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        margin: 0 !important;
        padding: 14px 10px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        border-radius: 25px !important;
        line-height: 1.2 !important;
    }
}

/* Specific sizing adjustments for small mobile screens (≤767px) */
@media (max-width: 767px) {
    #content .sw-caption {
        padding: 10px 12px 25px !important;
    }
    #content .sw-caption .slider-extra.d-block.d-xl-none img,
    #content .sw-caption .slider-extra img {
        max-width: 92% !important;
        max-height: 230px !important;
    }
    #content .sw-text-wrapper .bg-dark,
    #content .slider-extra .bg-dark {
        padding: 8px 3px !important;
    }
    #content .sw-text-wrapper .fs-40,
    #content .slider-extra .fs-40 {
        font-size: 20px !important;
    }
    #content .sw-text-wrapper .fs-18,
    #content .slider-extra .fs-18 {
        font-size: 12px !important;
    }
    #content .sw-text-wrapper .d-flex.flex-row,
    #content .sw-text-wrapper .flex-row {
        margin: 15px auto 10px !important;
    }
    #content .sw-caption .spacer-single {
        display: none !important;
    }
    #content .sw-text-wrapper .d-flex.flex-row a,
    #content .sw-text-wrapper .flex-row a {
        padding: 11px 6px !important;
        font-size: 11px !important;
    }
}

/* =====================================================
   BANNER HEIGHT & SAFE TOP TEXT POSITIONING (FIRST LOAD & SCROLLED)
   ===================================================== */
#content .v-center,
.v-center,
.swiper,
.sw-overlay,
.swiper-inner,
.swiper-slide {
    position: relative !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    top: auto !important;
    transform: none !important;
}

#content .sw-caption,
.sw-caption {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    padding: 160px 20px 50px !important;
    height: auto !important;
    display: block !important;
}

#content .sw-caption .spacer-double,
#content .sw-caption .spacer-single {
    display: none !important;
}

@media (max-width: 991px) {
    #content .sw-caption,
    .sw-caption {
        padding: 150px 15px 40px !important;
    }
}

@media (max-width: 767px) {
    #content .sw-caption,
    .sw-caption {
        padding: 140px 12px 30px !important;
    }
}

/* =====================================================
   TESTIMONIALS HORIZONTAL SLIDER ON MOBILE & TABLET ONLY
   ===================================================== */
@media (max-width: 991px) {
    .de_testi_grid .row.testi-mobile-slider {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        scroll-padding-left: 15px !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 25px !important;
        gap: 20px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) rgba(0,0,0,0.05);
    }
    .de_testi_grid .row.testi-mobile-slider > [class*="col-"] {
        flex: 0 0 85% !important;
        max-width: 85% !important;
        width: 85% !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
        display: flex !important;
    }
    .de_testi_grid .row.testi-mobile-slider > [class*="col-"] .de_testi {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .de_testi_grid .row.testi-mobile-slider > [class*="col-"] .de_testi blockquote {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    .de_testi_grid .row.testi-mobile-slider::-webkit-scrollbar {
        height: 5px !important;
    }
    .de_testi_grid .row.testi-mobile-slider::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05) !important;
        border-radius: 10px !important;
    }
    .de_testi_grid .row.testi-mobile-slider::-webkit-scrollbar-thumb {
        background: var(--primary-color) !important;
        border-radius: 10px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .de_testi_grid .row.testi-mobile-slider > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        scroll-snap-align: center !important;
    }
}

/* =====================================================
   TESTIMONIAL CARDS: SAME WIDTH & HEIGHT, REDUCED SIZE & CENTERED
   ===================================================== */
/* ── Owl Carousel Flex Sizing & Center Alignment ── */
#testimonial-carousel .owl-stage {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

#testimonial-carousel .owl-item {
    display: flex !important;
    float: none !important;
    height: auto !important;
    justify-content: center !important;
}

#testimonial-carousel .item {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

/* ── Grid & Carousel Card Flex Height Equalizer ── */
.de_testi_grid .row.testi-mobile-slider > [class*="col-"] {
    display: flex !important;
    justify-content: center !important;
}

.de_testi.s2 {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 auto !important;
}

.de_testi.s2 blockquote {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 24px 24px 20px !important;
    border-radius: 16px !important;
}

.de_testi.s2 blockquote p {
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    margin-bottom: 14px !important;
    flex: 1;
}

.de_testi.s2 blockquote .star-rating {
    margin-top: auto !important;
}

/* =====================================================
   ABOUT PAGE IMAGES & BADGES: FULLY VISIBLE ON MOBILE & TABLET
   ===================================================== */
@media (max-width: 991px) {
    #content .about-image-wrapper,
    .about-image-wrapper {
        padding: 15px !important;
        margin-bottom: 25px !important;
        overflow: visible !important;
    }
    #content .about-image-wrapper .position-absolute.top-20,
    .about-image-wrapper .position-absolute.top-20 {
        width: auto !important;
        min-width: 125px !important;
        max-width: 65% !important;
        padding: 10px 16px !important;
        top: 15px !important;
        z-index: 5 !important;
        white-space: nowrap !important;
    }
    #content .about-image-wrapper .position-absolute.end-0,
    .about-image-wrapper .position-absolute.end-0 {
        right: 12px !important;
    }
    #content .about-image-wrapper .position-absolute.start-0,
    .about-image-wrapper .position-absolute.start-0 {
        left: 12px !important;
    }
    #content .about-image-wrapper .position-absolute.top-20 i,
    .about-image-wrapper .position-absolute.top-20 i {
        font-size: 28px !important;
        margin-bottom: 4px !important;
        display: block !important;
    }
    #content .about-image-wrapper .position-absolute.top-20 h5,
    .about-image-wrapper .position-absolute.top-20 h5 {
        font-size: 14px !important;
        margin-bottom: 0 !important;
        white-space: nowrap !important;
        letter-spacing: 0.5px !important;
    }
    #content .about-image-wrapper .bg-color-2,
    .about-image-wrapper .bg-color-2 {
        width: 90% !important;
        height: 80% !important;
        left: 5% !important;
        right: 5% !important;
        bottom: 0 !important;
    }
}

/* ══════════════════════════════════════════════════════════════════
   MOBILE MODAL FIX — Interest modal buttons stack vertically
   ══════════════════════════════════════════════════════════════════ */
@media only screen and (max-width: 767px) {

    /* Modal dialog fits within phone viewport */
    .modal-dialog {
        margin: 10px auto !important;
        max-width: calc(100vw - 20px) !important;
        width: 100% !important;
    }

    .modal-content {
        border-radius: 16px !important;
    }

    /* Stack the two buttons (Become a Customer / Become a Dealer) vertically */
    #interestModal .d-flex,
    .interest-modal-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    /* Make each button full-width and easy to tap */
    #interestModal .btn-main,
    #interestModal .d-flex a,
    #interestModal .d-flex button {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
    }

    /* Modal header and body text sizing */
    #interestModal h4,
    #interestModal h5 {
        font-size: 18px !important;
    }

    #interestModal p {
        font-size: 14px !important;
    }
}
