/* BT-1917: Black Friday 2026 hero banner for /bmw-performance-tuning.
   Markup: components/home/banner-bf2026.html.twig (shown instead of home/banner.html.twig while
   appPerformance.isSaleActiveBF is true).
   Figma "Black friday 2026" > "Pages AP": 551:7333 desktop 1440x800 (incl. a 60px nav strip that the
   real sticky #header replaces, so the hero itself is 740 high) / 551:7384 mobile 375x734.
   Fonts: BebasNeue Regular + Unbounded come from bf2026-topbar.css (loaded before this file),
   Space Grotesk is already on the page. */

/* Self-hosted, SIL OFL (../fonts/BebasNeue/OFL.txt). */
@font-face {
    font-family: 'BebasNeueBold';
    src: url('../fonts/BebasNeue/BebasNeue-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

#bf2026-hero {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-height: 740px;
    overflow: hidden;
    color: #ffffff;
    background-color: #000000;
    /* campaign background at 70% over black = 30% black veil */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('../img/bf2026/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* artwork: technician photo anchored to a centered 1440 box + bottom fades */
#bf2026-hero .bf2026-hero__art {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

#bf2026-hero .bf2026-hero__photo {
    position: absolute;
    top: -60px;
    left: calc(50% - 252px);
    width: 1062px;
    height: 709px;
    display: block;
}

#bf2026-hero .bf2026-hero__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#bf2026-hero .bf2026-hero__fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 456px;
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 116px, rgba(0, 0, 0, 0.85) 286px, rgba(0, 0, 0, 1) 456px);
}

#bf2026-hero .bf2026-hero__inner {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    min-height: 740px;
    margin: 0 auto;
    padding: 90px 60px 31px 60px;
}

#bf2026-hero .bf2026-hero__offer {
    position: relative;
    width: 583px;
    height: 322px;
    text-align: center;
}

#bf2026-hero p {
    margin: 0;
}

#bf2026-hero .bf2026-hero__headline {
    position: absolute;
    top: -6.5px;
    left: 0;
    width: 100%;
    font-family: 'BebasNeueBold', 'Bebas Neue', sans-serif;
    font-weight: 700;
    font-size: 136.8px;
    line-height: 123px;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    color: #1a1c23;
    -webkit-text-stroke: 7.9px #ed3024;
    paint-order: stroke fill;
}

#bf2026-hero .bf2026-hero__chip {
    position: absolute;
    top: 84px;
    left: 185px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 216.4px;
    height: 40.7px;
    padding: 5.5px 12.6px;
    background: #ed3024;
    transform: rotate(-2deg);
    transform-origin: 50% 50%;
}

#bf2026-hero .bf2026-hero__chip span {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 22.8px;
    line-height: 20.5px;
    letter-spacing: -0.456px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #000000;
}

#bf2026-hero .bf2026-hero__discount {
    position: absolute;
    top: 152px;
    left: 0;
    width: 100%;
    font-family: 'BebasNeue', 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 114px;
    line-height: 78px;
    padding-top: 0.5px;
    color: #ffffff;
    text-shadow: 0 0 19.5px rgba(237, 48, 36, 0.8);
}

#bf2026-hero .bf2026-hero__product {
    position: absolute;
    top: 253.5px;
    left: 0;
    width: 100%;
    font-family: 'BebasNeue', 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 52.4px;
    line-height: 36px;
    text-transform: uppercase;
    color: #ffffff;
}

#bf2026-hero .bf2026-hero__btn {
    position: absolute;
    top: 322px;
    left: 168px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 247px;
    height: 62.4px;
    margin: 0;
    padding: 0 26px 0 26.8px;
    border: 2.37px solid #ed3024;
    border-radius: 0;
    outline: 0;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.14);
    -webkit-backdrop-filter: blur(6.3px);
    backdrop-filter: blur(6.3px);
    -webkit-appearance: none;
    appearance: none;
}

#bf2026-hero .bf2026-hero__btn:hover,
#bf2026-hero .bf2026-hero__btn:focus {
    background: rgba(237, 48, 36, 0.18);
}

#bf2026-hero .bf2026-hero__btn-text {
    font-family: 'Unbounded', sans-serif;
    font-weight: 400;
    font-size: 20.9px;
    line-height: 25px;
    white-space: nowrap;
    color: #ed3024;
}

#bf2026-hero .bf2026-hero__btn-arrow {
    width: 31px;
    height: 24px;
    flex: 0 0 auto;
}

