/* ==========================================================================
   LUX&GO — Home / Premium Mobility Preview
   ========================================================================== */

.home-mobility {
    position: relative;
    overflow: hidden;
    padding-block: clamp(60px, 5vw, 80px) clamp(50px, 4.5vw, 70px);
    background-color: var(--color-obsidian);
    color: var(--color-white);
    border-bottom: none;
}

/* Vehicle ------------------------------------------------------------------ */

/*
   The vehicle sits on the section surface itself — no frame, no panel. Its
   source background is already near-black, so masking the left edge lets it dissolve
   into the section instead of ending on a hard rectangular boundary.
*/
.home-mobility__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 64%;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 20%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 20%, #000 100%);
}

.home-mobility__vehicle {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Content ------------------------------------------------------------------ */

/*
   Left static so the vehicle frame keeps resolving against the section, exactly
   as before the media moved inside this container.
*/
.home-mobility__container {
    position: static;
}

/* Positioned, and after the media in source order, so the copy paints above it. */
.home-mobility__content,
.home-mobility__details {
    position: relative;
    max-width: clamp(500px, 40vw, 580px);
}

.home-mobility__eyebrow {
    font-family: var(--font-body);
    font-weight: var(--fw-semibold);
    font-size: clamp(0.6875rem, 0.65rem + 0.1vw, 0.8125rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-lux-blue);
}

.home-mobility__title {
    margin-top: clamp(12px, 1.1vw, 18px);
    font-family: var(--font-heading);
    font-weight: var(--fw-medium);
    font-size: clamp(2.5rem, 2.1rem + 1vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--color-white);
}

.home-mobility__title-line {
    display: block;
}

.home-mobility__description {
    max-width: 430px;
    margin-top: clamp(16px, 1.4vw, 22px);
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
    font-size: clamp(0.875rem, 0.84rem + 0.1vw, 1rem);
    line-height: 1.55;
    color: var(--color-muted-gray);
}

/* Features ------------------------------------------------------------------- */

/* Four fixed tracks so the row never wraps on desktop. */
.home-mobility__features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(32px, 2.8vw, 42px);
}

.home-mobility__feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-inline: clamp(6px, 0.8vw, 12px);
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.home-mobility__feature:last-child {
    border-right: none;
}

.home-mobility__feature-icon {
    width: 24px;
    height: 24px;
}

.home-mobility__feature-label {
    font-family: var(--font-body);
    font-weight: var(--fw-medium);
    font-size: clamp(0.8125rem, 0.78rem + 0.1vw, 0.9375rem);
    line-height: 1.35;
    color: var(--color-off-white);
}

.home-mobility__feature-line {
    display: block;
}

/* Professional driver note ------------------------------------------------------ */

.home-mobility__driver {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: clamp(28px, 2.4vw, 38px);
}

.home-mobility__driver-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
}

.home-mobility__driver-title {
    font-family: var(--font-body);
    font-weight: var(--fw-medium);
    font-size: clamp(0.8125rem, 0.78rem + 0.1vw, 0.9375rem);
    color: var(--color-white);
}

.home-mobility__driver-accent {
    color: var(--color-lux-blue);
}

.home-mobility__driver-copy {
    margin-top: 4px;
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
    font-size: clamp(0.75rem, 0.72rem + 0.08vw, 0.875rem);
    color: var(--color-muted-gray);
}

/* Tablet and mobile ------------------------------------------------------------- */

/*
   The vehicle leaves its absolute frame and rejoins the flow between the
   description and the feature grid, giving the mobile order the brief asks for:
   copy, vehicle, features, driver note.
*/
@media (max-width: 1023px) {
    .home-mobility {
        padding-block: clamp(48px, 8vw, 70px);
    }

    .home-mobility__container {
        display: flex;
        flex-direction: column;
    }

    .home-mobility__content {
        order: 1;
        max-width: none;
    }

    .home-mobility__media {
        order: 2;
        position: static;
        width: 100%;
        margin-top: clamp(26px, 4vw, 38px);
        /* The left fade only made sense against the copy it used to sit beside. */
        -webkit-mask-image: none;
        mask-image: none;
    }

    .home-mobility__vehicle {
        height: auto;
    }

    .home-mobility__details {
        order: 3;
        max-width: none;
    }

    .home-mobility__description {
        max-width: 560px;
    }

    /* Two by two, still flat: hairlines only, no cards and no shadow. */
    .home-mobility__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: clamp(28px, 4vw, 38px);
    }

    .home-mobility__feature {
        padding-block: clamp(16px, 2.4vw, 22px);
        border-right: none;
    }

    .home-mobility__feature:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.18);
    }

    .home-mobility__feature:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }
}

@media (max-width: 767px) {
    .home-mobility__title {
        font-size: clamp(1.875rem, 1.6rem + 1.2vw, 2.375rem);
    }
}
