/* ======================================================
   Heritage Motorworks – Vehicle
====================================================== */

/* ------------------------------------------------------
   CONTAINER
------------------------------------------------------ */

.hm-container{
    width:min(1320px,92%);
    margin:0 auto;
}


/* ------------------------------------------------------
   HERO
------------------------------------------------------ */

.hm-hero{
    position:relative;
    min-height:68svh;
    display:flex;
    align-items:flex-end;
    overflow:hidden;
    color:#ffffff;
}

.hm-hero-image{
    position:absolute;
    inset:0;
    z-index:1;
}

.hm-hero-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;

    animation:hmHeroZoom 14s ease forwards;
}

.hm-hero::after{

    content:"";

    position:absolute;
    inset:0;

    z-index:2;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.82) 0%,
            rgba(0,0,0,.58) 24%,
            rgba(0,0,0,.20) 60%,
            rgba(0,0,0,.02) 80%
        );
}

.hm-hero-overlay{

    position:relative;

    z-index:3;

    width:100%;

    padding:170px 0 30px;
}

/* ------------------------------------------------------
   HERO CONTENT
------------------------------------------------------ */

.hm-hero-content{

    max-width:760px;

    margin-left:0px;
}

.hm-status{

    display:inline-block;

    margin-bottom:18px;

    padding:6px 15px;

    border-radius:30px;

    background:#18A891;

    color:#ffffff;

    font-size:.65rem;

    font-weight:700;

    letter-spacing:.16em;

    text-transform:uppercase;
}

.hm-hero h1{

    margin:0;

    color:#ffffff;

    font-size:clamp(2rem,2.7vw,3rem);

    line-height:1.08;

    font-weight:500;

    max-width:900px;
}

.hm-price{

    margin:10px 0 18px;

    color:#ffffff;

    font-size:clamp(1.7rem,2.2vw,2.35rem);

    font-weight:600;
}


/* ------------------------------------------------------
   META
------------------------------------------------------ */

.hm-meta{

    display:flex;

    flex-wrap:wrap;

    gap:0;

    font-size:.9rem;

    letter-spacing:.03em;

    color:rgba(255,255,255,.82);
}

.hm-meta span{

    display:flex;

    align-items:center;
}

.hm-meta span:not(:last-child)::after{

    content:"•";

    margin:0 14px;

    opacity:.45;
}

/* ------------------------------------------------------
   BUTTONS
------------------------------------------------------ */

.hm-hero-buttons{

    display:flex;

    gap:18px;

    margin-top:42px;

    flex-wrap:wrap;
}

.hm-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-width:205px;

    padding:12px 30px;

    border-radius:30px;

    background:transparent;

    border:2px solid #18A891;

    color:#18A891;

    font-size:.95rem;

    font-weight:600;

    text-decoration:none;

    transition:all .3s ease;
}

.hm-btn:hover{

    background:#18A891;

    border-color:#18A891;

    color:#ffffff;

    transform:translateY(-2px);
}

.hm-btn-outline{

    background:rgba(255,255,255,.08);

    color:#ffffff;

    border:2px solid rgba(255,255,255,.35);
}

.hm-btn-outline:hover{

    background:#ffffff;

    border-color:#ffffff;

    color:#111111;
}

/* ------------------------------------------------------
   HERO IMAGE ANIMATION
------------------------------------------------------ */

@keyframes hmHeroZoom{

    from{

        transform:scale(1.06);
    }

    to{

        transform:scale(1);
    }
}


/* ------------------------------------------------------
   CONTENT
------------------------------------------------------ */

.hm-section{

    padding:110px 0;
}

.hm-section:nth-child(even){

    background:#f8f8f8;
}

.hm-section h2{

    margin:0 0 40px;

    color:#111111;

    font-size:clamp(2rem,2.6vw,2.8rem);

    font-weight:600;
}

/* ------------------------------------------------------
   SPEC TABLE
------------------------------------------------------ */

.hm-specs{

    display:grid;

    gap:1px;

    background:#e5e5e5;

    border-radius:12px;

    overflow:hidden;

    margin-top:40px;
}

.hm-spec{

    display:grid;

    grid-template-columns:260px 1fr;

    background:#ffffff;
}

.hm-spec-label{

    padding:18px 24px;

    font-weight:600;

    color:#444;
}

.hm-spec-value{

    padding:18px 24px;

    color:#111;
}


/* ------------------------------------------------------
   HIGHLIGHTS
------------------------------------------------------ */

.hm-highlights{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:28px;

    margin-top:50px;
}

.hm-highlight{

    padding:34px;

    border-radius:16px;

    background:#ffffff;

    box-shadow:0 12px 35px rgba(0,0,0,.06);

    transition:.3s ease;
}