#bf2026-hero .bf2026-hero__text {
    width: 950px;
    max-width: 100%;
    margin-top: 110px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 34px;
    letter-spacing: 0.055px;
    color: #ffffff;
}

#bf2026-hero .bf2026-hero__down {
    display: block;
    width: 31.7px;
    height: 31.7px;
    margin-top: 52px;
    cursor: pointer;
}

/* wider than the Figma frame: scale the artwork with the viewport so the car still runs off the right edge */
@media screen and (min-width: 1441px) {
    #bf2026-hero .bf2026-hero__photo {
        top: -4.17vw;
        left: 32.5vw;
        width: 73.75vw;
        height: 49.24vw;
    }
}

/* tablet: keep the desktop composition, scale it to the viewport */
@media screen and (max-width: 1199px) and (min-width: 768px) {
    #bf2026-hero,
    #bf2026-hero .bf2026-hero__inner {
        min-height: 0;
    }

    #bf2026-hero .bf2026-hero__inner {
        padding: 60px 40px 31px 40px;
    }

    #bf2026-hero .bf2026-hero__photo {
        left: auto;
        right: -90px;
        top: -40px;
        width: 800px;
        height: 534px;
    }

    #bf2026-hero .bf2026-hero__offer {
        transform-origin: 0 0;
        transform: scale(0.8);
        margin-bottom: -64px;
    }

    #bf2026-hero .bf2026-hero__text {
        margin-top: 60px;
        font-size: 20px;
        line-height: 30px;
    }
}

@media screen and (max-width: 767px) {
    #bf2026-hero,
    #bf2026-hero .bf2026-hero__inner {
        min-height: 0;
    }

    #bf2026-hero .bf2026-hero__photo {
        top: -57px;
        left: -121px;
        width: 715px;
        height: 478px;
    }

    #bf2026-hero .bf2026-hero__art::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 1) 100%);
    }

    #bf2026-hero .bf2026-hero__fade {
        top: 299px;
        bottom: auto;
        height: 320px;
        background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 22%, rgba(0, 0, 0, 1) 100%);
    }

    #bf2026-hero .bf2026-hero__inner {
        padding: 17px 20px 22px 20px;
    }

    #bf2026-hero .bf2026-hero__offer {
        width: 335px;
        max-width: 100%;
        height: 248px;
    }

    #bf2026-hero .bf2026-hero__headline {
        top: -3.5px;
        font-size: 78.4px;
        line-height: 70.6px;
        -webkit-text-stroke: 4.5px #ed3024;
    }

    #bf2026-hero .bf2026-hero__chip {
        top: 50.7px;
        left: 104px;
        width: 124.7px;
        height: 23.3px;
        padding: 3.2px 7.2px;
    }

    #bf2026-hero .bf2026-hero__chip span {
        font-size: 13.07px;
        line-height: 11.8px;
        letter-spacing: -0.26px;
    }

    #bf2026-hero .bf2026-hero__discount {
        top: 92px;
        font-size: 65.4px;
        line-height: 44.7px;
        padding-top: 1px;
        text-shadow: 0 0 11.2px rgba(237, 48, 36, 0.8);
    }

    #bf2026-hero .bf2026-hero__product {
        top: 149.6px;
        font-size: 30.06px;
        line-height: 20.6px;
    }

    #bf2026-hero .bf2026-hero__btn {
        top: 198px;
        left: 68px;
        width: 197.7px;
        height: 49.9px;
        padding: 0 20px 0 21.5px;
        border-width: 1.9px;
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
    }

    #bf2026-hero .bf2026-hero__btn-text {
        font-size: 16.7px;
        line-height: 20px;
    }

    #bf2026-hero .bf2026-hero__btn-arrow {
        width: 25px;
        height: 19px;
    }

    #bf2026-hero .bf2026-hero__text {
        width: 335px;
        margin-top: 79px;
        font-size: 18px;
        line-height: 24px;
        letter-spacing: 0.045px;
    }

    #bf2026-hero .bf2026-hero__down {
        width: 42.8px;
        height: 42.8px;
        margin-top: 55px;
    }
}

/* BT-1935: earlier campaign art is painted on #appPerformance itself (xmas-25/style.css hero.png with !important,
   style-performance.css bf/backgroundBf.png) and showed through the transparent desktop header. Both are off while
   the BF 2026 switch is on (class set in index.html.twig), so the header sits on the plain #000 page background;
   the cart view gets its regular background back. */
#appPerformance.bf2026-sale {
    background-image: none !important;
}

#appPerformance.bf2026-sale.cart-view {
    background-image: url('../img/cart-view-bg.png') !important;
}
