/* ========================================
   HEC MOTORCYCLES
======================================== */

.hec-motorcycle-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    background: #cfcdc2;
    border-radius: 18px;
    overflow: hidden;
}

.hec-motorcycle-spec {
    min-height: 105px;
    padding: 20px 24px;
    background: #f3f2ed;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hec-motorcycle-spec span {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #555;
}

.hec-motorcycle-spec strong {
    display: block;
    font-size: 18px;
    line-height: 1.2;
    color: #222;
}

.hec-motorcycle-spec--price {
    background: #cfcdc2;
}

.hec-motorcycle-spec--price strong {
    font-size: 24px;
}


/* GALLERY */

.hec-motorcycle-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.hec-motorcycle-gallery__item {
    position: relative;
    display: block;
    grid-column: span 4;
    height: 330px;
    overflow: hidden;
    border-radius: 18px;
}

.hec-motorcycle-gallery__item:first-child {
    grid-column: span 8;
    height: 500px;
}

.hec-motorcycle-gallery__image {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition:
        transform .55s cubic-bezier(.2, .6, .3, 1),
        filter .55s ease;
}

.hec-motorcycle-gallery__item:hover .hec-motorcycle-gallery__image {
    transform: scale(1.035);
    filter: brightness(.88);
}


@media (max-width: 1024px) {

    .hec-motorcycle-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .hec-motorcycle-gallery__item,
    .hec-motorcycle-gallery__item:first-child {
        grid-column: span 6;
        height: 350px;
    }
}


@media (max-width: 767px) {

    .hec-motorcycle-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .hec-motorcycle-spec {
        min-height: 85px;
        padding: 15px;
    }

    .hec-motorcycle-spec strong {
        font-size: 15px;
    }

    .hec-motorcycle-gallery {
        gap: 8px;
    }

    .hec-motorcycle-gallery__item,
    .hec-motorcycle-gallery__item:first-child {
        grid-column: span 6;
        height: 210px;
        border-radius: 12px;
    }

    .hec-motorcycle-gallery__item:first-child {
        grid-column: span 12;
        height: 290px;
    }
}


/* =========================================================
   MOTORCYCLE CATEGORY HERO
   ========================================================= */

.hec-motorcycle-category-hero {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 350px;

    overflow: hidden;

    background: #202020;
}

.hec-motorcycle-category-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;

    width: 100%;
    height: 100%;
}

.hec-motorcycle-category-hero__image {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover;
    object-position: center;
}

.hec-motorcycle-category-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.55) 36%,
            rgba(0, 0, 0, 0.48) 100%);
}

.hec-motorcycle-category-hero__content {
    position: relative;
    z-index: 2;

    width: min(1500px, calc(100% - 80px));

    margin: 0 auto;
    padding: 110px 0 70px;

    color: #fff;
}

.hec-motorcycle-category-hero__eyebrow {
    display: block;

    margin-bottom: 16px;

    font-family: var(--hec-font-header);
    font-size: 16px;
    font-weight: 700;

    text-transform: uppercase;
}

.hec-motorcycle-category-hero__title {
    margin: 0 0 8px;

    color: #fff;

    font-family: var(--hec-font-header);
    font-size: clamp(34px, 3vw, 52px);
    font-weight: 700;
    line-height: 1;

    text-transform: none;
}

.hec-motorcycle-category-hero__description {
    max-width: 460px;

    color: #fff;

    font-family: var(--hec-font-body);
    font-size: 16px;
    line-height: 1.35;
}

.hec-motorcycle-category-hero__description p {
    margin: 0;
}


/* =========================================================
   MOTORCYCLE GRID
   ========================================================= */

.hec-motorcycle-category-list {
    padding: 50px 0 70px;

    background: #fff;
}

.hec-motorcycle-category-list__inner {
    width: min(1350px, calc(100% - 48px));

    margin: 0 auto;
}

.hec-motorcycle-category-list__title {
    margin: 0 0 48px;

    color: #5b5b5b;

    font-family: var(--hec-font-header);
    font-size: 25px;
    font-weight: 700;

    text-align: center;
}

.hec-motorcycle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 45px;
}

.hec-motorcycle-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.hec-motorcycle-card__image-link {
    display: block;

    width: 100%;
    height: 260px;

    margin-bottom: 18px;

    overflow: hidden;
}

.hec-motorcycle-card__image {
    display: block;

    width: 100% !important;
    height: 100% !important;

    object-fit: contain;

    transition: transform .35s ease;
}

.hec-motorcycle-card__title {
    margin: 0 0 10px;

    font-family: var(--hec-font-header);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.15;
}

.hec-motorcycle-card__title a {
    color: #111;
    text-decoration: none;
}

.hec-motorcycle-card__price {
    margin-bottom: 18px;

    color: #5f5f5f;

    font-family: var(--hec-font-body);
    font-size: 16px;
    font-weight: 600;
}

.hec-motorcycle-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 10px 28px;

    border-radius: 999px;

    background: #d73516;
    color: #fff !important;

    font-family: var(--hec-font-body);
    font-size: 15px;
    font-weight: 500;

    text-decoration: none;

    transition:
        background-color .25s ease,
        transform .25s ease;
}


.hec-motorcycle-details__subtitle {

    color: #fff;
    font-family: var(--hec-font-header);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}

@media (hover: hover) and (pointer: fine) {

    .hec-motorcycle-card:hover .hec-motorcycle-card__image {
        transform: scale(1.035);
    }

    .hec-motorcycle-card__button:hover {
        background: #cf3518;
        transform: translateY(-2px);
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .hec-motorcycle-category-hero {
        min-height: 330px;
    }

    .hec-motorcycle-category-hero__content {
        width: calc(100% - 48px);
        padding: 95px 0 55px;
    }

    .hec-motorcycle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 24px;
    }

    .hec-motorcycle-card__image-link {
        height: 230px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .hec-motorcycle-category-hero {
        min-height: 360px;
    }

    .hec-motorcycle-category-hero__content {
        width: calc(100% - 32px);
        padding: 105px 0 40px;
    }

    .hec-motorcycle-category-hero__eyebrow {
        font-size: 13px;
    }

    .hec-motorcycle-category-hero__title {
        font-size: 34px;
    }

    .hec-motorcycle-category-hero__description {
        max-width: 100%;

        font-size: 14px;
    }

    .hec-motorcycle-category-list {
        padding: 35px 0 50px;
    }

    .hec-motorcycle-category-list__inner {
        width: calc(100% - 28px);
    }

    .hec-motorcycle-category-list__title {
        margin-bottom: 30px;

        font-size: 20px;
    }

    .hec-motorcycle-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hec-motorcycle-card__image-link {
        height: 220px;
    }

    .hec-motorcycle-card__title {
        font-size: 21px;
    }

    .hec-motorcycle-card__price {
        font-size: 15px;
    }
}