/**
 * BW Section Heading — kicker + two-tone heading + lead.
 *
 * Scoped under .elementor-widget-bw-section-heading so the rules outrank the
 * Elementor global kit, which targets headings as `.elementor-kit-N h2`.
 */

.elementor-widget-bw-section-heading {
    --bw-blue: #005eb8;
    --bw-orange: #f28120;
    --bw-ink: #101720;
    --bw-body: #5b6570;
    --bw-light: #aab4bf;
}

.elementor-widget-bw-section-heading * {
    box-sizing: border-box;
}

.elementor-widget-bw-section-heading .bw-sh-kicker {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    font: 800 11.5px/1 'Open Sans', Arial, sans-serif;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--bw-blue);
    margin: 0 0 18px;
}

.elementor-widget-bw-section-heading .bw-sh-kicker::before {
    content: "";
    flex: 0 0 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--bw-orange);
}

.elementor-widget-bw-section-heading .bw-sh.no-rule .bw-sh-kicker::before {
    display: none;
}

/* Centred / right alignment has to move the kicker and subtitle blocks, not
   just the text inside them — both are width:fit-content. Keyed off the
   data-align attributes the widget renders, per breakpoint. */
.elementor-widget-bw-section-heading .bw-sh[data-align="center"] .bw-sh-kicker,
.elementor-widget-bw-section-heading .bw-sh[data-align="center"] .bw-sh-sub,
.elementor-widget-bw-section-heading .bw-sh[data-align="center"] .bw-sh-lead {
    margin-left: auto;
    margin-right: auto;
}

.elementor-widget-bw-section-heading .bw-sh[data-align="right"] .bw-sh-kicker,
.elementor-widget-bw-section-heading .bw-sh[data-align="right"] .bw-sh-sub {
    margin-left: auto;
    margin-right: 0;
}

