/* ════════════════════════════════════════════
   Subpage Hero V2 — compact two-column Hero V7
   Left: single gradient H1, subheading, optional
   avatars, gradient pill CTA, note. Right: image.
   Same dark surface, glow, chips and CTA as V7,
   with tighter vertical rhythm for inner pages.
   Depends on scw-base (tokens; all var() uses
   carry literal fallbacks).
   ════════════════════════════════════════════ */

.scw-sh2 {
    position: relative;
    overflow: hidden;
    background: var(--scw-sh2-bg, #08080B);
    font-family: var(--scw-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    padding: clamp(56px, 7vw, 96px) 24px clamp(56px, 7vw, 88px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.scw-sh2 *,
.scw-sh2 *::before,
.scw-sh2 *::after {
    box-sizing: border-box;
}

/* ── Soft accent glow (pure gradients — no blur filter), biased to the text side ── */
.scw-sh2__glow {
    position: absolute;
    top: -30%;
    left: 0;
    width: min(900px, 110vw);
    height: 110%;
    background:
        radial-gradient(ellipse 55% 55% at 30% 45%, var(--scw-sh2-a1, #A855F7) 0%, transparent 65%),
        radial-gradient(ellipse 50% 55% at 55% 50%, var(--scw-sh2-a2, #EC4899) 0%, transparent 65%);
    opacity: 0.12;
    pointer-events: none;
}

/* ── Two-column layout ── */
.scw-sh2__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: center;
}

.scw-sh2--no-image .scw-sh2__inner {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    text-align: center;
}

.scw-sh2--no-image .scw-sh2__avatars {
    justify-content: center;
}

.scw-sh2__content {
    min-width: 0;
}

/* ── Heading — one element, gradient across the whole line ── */
.scw-sh2__title {
    font-size: clamp(32px, 4.4vw, 54px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 18px;
    color: var(--scw-sh2-title, #FFFFFF);
}

.scw-sh2__title--gradient {
    /* Solid color is the built-in fallback for non-text-fill browsers */
    color: var(--scw-sh2-a2, #EC4899);
    background: linear-gradient(98deg, var(--scw-sh2-a1, #A855F7) 10%, var(--scw-sh2-a2, #EC4899) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* keeps the gradient hugging the text */
}

/* ── Subheading (H2 or p) — regular weight, calm ── */
.scw-sh2__sub {
    font-size: clamp(16px, 1.6vw, 19px);
    font-weight: 400;
    line-height: 1.6;
    color: var(--scw-sh2-sub, #E5E7EB);
    max-width: 560px;
    margin: 0 0 28px;
}

/* ── Avatar row — overlapping circles (smaller than V7) ── */
.scw-sh2__avatars {
    display: flex;
    margin: 0 0 28px;
}

.scw-sh2__avatar {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid var(--scw-sh2-bg, #08080B);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 6px 16px rgba(0, 0, 0, 0.45);
    margin-left: -12px;
    position: relative;
    transition: transform 0.2s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.scw-sh2__avatar:first-child {
    margin-left: 0;
}

.scw-sh2__avatar:hover {
    transform: translateY(-4px);
    z-index: 2;
}

.scw-sh2__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── CTA — gradient pill (identical to V7) ── */
.scw-sh2__cta-wrap {
    position: relative;
    display: inline-block;
}

.scw-sh2__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 40px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #FFFFFF;
    text-decoration: none;
    background: linear-gradient(98deg, var(--scw-sh2-a2, #EC4899) 0%, var(--scw-sh2-a1, #A855F7) 100%);
    transition: transform 0.2s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1)),
                box-shadow 0.2s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Colored glow under the button: small blurred copy of its own gradient */
.scw-sh2__cta::before {
    content: '';
    position: absolute;
    inset: 10px 6px -6px 6px;
    border-radius: inherit;
    background: inherit;
    filter: blur(18px);
    opacity: 0.45;
    z-index: -1;
    transition: opacity 0.2s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.scw-sh2__cta:hover {
    transform: translateY(-2px);
    color: #FFFFFF;
}

.scw-sh2__cta:hover::before {
    opacity: 0.7;
}

.scw-sh2__cta:active {
    transform: translateY(0);
}

.scw-sh2__cta:focus-visible {
    outline: 2px solid var(--scw-sh2-a2, #EC4899);
    outline-offset: 4px;
}

.scw-sh2__cta svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Note ── */
.scw-sh2__note {
    margin: 18px 0 0;
    max-width: 480px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--scw-sh2-note, #8B8B93);
}

.scw-sh2--no-image .scw-sh2__note {
    margin-left: auto;
    margin-right: auto;
}

.scw-sh2__note p {
    margin: 0;
}

.scw-sh2__note a {
    color: var(--scw-sh2-a2, #EC4899);
    text-decoration: none;
}

.scw-sh2__note a:hover {
    text-decoration: underline;
}

/* ── Image column ── */
.scw-sh2__media {
    position: relative;
    min-width: 0;
    border-radius: var(--scw-sh2-radius, 24px);
    overflow: hidden;
}

.scw-sh2__media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Subtle frame: thin light border + accent glow behind (gradient, no blur filter) */
.scw-sh2__media--framed {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10), 0 24px 60px rgba(0, 0, 0, 0.55);
}

.scw-sh2__media--framed::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--scw-sh2-a1, #A855F7) 0%, transparent 70%);
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
}

/* ── Optional bottom curve ── */
.scw-sh2__curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
}

.scw-sh2__curve svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* ════════════════════════════════════════════
   Responsive — Tablet (≤ 1023px)
   ════════════════════════════════════════════ */
@media (max-width: 1023px) {
    .scw-sh2__inner {
        gap: 40px;
    }

    .scw-sh2__curve svg { height: 50px; }
}

/* ════════════════════════════════════════════
   Responsive — Mobile (≤ 767px): stack, text first
   ════════════════════════════════════════════ */
@media (max-width: 767px) {
    .scw-sh2 {
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }

    .scw-sh2__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .scw-sh2__glow {
        left: 50%;
        transform: translateX(-50%);
        width: min(700px, 140vw);
    }

    .scw-sh2__sub {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 24px;
    }

    .scw-sh2__avatars {
        justify-content: center;
        margin-bottom: 24px;
    }

    .scw-sh2__note {
        margin-left: auto;
        margin-right: auto;
    }

    .scw-sh2__media {
        max-width: 520px;
        margin: 0 auto;
    }

    .scw-sh2__curve svg { height: 36px; }
}

/* ════════════════════════════════════════════
   Responsive — Small mobile (≤ 480px)
   ════════════════════════════════════════════ */
@media (max-width: 480px) {
    .scw-sh2__avatar {
        width: 40px;
        height: 40px;
        margin-left: -10px;
    }

    .scw-sh2__cta-wrap {
        display: block;
    }

    .scw-sh2__cta {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        padding: 16px 32px;
        font-size: 15px;
    }

    .scw-sh2__note { font-size: 12px; }
}

/* ── Elementor Editor Overrides ── */
.elementor-editor-active .scw-sh2 {
    min-height: 200px;
}
