/* === cards-4-domain ===
 * 2-col header (text + side image) + 4-card grid.
 * Per-card color via --cc CSS var (set by inline style on card from c{n}_color field).
 *
 * @updated 3.5.54 — shared eyebrow, --cc-driven cards, hover lift, dark variant
 */
.c4d {
    width: 100%;
}
.c4d-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--paint-section-padding, 100px) 48px;
}

/* Header (text + side image) */
.c4d-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 56px;
}

.c4d-eyebrow {
    margin: 0 0 12px;
}

.c4d h2 {
    font-size: clamp(28px, 3.6vw, 38px);
    font-weight: var(--paint-heading-weight, 800);
    color: var(--shell-h, var(--preset-primary, currentColor));
    margin: 0 0 16px;
    letter-spacing: var(--paint-heading-letter-spacing-h2, -1px);
    text-transform: var(--paint-heading-case-h2, none);
    line-height: 1.15;
}

.c4d-desc {
    font-size: 16px;
    color: var(--shell-t, var(--preset-text-body, #4a5568));
    line-height: 1.7;
}
.c4d-desc p {
    margin: 0 0 0.6em;
}
.c4d-desc p:last-child {
    margin-bottom: 0;
}

.c4d-header-img img {
    width: 100%;
    height: auto;
    display: block;
}
.c4d-header-img img[src=""] {
    display: none;
}
/* Hide the entire side image column when no image set, give text full width. */
.c4d-header:not(:has(.c4d-header-img img[src]:not([src=""]))) {
    grid-template-columns: 1fr;
}
.c4d-header:not(:has(.c4d-header-img img[src]:not([src=""]))) .c4d-header-img {
    display: none;
}

/* Card grid */
.c4d-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.c4d-card {
    background: var(--shell-card, #fff);
    border: 1px solid var(--shell-line, var(--preset-hairline, rgba(0, 0, 0, 0.08)));
    border-top: 3px solid var(--cc, var(--shell-accent, currentColor));
    padding: 28px 24px;
    transition: all var(--paint-motion-timing, 0.3s);
}
.c4d-card:hover {
    transform: translateY(var(--paint-hover-lift, -3px));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.c4d-card h4 {
    font-size: 16px;
    font-weight: var(--paint-heading-weight, 800);
    letter-spacing: var(--paint-heading-letter-spacing-h4, -0.2px);
    text-transform: var(--paint-heading-case-h4, none);
    color: var(--cc, var(--shell-h, currentColor));
    margin: 0 0 10px;
    line-height: 1.3;
}

.c4d-card-body {
    font-size: 13.5px;
    color: var(--shell-t, var(--preset-text-body, #4a5568));
    line-height: 1.7;
}
.c4d-card-body p {
    margin: 0;
}

/* Tone variant: dark — for use when section sits adjacent to a dark hero */
.ssla-cards-4-domain--tone-dark .c4d {
    background: var(--shell-bg-dark-cool, var(--preset-primary-dark, #1a2a45));
    color: #fff;
}
.ssla-cards-4-domain--tone-dark .c4d h2 {
    color: #fff;
}
.ssla-cards-4-domain--tone-dark .c4d-desc {
    color: rgba(255, 255, 255, 0.78);
}
.ssla-cards-4-domain--tone-dark .c4d-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
.ssla-cards-4-domain--tone-dark .c4d-card-body {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 960px) {
    .c4d-header {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .c4d-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .c4d-inner {
        padding: 64px 24px;
    }
}
@media (max-width: 600px) {
    .c4d-grid {
        grid-template-columns: 1fr;
    }
}
