/**
 * 2PX Elementor Suite — Split Section Widget
 * BEM Methodology
 */

/* ── Container ──────────────────────────────────────────────────────────────── */
.twopx-splitsection {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.twopx-splitsection * {
    box-sizing: border-box;
}

/* ── Eyebrow bar ────────────────────────────────────────────────────────────── */
.twopx-splitsection__eyebrow {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.twopx-splitsection__eyebrow-prefix {
    color: #e63329;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.twopx-splitsection__eyebrow-label {
    color: #1a1a2e;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.twopx-splitsection__eyebrow-line {
    flex: 1 1 auto;
    height: 1px;
    background-color: #d0d0d0;
    display: block;
}

/* ── Body (two columns) ─────────────────────────────────────────────────────── */
.twopx-splitsection__body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
}

/* ── Left column — headline ─────────────────────────────────────────────────── */
.twopx-splitsection__left {
    flex: 0 0 48%;
}

.twopx-splitsection__headline {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a2e;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Right column — texts ───────────────────────────────────────────────────── */
.twopx-splitsection__right {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
}

.twopx-splitsection__primary {
    color: #1a1a2e;
    font-size: 1.125rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.twopx-splitsection__secondary {
    color: #9a9a9a;
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* Paragraph resets */
.twopx-splitsection__primary p,
.twopx-splitsection__secondary p {
    margin: 0 0 0.85em 0;
}

.twopx-splitsection__primary p:last-child,
.twopx-splitsection__secondary p:last-child {
    margin-bottom: 0;
}

/* ── Responsive: stack columns on mobile ─────────────────────────────────────── */
@media (max-width: 767px) {
    .twopx-splitsection__body {
        flex-direction: column;
        gap: 32px;
    }

    .twopx-splitsection__left {
        flex: none;
        width: 100%;
    }

    .twopx-splitsection__right {
        width: 100%;
    }

    .twopx-splitsection__headline {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}

@media (max-width: 480px) {
    .twopx-splitsection__eyebrow-line {
        display: none;
    }
}
