/* ==========================================================================
   home.css
   --------------------------------------------------------------------------
   Adjust hero background accents to match orange -> pink theme
   ========================================================================== */



.about-main {
    position: relative;
    overflow: hidden; /* safety for large images */
}

/* background image + opacity */
.about-main::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url('../assets/img/tire.png');
    /* background-image: url('../assets/img/tires.png'); */

    background-repeat: no-repeat;
    background-position: center 100px;
    background-size: auto;

    opacity: 0.2; /* ✅ 50% transparency */

    pointer-events: none;
    z-index: 0;
}

/* keep page content above background */
.about-main > * {
    position: relative;
    z-index: 1;
}
















.home-hero {
    position: relative;
    padding: 20px 0 34px;
    background: transparent;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* background:
        radial-gradient(900px 600px at 18% 12%, rgba(242, 168, 0, 0.18), transparent 62%),
        radial-gradient(900px 600px at 82% 22%, rgba(255, 105, 180, 0.14), transparent 65%); */
}

.home-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    /* align-items: center; */
}

.home-hero__title {
    /* max-width: 18ch; */
}

.home-hero__title.mt-12{
    margin-top: 50px;
}

.home-hero__subtitle {
    /* max-width: 70ch; */
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 80%;
    min-width: 320px;
}

.home-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* max-width: 70ch; */
}

.home-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: var(--text-muted);
    font-weight: 700;
}

.home-hero__trust-item {
    display: inline-flex;
    align-items: center;
    /* gap: 10px; */
    padding: 8px 10px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    /* width: 350px; */
    width: 100%;
    margin-bottom: 10px;
    justify-content: space-between;
}
.badge{
    font-size: unset;
}

.home-hero__trust-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    display: inline-block;
}

.home-hero__phone {
    text-decoration: none;
    border-bottom: 2px solid rgba(0, 51, 160, 0.22);
    font-weight: 900;
    color: var(--text);
}

/* Hero media */
.home-hero__media {
    display: grid;
    gap: 12px;
}

.home-hero__media-card {
    border-radius: var(--r-2);
    /* border: 1px solid var(--border); */
    /* background: rgba(255, 255, 255, 0.82); */
    /* box-shadow: var(--shadow-2); */
    overflow: hidden;
    display: flex;
    align-items: center;
    margin: 52px 0px;
    margin-bottom: 0px;
}

.home-hero__img {
    width: 100%;
    height: auto;
    display: block;
}

.home-hero__media-badges {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    align-items: flex-start;
}

.home-hero__media-badges .badge{
    max-height: 50px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.8);
    /* width: 24%;
    min-width: 125px; */
    flex-grow: 1;
    display: block;
    text-align: center;
}

/* Section head */
.home-section-head {
    display: grid;
    gap: 8px;
    max-width: 70ch;
}

.home-card-title {
    font-weight: 900;
    letter-spacing: 0.2px;
    font-size: 18px;
    color: var(--text);
}

/* CTA strip */
.home-strip {
    padding: 0 0 44px;
}

.home-strip__inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    align-items: center;

    /* MATCH SITE PADDING */
    padding: 18px;
}

.home-strip__title {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 0.2px;
}

.home-strip__text {
    color: var(--text-muted);
    font-weight: 700;
    line-height: 1.6;
}

.home-strip__link {
    color: var(--text);
    font-weight: 900;
    text-decoration: none;
    border-bottom: 2px solid rgba(0, 51, 160, 0.22);
}

.home-strip__right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

/* ==========================================================================
   Home hero vehicle slide-in animation
   - Starts off-screen (right)
   - Slides to natural position
   - Triggered by JS after page load
   ========================================================================== */



.home-hero__img {
    transform: translateX(120px);
    opacity: 0;
    transition:
        transform 1500ms ease-in,
        opacity 1500ms ease-in;
}

.home-hero__img.is-visible {
    transform: translateX(0);
    opacity: 1;
}

div.home-hero__cta.mt-18{
    margin-top: 52px;
    margin-bottom: 52px;
    width: 80%;
}



div.home-hero__media-badges .badge:hover{
    cursor: pointer;
    background: linear-gradient(to bottom, white 0%, var(--box-hov-o) 100%);
    transition: transform 480ms ease, box-shadow 480ms ease, border-color 480ms ease;
    transform: scale(1.03) !important;
}

.home-hero__trust.mt-18{
    width: 80%;
    min-width: 320px;
    display: flex;
    justify-content: space-between;
    /* flex-direction: column; */
}
div.home-hero__trust.mt-18 > *{
    flex-grow: 1;
}

div.home-hero__copy.reveal div.home-hero__trust.mt-18{
        display: flex;
}
div.home-hero__media.reveal div.home-hero__trust.mt-18{
        display: none;
        margin-top: 20px;
}




/* Responsive */
@media (max-width: 980px) {
    .home-hero__grid {
        grid-template-columns: 1fr;
    }

    .home-strip__inner {
        grid-template-columns: 1fr;
    }

    .home-strip__right {
        justify-content: flex-start;
    }

    .h1,
    .home-hero__trust.mt-18,
    .home-hero__subtitle,
    div.home-hero__cta.mt-18{
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 580px) {

    .h1.home-hero__title.mt-12{
        text-align: center;
    }

    .home-hero {
        padding-top: 20px;
    }
    .home-hero__trust-item{
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    h4.p.home-hero__subtitle.mt-12{
        display: none;
    }
    div.home-hero__cta.mt-18{
        margin-top: 50px;
        margin-bottom: 20px;
        width: 100%;
    }

    div.home-hero__copy.reveal div.home-hero__trust.mt-18{
            display: none;
    }
    div.home-hero__media.reveal div.home-hero__trust.mt-18{
            display: block;
            margin-top: 20px;
    }



    div.home-hero__media-badges{
        display: flex;
        justify-content: space-between;
    }
    div.home-hero__media-badges .badge{
        width: 45%;
        background: rgba(255, 255, 255, 0.8);
        /* color: white; */
    }
    div.home-hero__media-card{
        margin: 20px 0px;
        margin-bottom: 0px;
    }

}
