/* =======================================
   STARLIGHTS PAGE — Matches Tint/Wrap Layout
========================================== */

:root {
    --starlight-main-height: 700px;
    --starlight-main-x: center;
    --starlight-main-y: 45%;
    --starlight-main-fit: cover;
}

/* HERO */
.service-hero {
    padding-top: 6.2rem;
    padding-bottom: 0.5rem;
    min-height: 160px;
    background-size: cover;
    background-position: center 55%;
    text-align: center;
}

.service-hero h1 {
    color: #ea0188;
    font-size: 2.4rem;
}

/* MAIN IMAGE */
.starlight-main-img {
    width: 100%;
    height: var(--starlight-main-height);
    object-fit: var(--starlight-main-fit);
    object-position: var(--starlight-main-x) var(--starlight-main-y);
    border-radius: 12px;
    margin: 0 auto 2rem;
    display: block;
}

/* DESCRIPTION TITLE */
.desc-title {
    text-align: center;
    color: #ea0188;
    margin-bottom: 0.5rem;
}

/* DESCRIPTION TEXT */
.service-description p {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #afa0a4;
    line-height: 1.6;
    padding: 0 1rem;
}

/* 3-ACROSS GALLERY */
.additional-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.additional-images img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
}

/* INDIVIDUAL CROPPING CONTROLS */
.starlight-img-1 {
    --extra-height: 350px;
    --extra-x: 50%;
    --extra-y: 50%;
    height: var(--extra-height);
    object-position: var(--extra-x) var(--extra-y);
}

.starlight-img-2 {
    --extra-height: 350px;
    --extra-x: 50%;
    --extra-y: 45%;
    height: var(--extra-height);
    object-position: var(--extra-x) var(--extra-y);
}

.starlight-img-3 {
    --extra-height: 350px;
    --extra-x: 50%;
    --extra-y: 55%;
    height: var(--extra-height);
    object-position: var(--extra-x) var(--extra-y);
}

/* CTA BUTTON */
.cta-btn {
    display: block;
    background: #ea0188;
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    margin: 2.5rem auto 3rem;
    max-width: 300px;
    text-align: center;
    font-weight: 600;
    transition: 0.25s;
}

.cta-btn:hover {
    background-color: #b8006a;
    transform: translateY(-2px);
}

@media (max-width: 768px) {

    /* MAIN IMAGE – same crop as desktop */
    .service-main-image,
    .tint-main-img,
    .wrap-main-img,
    .caliper-main-img,
    .exhaust-main-img,
    .tires-main-img {
        height: 260px;          /* Smaller height ONLY */
        object-fit: cover;       /* Same fit */
        /* NO object-position override */
    }

    /* GALLERY IMAGES – same crop as desktop */
    .additional-images {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .additional-images img {
        height: 200px;           /* Smaller height ONLY */
        object-fit: cover;
        /* NO object-position override */
    }

    /* TEXT WIDTH FIX */
    .service-description p,
    .desc-title,
    h2,
    .link-tree {
        max-width: 92%;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-btn {
        max-width: 85%;
    }
}
