﻿/* ===== Services Hero ===== */
.services-hero {
    padding: 3.25rem 0 1.75rem;
}

.services-hero h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: var(--green-900);
    margin: 0 0 .6rem;
    letter-spacing: -0.2px;
}

.services-desc {
    max-width: 680px;
    color: var(--muted);
    margin: 0;
}

.services-cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

/* ===== Blocks ===== */
.service-block {
    padding: 3rem 0;
    background: var(--bg);
}

/* xen kẽ background nhẹ */
.service-block:nth-of-type(odd) {
    background: #ffffff;
}

.service-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

/* đảo chiều cho block chẵn */
.service-block:nth-of-type(even) .service-media {
    order: 2;
}

.service-block:nth-of-type(even) .service-content {
    order: 1;
}

/* ===== Media ===== */
.service-media img {
    width: 100%;
    aspect-ratio: 11 / 7;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 18px 40px rgba(31, 77, 58, .14);
}

/* ===== Content ===== */
.service-content h2 {
    margin: 0 0 .75rem;
    color: var(--green-900);
}

.service-content p {
    color: var(--muted);
    margin: 0 0 .9rem;
}

.service-list {
    margin: 0 0 1rem 1.1rem;
    color: var(--ink);
}

.service-list li {
    margin: .35rem 0;
}

/* ===== Meta & CTA ===== */
.service-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: .5rem;
}

.price {
    font-weight: 600;
    color: var(--green-700);
}

.actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* về mặc định: ảnh lên trên, text xuống dưới */
    .service-media,
    .service-content {
        order: 0 !important;
    }

    .service-media img {
        aspect-ratio: 16 / 10;
    }

    .service-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .services-hero {
        padding: 2.75rem 0 1.25rem;
    }

    .service-block {
        padding: 2.25rem 0;
    }

    .service-media img {
        border-radius: 16px;
    }

    .actions .btn {
        width: 100%;
        justify-content: center;
    }
}