/* =======================================
   TIRES PAGE — MATCHES TINT PAGE SYSTEM
   Full image controls (main + gallery)
========================================== */

/* GLOBAL CONTROLS FOR MAIN IMAGE */
:root {
    --tires-main-height: 700px;
    --tires-main-x: center;
    --tires-main-y: 75%;
    --tires-main-fit: cover;
}

/* ============================
   HERO (keep identical style)
============================= */
.service-hero {
    padding-top: 7rem;
    padding-bottom: 0.2rem !important;
    min-height: 260px;
    background-size: cover;
    background-position: center 55%;
    text-align: center;
}

.service-hero h1 {
    color: #ea0188;
    font-size: 2.4rem;
}

/* ============================
   MAIN IMAGE (full control)
============================= */
.tires-main-img {
    width: 100%;
    height: var(--tires-main-height);
    object-fit: var(--tires-main-fit);
    object-position: var(--tires-main-x) var(--tires-main-y);
    border-radius: 12px;
    display: block;
    margin: 0 auto 2rem;
}

/* ============================
   DESCRIPTION
============================= */
.service-description p {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #afa0a4;
    line-height: 1.6;
    padding: 0 1rem;
    font-size: 1rem;
}

/* ============================
   GALLERY GRID (3 across)
============================= */
.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 IMAGE CROPS (full control)
   You can change --h, --x, --y for each one
========================================= */

/* Base style for Tires gallery images */
.tires-img-1,
.tires-img-2,
.tires-img-3 {
    width: 100%;
    height: var(--h, 350px);
    object-fit: cover;
    object-position: var(--x, 50%) var(--y, 50%);
    border-radius: 10px;
}

/* Tires Image 1 */
.tires-img-1 {
    --h: 360px;
    --x: 50%;
    --y: 55%;
}

/* Tires Image 2 */
.tires-img-2 {
    --h: 360px;
    --x: 50%;
    --y: 45%;
}

/* Tires Image 3 */
.tires-img-3 {
    --h: 360px;
    --x: 50%;
    --y: 50%;
}

/* ============================
   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%;
    }
}
