:root {
    --clr-orange: #f27533;
    --clr-orange-dark: #f0442e;
    --clr-navy-dark: #080d12;
    --clr-navy-mid: #121a26;
    --clr-white: #ffffff;
    --clr-gray-light: #cfd3d8;
    --clr-gray-mid: #9aa1ab;

    --font-display: "Space Grotesk", sans-serif;
    --font-accent: "Playfair Display", Georgia, serif;
    --font-body: "DM Sans", sans-serif;

    --header-height: 74px;

    --site-content-width: 84%;
    --site-content-max-width: 1600px;
    --site-content-edge: max(calc((100vw - var(--site-content-max-width)) / 2),
            8vw);
}

/* =========================================================
   BIKES HERO
   ========================================================= */

.bikes-hero {
    position: relative;
    width: 100%;
    height: 395px;

    background-size: cover;
    background-position: center center;

    overflow: hidden;


    background: #202526;
    border-bottom: 1px solid #343a3b;
}


/* Dark image treatment */

.bikes-hero-overlay {
    position: absolute;
    inset: 0;

    /* background:
        linear-gradient(90deg,
            rgba(0, 0, 0, 0.80) 0%,
            rgba(0, 0, 0, 0.55) 45%,
            rgba(0, 0, 0, 0.18) 100%),
        linear-gradient(0deg,
            rgba(0, 0, 0, 0.30) 0%,
            rgba(0, 0, 0, 0.05) 100%); */

    z-index: 1;
}


/* =========================================================
   CONTENT ALIGNMENT
   Uses the SAME horizontal grid as the rest of the website
   ========================================================= */

.bikes-hero-content {
    position: relative;
    z-index: 2;

    width: var(--site-content-width);
    max-width: var(--site-content-max-width);

    margin: 0 auto;

    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* =========================================================
   TITLE
   ========================================================= */

.bikes-hero-title {
    margin: 0;

    color: var(--clr-white);

    font-family: var(--font-display);
    font-size: clamp(58px, 5.5vw, 92px);
    font-weight: 500;

    line-height: 0.95;
    letter-spacing: -0.045em;
}


/* Orange italic BIKES */

.bikes-hero-title span {
    color: var(--clr-orange);

    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;

    letter-spacing: -0.035em;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.bikes-hero-description {
    margin: 20px 0 0;

    color: var(--clr-white);

    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;

    line-height: 1.45;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .bikes-hero {
        height: 360px;
    }

    .bikes-hero-content {
        width: calc(100% - 48px);
    }

    .bikes-hero-title {
        font-size: clamp(54px, 9vw, 78px);
    }

    .bikes-hero-description {
        font-size: 16px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .bikes-hero {
        height: 320px;

        background-position: 62% center;
    }

    .bikes-hero-content {
        width: calc(100% - 32px);
    }

    .bikes-hero-title {
        font-size: 52px;
    }

    .bikes-hero-description {
        margin-top: 16px;
        font-size: 15px;
    }
}










/* =========================================================
   BIKE LISTING SECTION
   ========================================================= */

.bike-listing-section {
    background: var(--clr-navy-dark);
    padding: 75px 0 100px;
}

.bike-listing-container {
    width: var(--site-content-width);
    max-width: var(--site-content-max-width);
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.bike-listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 24px;
}

.section-eyebrow {
    display: block;

    color: var(--clr-orange-dark);

    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}


/* Sort */

.bike-sort-wrapper {
    position: relative;
}

.bike-sort {


    padding: 12px 9px;

    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);

    color: var(--clr-gray-mid);

    font-family: var(--font-body);
    font-size: 0.78rem;

    outline: none;
    cursor: pointer;
}

.bike-sort:focus {
    border-color: var(--clr-orange);
}

.bike-sort option {
    background: var(--clr-navy-dark);
    color: var(--clr-white);
}


/* =========================================================
   FILTERS
   ========================================================= */

.bike-filter-bar {
    display: flex;
    align-items: center;
    gap: 34px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.10);

    margin-bottom: 20px;
}

.bike-filter {
    position: relative;

    padding: 0 0 13px;

    background: none;
    border: 0;

    color: var(--clr-gray-mid);

    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 500;

    letter-spacing: 0.08em;

    cursor: pointer;

    transition: color 0.25s ease;
}

.bike-filter:hover,
.bike-filter.active {
    color: var(--clr-white);
}

.bike-filter.active::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;

    height: 2px;

    background: var(--clr-orange-dark);
}

