/* ============================================= */
/* RESET & BASE STYLES                           */
/* ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
    width: 100%;
}

/* ============================================= */
/* PAGE LOADER                                   */
/* ============================================= */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
}

.page-loader-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid #e5e5e5;
    border-top-color: #000;
    border-radius: 50%;
    animation: page-loader-spin 0.8s linear infinite;
}

@keyframes page-loader-spin {
    to { transform: rotate(360deg); }
}

/* No overflow-x:hidden here (or on html) — setting only one axis to a
   non-visible value forces the browser to silently compute the other axis
   as 'auto', which breaks position:sticky for every descendant on the
   page. Every section has been verified to have zero horizontal overflow
   at any width without needing this. */
body {
    font-family: 'Rajdhani', sans-serif;
    color: #000;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

/* ============================================= */
/* TOP HEADER — Black Bar                        */
/* ============================================= */
/* The header is sticky, so anchored sections need to stop clear of it
   rather than sliding underneath when a nav link is clicked. */
[id] {
    scroll-margin-top: 90px;
}

.top-header {
    background: #000;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
}

/* —— Logo (actual image) —— */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

/* —— Top Nav Links (moved in from the old white sub-header, plus a
   trailing brand logo as the last item) —— */
.top-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.top-nav a {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.top-nav a:hover {
    opacity: 0.65;
}

/* —— Hover / active underline — text links and the brand logo links —— */
.top-nav a {
    position: relative;
    padding-bottom: 4px;
}

.top-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.top-nav a:hover::after,
.top-nav a.is-active::after {
    transform: scaleX(1);
}

/* The logo links have no text colour of their own, so currentColor
   would inherit the header white — pin it explicitly instead. */
.nav-brand-link::after {
    background: #fff;
}

.top-nav a.is-active {
    opacity: 1;
    font-weight: 700;
}

.nav-brand-link {
    display: flex;
    align-items: center;
}

.nav-brand-img {
    height: 15px;
    width: auto;
    object-fit: contain;
}

/* —— Header Right Buttons —— */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.btn-e-bicycle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #fff;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-e-bicycle:hover {
    background: #f0f0f0;
}

/* —— Hamburger toggle: lives in the black top header now (hidden on desktop) —— */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================= */
/* HERO SECTION                                  */
/* ============================================= */
/* Desktop + iPad: full-viewport banner. Mobile (<=768px) drops to 45vh —
   see the responsive block below. */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 500px;
    overflow: hidden;
    background: #8f8579; /* matches the photo's studio backdrop, fills any letterbox bars on mobile */
}

/* —— Hero Slider —— */
.hero-slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
    touch-action: pan-y;   /* lets vertical page scroll through, we handle horizontal swipe */
}

/* One row of N slides, each 100% wide; JS translates by -index * 100%. */
.hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.hero-track.no-anim {
    transition: none;
}

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #8f8579;
}

/* Same sizing rules for <img> and <video> so image and video slides are
   interchangeable in the config. */
.hero-slide img,
.hero-slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* —— Arrows —— */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.hero-nav:hover {
    background: rgba(0, 0, 0, 0.6);
}

.hero-prev { left: 16px; }
.hero-next { right: 16px; }

