/* ===== SERVICES SECTION ===== */
.services, .service-detail {
    background-color: #ffffff; /* Keep consistent with layout.css */
}

/* Lead text */
.services .lead,
.service-detail .lead {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Service Cards */
.service-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}

/* Service Images */
.service-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

/* Service Content */
.service-content {
    padding: 30px 25px 40px 25px;
    position: relative;
    flex-grow: 1;
}

/* Service Icons */
.service-icon {
    position: absolute;
    top: -25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Service Icon Colors */
.service-icon.commercial { background: linear-gradient(135deg, #28a745, #20c997); }
.service-icon.office     { background: linear-gradient(135deg, #6f42c1, #e83e8c); }
.service-icon.residential{ background: linear-gradient(135deg, #fd7e14, #ffc107); }

/* Service Titles */
.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-right: 70px;
    color: #333;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: #2575fc;
}

/* Service Text */
.service-content p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Service Buttons */
.btn-service {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
    cursor: pointer;
}

.btn-service.commercial { background: linear-gradient(135deg, #28a745, #20c997); }
.btn-service.office     { background: linear-gradient(135deg, #6f42c1, #e83e8c); }
.btn-service.residential{ background: linear-gradient(135deg, #fd7e14, #ffc107); }

.btn-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

/* ===== SERVICES RESPONSIVE ===== */
@media (max-width: 992px) {
    .service-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    /* Let layout.css handle the section padding */
    .service-title {
        font-size: 1.3rem;
    }

    .service-content {
        padding: 20px;
    }
}

/* Anchor Scroll Fix */
[id]::before {
    display: block;
    content: "";
    height: 100px;
    margin-top: -100px;
    visibility: hidden;
}
