/* --- Services Page Specific Styles --- */

/* Hero remains unchanged */
.services-hero {
    height: 70vh;
    background: linear-gradient(rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.7)), 
                url('https://firebasestorage.googleapis.com/v0/b/instantcorp-2390d.firebasestorage.app/o/hero_services.webp?alt=media&token=20f4db47-1b4b-46cb-9159-9014541cfe0f') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.services-hero .hero-content {
    max-width: 850px;
    padding-left: 0;
}

.services-hero .hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 25px;
}

.services-hero .hero-description {
    border-left: 3px solid var(--green);
    padding-left: 2rem;
    max-width: 650px;
}

/* Main Content Section */
.services-content {
    background-color: var(--black, #050505);
    padding: 100px 0;
}

.service-block {
    display: flex;
    align-items:flex-start;
    justify-content: space-between;
    margin-bottom: 120px;
    gap: 80px;
}

.service-block:last-child {
    margin-bottom: 0;
}

.service-block.reversed {
    flex-direction: row-reverse;
}

/* 1. IMAGE UNIFORMITY FIX: Using fixed height for all standard blocks */
.service-image {
    flex: 0 0 42%; 
    height: 420px; /* Forces every image to this exact height */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-image img {
    width: 100%;
    height: 100%; /* Ensures the image fills the container height */
    display: block;
    object-fit: cover; /* Prevents distortion by cropping to fit the 420px height */
}



/* 2. STRETCHED TEXT LAYOUT: Optimized for longer titles */
.service-text {
    flex: 1;
}

.green-accent {
    width: 80px;
    height: 3px;
    background-color: var(--green, #407B06);
    margin-bottom: 20px;
}

.service-title {
    color: var(--white, #FAFAFA);
    font-family: 'Gabarito', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    width: 100%;
}

.service-subtitle {
    color: var(--white, #FAFAFA);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.3;
    display: block;
    width: 100%;
}

.service-paragraph {
    color: var(--gray-text, #a0a0a0);
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 300;
    text-align: justify;
    max-width: 95%;
}

/* 3. AQUATIC EXCEPTION: Full Width Style */
.service-block.full-width-style {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.service-block.full-width-style .service-image {
    flex: 0 0 auto;
    width: 100%;
    height: 500px; /* Cinematic taller height for full-width featured section */
}

/* White CTA Section stays same */
.cta-white {
    background-color: var(--white, #FAFAFA);
    padding: 100px 0;
    color: var(--black, #050505);
}

.cta-heading {
    font-family: 'Gabarito', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-subtext {
    font-size: 1.1rem;
    color: #444;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* 4. RESPONSIVE: Reset heights for mobile stacking */
@media (max-width: 900px) {
    .service-block, 
    .service-block.reversed {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
    }

    .service-image {
        flex: 0 0 auto;
        width: 100%;
        height: 300px; /* Shorter height for mobile screens */
    }

    .service-block.full-width-style .service-image {
        height: 300px;
    }

    .cta-heading {
        font-size: 2rem;
    }
}