/*
 MotoGate — Responsive override v2
 Load AFTER style.css and any older responsive-fix files.
 Designed for normal responsive mode AND phones using "Desktop site".
*/

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: clip;
}

img {
    max-width: 100%;
}

/* Keep the desktop composition balanced */
@media (min-width: 992px) {
    .hero-section {
        min-height: max(720px, 100svh);
        display: flex;
        flex-direction: column;
        background-position: center bottom;
        background-size: cover;
    }

    .hero-main-wrapper {
        flex: 1 0 auto;
        display: flex;
        align-items: center;
        padding-block: clamp(1rem, 3vh, 2.5rem);
    }

    .hero-main-wrapper > .container-fluid {
        width: 100%;
    }

    .hero-main-wrapper .row {
        align-items: center;
    }

    .hero-text-side {
        max-width: 650px;
    }

    .hero-visual-side {
        position: relative;
        width: 100%;
        min-height: clamp(480px, 42vw, 680px);
    }

    .visual-tachometer-wrapper {
        top: 39%;
        left: 50%;
        width: 112%;
        max-width: 720px;
        transform: translate(-50%, -50%);
    }

    .bike-slider-container {
        width: 100%;
        max-width: 640px;
    }

    .bike-slides-wrapper {
        width: 100%;
        min-height: clamp(420px, 36vw, 540px);
    }

    .bike-slide {
        left: 50%;
        width: 100%;
    }

    .visual-motorcycle-img {
        width: 100%;
        max-width: 620px;
        height: auto;
        object-fit: contain;
    }
}

/* Tablet layout */
@media (min-width: 768px) and (max-width: 991px) {
    .nav-pill-wrapper,
    .btn-calc-pill-header {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
    }

    .hero-main-wrapper {
        display: block;
        padding: 1.25rem 0 2rem;
    }

    .hero-text-side {
        max-width: 720px;
        margin: 0 auto 1.25rem;
        padding-inline: 1.5rem;
        text-align: center;
    }

    .hero-main-title,
    .hero-subtext {
        text-align: center;
        margin-inline: auto;
    }

    .hero-brand-title {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-btn-wrapper {
        text-align: center;
    }

    .hero-visual-side {
        width: 100%;
        min-height: clamp(450px, 65vw, 590px);
    }

    .visual-tachometer-wrapper {
        top: 5%;
        left: 50%;
        width: min(96%, 600px);
        max-width: none;
        transform: translateX(-50%);
    }

    .bike-slider-container {
        width: 100%;
        max-width: 540px;
        margin-inline: auto;
    }

    .bike-slides-wrapper {
        min-height: clamp(340px, 46vw, 430px);
    }

    .bike-slide {
        left: 50%;
        width: 92%;
    }
}

/* Standard mobile layout */
@media (max-width: 767px) {
    .hero-section {
        min-height: 100svh;
        height: auto;
        padding-bottom: 0;
        background-position: center bottom;
        background-size: auto 100%;
        background-repeat: no-repeat;
    }

    .site-header {
        padding: 14px 0 8px;
    }

    .site-header > .container-fluid {
        padding-inline: 16px !important;
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .nav-pill-wrapper,
    .btn-calc-pill-header {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        padding: 0;
        font-size: 25px;
        border-radius: 14px;
    }

    .brand-logo {
        display: block;
        width: auto;
        height: 34px;
        max-width: 145px;
        object-fit: contain;
    }

    .hero-main-wrapper {
        display: block;
        padding: 10px 0 0;
    }

    .hero-main-wrapper > .container-fluid {
        padding-inline: 0 !important;
    }

    .hero-main-wrapper .row {
        display: flex;
        flex-direction: column;
        margin-inline: 0;
        --bs-gutter-x: 0;
        row-gap: 0;
    }

    .hero-main-wrapper .row > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        padding-inline: 0;
    }

    .hero-text-side {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        padding-inline: 18px;
        text-align: center;
        direction: ltr;
    }

    .hero-main-title {
        font-size: clamp(22px, 5.4vw, 30px);
        line-height: 1.4;
        margin: 0 0 5px;
        text-align: center;
        letter-spacing: 0;
    }

    .hero-brand-title {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 5px;
        font-size: clamp(25px, 6.5vw, 36px);
        line-height: 1.25;
        margin: 0 0 10px;
        text-align: center;
        letter-spacing: -0.4px;
    }

    .hero-subtext {
        max-width: 420px;
        margin: 0 auto 16px;
        padding: 0;
        font-size: clamp(14px, 3.6vw, 17px);
        line-height: 1.8;
        text-align: center;
    }

    .hero-subtext br {
        display: none;
    }

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

    .btn-hero-discover {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: min(100%, 372px);
        min-height: 58px;
        padding: 12px 18px;
        border-radius: 18px;
        font-size: clamp(16px, 4.2vw, 20px);
    }

    .hero-visual-side {
        position: relative;
        isolation: isolate;
        display: block;
        width: 100%;
        height: clamp(410px, 112vw, 540px);
        min-height: 0;
        margin-top: 8px;
    }

    .visual-tachometer-wrapper {
        position: absolute;
        top: 2%;
        left: 50%;
        width: min(108%, 480px);
        max-width: none;
        transform: translateX(-50%);
        z-index: 1;
        pointer-events: none;
    }

    .visual-tachometer-img {
        display: block;
        width: 100%;
        height: auto;
        filter: brightness(.78) contrast(1.07) saturate(.96);
    }

    .bike-slider-container {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        z-index: 2;
    }

    .bike-slides-wrapper {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        min-height: 0;
    }

    .bike-slide,
    .bike-slide.active {
        position: absolute;
        left: 50%;
        bottom: 16%;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        width: min(96%, 440px);
        max-width: none;
        transform: translateX(-50%);
    }

    .visual-motorcycle-img {
        display: block;
        width: 100%;
        max-width: 440px;
        max-height: 350px;
        height: auto;
        object-fit: contain;
        object-position: center bottom;
        filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .82));
    }

    .visual-bottom-bar {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        padding-inline: 12px;
        z-index: 5;
    }

    .slider-capsule-pill {
        flex: 0 1 auto;
        max-width: 58%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 6px 10px;
    }

    .capsule-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 26px;
        min-height: 28px;
        padding: 0;
    }

    .capsule-dots {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .capsule-dot {
        flex: 0 0 6px;
    }

    .capsule-dot.active {
        flex-basis: 20px;
    }

    .visual-specs-badge {
        position: static;
        display: inline-flex;
        flex: 0 1 auto;
        align-items: baseline;
        justify-content: flex-end;
        min-width: 0;
        gap: 4px;
        white-space: nowrap;
        direction: ltr;
        text-align: right;
    }

    .specs-brand {
        font-size: clamp(11px, 3.2vw, 15px);
    }

    .specs-model {
        font-size: clamp(15px, 4.7vw, 22px);
    }
}