.filter-count {
    font-size: 7px;
    opacity: 0.7;
}


/* =========================================================
   BIKE GRID
   ========================================================= */

.bike-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px 10px;
}


/* =========================================================
   BIKE CARD
   ========================================================= */

.bike-card {
    min-width: 0;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.035);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.bike-card:hover {
    transform: translateY(-3px);

    border-color: rgba(255, 255, 255, 0.10);

}


/* =========================================================
   IMAGE AREA
   ========================================================= */

.bike-card-image {
    position: relative;

    height: 250px;

    overflow: hidden;

    background:
        radial-gradient(circle at 50% 55%,
            rgba(255, 255, 255, 0.06),
            transparent 60%);
}

.bike-card-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.12),
            transparent 35%,
            rgba(0, 0, 0, 0.15));

    pointer-events: none;
}

.bike-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    transform: scale(1.02);

    transition: transform 0.45s ease;
}

/* .bike-card:hover .bike-card-image img {
    transform: scale(1.06);
} */


/* =========================================================
   CARD TITLE OVER IMAGE
   ========================================================= */

.bike-card-info {
    position: absolute;

    top: 13px;
    left: 13px;

    z-index: 2;
}

.bike-brand {
    display: inline-block;

    padding: 4px 8px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;

    color: var(--clr-gray-mid);

    font-family: var(--font-display);
    font-size: 0.58rem;
    font-weight: 500;

    letter-spacing: 0.08em;
}

.bike-name {
    margin: 9px 0 2px;

    color: var(--clr-white);

    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;

    line-height: 1;
    letter-spacing: -0.02em;
}

.bike-type {
    color: var(--clr-gray-mid);

    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;

    letter-spacing: 0.08em;
}


/* =========================================================
   CARD BOTTOM
   ========================================================= */

.bike-card-bottom {
    padding: 12px 13px 11px;

    background: rgba(255, 255, 255, 0.018);
}


/* Specs */

.bike-specs {
    display: flex;
    align-items: center;
    gap: 18px;

    padding-bottom: 11px;

    color: var(--clr-gray-light);

    font-family: var(--font-body);
    font-size: 0.78rem;
}

.bike-specs span {
    white-space: nowrap;
}


/* Details */

.bike-details {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--clr-orange-dark);

    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;

    text-decoration: none;

    transition: gap 0.25s ease;
}

.bike-details span {
    font-size: 13px;
}

.bike-details:hover {
    gap: 12px;
}


/* =========================================================
   TEST RIDE CTA CARD
   ========================================================= */

.bike-cta-card {
    position: relative;

    min-height: 310px;

    overflow: hidden;

    background:
        url("../images/rider-with-helmet.png") right bottom / contain no-repeat,

        linear-gradient(135deg,
            #2f3438,
            #0b0e11);

    /* border: 1px solid rgba(255, 255, 255, 0.035); */
}

.bike-cta-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(to bottom,
            rgba(8, 13, 18, 0.1),
            rgba(8, 13, 18, 0.75));
}

.bike-cta-content {
    position: relative;
    z-index: 2;

    padding: 42px 20px;
}

.bike-cta-content h2 {
    margin: 14px 0 8px;

    color: var(--clr-white);

    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;

    letter-spacing: -0.025em;
}

.bike-cta-content p {
    margin: 0 0 20px;

    color: var(--clr-gray-mid);

    font-family: var(--font-body);
    font-size: 0.68rem;
}


/* CTA button */

.bike-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    min-width: 106px;

    padding: 10px 11px;

    background: var(--clr-orange-dark);

    color: var(--clr-white);

    font-family: var(--font-display);
    font-size: 0.58rem;
    font-weight: 500;

    letter-spacing: 0.07em;
    text-decoration: none;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.bike-cta-button span {
    margin-left: 10px;
    font-size: 13px;
    transition: transform 0.2s ease-in;
}

.bike-cta-button:hover span {
    transform: translateX(3px);

}


/* =========================================================
   HIDDEN FILTERED CARDS
   ========================================================= */

