/* ════════════════════════════════════════════
   Hero Header V4 — Matchmaker Grid — scw-hh4
   ════════════════════════════════════════════ */

.scw-hh4 {
    position: relative;
    background: linear-gradient(
        var(--scw-hh4-bg-angle, 160deg),
        var(--scw-hh4-bg-start, #0C0C14),
        var(--scw-hh4-bg-end, #120C14)
    );
    overflow: hidden;
    font-family: var(--scw-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

/* ── Grid pattern background ── */
.scw-hh4__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(color-mix(in srgb, var(--scw-hh4-accent, #FF3B6E), transparent 97%) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--scw-hh4-accent, #FF3B6E), transparent 97%) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 70% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 50%, black 20%, transparent 70%);
    pointer-events: none;
}

/* ── Inner layout: two-column split ── */
.scw-hh4__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    min-height: 100vh;
    align-items: center;
    padding: 40px 60px 60px 80px;
    position: relative;
    z-index: 10;
}

/* No-images: single centered column */
.scw-hh4--no-images .scw-hh4__inner {
    grid-template-columns: 1fr;
    max-width: 800px;
    text-align: center;
    padding: 80px 40px;
}

/* ── Left column: text content ── */
.scw-hh4__content {
    padding-right: 40px;
    display: flex;
    flex-direction: column;
}

.scw-hh4--no-images .scw-hh4__content {
    padding-right: 0;
    align-items: center;
}

/* ── Pill badge ── */
.scw-hh4__pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 36px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-self: flex-start;
}

.scw-hh4--no-images .scw-hh4__pill {
    align-self: center;
}

.scw-hh4__pill-dot {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    animation: scwHh4LivePulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.scw-hh4__pill-num {
    color: #FFFFFF;
    font-weight: 600;
}

@keyframes scwHh4LivePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50%      { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ── Title — 3-line display heading ── */
.scw-hh4__title {
    font-size: clamp(52px, 7vw, 96px);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 28px;
    color: var(--scw-hh4-heading-color, #FFFFFF);
}

.scw-hh4__line {
    display: block;
}

.scw-hh4__line-accent {
    color: var(--scw-hh4-accent, #FF3B6E);
}

.scw-hh4__line-outline {
    color: rgba(255, 255, 255, 0.15);
    -webkit-text-stroke: 1px var(--scw-hh4-outline-color, rgba(255, 255, 255, 0.25));
    font-size: 0.92em;
}

/* ── Description ── */
.scw-hh4__desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--scw-hh4-desc-color, rgba(255, 255, 255, 0.4));
    max-width: 420px;
    margin: 0 0 44px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

/* ── CTA area ── */
.scw-hh4__cta-area {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.scw-hh4--no-images .scw-hh4__cta-area {
    justify-content: center;
}

/* Primary CTA — square-ish rounded button */
.scw-hh4__cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--scw-hh4-cta-bg, #FF3B6E);
    color: var(--scw-hh4-cta-color, #ffffff);
    border: none;
    padding: 20px 44px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 8px 30px color-mix(in srgb, var(--scw-hh4-cta-bg, #FF3B6E), transparent 75%);
}

.scw-hh4__cta-primary:hover {
    background: var(--scw-hh4-cta-hover, #E0245E);
    transform: translateY(-2px);
    box-shadow: 0 16px 50px color-mix(in srgb, var(--scw-hh4-cta-bg, #FF3B6E), transparent 60%);
}

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

/* Info text next to CTA */
.scw-hh4__info-text {
    font-size: 13px;
    color: var(--scw-hh4-info-color, rgba(255, 255, 255, 0.3));
}

/* ── Stats strip ── */
.scw-hh4__stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    flex-wrap: wrap;
}

.scw-hh4--no-images .scw-hh4__stats {
    justify-content: center;
}

.scw-hh4__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scw-hh4__stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--scw-hh4-stat-num-color, #FFFFFF);
    letter-spacing: -0.02em;
    line-height: 1;
}

.scw-hh4__stat-accent {
    color: var(--scw-hh4-accent, #FF3B6E);
    font-size: 0.72em;
}

.scw-hh4__stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--scw-hh4-stat-lbl-color, rgba(255, 255, 255, 0.3));
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* ── Right column: image grid ── */
.scw-hh4__media {
    position: relative;
}

/* ── Staggered masonry grid ── */
.scw-hh4__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(6, 80px);
    gap: 12px;
    max-width: 620px;
    margin-left: auto;
}

.scw-hh4__g-card {
    border-radius: var(--scw-hh4-img-radius, 14px);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.scw-hh4__g-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--scw-hh4-accent, #FF3B6E), transparent 70%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.scw-hh4__g-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    will-change: transform;
}

.scw-hh4__g-card:hover img {
    transform: scale(1.06);
}

/* Gradient overlay on each card */
.scw-hh4__g-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

/* Masonry grid positions (6 cards) */
.scw-hh4__g-card:nth-child(1) { grid-column: 1; grid-row: 1 / 4; }
.scw-hh4__g-card:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
.scw-hh4__g-card:nth-child(3) { grid-column: 3; grid-row: 1 / 4; }
.scw-hh4__g-card:nth-child(4) { grid-column: 1; grid-row: 4 / 7; }
.scw-hh4__g-card:nth-child(5) { grid-column: 2; grid-row: 3 / 6; }
.scw-hh4__g-card:nth-child(6) { grid-column: 3; grid-row: 4 / 7; }

/* ── Glassmorphism overlay card ── */
.scw-hh4__glass {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 28px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 15;
    white-space: nowrap;
}

.scw-hh4__avatar-stack {
    display: flex;
}

.scw-hh4__mini-av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(12, 12, 20, 0.8);
    overflow: hidden;
    margin-left: -8px;
    flex-shrink: 0;
}

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

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

.scw-hh4__glass-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.scw-hh4__glass-text strong {
    color: var(--scw-hh4-accent, #FF3B6E);
    font-weight: 700;
}

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

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

/* ── Fade-in animations ── */
@keyframes scwHh4FadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.scw-hh4__pill       { animation: scwHh4FadeInUp 0.6s ease both 0.1s; }
.scw-hh4__title      { animation: scwHh4FadeInUp 0.6s ease both 0.2s; }
.scw-hh4__desc       { animation: scwHh4FadeInUp 0.6s ease both 0.35s; }
.scw-hh4__cta-area   { animation: scwHh4FadeInUp 0.6s ease both 0.5s; }
.scw-hh4__stats      { animation: scwHh4FadeInUp 0.6s ease both 0.65s; }

/* ════════════════════════════════════════════
   Responsive — Tablet (≤ 1024px)
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .scw-hh4__inner {
        padding: 32px 40px 48px 48px;
        min-height: auto;
        gap: 32px;
    }

    .scw-hh4__title {
        font-size: clamp(44px, 6vw, 72px);
    }

    .scw-hh4__grid {
        grid-template-rows: repeat(6, 60px);
        gap: 10px;
        max-width: 480px;
    }

    .scw-hh4__stats {
        gap: 28px;
    }

    .scw-hh4__stat-num {
        font-size: 24px;
    }

    .scw-hh4__glass {
        padding: 12px 20px;
        gap: 12px;
        bottom: 20px;
    }

    .scw-hh4__mini-av {
        width: 28px;
        height: 28px;
    }

    .scw-hh4__glass-text {
        font-size: 12px;
    }
}

/* ════════════════════════════════════════════
   Responsive — Mobile (≤ 768px)
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
    .scw-hh4__inner {
        grid-template-columns: 1fr;
        padding: 32px 24px 40px;
        text-align: center;
    }

    .scw-hh4__content {
        padding-right: 0;
        align-items: center;
    }

    .scw-hh4__pill {
        align-self: center;
    }

    .scw-hh4__desc {
        max-width: 100%;
    }

    .scw-hh4__cta-area {
        justify-content: center;
    }

    .scw-hh4__stats {
        justify-content: center;
    }

    /* Grid adjusts for mobile */
    .scw-hh4__grid {
        max-width: 100%;
        grid-template-rows: repeat(6, 60px);
        gap: 8px;
    }

    .scw-hh4__glass {
        bottom: 16px;
        padding: 10px 16px;
        gap: 10px;
    }

    .scw-hh4__mini-av {
        width: 26px;
        height: 26px;
    }

    .scw-hh4__glass-text {
        font-size: 11px;
    }

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

/* ════════════════════════════════════════════
   Responsive — Small mobile (≤ 480px)
   ════════════════════════════════════════════ */
@media (max-width: 480px) {
    .scw-hh4__inner {
        padding: 24px 16px 32px;
    }

    .scw-hh4__pill {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 28px;
    }

    .scw-hh4__title {
        font-size: 42px;
    }

    .scw-hh4__desc {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .scw-hh4__cta-area {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .scw-hh4__cta-primary {
        width: 100%;
        padding: 16px 32px;
        font-size: 13px;
    }

    .scw-hh4__stats {
        gap: 20px;
        margin-top: 40px;
    }

    .scw-hh4__stat-num {
        font-size: 22px;
    }

    .scw-hh4__grid {
        grid-template-rows: repeat(6, 50px);
        gap: 6px;
    }

    .scw-hh4__glass {
        padding: 8px 12px;
        border-radius: 12px;
        gap: 8px;
    }

    .scw-hh4__mini-av {
        width: 22px;
        height: 22px;
    }

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