.hm-highlight:hover{

    transform:translateY(-5px);

    box-shadow:0 20px 45px rgba(0,0,0,.10);
}

.hm-highlight h3{

    margin:0 0 14px;

    font-size:1.25rem;
}

.hm-highlight p{

    margin:0;

    line-height:1.8;

    color:#555;
}

.hm-hero::before{

    content:"";

    position:absolute;

    left:0;
    right:0;
    bottom:0;

    height:180px;

    z-index:2;

    background:linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,.08) 35%,
        rgba(255,255,255,.28) 55%,
        rgba(255,255,255,.65) 78%,
        #ffffff 100%
    );

    pointer-events:none;
}

/* ------------------------------------------------------
   ASTRA
------------------------------------------------------ */

.single-fahrzeug .entry-header{

    display:none;
}

.single-fahrzeug .site-content{

    padding-top:0;
}




/* ------------------------------------------------------
   QUICK FACTS RESPONSIVE
------------------------------------------------------ */

@media (max-width:1100px){

    .hm-quickfacts{

        padding:0 20px;
    }

    .hm-quickfacts-grid{

        gap:35px;
    }

    .hm-fact{

        min-width:140px;

        padding:40px 0;
    }

    .hm-fact:not(:last-child)::after{

        right:-18px;
    }

}

/* ======================================================
   QUICK FACTS
====================================================== */

.hm-quickfacts{

    position:relative;
    left:50%;
    width:100vw;
    margin-left:-50vw;

    background:#fff;

    border-top:1px solid #ececec;
    border-bottom:1px solid #ececec;
}

.hm-quickfacts .hm-container{

    display:flex;
    justify-content:flex-start;
}

.hm-quickfacts-grid{

    display:flex;
    align-items:center;
    justify-content:flex-start;

    gap:72px;

    padding:55px 0;

    width:auto;
}

.hm-fact{

    position:relative;

    text-align:left;

    padding-right:72px;
}

.hm-fact:last-child{

    padding-right:0;
}

.hm-fact:not(:last-child)::after{

    content:"";

    position:absolute;

    right:34px;
    top:50%;

    transform:translateY(-50%);

    width:1px;
    height:44px;

    background:#ececec;
}

.hm-fact-label{

    font-size:.62rem;

    letter-spacing:.22em;

    text-transform:uppercase;

    color:#9a9a9a;

    margin-bottom:12px;
}

.hm-fact-value{

    font-size:1.28rem;

    font-weight:600;

    color:#222;
}

/* ======================================================
   DESCRIPTION
====================================================== */

.hm-description{

    padding:120px 0;

    background:#ffffff;
}

.hm-description-grid{

    display:grid;

    grid-template-columns:40% 60%;

    gap:55px;

    align-items:start;
}
.hm-description-left{

    position:sticky;

    top:140px;
}

.hm-section-eyebrow{

    margin-bottom:18px;

    color:#18A891;

    font-size:.75rem;

    font-weight:700;

    letter-spacing:.22em;

    text-transform:uppercase;
}

.hm-description-left h2{

    margin:0 0 28px;

    font-size:clamp(2.1rem,2.8vw,3.1rem);

    line-height:1.1;

    font-weight:500;

    color:#111111;
}

.hm-description-intro{

    max-width:360px;

    margin:0;

    font-size:1.05rem;

    line-height:1.8;

    color:#555555;
}
.hm-description-right{

    max-width:760px;
}

.hm-description-content{

    color:#444444;

    font-size:1.08rem;

    line-height:1.95;
}

.hm-description-content p{

    margin:0 0 1.8em;
}

.hm-description-content p:last-child{

    margin-bottom:0;
}

.hm-description-content strong{

    font-weight:600;

    color:#111111;
}

.hm-description-content h3{

    margin:60px 0 18px;

    font-size:1.55rem;

    font-weight:600;

    color:#111111;
}

.hm-description-content ul{

    margin:24px 0;

    padding-left:22px;
}

.hm-description-content li{

    margin-bottom:12px;
}

.hm-description-content a{

    color:#18A891;

    text-decoration:none;

    border-bottom:1px solid transparent;

    transition:.25s ease;
}

.hm-description-content a:hover{

    border-color:#18A891;
}

/* ------------------------------------------------------
   DESCRIPTION RESPONSIVE
------------------------------------------------------ */

@media (max-width:1100px){

    .hm-description{

        padding:90px 0;
    }

    .hm-description-grid{

        grid-template-columns:1fr;

        gap:60px;
    }

    .hm-description-left{

        position:static;
    }

    .hm-description-left h2{

        max-width:700px;
    }

    .hm-description-intro{

        max-width:650px;
    }

    .hm-description-right{

        max-width:100%;
    }

}


