/*
 * Black Friday 2026 banner (//views/site/_blackFridayBanner.php) and ticker
 * (//views/site/_blackFridayTicker.php).
 *
 * The banner is a self-contained dark hero shown on marketing pages; the
 * ticker is the same yellow strip used on its own on utility pages. Colours,
 * type and the energy chart come from the design supplied by the client;
 * layout is mobile-first and switches to the two-column arrangement at 992px.
 */

.bf-banner,
.bf-ticker--link {
    --bf-ink: #0e0e10;
    --bf-white: #ffffff;
    --bf-red: #e9153b;
    --bf-yellow: #ffd500;
    --bf-muted: #c9c9cf;
    --bf-soft: #e4e4e8;
    --bf-faint: #a9a9b0;
    --bf-row-notch: 9px;
}

.bf-banner {
    position: relative;
    overflow: hidden;
    background: var(--bf-ink);
    color: var(--bf-white);
    font-family: Inter, system-ui, sans-serif;
}

.bf-banner *,
.bf-banner *::before,
.bf-banner *::after {
    box-sizing: border-box;
}

.bf-banner__body {
    --bf-body-gap: 24px;

    display: grid;
    gap: var(--bf-body-gap);
    padding: 27px 0 0;
}

.bf-banner__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-width: 0;
}

.bf-banner__eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    color: var(--bf-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.bf-banner__eyebrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.bf-banner__title {
    display: flex;
    flex-direction: column;
    margin: 0;
    color: var(--bf-white);
    font-family: Anton, Impact, sans-serif;
    font-size: 58px;
    font-weight: 400;
    letter-spacing: .01em;
    line-height: .92;
    text-transform: uppercase;
}

/* greentheme paints every span inside an H2 with the accent colour. */
.bf-banner__title span {
    color: inherit;
}

.bf-banner__title .bf-banner__title-outline {
    color: var(--bf-white);
}

@supports (-webkit-text-stroke: 2px #fff) {
    .bf-banner__title .bf-banner__title-outline {
        color: transparent;
        -webkit-text-stroke: 2px var(--bf-white);
        text-stroke: 2px var(--bf-white);
    }
}

.bf-banner__offer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.bf-flash {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px 9px 10px;
    background: var(--bf-red);
    box-shadow: 4px 4px 0 var(--bf-yellow);
    color: var(--bf-white);
    font-family: Anton, Impact, sans-serif;
    font-size: 27px;
    letter-spacing: .02em;
    line-height: 1;
    text-transform: uppercase;
    transform: rotate(-3deg);
}

.bf-flash__bolt {
    flex: 0 0 auto;
    width: 20px;
    height: 24px;
}

.bf-banner__amount {
    color: var(--bf-yellow);
    font-family: Anton, Impact, sans-serif;
    font-size: 29px;
    line-height: 1;
    text-transform: uppercase;
}

.bf-banner__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bf-ends {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 2px solid var(--bf-yellow);
    border-radius: 999px;
    color: var(--bf-yellow);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.bf-ends__icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
}

.bf-banner__services {
    color: var(--bf-soft);
    font-size: 14px;
    line-height: 1.45;
}

.bf-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.bf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.bf-btn__icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
}

.bf-btn:focus-visible {
    outline: 3px solid var(--bf-yellow);
    outline-offset: 3px;
}

.bf-btn--primary {
    background: var(--bf-red);
    color: var(--bf-white);
}

.bf-btn--primary:hover,
.bf-btn--primary:focus {
    background: #c9102f;
    color: var(--bf-white);
}

.bf-btn--ghost {
    border: 2px solid var(--bf-white);
    color: var(--bf-white);
}

.bf-btn--ghost:hover,
.bf-btn--ghost:focus {
    background: var(--bf-white);
    color: var(--bf-ink);
}

.bf-banner__terms {
    margin: 6px 0 0;
    padding-bottom: 22px;
    color: var(--bf-faint);
    font-size: 10px;
    line-height: 1.45;
}

.bf-chart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
}