.bike-card.is-hidden {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .bike-listing-section {
        padding: 60px 0 80px;
    }

    .bike-listing-container {
        width: calc(100% - 48px);
    }

    .bike-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bike-card-image {
        height: 270px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .bike-listing-section {
        padding: 50px 0 65px;
    }

    .bike-listing-container {
        width: calc(100% - 32px);
    }

    .bike-listing-header {
        align-items: center;
    }

    .bike-filter-bar {
        gap: 22px;
        overflow-x: auto;

        scrollbar-width: none;
    }

    .bike-filter-bar::-webkit-scrollbar {
        display: none;
    }

    .bike-filter {
        flex-shrink: 0;
    }

    .bike-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bike-card-image {
        height: 290px;
    }

    .bike-specs {
        gap: 15px;
    }

    .bike-cta-card {
        min-height: 330px;
    }
}


/* ------------------------------------------------------------------------------------------------------------------------------------------------ */
/* =========================================================
   BIKE DETAILS SECTION
========================================================= */

.bike-details-section {
    width: 100%;
    background: var(--clr-navy-dark);
    padding: clamp(40px, 8vw, 90px) 0 clamp(40px, 6vw, 70px);
    overflow: hidden;
    /* contains any stray overflow, doesn't clip content itself */
}

.bike-details-container {
    width: var(--site-content-width);
    max-width: var(--site-content-max-width);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 38% 62%;
    gap: 30px;
}


/* =========================================================
   LEFT CONTENT
========================================================= */

.bike-details-info {
    padding: 5px 50px 30px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    /* allow flex/grid children to shrink below content size */
}

.bike-details-eyebrow {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--clr-orange);
    margin-bottom: 24px;
}

.bike-details-title {
    margin: 0 0 8px;

    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 600;
    line-height: 1.05;
    color: var(--clr-white);

    word-break: break-word;
}

.bike-details-subtitle {
    margin: 0 0 30px;

    font-family: var(--font-body);
    font-size: clamp(15px, 2vw, 18px);
    color: var(--clr-gray-mid);
}

.bike-details-price {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--clr-gray-light);
}

.bike-details-price strong {
    margin-left: 7px;

    color: var(--clr-white);
    font-size: 20px;
}

.bike-details-exshowroom {
    margin-top: 5px;

    font-family: var(--font-body);
    font-size: 12px;
    color: var(--clr-gray-mid);
}


/* =========================================================
   BUTTONS
========================================================= */

.bike-details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.bike-detail-btn {
    flex: 1 1 160px;
    min-width: 0;
    height: 52px;

    padding: 0 22px;

    border: 1px solid rgba(255, 255, 255, 0.2);

    background: transparent;

    color: var(--clr-white);

    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    cursor: pointer;

    transition: 0.25s ease;
}

.bike-detail-btn span {
    font-size: 19px;
    margin-left: 12px;
    flex-shrink: 0;
}

.bike-detail-enquire {
    background: var(--clr-orange-dark);
    border-color: var(--clr-orange-dark);
}

.bike-detail-enquire:hover {
    background: var(--clr-orange);
}

.bike-detail-test:hover {
    border-color: var(--clr-orange);
    color: var(--clr-orange);
}


/* =========================================================
   SPECS
========================================================= */

.bike-details-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    margin-top: 42px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bike-detail-spec {
    min-height: 105px;
    min-width: 0;

    padding: 20px 12px 18px 10px;

    border-right: 1px solid rgba(255, 255, 255, 0.12);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bike-detail-spec:last-child {
    border-right: none;
}

.spec-icon {
    font-size: 20px;
    color: var(--clr-gray-light);
    margin-bottom: 8px;
}

.bike-detail-spec strong {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--clr-white);

    white-space: nowrap;
}

.bike-detail-spec span {
    margin-top: 4px;

    font-family: var(--font-body);
    font-size: 11px;
    color: var(--clr-gray-mid);
}

.bike-detail-note {
    margin-top: 18px;

    font-family: var(--font-body);
    font-size: 11px;
    color: var(--clr-gray-mid);
}


/* =========================================================
   RIGHT VIEWER
========================================================= */

.bike-details-viewer {
    position: relative;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}


/* Main image */

