/* ============================================================
   Services page — grid on desktop, carousel on tablet/mobile
   ============================================================ */

.huc-services {
    --huc-services-accent: var(--huc-accent-clr);
    --huc-services-fill: var(--huc-accent-clr);
    --huc-services-border: color-mix(in srgb, var(--huc-darkGray-clr) 10%, transparent);
}

/* ---- Page head ---- */
.huc-services__head {
    max-width: 720px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.huc-services__title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 0.85rem;
}

.huc-services__title-line {
    flex: 0 0 auto;
    width: 56px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--huc-orange-clr));
}

.huc-services__title-row .huc-services__title-line:last-child {
    background: linear-gradient(90deg, var(--huc-orange-clr), transparent);
}

.huc-services__title {
    margin: 0;
    font-family: var(--font-secondary);
    font-size: clamp(2.25rem, 1.6rem + 2.8vw, 4rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--huc-darkGray-clr);
}

.huc-services__title-highlight {
    color: var(--huc-orange-clr);
}

.huc-services__subtitle {
    margin: 0;
    color: var(--huc-gray-clr);
    font-size: 0.9375rem;
}

/* ---- Group ---- */
.huc-services__group {
    margin-bottom: 4rem;
}

.huc-services__group:last-child {
    margin-bottom: 0;
}

.huc-services__group:not(:first-child) {
    padding-top: 3rem;
    border-top: 1px solid var(--huc-outline-stroke);
}

.huc-services__group-head {
    margin: 0 0 1.75rem;
}

.huc-services__group-title {
    margin: 0 0 0.4rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--huc-darkGray-clr);
}

.huc-services__group-title-highlight {
    position: relative;
    color: var(--huc-orange-clr);
}

.huc-services__group-title-highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.05em;
    height: 3px;
    border-radius: 999px;
    background-color: rgba(var(--huc-orange-rgb), 0.35);
}

.huc-services__group-subtitle {
    margin: 0;
    color: var(--huc-gray-clr);
    font-size: 0.875rem;
}

/* ---- Carousel shell ---- */
.huc-services__carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---- Track: grid on desktop, horizontal scroll below lg ---- */
.huc-services__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1.5rem;
    row-gap: 6.5rem;
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.5rem 2.5rem;
}

@media (min-width: 1200px) {
    .huc-services__track {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---- Card ---- */
.huc-services__card {
    position: relative;
    display: block;
    min-height: 290px;
    padding: 1.75rem;
    border: 1px solid var(--huc-services-border);
    border-radius: 18px;
    background-color: var(--huc-white-clr);
    overflow: visible;
    transition: background-color var(--transition-base), border-color var(--transition-base),
        transform var(--transition-base), box-shadow var(--transition-base);
}

.huc-services__card:hover {
    background-color: var(--huc-services-fill);
    border-color: var(--huc-services-fill);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(var(--huc-accent-rgb), 0.35);
}

.huc-services__card-bag {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background-color: var(--huc-lightGray-clr);
    color: var(--huc-darkGray-clr);
    font-size: 0.7rem;
    font-weight: 700;
    transition: background-color var(--transition-base), color var(--transition-base);
}

.huc-services__card:hover .huc-services__card-bag {
    background-color: rgba(255, 255, 255, 0.16);
    color: var(--huc-white-clr);
}

.huc-services__card-top {
    position: relative;
    z-index: 2;
    display: block;
    padding-right: 2.5rem;
}

.huc-services__card-title {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--huc-darkGray-clr);
    transition: color var(--transition-base);
}

.huc-services__card-desc {
    display: block;
    max-width: 92%;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--huc-gray-clr);
    transition: color var(--transition-base);
}

.huc-services__card:hover .huc-services__card-title {
    color: var(--huc-white-clr);
}

.huc-services__card:hover .huc-services__card-desc {
    color: rgba(var(--huc-white-rgb), 0.75);
}

/* Vehicle image — sits at the bottom, overflows slightly out of the card */
.huc-services__card-img {
    position: absolute;
    right: -6%;
    bottom: -8%;
    z-index: 1;
    width: 78%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 16px rgba(var(--huc-blue-rgb), 0.2));
    transition: transform var(--transition-base);
}

.huc-services__card:hover .huc-services__card-img {
    transform: scale(1.05);
}

/* Arrow */
.huc-services__card-arrow {
    position: absolute;
    left: 1.75rem;
    bottom: 1.5rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 1.125rem;
    color: var(--huc-darkGray-clr);
    transition: color var(--transition-base), transform var(--transition-base);
}

.huc-services__card:hover .huc-services__card-arrow {
    color: var(--huc-white-clr);
    transform: translateX(4px);
}

/* ---- Carousel arrows (hidden on desktop grid, shown below lg) ---- */
.huc-services__arrow {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--huc-services-border);
    border-radius: 50%;
    background-color: var(--huc-white-clr);
    color: var(--huc-darkGray-clr);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(var(--huc-blue-rgb), 0.08);
    transition: background-color var(--transition-base), color var(--transition-base),
        border-color var(--transition-base), opacity var(--transition-base);
}

.huc-services__arrow:hover {
    background-color: var(--huc-services-accent);
    border-color: var(--huc-services-accent);
    color: var(--huc-white-clr);
}

.huc-services__arrow:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* ---- Dots (hidden on desktop grid, shown below lg) ---- */
.huc-services__dots {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
}

.huc-services__dot {
    width: 26px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--huc-darkGray-clr) 18%, transparent);
    cursor: pointer;
    transition: background-color var(--transition-base), width var(--transition-base);
}

.huc-services__dot.is-active {
    width: 34px;
    background-color: var(--huc-services-accent);
}

/* ---- Responsive: switch to carousel below lg ---- */
@media (max-width: 991.98px) {
    .huc-services__track {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .huc-services__track::-webkit-scrollbar {
        display: none;
    }

    .huc-services__track:focus-visible {
        outline: 2px solid var(--huc-services-accent);
        outline-offset: 2px;
        border-radius: 18px;
    }

    .huc-services__card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        scroll-snap-align: start;
    }

    .huc-services__arrow {
        display: inline-flex;
    }

    .huc-services__dots {
        display: flex;
    }
}

@media (max-width: 575.98px) {
    .huc-services__card {
        flex: 0 0 85%;
        min-height: 260px;
    }

    .huc-services__arrow {
        width: 38px;
        height: 38px;
    }

    .huc-services__head {
        margin-bottom: 2.25rem;
    }

    .huc-services__title-row {
        gap: 0.75rem;
    }

    .huc-services__title-line {
        width: 32px;
    }
}