/* ─── Section Header (shared) ─────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--spacing-3);
}

.section-label svg {
    color: var(--color-accent);
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-4);
}

.section-title span {
    color: var(--color-accent);
}

.section-desc {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.75;
    max-width: 620px;
}

.section-header {
    margin-bottom: var(--spacing-12);
}

/* ─── Services Grid ───────────────────────────────────────────── */
.services-grid {
    padding: var(--spacing-20) 0;
    background: var(--color-neutral-50, #F8FAFC);
}

.sg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ─── Card ────────────────────────────────────────────────────── */
.sg-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 360px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    isolation: isolate;
}

/* Background image */
.sg-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--sg-gradient);
}

.sg-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sg-card:hover .sg-card-bg img {
    transform: scale(1.08);
}

/* Gradient overlay */
.sg-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgb(15 23 42 / 0.92) 0%,
        rgb(15 23 42 / 0.5) 50%,
        rgb(15 23 42 / 0.15) 100%
    );
    transition: background 0.4s ease;
}

.sg-card:hover .sg-card-overlay {
    background: linear-gradient(
        to top,
        rgb(15 23 42 / 0.97) 0%,
        rgb(15 23 42 / 0.65) 55%,
        rgb(15 23 42 / 0.25) 100%
    );
}

/* Card body */
.sg-card-body {
    position: relative;
    z-index: 2;
    padding: var(--spacing-6);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.sg-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sg-card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    line-height: 1.2;
}

.sg-card-subtitle {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sg-card-desc {
    font-size: var(--font-size-sm);
    color: rgb(255 255 255 / 0.75);
    line-height: 1.65;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.35s ease;
}

.sg-card:hover .sg-card-desc {
    max-height: 100px;
    opacity: 1;
    transform: translateY(0);
}

/* CTA */
.sg-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px var(--spacing-4);
    background: var(--color-accent);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    width: fit-content;
    transition: all var(--transition-base);
}

.sg-card:hover .sg-card-cta {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateX(4px);
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .sg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        padding: var(--spacing-12) 0;
    }

    .sg-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sg-card {
        min-height: 260px;
    }

    .sg-card-desc {
        max-height: 100px;
        opacity: 1;
        transform: translateY(0);
    }
}
