/**
 * Section: Hero — Split 2 (Design Language)
 * RSD Design Language Wave 3 Primitive 2.
 * Companion to: pages/sections/hero-split-2.php
 *
 * @since 3.5.70 (RSD primitives band)
 */

[data-ssla-type="hero-split-2"]{
    padding: var(--shell-section-padding-y-generous) 48px;
    background: var(--ssla-bg-color, var(--shell-surface-cream));
}

[data-ssla-type="hero-split-2"][data-ssla-variant-surface="cream"]{ background: var(--ssla-bg-color, var(--shell-surface-cream)); }
[data-ssla-type="hero-split-2"][data-ssla-variant-surface="warm"]{ background: var(--ssla-bg-color, var(--shell-surface-warm)); }
[data-ssla-type="hero-split-2"][data-ssla-variant-surface="light"]{ background: var(--ssla-bg-color, var(--shell-surface-light)); }
[data-ssla-type="hero-split-2"][data-ssla-variant-surface="dark"]{ background: var(--ssla-bg-color, var(--shell-surface-dark)); }
[data-ssla-type="hero-split-2"][data-ssla-variant-surface="darker"]{ background: var(--ssla-bg-color, var(--shell-surface-darker)); }

.ssla-hero-split-2{
    max-width: var(--shell-content-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

[data-ssla-type="hero-split-2"][data-ssla-variant-layout="image-left"] .ssla-hero-split-2{
    grid-template-columns: 1fr 1fr;
}

[data-ssla-type="hero-split-2"][data-ssla-variant-layout="image-left"] .ssla-hero-split-2-text{
    order: 2;
}

[data-ssla-type="hero-split-2"][data-ssla-variant-layout="image-left"] .ssla-hero-split-2-visual{
    order: 1;
}

[data-ssla-type="hero-split-2"][data-ssla-variant-layout="image-only"] .ssla-hero-split-2{
    grid-template-columns: 1fr;
}

[data-ssla-type="hero-split-2"][data-ssla-variant-layout="image-only"] .ssla-hero-split-2-text{
    text-align: center;
    margin-top: 32px;
}

.ssla-hero-split-2-text > * + *{
    margin-top: 24px;
}

.ssla-hero-split-2-text .ssla-h1{
    font-size: var(--paint-h1-size, clamp(40px, 5vw, 72px));
    line-height: 1.05;
}

.ssla-hero-split-2-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* Visual / image treatment */
.ssla-hero-split-2-img-wrap{
    position: relative;
    overflow: hidden;
}

.ssla-hero-split-2-img{
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

/* image-style variants */
[data-ssla-type="hero-split-2"][data-ssla-variant-image-style="lifted"] .ssla-hero-split-2-img-wrap{
    border-radius: 4px;
    border: 1px solid var(--shell-hairline-strong);
    box-shadow:
        var(--shell-shadow-lift-1),
        var(--shell-shadow-lift-2),
        var(--shell-shadow-lift-3);
}

[data-ssla-type="hero-split-2"][data-ssla-variant-image-style="bordered"] .ssla-hero-split-2-img-wrap{
    border: 1px solid var(--shell-hairline-strong);
}

[data-ssla-type="hero-split-2"][data-ssla-variant-image-style="flat"] .ssla-hero-split-2-img-wrap{
    border: 0;
    box-shadow: none;
}

.ssla-hero-split-2-img-caption{
    margin-top: 12px;
    font-size: 13px;
    color: var(--shell-text-muted);
    line-height: 1.4;
}

[data-ssla-variant-tone="dark"] .ssla-hero-split-2-img-caption{
    color: var(--shell-text-on-dark-muted);
}

/* Stats row (shared treatment per _typography.css applies) */
.ssla-hero-split-2 .ssla-stats-row{
    margin-top: 48px;
}

/* Mobile */
@media (max-width: 767px) {
    [data-ssla-type="hero-split-2"]{
        padding: 80px 24px;
    }

    .ssla-hero-split-2{
        grid-template-columns: 1fr;
        gap: 40px;
    }

    [data-ssla-type="hero-split-2"][data-ssla-variant-layout="image-left"] .ssla-hero-split-2-text{
        order: 1;
    }

    [data-ssla-type="hero-split-2"][data-ssla-variant-layout="image-left"] .ssla-hero-split-2-visual{
        order: 2;
    }
}

/* v3.12.02 — tone override classes. ssla-tone-dark inverts text
 * to read against dark bgs; ssla-tone-light inverts to read against
 * light bgs. Surgical inversion of headings/body/eyebrow; complete
 * coverage will iterate per Glenn's walks. */
.ssla-tone-dark[data-ssla-type="hero-split-2"] .ssla-h1{color: var(--shell-text-on-dark, #ffffff)}
.ssla-tone-dark[data-ssla-type="hero-split-2"] .ssla-lede{color: var(--shell-text-on-dark-muted, rgba(255,255,255,0.78))}
.ssla-tone-dark[data-ssla-type="hero-split-2"] .ssla-eyebrow{color: var(--shell-accent, #E2A03F)}
.ssla-tone-light[data-ssla-type="hero-split-2"] .ssla-h1{color: var(--shell-text-dark, #1a1d21)}
.ssla-tone-light[data-ssla-type="hero-split-2"] .ssla-lede{color: var(--shell-text-body, #4a5568)}