.bf-chart__bars {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.bf-chart__row {
    display: flex;
    align-items: center;
    width: var(--bf-row-width);
    height: 21px;
    padding-left: 10px;
    background: var(--bf-row-colour);
    color: var(--bf-row-ink);
    clip-path: polygon(0 0, calc(100% - var(--bf-row-notch)) 0, 100% 50%, calc(100% - var(--bf-row-notch)) 100%, 0 100%);
    font-family: Anton, Impact, sans-serif;
    line-height: 1;
}

.bf-chart__row-label {
    display: none;
    font-size: 22px;
}

.bf-chart__row--a {
    --bf-row-width: 50%;
    --bf-row-colour: #008054;
    --bf-row-ink: #ffffff;
}

.bf-chart__row--b {
    --bf-row-width: 58%;
    --bf-row-colour: #19b459;
    --bf-row-ink: #0e0e10;
}

.bf-chart__row--c {
    --bf-row-width: 66%;
    --bf-row-colour: #8dce46;
    --bf-row-ink: #0e0e10;
}

.bf-chart__row--d {
    --bf-row-width: 74%;
    --bf-row-colour: #ffd500;
    --bf-row-ink: #0e0e10;
}

.bf-chart__row--e {
    --bf-row-width: 82%;
    --bf-row-colour: #fcaa65;
    --bf-row-ink: #0e0e10;
}

.bf-chart__row--f {
    --bf-row-width: 90%;
    --bf-row-colour: #ef8023;
    --bf-row-ink: #0e0e10;
}

.bf-chart__row--g {
    --bf-row-width: 98%;
    --bf-row-colour: #e9153b;
    --bf-row-ink: #ffffff;
}

.bf-chart__burst {
    display: flex;
    flex: 0 0 133px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 133px;
    height: 133px;
    background: var(--bf-yellow);
    clip-path: polygon(50% 0%, 58.2% 8.8%, 69.1% 3.8%, 73.3% 15.1%, 85.4% 14.6%, 84.9% 26.7%, 96.2% 30.9%, 91.2% 41.8%, 100% 50%, 91.2% 58.2%, 96.2% 69.1%, 84.9% 73.3%, 85.4% 85.4%, 73.3% 84.9%, 69.1% 96.2%, 58.2% 91.2%, 50% 100%, 41.8% 91.2%, 30.9% 96.2%, 26.7% 84.9%, 14.6% 85.4%, 15.1% 73.3%, 3.8% 69.1%, 8.8% 58.2%, 0% 50%, 8.8% 41.8%, 3.8% 30.9%, 15.1% 26.7%, 14.6% 14.6%, 26.7% 15.1%, 30.9% 3.8%, 41.8% 8.8%);
    color: var(--bf-ink);
    transform: rotate(10deg);
}

.bf-chart__burst-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.bf-chart__burst-value {
    font-family: Anton, Impact, sans-serif;
    font-size: 46px;
    line-height: .92;
}

.bf-chart__burst-off {
    font-family: Anton, Impact, sans-serif;
    font-size: 19px;
    line-height: 1;
    text-transform: uppercase;
}

.bf-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 37px;
    padding: 0 14px;
    overflow: hidden;
    background: var(--bf-yellow);
    color: var(--bf-ink);
    font-family: Anton, Impact, sans-serif;
    font-size: 15px;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.bf-ticker span,
.bf-ticker svg {
    flex: 0 0 auto;
}

.bf-ticker__track {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: inherit;
}

.bf-ticker__bolt {
    width: 10px;
    height: 14px;
}

/* Standalone ticker on utility pages; the whole strip is the call to action. */
.bf-ticker--link {
    margin-bottom: 40px;
    text-decoration: none;
}

/* The breadcrumb bar carries a 40px bottom margin. Pull the strip up into it
   so it sits against the bar, then replace the space below. */
.main-header + .bf-ticker--link {
    margin-top: -40px;
}

.bf-ticker--link:hover,
.bf-ticker--link:focus {
    background: #ffe23d;
    color: var(--bf-ink);
}

.bf-ticker--link:focus-visible {
    outline: 3px solid var(--bf-ink);
    outline-offset: -4px;
}

@media (min-width: 992px) {
    .bf-banner {
        --bf-row-notch: 17px;
    }

    /*
     * The copy sits in the site's container so it lines up with the hero
     * below; only the dark background and the ticker run edge to edge.
     */
    .bf-banner__body {
        --bf-body-gap: clamp(27px, 3.1vw, 41px);

        grid-template-columns: minmax(0, 1fr) clamp(272px, 25.5vw, 374px);
        gap: var(--bf-body-gap);
        padding: 37px 0 0;
    }

    .bf-banner__eyebrow {
        gap: 10px;
        font-size: 13px;
    }

    .bf-banner__title {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 22px;
        font-size: clamp(54px, 6.6vw, 95px);
        line-height: .9;
    }

    @supports (-webkit-text-stroke: 2.5px #fff) {
        .bf-banner__title .bf-banner__title-outline {
            -webkit-text-stroke: 2.5px var(--bf-white);
            text-stroke: 2.5px var(--bf-white);
        }
    }

    .bf-banner__offer {
        gap: 17px;
    }

    .bf-flash {
        gap: 9px;
        padding: 9px 17px 10px 12px;
        box-shadow: 5px 5px 0 var(--bf-yellow);
        font-size: clamp(29px, 2.9vw, 39px);
    }

    .bf-flash__bolt {
        width: 29px;
        height: 34px;
    }

    .bf-banner__amount {
        font-size: clamp(29px, 2.9vw, 43px);
    }

    .bf-banner__meta {
        gap: 15px;
    }

    .bf-ends {
        gap: 9px;
        padding: 7px 15px;
        font-size: 14px;
    }

    .bf-ends__icon {
        width: 15px;
        height: 15px;
    }

    .bf-banner__services {
        font-size: 15px;
    }

    .bf-banner__actions {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-top: 5px;
    }

    .bf-btn {
        flex: 0 0 auto;
        min-height: 46px;
        padding: 0 26px;
        font-size: 14px;
    }

    .bf-btn__icon {
        width: 15px;
        height: 15px;
    }

    .bf-btn--primary {
        box-shadow: 0 0 0 2px var(--bf-ink), 0 0 0 4px var(--bf-red);
    }

    .bf-banner__terms {
        margin-top: 8px;
        padding-bottom: 31px;
        font-size: 11px;
        white-space: nowrap;
    }

    .bf-chart {
        position: relative;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        margin-top: 0;
    }

    .bf-chart__bars {
        flex: 0 0 auto;
        gap: 6px;
        width: 100%;
    }

    .bf-chart__row {
        height: 32px;
        padding-left: 14px;
    }

    .bf-chart__row-label {
        display: block;
    }

    .bf-chart__row--a {
        --bf-row-width: 46%;
    }

    .bf-chart__row--b {
        --bf-row-width: 54%;
    }

    .bf-chart__row--c {
        --bf-row-width: 62%;
    }

    .bf-chart__row--d {
        --bf-row-width: 70%;
    }

    .bf-chart__row--e {
        --bf-row-width: 78%;
    }

    .bf-chart__row--f {
        --bf-row-width: 86%;
    }

    .bf-chart__row--g {
        --bf-row-width: 94%;
    }

    .bf-chart__burst {
        position: absolute;
        top: 50%;
        right: -12px;
        width: clamp(153px, 15.3vw, 187px);
        height: clamp(153px, 15.3vw, 187px);
        transform: translateY(-56%) rotate(10deg);
    }

    .bf-chart__burst-label {
        font-size: 12px;
    }

    .bf-chart__burst-value {
        font-size: clamp(51px, 5.4vw, 65px);
    }

    .bf-chart__burst-off {
        font-size: 26px;
    }

    .bf-ticker {
        gap: 19px;
        height: 48px;
        padding: 0 20px;
        font-size: 20px;
    }

    .bf-ticker__bolt {
        width: 14px;
        height: 17px;
    }
}