.bike-main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    /* scales height with width instead of a fixed px value */
    max-height: 430px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    cursor: grab;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.bike-main-image-wrapper.dragging {
    cursor: grabbing;
}

.bike-main-image {
    width: 90%;
    height: 100%;

    object-fit: contain;

    pointer-events: none;
    -webkit-user-drag: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


/* =========================================================
   360 LABEL
========================================================= */

.bike-360-label {
    position: absolute;

    bottom: 135px;

    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;

    color: var(--clr-white);
}


/* =========================================================
   ARROWS
========================================================= */

.bike-view-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 50px;
    height: 50px;
    flex-shrink: 0;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.15);

    background: rgba(255, 255, 255, 0.04);

    color: var(--clr-white);

    font-size: 30px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    z-index: 3;

    transition: 0.25s ease;
}

.bike-view-arrow:hover {
    border-color: var(--clr-orange);
    color: var(--clr-orange);
}

.bike-view-prev {
    left: 8px;
}

.bike-view-next {
    right: 8px;
}


/* =========================================================
   EXPAND BUTTON
========================================================= */

.bike-view-expand {
    position: absolute;

    top: 0;
    right: 5px;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    color: var(--clr-white);

    font-size: 20px;

    cursor: pointer;

    z-index: 4;
}


/* =========================================================
   THUMBNAILS
========================================================= */

.bike-view-thumbnails {
    width: 92%;

    display: flex;
    align-items: stretch;

    border: 1px solid rgba(255, 255, 255, 0.08);

    margin-top: 10px;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.bike-view-thumb {
    flex: 1 0 auto;
    min-width: 80px;

    height: 105px;

    border-right: 1px solid rgba(255, 255, 255, 0.08);

    position: relative;

    cursor: pointer;

    transition: 0.25s ease;
}

.bike-view-thumb:last-child {
    border-right: none;
}

.bike-view-thumb img {
    width: 100%;
    height: 72px;

    object-fit: contain;

    opacity: 0.65;

    transition: 0.25s ease;
}

.bike-view-thumb span {
    display: block;

    text-align: center;

    font-family: var(--font-body);
    font-size: 11px;
    white-space: nowrap;

    color: var(--clr-gray-mid);
}

.bike-view-thumb.active {
    box-shadow: inset 0 0 0 2px var(--clr-orange);
}

.bike-view-thumb.active img {
    opacity: 1;
}

.bike-view-thumb.active span {
    color: var(--clr-white);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .bike-details-container {
        grid-template-columns: 1fr;
    }

    .bike-details-info {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .bike-main-image-wrapper {
        max-height: none;
        aspect-ratio: 16 / 10;
    }

}


@media (max-width: 768px) {

    .bike-details-section {
        padding: 50px 0;
    }

    .bike-details-container {
        width: 90%;
        gap: 24px;
    }

    .bike-details-actions {
        flex-direction: column;
    }

    .bike-detail-btn {
        width: 100%;
        flex: 1 1 auto;
    }

    .bike-details-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .bike-detail-spec:nth-child(2) {
        border-right: none;
    }

    .bike-detail-spec:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .bike-main-image-wrapper {
        aspect-ratio: 4 / 3;
    }

    .bike-view-thumbnails {
        width: 100%;
    }

    .bike-view-thumb {
        min-width: 90px;
    }

}


@media (max-width: 480px) {

    .bike-details-container {
        width: 94%;
    }

    .bike-details-title {
        font-size: clamp(32px, 10vw, 40px);
    }

    .bike-details-subtitle {
        font-size: 15px;
    }

    .bike-details-specs {
        grid-template-columns: 1fr 1fr;
    }

    .bike-detail-spec {
        padding: 16px 8px;
    }

    .bike-detail-spec strong {
        font-size: 14px;
    }

    .bike-main-image-wrapper {
        aspect-ratio: 1 / 1;
    }

    .bike-view-arrow {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .bike-view-prev {
        left: 4px;
    }

    .bike-view-next {
        right: 4px;
    }

    .bike-view-thumbnails {
        width: 100%;
    }

    .bike-view-thumb {
        min-width: 78px;
        height: 90px;
    }

    .bike-view-thumb img {
        height: 58px;
    }

    .bike-view-thumb span {
        font-size: 10px;
    }

}