.services-header {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
        url('../../assets/images/hero (7).jpg') center/cover;
}



.cta-group {
    display: flex;
    gap: 15px;
}

.services {
    padding: 80px 8%;
    background: var(--gray);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.card .icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}


.detailed-services {
    padding: 60px 0;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 5%;
    padding: 60px 8%;
}

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

.service-text {
    flex: 1;
}

.service-text h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.service-text ul {
    list-style: none;
    margin-top: 20px;
}

.service-text li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-text li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
}

.service-image {
    flex: 1;
}

.service-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-action {
    margin-top: 30px;
}

@media (max-width: 768px) {

    .service-row,
    .service-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
}

/* Mobile: reorder service elements so the image appears right after the heading */
@media (max-width: 768px) {

    .service-row,
    .service-row .reverse {
        display: grid;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
        border-bottom: solid silver 1px;
    }

    .service-text {
        display: contents;
    }

    .service-text h2 {
        order: 1;
    }

    .service-image {
        order: 2;
    }

    .service-text p {
        order: 3;
    }

    .service-text ul {
        order: 4;
    }

    .service-action {
        order: 5;
    }
}