@media (max-width:768px){

    .hm-description{

        padding:70px 0;
    }

    .hm-description-grid{

        gap:45px;
    }

    .hm-description-left h2{

        font-size:2rem;

        line-height:1.15;
    }

    .hm-description-intro{

        font-size:1rem;

        line-height:1.7;
    }

    .hm-description-content{

        font-size:1rem;

        line-height:1.8;
    }

    .hm-description-content h3{

        margin:40px 0 14px;

        font-size:1.35rem;
    }

}

.hm-description-content{

    color:#444444;

    font-size:1.08rem;

    line-height:1.95;

    text-align:justify;

    text-justify:inter-word;

    hyphens:auto;

    -webkit-hyphens:auto;

    -ms-hyphens:auto;
}


/* ======================================================
   GALLERY
====================================================== */

.hm-gallery{

    padding:120px 0;

    background:#f8f8f8;
}

.hm-gallery-header{

    margin-bottom:70px;

    text-align:center;
}

.hm-gallery-header h2{

    margin:18px 0 0;

    font-size:clamp(2.2rem,3vw,3.2rem);

    font-weight:500;

    color:#111111;
}

.hm-gallery-main{

    max-width:1200px;

    margin:0 auto 24px;
}

.hm-gallery-main-link{

    display:block;

    overflow:hidden;

    border-radius:18px;

    text-decoration:none;
}

.hm-gallery-main img{

    display:block;

    width:100%;

    aspect-ratio:16/9;

    object-fit:cover;

    transition:transform .45s ease;
}

.hm-gallery-main-link:hover img{

    transform:scale(1.02);
}

/* ------------------------------------------------------
   GALLERY THUMBNAILS
------------------------------------------------------ */

.hm-gallery-thumbs{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(122px,1fr));

    gap:14px;
}

.hm-gallery-thumb{

    position:relative;

    cursor:pointer;

    overflow:hidden;

    border-radius:12px;

    border:2px solid transparent;

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

.hm-gallery-thumb img{

    display:block;

    width:100%;

    aspect-ratio:4/3;

    object-fit:cover;

    opacity:.72;

    transition:opacity .25s ease;
}

.hm-gallery-thumb:hover{

    border-color:#18A891;
}

.hm-gallery-thumb:hover img{

    opacity:1;
}

.hm-gallery-thumb.active{

    border-color:#18A891;
}

.hm-gallery-thumb.active img{

    opacity:1;
}



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

@media (max-width:768px){

    /* ----------------------------------
       HERO
    ---------------------------------- */

    .hm-hero{

        min-height:68vh;
        height:68vh;

        overflow:hidden;
    }

    .hm-hero-image img{

        object-position:65% center;
    }

    .hm-hero-overlay{

        padding:90px 0 28px;

        background:linear-gradient(
            to top,
            rgba(0,0,0,.90) 0%,
            rgba(0,0,0,.72) 28%,
            rgba(0,0,0,.28) 58%,
            rgba(0,0,0,.08) 80%
        );

    }

    /* ----------------------------------
       CONTENT
    ---------------------------------- */

    .hm-container{

        width:92%;
    }

    .hm-hero-content{

        width:100%;
        max-width:none;
        margin-left:0;
    }

    /* ----------------------------------
       STATUS
    ---------------------------------- */

    .hm-status{

        display:none;
    }

    /* ----------------------------------
       TITLE
    ---------------------------------- */

    .hm-hero h1{

        font-size:2.2rem;
        line-height:1.05;

        margin:0 0 10px;
    }

    /* ----------------------------------
       PRICE
    ---------------------------------- */

    .hm-price{

        font-size:2rem;

        margin:0 0 24px;
    }

    /* ----------------------------------
       META
    ---------------------------------- */

    .hm-meta{

        display:none;
    }

    /* ----------------------------------
       BUTTON
    ---------------------------------- */

    .hm-hero-buttons{

        margin-top:0;
    }

    .hm-btn{

        min-width:170px;

        padding:10px 22px;

        font-size:.82rem;
    }

}


/* ------------------------------------------------------
   MOBILE Quickfacts
------------------------------------------------------ */
@media (max-width:768px){

    .hm-quickfacts{

        padding:0 15px;
    }

    .hm-quickfacts-grid{

        justify-content:center;

        gap:28px 18px;
    }

    .hm-fact{

        min-width:140px;

        padding:28px 0;
    }

    .hm-fact-label{

        font-size:.65rem;

        letter-spacing:.15em;
    }

    .hm-fact-value{

        font-size:1.15rem;
    }

    .hm-fact::after{

        display:none;
    }

}

