/* ============================
   BUILD 2 – M4 IMAGE CONTROLS
   ============================ */

:root {
    /* MAIN IMG CONTROL */
    --main-img-width: 100%;
    --main-img-height: 450px;
    --main-img-zoom: cover;
    --main-img-position-x: center;
    --main-img-position-y: 50%;

    /* DEFAULT GALLERY SETTINGS */
    --gallery-default-height: 300px;
    --gallery-default-fit: cover;
}

/* -----------------------------------
   FIX: SPACING BELOW FIXED HEADER
----------------------------------- */

.service-hero {
    padding-top: 7rem;         /* same as build1 */
    padding-bottom: 2rem;

    min-height: 260px;
    height: auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 55%;
    text-align: center;
}

/* Extra spacing before the main image */
.service-content {
    padding-top: 2rem;
}


/* -----------------------------------
   TITLE + DESCRIPTION
----------------------------------- */

.build-title {
    color: #ea0188;
    text-align: center;
}

.build-description {
    color: #afa0a4;
    text-align: center;
    margin-bottom: 2rem;
}


/* -----------------------------------
   MAIN IMAGE (FULL CONTROL)
----------------------------------- */

.build-main-image {
    width: var(--main-img-width);
    height: var(--main-img-height);
    object-fit: var(--main-img-zoom);
    object-position: var(--main-img-position-x) var(--main-img-position-y);
    border-radius: 12px;
    display: block;
    margin: 0 auto 2rem;
}


/* -----------------------------------
   GALLERY SYSTEM – FULL CONTROL
----------------------------------- */

.gallery-img {
    width: 100%;
    height: var(--gallery-height, var(--gallery-default-height));
    object-fit: var(--gallery-fit, var(--gallery-default-fit));
    object-position: var(--gallery-x, center) var(--gallery-y, center);
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* ===== INDIVIDUAL IMAGE CONTROLS ===== */
/* You will adjust these values manually to crop each image */

.img-1 {
    --gallery-height: 320px;
    --gallery-fit: cover;
    --gallery-x: 50%;
    --gallery-y: 50%;
}

.img-2 {
    --gallery-height: 320px;
    --gallery-fit: contain;
    --gallery-x: 50%;
    --gallery-y: 55%;
}

.img-3 {
    --gallery-height: 320px;
    --gallery-fit: contain;
    --gallery-x: 40%;
    --gallery-y: 65%;
}


/* -----------------------------------
   HERO TITLE STYLE
----------------------------------- */

.service-hero h1 {
    color: #ea0188 !important;
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 12px rgba(0,0,0,0.6);
}


/* -----------------------------------
   CTA BUTTON – CENTERED CONSISTENT
----------------------------------- */

.cta-btn {
    display: block;
    background-color: #ea0188;
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    margin: 2.5rem auto 3rem !important;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    width: max-content;
    transition: 0.25s ease;
}

.cta-btn:hover {
    background-color: #b8006a;
    transform: translateY(-2px);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .service-content {
        padding: 2rem 1.5rem;
    }
    
    .build-description {
        padding: 0 1rem;
        line-height: 1.7;
    }
    
    .build-main-image {
        height: 250px !important;
        margin-bottom: 2rem;
    }
    
    .build-gallery {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .gallery-img {
        height: 200px !important;
    }
    
    .cta-btn {
        width: 90%;
        max-width: 300px;
        padding: 1rem 2rem;
    }
}

 @media (max-width: 768px) {

    /* SPECIFIC OVERRIDE FOR IMAGE 3 */
    .build-gallery img.img-3 {
        height: 220px !important;
        object-fit: cover !important;
        object-position: center 65% !important; /* move UP strongly */
        margin-top: -10px !important;  /* pulls image UP even more */
    }
}