@media (max-width: 1024px) {
    .elementor-widget-bw-section-heading .bw-sh[data-align-tablet="left"] .bw-sh-kicker,
    .elementor-widget-bw-section-heading .bw-sh[data-align-tablet="left"] .bw-sh-sub,
    .elementor-widget-bw-section-heading .bw-sh[data-align-tablet="left"] .bw-sh-lead {
        margin-left: 0;
        margin-right: 0;
    }
    .elementor-widget-bw-section-heading .bw-sh[data-align-tablet="center"] .bw-sh-kicker,
    .elementor-widget-bw-section-heading .bw-sh[data-align-tablet="center"] .bw-sh-sub,
    .elementor-widget-bw-section-heading .bw-sh[data-align-tablet="center"] .bw-sh-lead {
        margin-left: auto;
        margin-right: auto;
    }
    .elementor-widget-bw-section-heading .bw-sh[data-align-tablet="right"] .bw-sh-kicker,
    .elementor-widget-bw-section-heading .bw-sh[data-align-tablet="right"] .bw-sh-sub {
        margin-left: auto;
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    .elementor-widget-bw-section-heading .bw-sh[data-align-mobile="left"] .bw-sh-kicker,
    .elementor-widget-bw-section-heading .bw-sh[data-align-mobile="left"] .bw-sh-sub,
    .elementor-widget-bw-section-heading .bw-sh[data-align-mobile="left"] .bw-sh-lead {
        margin-left: 0;
        margin-right: 0;
    }
    .elementor-widget-bw-section-heading .bw-sh[data-align-mobile="center"] .bw-sh-kicker,
    .elementor-widget-bw-section-heading .bw-sh[data-align-mobile="center"] .bw-sh-sub,
    .elementor-widget-bw-section-heading .bw-sh[data-align-mobile="center"] .bw-sh-lead {
        margin-left: auto;
        margin-right: auto;
    }
    .elementor-widget-bw-section-heading .bw-sh[data-align-mobile="right"] .bw-sh-kicker,
    .elementor-widget-bw-section-heading .bw-sh[data-align-mobile="right"] .bw-sh-sub {
        margin-left: auto;
        margin-right: 0;
    }
}

.elementor-widget-bw-section-heading .bw-sh-title {
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
    color: var(--bw-ink);
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

.elementor-widget-bw-section-heading .bw-sh-title .thin {
    font-weight: 200;
    color: var(--bw-light);
}

/* ------------------------------------------------------------ subtitle --- *
 * The product-family line that sits directly under the title, with an orange
 * rule beneath it. This is what makes the page-title block a different shape
 * from a section heading rather than just a larger one.                      */

.elementor-widget-bw-section-heading .bw-sh-sub {
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 600;
    font-size: 12.5px;
    line-height: 1.4;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--bw-blue);
    margin: 11px 0 0;
    padding: 0;
    width: fit-content;
    max-width: 100%;
    border-bottom: 0 solid var(--bw-orange);
}

.elementor-widget-bw-section-heading .bw-sh.has-sub-rule .bw-sh-sub {
    padding-bottom: 14px;
    border-bottom-width: 2px;
}

.elementor-widget-bw-section-heading .bw-sh.sub-rule-full .bw-sh-sub {
    width: 100%;
}

/* the lead, when it follows a ruled subtitle, needs to clear the rule */
.elementor-widget-bw-section-heading .bw-sh-sub + .bw-sh-lead {
    margin-top: 18px;
}

.elementor-widget-bw-section-heading .bw-sh-lead {
    font: 400 15.5px/1.7 'Open Sans', Arial, sans-serif;
    color: var(--bw-body);
    max-width: 680px;
    margin: 14px 0 0;
    padding: 0;
}

/* ------------------------------------------------------------- presets --- */

/* page title — product name, one per page */
.elementor-widget-bw-section-heading .bw-sh.is-page .bw-sh-title {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -.04em;
}

.elementor-widget-bw-section-heading .bw-sh.is-page .bw-sh-kicker {
    margin-bottom: 14px;
}

.elementor-widget-bw-section-heading .bw-sh.is-page .bw-sh-lead {
    font-size: 16.5px;
    margin-top: 18px;
}

/* the family line under a product name sits a little further off the title,
   because the title's -.04em tracking pulls its baseline up */
.elementor-widget-bw-section-heading .bw-sh.is-page .bw-sh-sub {
    margin-top: 13px;
}

/* section heading — the default */
.elementor-widget-bw-section-heading .bw-sh.is-section .bw-sh-title {
    font-size: clamp(26px, 3.2vw, 40px);
}

/* compact — sub-sections inside a block */
.elementor-widget-bw-section-heading .bw-sh.is-compact .bw-sh-title {
    font-size: clamp(19px, 2vw, 24px);
    letter-spacing: -.02em;
}

.elementor-widget-bw-section-heading .bw-sh.is-compact .bw-sh-kicker {
    font-size: 10.5px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.elementor-widget-bw-section-heading .bw-sh.is-compact .bw-sh-kicker::before {
    flex-basis: 18px;
    height: 2px;
}

.elementor-widget-bw-section-heading .bw-sh.is-compact .bw-sh-lead {
    font-size: 14px;
    margin-top: 10px;
}

.elementor-widget-bw-section-heading .bw-sh.is-compact .bw-sh-sub {
    font-size: 11px;
    letter-spacing: 1.2px;
    margin-top: 8px;
}

.elementor-widget-bw-section-heading .bw-sh.is-compact.has-sub-rule .bw-sh-sub {
    padding-bottom: 10px;
}

@media (max-width: 767px) {
    .elementor-widget-bw-section-heading .bw-sh-kicker {
        letter-spacing: 1.8px;
        margin-bottom: 14px;
    }
    .elementor-widget-bw-section-heading .bw-sh-lead {
        font-size: 14.5px;
    }
    .elementor-widget-bw-section-heading .bw-sh-sub {
        font-size: 11.5px;
        letter-spacing: 1.1px;
    }
    .elementor-widget-bw-section-heading .bw-sh.has-sub-rule .bw-sh-sub {
        padding-bottom: 11px;
    }
}
