/* ============================================================
   Trained Chauffeurs — overlapping photo composition (with a
   dashed pin-to-pin route) on the left, heading + intro + a plain
   icon step list on the right.
   ============================================================ */

.huc-chauffeur {
    --huc-chauffeur-accent: var(--huc-orange-clr);
}

/* ---- Left: photo composition ---- */
.huc-chauffeur-media {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 6 / 5;
    margin: 0 auto;
}

.huc-chauffeur-media__shape {
    position: absolute;
    right: 4%;
    bottom: 2%;
    width: 52%;
    height: 48%;
    z-index: 1;
    border-radius: 28px;
    background-color: var(--huc-chauffeur-accent);
    transform: rotate(-10deg);
}

.huc-chauffeur-media__photo {
    position: absolute;
    top: -12%;
    left: -16%;
    width: 80%;
    height: 90%;
    overflow: hidden;
    border-radius: 46px;
    transform: rotate(12deg);
    /* box-shadow: 0 20px 40px rgba(var(--huc-blue-rgb), 0.18); */
}

.huc-chauffeur-media__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Dashed pin-to-pin route, sitting to the right of the photo ---- */
.huc-chauffeur-media__route {
    position: absolute;
    top: 12%;
    right: 2%;
    width: 20%;
    height: 32%;
    z-index: 2;
}

.huc-chauffeur-media__route svg {
    display: block;
    width: 100%;
    height: 100%;
}

.huc-chauffeur-media__pin {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--huc-chauffeur-accent);
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 2px rgba(var(--huc-blue-rgb), 0.2));
}

.huc-chauffeur-media__pin::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 16px;
    height: 5px;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--huc-darkGray-clr) 30%, transparent);
    transform: translateX(-50%);
    z-index: -1;
}

.huc-chauffeur-media__pin--start {
    top: -12%;
    left: 10%;
}

.huc-chauffeur-media__pin--end {
    bottom: -4%;
    left: 40%;
}

.huc-chauffeur-media__car {
    position: absolute;
    right: 10%;
    bottom: -5%;
    width: 52%;
    z-index: 3;
    animation: huc-chauffeur-car-sway 1.2s ease-in-out infinite alternate;
}

.huc-chauffeur-media__car img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(var(--huc-blue-rgb), 0.3));
}

@keyframes huc-chauffeur-car-sway {
    from {
        transform: translateX(-10px);
    }

    to {
        transform: translateX(10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .huc-chauffeur-media__car {
        animation: none;
    }
}

/* ---- Right: copy ---- */
.huc-chauffeur-title {
    margin: 0 0 1rem;
    font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--huc-darkGray-clr);
}

.huc-chauffeur-title span {
    display: block;
    color: var(--huc-chauffeur-accent);
}

.huc-chauffeur-intro {
    margin: 0 0 2rem;
    max-width: 540px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--huc-gray-clr);
}

.huc-chauffeur-intro strong {
    color: var(--huc-darkGray-clr);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--huc-darkGray-clr);
    text-underline-offset: 3px;
}

/* ---- Steps: plain icon + title + desc, no connector ---- */
.huc-chauffeur-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.huc-chauffeur-step {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
}

.huc-chauffeur-step__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    padding-top: 0.15rem;
    font-size: 1.6rem;
    color: var(--huc-darkGray-clr);
}

.huc-chauffeur-step__title {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--huc-chauffeur-accent);
}

.huc-chauffeur-step__desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--huc-gray-clr);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .huc-chauffeur-media {
        max-width: 340px;
    }
}

@media (max-width: 575.98px) {
    .huc-chauffeur-media {
        max-width: 260px;
    }

    .huc-chauffeur-intro {
        margin-bottom: 1.5rem;
    }

    .huc-chauffeur-steps {
        gap: 1.15rem;
    }

    .huc-chauffeur-step__icon {
        width: 28px;
        font-size: 1.3rem;
    }

    .huc-chauffeur-step__title {
        font-size: 0.9375rem;
    }

    .huc-chauffeur-step__desc {
        font-size: 0.78rem;
    }
}
