/* ════════════════════════════════════════════
   Hero Header Widget — scw-hh
   ════════════════════════════════════════════ */

.scw-hh {
    position: relative;
    background: linear-gradient(
        var(--scw-hh-bg-angle, 135deg),
        var(--scw-hh-bg-start, #fce4ec),
        var(--scw-hh-bg-end, #e8eaf6)
    );
    padding: 80px 32px 100px;
    overflow: hidden;
    font-family: var(--scw-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

/* ── Inner layout: two-column on desktop ── */
.scw-hh__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.scw-hh--no-images .scw-hh__inner {
    grid-template-columns: 1fr;
    max-width: 720px;
    text-align: center;
}

/* ── Left column: text content ── */
.scw-hh__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.scw-hh--no-images .scw-hh__content {
    align-items: center;
}

/* Title */
.scw-hh__title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--scw-hh-heading-color, #1a1a2e);
    margin: 0;
}

.scw-hh__accent {
    color: var(--scw-hh-accent, #e91e63);
}

/* Description */
.scw-hh__desc {
    font-size: 17px;
    line-height: 1.65;
    color: var(--scw-hh-desc-color, #555570);
    margin: 0;
    max-width: 480px;
}

/* CTA wrap */
.scw-hh__cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.scw-hh--no-images .scw-hh__cta-wrap {
    align-items: center;
}

/* CTA button */
.scw-hh__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: var(--scw-hh-cta-bg, #3f51b5);
    color: var(--scw-hh-cta-color, #ffffff);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background 0.25s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1)),
                transform 0.25s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1)),
                box-shadow 0.25s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.scw-hh__cta:hover {
    background: var(--scw-hh-cta-hover, #303f9f);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

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

/* Note below CTA */
.scw-hh__note {
    font-size: 13px;
    color: var(--scw-hh-note-color, #888899);
    font-weight: 500;
}

/* ── Right column: media ── */
.scw-hh__media {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Image grid — 3 flex columns with staggered middle ── */
.scw-hh__grid {
    display: flex;
    gap: 10px;
}

.scw-hh__grid-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Middle column offset — real padding so it takes up layout space */
.scw-hh__grid-col--mid {
    padding-top: 28px;
}

.scw-hh__img-cell {
    overflow: hidden;
    border-radius: var(--scw-hh-img-radius, 16px);
    position: relative;
}

.scw-hh__img-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--scw-ease-out, cubic-bezier(0, 0, 0.2, 1));
    will-change: transform;
}

.scw-hh__img-cell img:hover {
    transform: scale(1.05);
}

/* Masonry — vary aspect ratios per column position */
/* Columns 1 & 3: tall first image, short second */
.scw-hh__grid-col:not(.scw-hh__grid-col--mid) .scw-hh__img-cell:first-child img {
    aspect-ratio: 3 / 4;
}
.scw-hh__grid-col:not(.scw-hh__grid-col--mid) .scw-hh__img-cell:last-child img {
    aspect-ratio: 5 / 4;
}

/* Middle column: short first image, tall second (inverted) */
.scw-hh__grid-col--mid .scw-hh__img-cell:first-child img {
    aspect-ratio: 5 / 4;
}
.scw-hh__grid-col--mid .scw-hh__img-cell:last-child img {
    aspect-ratio: 3 / 4;
}

/* ── Stats counters ── */
.scw-hh__stats {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.scw-hh__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--scw-hh-stats-bg, #ffffff);
    border: 1px solid var(--scw-hh-stats-border, #e8e8f0);
    border-radius: 12px;
    padding: 16px 28px;
    flex: 1;
    min-width: 140px;
}

.scw-hh__stat-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--scw-hh-stat-num-color, #e91e63);
    letter-spacing: -0.01em;
}

.scw-hh__stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--scw-hh-stat-lbl-color, #555570);
}

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

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

/* ════════════════════════════════════════════
   Responsive — Tablet (≤ 1024px)
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .scw-hh {
        padding: 64px 24px 88px;
    }

    .scw-hh__inner {
        gap: 40px;
    }

    .scw-hh__title {
        font-size: clamp(28px, 4.5vw, 42px);
    }

    .scw-hh__desc {
        font-size: 16px;
    }

    .scw-hh__grid-col--mid {
        padding-top: 20px;
    }
}

/* ════════════════════════════════════════════
   Responsive — Mobile landscape / small tablet (≤ 768px)
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
    .scw-hh {
        padding: 48px 20px 80px;
    }

    .scw-hh__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }

    .scw-hh__content {
        align-items: center;
    }

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

    .scw-hh__cta-wrap {
        align-items: center;
    }

    .scw-hh__grid {
        gap: 8px;
    }

    .scw-hh__grid-col {
        gap: 8px;
    }

    .scw-hh__grid-col--mid {
        padding-top: 16px;
    }

    /* On mobile keep the masonry but with tighter ratios */
    .scw-hh__grid-col:not(.scw-hh__grid-col--mid) .scw-hh__img-cell:first-child img {
        aspect-ratio: 3 / 4;
    }
    .scw-hh__grid-col:not(.scw-hh__grid-col--mid) .scw-hh__img-cell:last-child img {
        aspect-ratio: 1 / 1;
    }
    .scw-hh__grid-col--mid .scw-hh__img-cell:first-child img {
        aspect-ratio: 1 / 1;
    }
    .scw-hh__grid-col--mid .scw-hh__img-cell:last-child img {
        aspect-ratio: 3 / 4;
    }

    .scw-hh__stats {
        gap: 8px;
    }

    .scw-hh__stat {
        padding: 12px 20px;
        min-width: 120px;
    }

    .scw-hh__stat-num {
        font-size: 16px;
    }

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

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

    .scw-hh__title {
        font-size: 28px;
    }

    .scw-hh__desc {
        font-size: 15px;
    }

    .scw-hh__cta {
        padding: 14px 32px;
        font-size: 14px;
        width: 100%;
    }

    .scw-hh__grid {
        gap: 6px;
    }

    .scw-hh__grid-col {
        gap: 6px;
    }

    .scw-hh__grid-col--mid {
        padding-top: 12px;
    }

    .scw-hh__stats {
        flex-direction: column;
    }

    .scw-hh__stat {
        flex-direction: row;
        gap: 8px;
        min-width: 0;
    }

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