/* Chevron drawn from a rotated square, so no icon font/asset is needed. */
.hero-nav span {
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.hero-prev span {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.hero-next span {
    transform: rotate(45deg);
    margin-right: 3px;
}

/* —— Dots —— */
.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-dot.is-active {
    background: #fff;
    transform: scale(1.3);
}

/* Single-slide config: nothing to navigate to. */
.hero-slider.is-single .hero-nav,
.hero-slider.is-single .hero-dots {
    display: none;
}

/* —— Hero Overlay (content layer on top of banner) —— */
.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* —— Bottom-Left: Reserve Button —— */
/* left: 10% lines the button up with the left edge of the "R" in the
   "R21" wordmark baked into the hero photo. Pixel-measured in the source
   image (R starts at x=291 of 1920px) then re-derived through the actual
   object-fit:cover crop math for typical desktop viewport ratios — the
   raw image fraction (291/1920=15%) is NOT the on-screen fraction once
   cover crops the sides. */
.hero-bottom-left {
    position: absolute;
    bottom: 40px;   /* clears the dot row at the bottom of the slider */
    left: 15%;
}

.btn-reserve {
    display: inline-block;
    padding: 14px 28px;
    background: #fff;
    color: #000;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.35s ease;
    pointer-events: auto;
}

.btn-reserve:hover {
    background: #f0f0f0;
}

/* ============================================= */
/* RESPONSIVE                                    */
/* ============================================= */
@media (max-width: 1024px) {
    .top-header-inner {
        padding: 0 28px;
        gap: 30px;
    }

}

@media (max-width: 768px) {
    .top-header-inner {
        padding: 0 20px;
        height: 48px;
        gap: 20px;
    }

    .logo-img {
        height: 28px;
    }

    .btn-e-bicycle {
        padding: 7px 10px;
        font-size: 11px;
        letter-spacing: 1px;
    }

    .header-right {
        gap: 6px;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
        margin-right: 0;
    }

    /* .top-nav is now the hamburger-controlled dropdown (it holds all the
       links moved in from the old white sub-header, plus the trailing
       brand logo) — hidden by default, shown as a dropdown via JS toggling
       .open. This will get a proper pass in the next round; kept
       functionally equivalent to the old dropdown for now. .top-header's
       existing position:sticky already serves as the containing block for
       the absolute dropdown below — no extra positioning needed here. */
    .top-nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: auto;
        margin: 0;
        background: #fff;
        border-bottom: 1px solid #e5e5e5;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
        padding: 8px 20px 16px;
        z-index: 998;
    }

    .top-nav.open {
        display: flex;
    }

    .top-nav a {
        width: 100%;
        padding: 12px 0;
        color: #000;
        font-size: 13px;
        letter-spacing: 1.2px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* In the dropdown the links are full-width rows on white, so the
       sliding underline sits above the row separator and goes dark. */
    .top-nav a::after,
    .nav-brand-link::after {
        bottom: 6px;
        background: #000;
    }

    .nav-brand-link {
        width: 100%;
        padding: 12px 0;
    }

    /* The logo is white (for the black header) but the mobile dropdown
       has a white background — invert it here so it stays visible. */
    .nav-brand-img {
        filter: invert(1);
    }

    .hero {
        height: 55vh;
        min-height: 360px;
    }

    .hero-nav {
        width: 32px;
        height: 32px;
    }

    .hero-nav span {
        width: 8px;
        height: 8px;
    }

    .hero-prev { left: 8px; }
    .hero-next { right: 8px; }

    .hero-dots {
        bottom: 10px;
        gap: 6px;
    }

    .hero-dot {
        width: 7px;
        height: 7px;
    }

    /* Hero-Banner_mobile.png is purpose-built portrait art (R21 + tagline +
       description + bike all pre-composed), so no crop-position hack is
       needed here — center is correct. Button centers below the bike. */
    /* Sits above the dot row (bottom: 10px) rather than on top of it. */
    .hero-bottom-left {
        bottom: 34px;
        left: 50%;
        transform: translateX(-50%);
    }

    .btn-reserve {
        padding: 11px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-bottom-left {
        bottom: 30px;
    }

    .btn-reserve {
        padding: 9px 16px;
        font-size: 11px;
    }
}

/* ============================================= */
/* OVERVIEW / FEATURES SECTION                   */
/* ============================================= */
.overview-section {
    padding: 80px 0 0 0;
    background-color: #fff;
    text-align: center;
    position: relative;
    overflow: visible;
    z-index: 10;
}

/* Scroll-pin mechanism for the color cycle: this track is tall (extra
   scroll runway beyond the sticky content's own height), and
   .overview-sticky pins to the top of the viewport for that whole
   distance. JS (scripts.js) reads scroll progress through this track to
   pick which color/image is showing. Once the track's height is used up,
   the sticky content releases and the page continues to Section 3 as normal. */
.overview-scroll-track {
    position: relative;
    height: 500vh;
}

/* Deliberately NOT centered/min-height:100vh — that decoupled the bike's
   actual on-screen position from the box edge Section 3's overlap math is
   calibrated against, leaving a dead black gap before the R21 text.
   Natural top-aligned height keeps the bike's bottom edge close to where
   Section 3 picks up, same as desktop. Pin stays active at every screen
   size — the page can't scroll past this section until the last color has
   shown, by design. */
.overview-sticky {
    position: sticky;
    top: 70px;
    padding-top: 0px;
}

.overview-header {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.overview-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #222;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.overview-title {
    font-size: 58px;
    font-weight: 500;
    color: #111;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.color-pill {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 6px 16px 6px 30px;
    border: 1px solid #111;
    border-radius: 30px;
}

.color-dot {
    position: absolute;
    left: -22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #d1b894;
    border: 1px solid #111;
}

.color-name {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

/* Content layout — every value below is a fraction of this container's own
   width (via % or aspect-ratio), so the whole quadrant composition scales
   continuously at any screen size instead of jumping between breakpoints.
   Reference: desktop was tuned at a 1200px-wide container. */
.overview-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 1200 / 600; /* replaces the old fixed height: 600px */
}

.bike-circle {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48.33%; /* 580 / 1200 */
    aspect-ratio: 1 / 1;
    height: auto;
    background-color: #6c635a;
    border-radius: 50%;
    z-index: 1;
}

.bike-top-image {
    position: absolute;
    top: -8.33%; /* -50 / 600 */
    left: 50%;
    transform: translateX(-50%);
    height: 175%; /* 1050 / 600 — deliberately taller than the box; it's meant to bleed into Section 3 below, matching desktop */
    width: auto;
    z-index: 2;
    object-fit: contain;
}

/* Feature Blocks */
.feature-block {
    position: absolute;
    z-index: 3;
    text-align: center;
    max-width: 32%;
}

.feature-block h3 {
    font-size: clamp(11px, 1.7vw, 20px);
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.feature-block p {
    font-size: clamp(11px, 1.7vw, 19px);
    font-weight: 400;
    color: #555;
    line-height: 1.3;
}

/* Specific Positions — was calc(50% + 300px), i.e. 25% of the 1200px
   reference width; nudged to 28% so text always clears the bike/circle
   edge (~24% from center) instead of grazing it at small sizes. */
.fb-top-left {
    top: 15%;
    right: 78%;
}

.fb-bottom-left {
    top: 68%;
    right: 78%;
}

.fb-top-right {
    top: 15%;
    left: 78%;
}

.fb-bottom-right {
    top: 68%;
    left: 78%;
}

/* ---------- Overview Responsive ---------- */
/* The quadrant composition itself (circle, bike, 4 callouts) is fully fluid
   now — see .overview-content/.bike-circle/.bike-top-image/.feature-block
   above — so it doesn't need to change shape at any breakpoint. Only the
   title needs a manual step down, since it doesn't scale with the bike. */
@media (max-width: 1024px) {
    .overview-section {
        padding-top: 60px;
    }

    .overview-title {
        font-size: 36px;
    }

    .overview-scroll-track {
        height: 350vh;
    }
}

@media (max-width: 480px) {
    .overview-title {
        font-size: 26px;
    }
}

/*======================================
SECTION 3
=======================================*/
/* Now nested inside .overview-sticky (see index.html) — no margin trick
   needed to reach up and overlap the bike, since it's already directly
   adjacent in the same pinned block. padding-top just clears the bike's
   own natural bleed (bike-top-image overflows its box regardless of this
   section's position) — same fluid formula at every screen size. */
.section-3 {
    position: relative;
    background: #121212;
    margin-top: 0;
    padding-top: clamp(120px, 51.667vw, 620px);
    padding-bottom: 90px;
    overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
}

.r21-bg {
    position: absolute;
    top: -2%;
    left: 50%;
    transform: translateX(-50%);

    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(60px, 52.667vw, 473px);
    font-weight: 600;
    letter-spacing: clamp(-16px, -1.333vw, -6px);
    /* letter-spacing: clamp(-16px, -1.333vw, -6px); */
    line-height: 0.8;

    /* lighter gray at top, fading to bg color lower down — this time actually visible */
    background: linear-gradient(180deg, #5c5850 0%, #47443e 40%, #2a2825 70%, #121212 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: 0;
    user-select: none;
    pointer-events: none;
}

/* Cards */
.section3-content {
    position: relative;
    z-index: 5;
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Divider */
.divider {
    width: 1px;
    background: #4d4d4d;
    height: 72px;
    margin: 0 44px;
    align-self: center;
}

/* Card */
.feature-card {
    width: 300px;
    text-align: center;
}

.feature-card h3 {
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    font-size: 23px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.3;
}

.feature-card p {
    font-family: 'Rajdhani', sans-serif;
    color: #a8a8a8;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
}

/* Bottom Heading — width-matched to card row, smaller size */
.bottom-heading {
    margin-top: 90px;
    margin-inline: auto;
    max-width: 1160px;   /* ⬅ matches .section3-content width, so it wraps at the same edges */
    text-align: center;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 44px;     /* ⬇ reduced from 54px to match SS proportions */
    font-weight: 600;
    letter-spacing: 0px;
    text-transform: uppercase;
    line-height: 1.2;
    padding: 0 20px;
    white-space: nowrap;  /* keeps it on one line like the SS, remove if it overflows on smaller screens */
}

@media (max-width: 1300px) {
    .bottom-heading { white-space: normal; font-size: 36px; }
}

/* .section-3 margin/padding are fixed/fluid now (see base rules above) —
   only the card layout itself needs to change shape at narrower widths. */
@media (max-width: 1024px) {
    .section3-content { flex-wrap: wrap; justify-content: center; row-gap: 40px; }
    .divider { display: none; }
    .bottom-heading { margin-top: 60px; }
}

@media (max-width: 768px) {
    .section-3 {
        padding-bottom: 70px;
    }
    .section3-content {
        flex-direction: column;
        gap: 0;
    }
    .feature-card {
        width: 100%;
        max-width: 320px;
        padding: 28px 12px;
    }
    .divider {
        display: block;
        width: 60px;
        height: 1px;
        margin: 0 auto;
    }
    .bottom-heading {
        font-size: 26px;
        white-space: normal;
        margin-top: 50px;
    }
}

/*======================================
SECTION 4
=======================================*/
.section-4 {
    background: #ffffff;
    padding: 60px 60px 60px;
    font-family: 'Rajdhani', sans-serif;
}

/* ---------- Top Stats Row ---------- */
/* ---------- Top Stats Row ---------- */
.stats-row {
    display: flex;
    justify-content: space-between;   /* ⬅ changed from center — spreads items across FULL width, not clustered */
    align-items: center;
    max-width: 1500px;                /* controls how wide the spread is — adjust to match SS */
    margin: 0 auto;                   /* centers the whole row as a block */
    padding-top: 30px;
    padding-bottom: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-value {
    font-size: 48px;
    font-weight: 600;
    color: #000;
    white-space: nowrap;
}

.stat-label {
    font-size: 15px;
    font-weight: 600;
    color: #444;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

/* ---------- Image + Text Row ---------- */
.section4-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 70px;
    max-width: 1900px;
    margin: 0 auto;
}

.section4-image {
    width: 100%;
    max-width: 950px;
    aspect-ratio: 1152 / 814;
    height: auto;
    flex: 1 1 560px;
    overflow: hidden;
    border-radius: 20px;
}

.section4-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section4-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 340px;
    flex-shrink: 0;
}

.section4-heading {
    font-size: 36px;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-carousel {
    margin-top: 90px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-slides {
    position: relative;
    width: 100%;
    /* Fixed height sized to the tallest reasonable slide (icon + 2-line
       title + 2-line desc) so slides don't jump the layout when they
       crossfade and have different text lengths. */
    min-height: 168px;
}

.feature-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.feature-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.feature-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.feature-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.feature-dot.is-active {
    background: #000;
    transform: scale(1.35);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1.5px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-title {
    font-size: 19px;
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
}

.feature-desc {
    font-size: 15px;
    font-weight: 400;
    color: #666;
}

/* ---------- Bottom Caption ---------- */
.bottom-caption {
    text-align: center;
    margin-top: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #999;
    text-transform: uppercase;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .section-4 {
        padding: 60px 40px 50px;
    }
    .section4-content {
        flex-direction: column;
    }
    .section4-image {
        max-width: 600px;
    }
    .stats-row {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 10px;
    }
    .stat-item {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-align: center;
    }
    .stat-value {
        font-size: 28px;
    }
    .stat-label {
        font-size: 12px;
        letter-spacing: 0.2px;
    }
}

@media (max-width: 480px) {
    .section-4 {
        padding: 60px 16px 36px;
    }
    .stats-row {
        gap: 6px;
    }
    .stat-value {
        font-size: 20px;
    }
    .stat-label {
        font-size: 10px;
        line-height: 1.2;
    }
}

/*======================================
SECTION 5
=======================================*/
.section-5 {
    background: #ffffff;
    padding: 80px 0 70px;
    font-family: 'Rajdhani', sans-serif;
    text-align: center;
    overflow: hidden;
}

.top-caption {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.main-heading {
    font-size: clamp(24px, 3.4vw, 42px);
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    padding: 0 20px;
}


/* ---------- Carousel ---------- */
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    /* -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); */
}

.carousel-track {
    display: flex;
    gap: 18px;
    width: max-content;

    /* ⬇ SPEED CONTROL: lower seconds = faster scroll, higher = slower */
    animation: scroll-carousel 25s linear infinite;
}

@keyframes scroll-carousel {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }  /* -50% because content is duplicated once */
}

.carousel-card {
    width: 420px;
    height: 314px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* pause on hover (optional, remove if not wanted) */
.carousel-track:hover {
    animation-play-state: paused;
}

/* ---------- 3 Feature Tabs ---------- */
.features-row {
    display: flex;
    justify-content: space-between;
    max-width: 1150px;       /* ⬆ increased from 900px — matches the wider spread in final SS */
    margin: 55px auto 0;
    text-align: center;
    gap: 40px;                /* ⬆ increased from 20px so columns aren't squeezed together */
}

.feature-col {
    flex: 1;
    max-width: 320px;         /* keeps text from stretching TOO wide per column while row itself is wider */
    margin: 0 auto;
}

.feature-name {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 15px;
    font-weight: 400;
    color: #444;
    line-height: 1.5;
    margin-bottom: 16px;
}

.feature-range {
    font-size: 24px;
    font-weight: 600;
    color: #000;
}

/* ---------- Bottom Pill ---------- */
.bottom-pill {
    max-width: 1150px;        /* ⬅ updated to match new .features-row width */
    margin: 35px auto 0;
    border: 1.5px solid #ddd;
    border-radius: 40px;
    padding: 16px 30px;
}

.bottom-pill p {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .carousel-card {
        width: 300px;
        height: 224px;
    }
    .features-row {
        flex-direction: column;
        gap: 30px;
        max-width: 500px;
    }
    .bottom-pill {
        max-width: 500px;
    }
}
@media (max-width: 900px) {
    .main-heading {
        letter-spacing: 0.3px;
    }
}

@media (max-width: 768px) {
    /* Mobile: the auto-scroll marquee becomes a drag/swipe strip. The
       wrapper does the scrolling, the track stops animating (its
       translateX would fight the scroll offset). */
    .carousel-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;          /* Firefox */
        -ms-overflow-style: none;       /* old Edge */
        cursor: grab;
        padding-inline: 16px;
    }

    .carousel-wrapper::-webkit-scrollbar {
        display: none;
    }

    .carousel-wrapper.is-dragging {
        cursor: grabbing;
        scroll-snap-type: none;         /* snapping mid-drag fights the finger */
    }

    /* Kills the click that ends a drag, so a swipe never activates a card. */
    .carousel-wrapper.is-dragging * {
        pointer-events: none;
    }

    .carousel-track {
        gap: 14px;
        animation: none;
        transform: none;
    }

    .carousel-track:hover {
        animation-play-state: running;  /* no animation left to pause */
    }

    .carousel-card {
        scroll-snap-align: center;
    }
}

@media (max-width: 700px) {
    .carousel-card {
        width: 68vw;
        height: auto;
        aspect-ratio: 542 / 405;
    }
}


/*======================================
EXPERIENCE BANNER
=======================================*/
.experience-banner {
    position: relative;
    width: 1920px;
    max-width: 100%;
    height: 564px;
    margin: 0 auto;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* The rider sits in the lower-middle of the photo, not centered — at
       wide viewports the fixed-height container crops enough that a plain
       center focus cuts the bike off at the bottom. Bias the crop down. */
    object-position: center 68%;
    display: block;
}

.banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;      /* proper left/right padding */
}

.banner-text {
    max-width: 520px;
}

.banner-text h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: #000;
    margin-bottom: 16px;
}

.banner-text p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.6;
}

.banner-btn {
    flex-shrink: 0;
    background: #000;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 4px;
    white-space: nowrap;
}

/*======================================
FOOTER
=======================================*/
.site-footer {
    background: #0d0d0d;
    font-family: 'Rajdhani', sans-serif;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 0px 40px;    /* proper left/right padding */
}
@media(max-width:1440px){
 .footer-top {
    padding: 60px 20px 40px;    /* proper left/right padding */
}   
}
/* Left brand block */
.footer-brand {
    max-width: 300px;
    flex-shrink: 0;
}

.footer-logo {
    color: #fff;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: -4px;
}

.footer-desc {
    color: #999;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e1e1e;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer-socials a:hover {
    background: #2c2c2c;
    color: #fff;
}

/* Right nav columns */
.footer-nav {
    display: flex;
    gap: 70px;
    flex-wrap: wrap;
}

.footer-col h4 {
    color: #888;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #d0d0d0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.footer-col a:hover {
    color: #fff;
}

/* Copyright bar */
.footer-bottom {
    border-top: 1px solid #2a2a2a;   /* dark gray partition line */
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    color: #d0d0d0;
}
@media(max-width:1440px){
    .footer-bottom {
    padding: 22px 20px;
}
}
.footer-bottom p {
    color: #888;
    font-size: 13px;
}
.footer-legal-dot {
    color: #707070;
    font-size: 12px;
}
.footer-legal {
    display: flex;
    gap: 10px;
}

.footer-legal a {
    color: #888;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.footer-legal a:hover {
    color: #fff;
}

.scroll-top {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    display: none;   /* it's already inline in legal row in SS; enable if you want it separate */
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .footer-top {
        flex-direction: column;
        gap: 40px;
        padding: 50px 30px;
    }
    /* Keep all 4 nav columns on one row (shrink to fit) instead of
       wrapping into a multi-row footer. */
    .footer-nav {
   
        gap: 20px;
        width: 100%;
    }
    .footer-col {
        flex: 1 1 0;
        min-width: 150px;
    }
    .footer-col h4 {
        font-size: 10px;
    }
    .footer-col a {
        font-size: 11px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 14px;
        padding: 22px 30px;
        text-align: center;
    }
    /* Image sizes itself by its real aspect ratio and the text flows
       below it in normal flow — the old fixed min-height (400px) didn't
       match the image's rendered height at these widths, leaving a
       blank gap between the banner and the footer. */
    .experience-banner {
        height: auto;
        display: flex;
        flex-direction: column;
    }
    .banner-img {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 1535 / 1024;
    }
    .banner-content {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 32px 30px 40px;
        background: #fff;
    }
}
@media (max-width: 768px) {
    .overview-section{padding: 40px 0 0 0;}
    .section-5 {
    padding: 60px 0 40px;}
    .feature-carousel {
    margin-top: 30px;}
    .section4-content{gap: 30px;}
    .stats-row {
    padding-top:15px;
    padding-bottom: 30px;
}
}
@media (max-width: 480px) {
    .footer-nav {
        gap: 10px;
    }
    .footer-col h4 {
        font-size: 8.5px;
        margin-bottom: 12px;
    }
   
    .footer-col li {
        margin-bottom: 8px;
    }
}