/*
 IMPORTANT:
 Chrome's "Desktop site" can make the layout viewport wider than the phone.
 Use hardware input capabilities to restore the mobile layout on real phones.
*/
@media (hover: none) and (pointer: coarse) and (max-width: 1100px) {
    .nav-pill-wrapper,
    .btn-calc-pill-header {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        font-size: 25px;
    }

    .hero-main-wrapper {
        display: block;
        padding: 10px 0 0;
    }

    .hero-main-wrapper > .container-fluid {
        padding-inline: 0 !important;
    }

    .hero-main-wrapper .row {
        display: flex;
        flex-direction: column;
        margin-inline: 0;
        --bs-gutter-x: 0;
        row-gap: 0;
    }

    .hero-main-wrapper .row > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        padding-inline: 0;
    }

    .hero-text-side {
        max-width: 520px;
        margin: 0 auto;
        padding-inline: 18px;
        text-align: center;
    }

    .hero-main-title {
        font-size: clamp(22px, 5.4vw, 30px);
        line-height: 1.4;
        text-align: center;
    }

    .hero-brand-title {
        justify-content: center;
        flex-wrap: wrap;
        font-size: clamp(25px, 6.5vw, 36px);
        line-height: 1.25;
    }

    .hero-subtext {
        max-width: 420px;
        margin-inline: auto;
        font-size: clamp(14px, 3.6vw, 17px);
        text-align: center;
    }

    .hero-subtext br {
        display: none;
    }

    .hero-btn-wrapper {
        text-align: center;
    }

    .btn-hero-discover {
        width: min(100%, 372px);
        min-height: 58px;
    }

    .hero-visual-side {
        position: relative;
        isolation: isolate;
        display: block;
        width: 100%;
        height: clamp(410px, 112vw, 540px);
        min-height: 0;
        margin-top: 8px;
    }

    .visual-tachometer-wrapper {
        top: 2%;
        left: 50%;
        width: min(108%, 480px);
        max-width: none;
        transform: translateX(-50%);
    }

    .bike-slider-container {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .bike-slides-wrapper {
        position: absolute;
        inset: 0;
        min-height: 0;
    }

    .bike-slide,
    .bike-slide.active {
        left: 50%;
        bottom: 16%;
        width: min(96%, 440px);
        max-width: none;
        transform: translateX(-50%);
    }

    .visual-motorcycle-img {
        width: 100%;
        max-width: 440px;
        max-height: 350px;
        height: auto;
        object-fit: contain;
    }

    .visual-bottom-bar {
        bottom: 10px;
        padding-inline: 12px;
        gap: 8px;
    }

    .visual-specs-badge {
        position: static;
        transform: none;
        display: inline-flex;
        align-items: baseline;
        gap: 4px;
        white-space: nowrap;
    }

    .specs-brand {
        font-size: clamp(11px, 3.2vw, 15px);
    }

    .specs-model {
        font-size: clamp(15px, 4.7vw, 22px);
    }
}

@media (max-width: 380px), (hover: none) and (pointer: coarse) and (max-device-width: 380px) {
    .site-header > .container-fluid {
        padding-inline: 12px !important;
    }

    .brand-logo {
        height: 31px;
        max-width: 130px;
    }

    .hero-main-title {
        font-size: 21px;
    }

    .hero-brand-title {
        font-size: 25px;
        gap: 3px;
    }

    .hero-subtext {
        font-size: 13px;
    }

    .hero-visual-side {
        height: 420px;
    }

    .visual-tachometer-wrapper {
        width: 112%;
    }

    .bike-slide,
    .bike-slide.active {
        width: 98%;
        bottom: 17%;
    }

    .visual-motorcycle-img {
        max-height: 290px;
    }

    .visual-bottom-bar {
        padding-inline: 8px;
        gap: 4px;
    }

    .slider-capsule-pill {
        gap: 3px;
        padding-inline: 6px;
    }

    .specs-brand {
        font-size: 10px;
    }

    .specs-model {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bike-slide,
    .btn-hero-discover,
    .visual-specs-badge {
        transition: none !important;
    }
}

