/* =========================================================
   BLACK DAS BLACKS GEFCAR - HERO DA HOME
   Ativado por CONF_BLACK_WEEK (src/Boot/Config.php)
   ========================================================= */

.bw-hero {
    --bw-gold: #ffc21a;
    --bw-gold-2: #ff9d00;
    --bw-ink: #070707;
    position: relative;
    isolation: isolate;
    width: 100%;
    height: clamp(680px, 54vw, 900px);
    margin: 0;
    overflow: hidden;
    background: var(--bw-ink);
    color: #fff;
}

/* Header flutuando sobre a hero */
.page-black-week-hero .main-header {
    z-index: 3;
}

.page-black-week-hero .main-header .top-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 6;
    background: linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .38) 65%, transparent 100%);
}

.page-black-week-hero .main-header > .container {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    z-index: 6;
    pointer-events: none;
}

@media (min-width: 768px) {
    .page-black-week-hero .main-header > .container {
        max-width: min(100%, 1640px);
        padding: 0 clamp(20px, 3.5vw, 64px);
    }

    .page-black-week-hero .main-header > .container > .row {
        justify-content: flex-start !important;
        margin: 0;
    }
}

.page-black-week-hero .main-header > .container #notificationWarning {
    pointer-events: auto;
}

.page-black-week-hero .share-site,
.page-black-week-hero .social-contact {
    z-index: 1;
}

/* ---------- Fundo ---------- */
.bw-hero__bg,
.bw-hero__glow,
.bw-hero__floor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bw-hero__bg {
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 70% at 18% 45%, rgba(255, 140, 0, .16), transparent 70%),
        linear-gradient(180deg, #0d0d0d 0%, #050505 100%);
}

.bw-hero__store {
    position: absolute;
    top: 0;
    right: 0;
    width: 74%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 40%;
    filter: brightness(.78) saturate(1.15) contrast(1.05);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 48%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 48%);
    transform: scale(1.04);
    animation: bw-store-drift 22s ease-in-out infinite alternate;
}

.bw-hero__glow {
    background:
        radial-gradient(ellipse 26% 42% at 70% 52%, rgba(255, 176, 0, .42), rgba(255, 120, 0, .14) 55%, transparent 75%);
    mix-blend-mode: screen;
    animation: bw-glow 4.5s ease-in-out infinite;
}

.bw-hero__floor {
    background:
        linear-gradient(90deg, rgba(5, 5, 5, .9) 0%, rgba(5, 5, 5, .55) 30%, transparent 55%),
        linear-gradient(0deg, #0b0b0b 0%, rgba(11, 11, 11, .7) 9%, transparent 30%),
        linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, transparent 22%);
}

/* ---------- Conteúdo ---------- */
.bw-hero__inner {
    position: relative;
    box-sizing: border-box;
    width: min(100%, 1640px);
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(20px, 3.5vw, 64px);
    display: flex;
    align-items: stretch;
}

.bw-hero__content {
    position: relative;
    z-index: 2;
    flex: 0 0 46%;
    max-width: 46%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 88px;
    padding-bottom: 104px;
}

.bw-hero__logo-wrap {
    position: relative;
    width: min(100%, 620px);
    margin-left: -2%;
    isolation: isolate;
    animation: bw-float 6s ease-in-out infinite;
}

.bw-hero__logo-wrap::before {
    position: absolute;
    z-index: -1;
    inset: 12% 8% 14%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 186, 0, .45), rgba(255, 130, 0, .16) 55%, transparent 75%);
    filter: blur(34px);
    content: "";
    animation: bw-glow 4.5s ease-in-out infinite;
}

.bw-hero__logo-wrap::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(112deg, transparent 40%, rgba(255, 255, 255, .0) 44%, rgba(255, 250, 220, .85) 50%, rgba(255, 200, 60, .3) 54%, transparent 60%);
    background-size: 300% 100%;
    background-position: 100% 0;
    mix-blend-mode: screen;
    opacity: .9;
    -webkit-mask: url("../images/black-week-hero-logo.webp") center / 100% 100% no-repeat;
    mask: url("../images/black-week-hero-logo.webp") center / 100% 100% no-repeat;
    content: "";
    pointer-events: none;
    animation: bw-shine 5.5s linear infinite;
}

.bw-hero__logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .6));
}

.bw-hero__tagline {
    position: relative;
    margin: clamp(8px, 1.4vw, 22px) 0 0;
    padding-left: 22px;
    font-size: clamp(22px, 2.15vw, 38px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -.01em;
    color: #fff;
    font-style: italic;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .7);
}

.bw-hero__tagline::before {
    position: absolute;
    top: 6%;
    bottom: 6%;
    left: 0;
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--bw-gold), var(--bw-gold-2));
    box-shadow: 0 0 12px rgba(255, 194, 26, .7);
    content: "";
}

.bw-hero__tagline strong {
    font-weight: 800;
    color: var(--bw-gold);
}

.bw-hero__date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: clamp(12px, 1.2vw, 18px) 0 0;
    padding: 8px 18px;
    border: 1px solid rgba(255, 194, 26, .7);
    border-radius: 999px;
    background: rgba(0, 0, 0, .55);
    font-size: clamp(14px, 1.15vw, 19px);
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 170, 0, .22);
}

.bw-hero__date i {
    color: var(--bw-gold);
    font-size: 1.1em;
}

.bw-hero__date strong {
    font-weight: 900;
    color: var(--bw-gold);
}

.bw-hero__cta {
    position: relative;
    overflow: hidden;
    margin-top: clamp(16px, 1.7vw, 28px);
    min-height: 60px;
    padding: 0 38px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd43a 0%, #ffbb00 100%);
    color: #111 !important;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: clamp(17px, 1.45vw, 24px);
    font-weight: 900;
    letter-spacing: .01em;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(255, 170, 0, .35), 0 1px 0 rgba(255, 255, 255, .55) inset, 0 -3px 0 rgba(0, 0, 0, .12) inset;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.bw-hero__cta::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
    transform: skewX(-20deg);
    content: "";
    animation: bw-cta-shine 3.8s ease-in-out infinite;
}

.bw-hero__cta i {
    font-size: .85em;
    transition: transform .2s ease;
}

.bw-hero__cta:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(255, 170, 0, .5), 0 1px 0 rgba(255, 255, 255, .55) inset;
}

.bw-hero__cta:hover i {
    transform: translateX(4px);
}

.bw-hero__cta:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.bw-hero__legal {
    max-width: 600px;
    margin: 16px 0 0;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 194, 26, .55);
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: .01em;
    color: rgba(255, 255, 255, .72);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}

.bw-hero__legal--mobile {
    display: none;
}

.bw-hero__people {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 78px;
}

/* ---------- Palco dos prêmios (imagem + efeitos) ---------- */
.bw-stage {
    position: relative;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 840 / 941;
    isolation: isolate;
}

.bw-stage__img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55));
}

/* Sombra de contato no chão (pés e roda do carrinho) */
.bw-stage::after {
    position: absolute;
    z-index: 1;
    left: -4%;
    right: -4%;
    bottom: -1.5%;
    height: 7%;
    background:
        radial-gradient(ellipse 11% 38% at 6% 52%, rgba(0, 0, 0, .75), transparent 70%),
        radial-gradient(ellipse 14% 40% at 24% 62%, rgba(0, 0, 0, .75), transparent 70%),
        radial-gradient(ellipse 18% 38% at 74% 40%, rgba(0, 0, 0, .7), transparent 70%),
        radial-gradient(ellipse 12% 38% at 91% 52%, rgba(0, 0, 0, .75), transparent 70%),
        radial-gradient(ellipse 50% 55% at 50% 55%, rgba(0, 0, 0, .45), transparent 75%);
    filter: blur(3px);
    content: "";
    pointer-events: none;
}

/* Explosão de luz pulsando de dentro do carrinho */
.bw-fx-burst {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 46%;
    width: 80%;
    aspect-ratio: 1;
    margin-left: -40%;
    margin-top: -40%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 236, 160, .9) 0%, rgba(255, 190, 30, .55) 22%, rgba(255, 140, 0, .18) 48%, transparent 68%);
    mix-blend-mode: screen;
    animation: bw-burst 3.2s ease-in-out infinite;
    pointer-events: none;
}

/* Reflexo passando por cima de cada card de prêmio */
.bw-fx-shine {
    position: absolute;
    z-index: 3;
    overflow: hidden;
    border-radius: 12%/18%;
    pointer-events: none;
}

.bw-fx-shine::after {
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -70%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 250, 225, .75), transparent);
    transform: skewX(-18deg);
    mix-blend-mode: screen;
    content: "";
    animation: bw-card-shine 6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.bw-fx-shine--ipva {
    left: 26.4%;
    top: 22.5%;
    width: 19.8%;
    height: 13.4%;
    transform: rotate(-7deg);
    --delay: 0s;
}

.bw-fx-shine--garantia {
    left: 47.6%;
    top: 24.6%;
    width: 22.4%;
    height: 14.6%;
    transform: rotate(7deg);
    --delay: .35s;
}

.bw-fx-shine--tanque {
    left: 22.2%;
    top: 39.8%;
    width: 23.6%;
    height: 11.8%;
    transform: rotate(-2deg);
    --delay: .7s;
}

.bw-fx-shine--transferencia {
    left: 48.2%;
    top: 41.2%;
    width: 27.4%;
    height: 10.6%;
    transform: rotate(2deg);
    --delay: 1.05s;
}

.bw-fx-shine--carrinho {
    left: 29.6%;
    top: 55.6%;
    width: 37%;
    height: 12.4%;
    border-radius: 4%;
    --delay: 1.4s;
}

/* Faíscas douradas subindo do carrinho */
.bw-fx-sparks {
    position: absolute;
    z-index: 4;
    left: 22%;
    right: 22%;
    top: 8%;
    bottom: 36%;
    pointer-events: none;
}

.bw-fx-spark {
    position: absolute;
    bottom: 0;
    left: var(--x, 50%);
    width: var(--s, 6px);
    height: var(--s, 6px);
    border-radius: 50%;
    background: #fff6c8;
    box-shadow: 0 0 6px 2px rgba(255, 210, 60, .9), 0 0 14px 4px rgba(255, 150, 0, .5);
    opacity: 0;
    animation: bw-spark var(--t, 3.6s) ease-out infinite;
    animation-delay: var(--d, 0s);
}

.bw-fx-spark:nth-child(3n)::before {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300%;
    height: 300%;
    background:
        linear-gradient(90deg, transparent 45%, #fff6c8 50%, transparent 55%),
        linear-gradient(0deg, transparent 45%, #fff6c8 50%, transparent 55%);
    transform: translate(-50%, -50%);
    content: "";
}

.bw-fx-spark--1 { --x: 8%; --s: 5px; --t: 3.4s; --d: 0s; --dx: -30px; }
.bw-fx-spark--2 { --x: 18%; --s: 7px; --t: 4.1s; --d: .6s; --dx: -18px; }
.bw-fx-spark--3 { --x: 27%; --s: 4px; --t: 3.2s; --d: 1.3s; --dx: -10px; }
.bw-fx-spark--4 { --x: 36%; --s: 6px; --t: 3.8s; --d: .3s; --dx: -6px; }
.bw-fx-spark--5 { --x: 44%; --s: 8px; --t: 4.4s; --d: 1.9s; --dx: 4px; }
.bw-fx-spark--6 { --x: 52%; --s: 5px; --t: 3.5s; --d: .9s; --dx: -4px; }
.bw-fx-spark--7 { --x: 60%; --s: 7px; --t: 4s; --d: 2.4s; --dx: 8px; }
.bw-fx-spark--8 { --x: 68%; --s: 4px; --t: 3.3s; --d: 1.6s; --dx: 14px; }
.bw-fx-spark--9 { --x: 76%; --s: 6px; --t: 3.9s; --d: .15s; --dx: 20px; }
.bw-fx-spark--10 { --x: 86%; --s: 5px; --t: 3.6s; --d: 2.1s; --dx: 30px; }
.bw-fx-spark--11 { --x: 31%; --s: 3px; --t: 2.9s; --d: 2.8s; --dx: -22px; }
.bw-fx-spark--12 { --x: 57%; --s: 3px; --t: 3s; --d: 3.1s; --dx: 16px; }
.bw-fx-spark--13 { --x: 47%; --s: 5px; --t: 4.6s; --d: 1.1s; --dx: -12px; }
.bw-fx-spark--14 { --x: 72%; --s: 3px; --t: 3.1s; --d: 3.4s; --dx: 24px; }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) and (min-width: 768px) {
    .bw-hero {
        height: clamp(640px, 84vw, 800px);
    }

    .bw-hero__content {
        flex-basis: 50%;
        max-width: 50%;
        padding-top: 90px;
    }

    .bw-hero__store {
        width: 90%;
    }

    .bw-hero__people .bw-stage {
        width: 100%;
        height: auto;
        max-height: 100%;
    }

    .bw-hero__cta {
        min-height: 54px;
        padding: 0 28px;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .page-black-week-hero .main-header > .container {
        bottom: 12px;
    }

    .page-black-week-hero #notificationWarning {
        padding: 4px 14px;
        font-size: 12px;
        line-height: 1.3;
    }

    .bw-hero {
        height: auto;
    }

    .bw-hero__store {
        width: 100%;
        height: 62%;
        object-position: 64% 50%;
        -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
        filter: brightness(.45) saturate(1.1);
    }

    .bw-hero__glow {
        background: radial-gradient(ellipse 70% 30% at 50% 74%, rgba(255, 176, 0, .38), rgba(255, 120, 0, .12) 55%, transparent 78%);
    }

    .bw-hero__floor {
        background:
            linear-gradient(0deg, #0b0b0b 0%, rgba(11, 11, 11, .6) 8%, transparent 22%),
            linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, transparent 18%);
    }

    .bw-hero__inner {
        flex-direction: column;
        align-items: center;
        padding: 0 18px;
    }

    .bw-hero__content {
        flex: none;
        max-width: 100%;
        width: 100%;
        align-items: center;
        text-align: center;
        padding: 86px 0 0;
    }

    .bw-hero__logo-wrap {
        width: min(96%, 460px);
        margin: 0 auto;
    }

    .bw-hero__tagline {
        padding-left: 0;
        font-size: clamp(19px, 5.6vw, 26px);
    }

    .bw-hero__tagline::before {
        display: none;
    }

    .bw-hero__date {
        margin-top: 12px;
        padding: 7px 16px;
        font-size: 13px;
    }

    .bw-hero__cta {
        min-height: 54px;
        margin-top: 18px;
        padding: 0 30px;
        font-size: 17px;
    }

    .bw-hero__legal--desktop {
        display: none;
    }

    .bw-hero__legal--mobile {
        display: block;
        max-width: 340px;
        margin: 4px auto 0;
        padding: 0;
        border-left: 0;
        font-size: 10.5px;
        text-align: center;
    }

    .bw-hero__people {
        width: 100%;
        padding-top: 14px;
        padding-bottom: 0;
    }

    .bw-hero__inner {
        padding-bottom: 76px;
    }

    .bw-stage {
        width: min(100%, 520px);
        height: auto;
    }
}

/* ---------- Animações ---------- */
@keyframes bw-burst {
    0%, 100% { opacity: .55; transform: scale(.92); }
    50% { opacity: 1; transform: scale(1.06); }
}

@keyframes bw-card-shine {
    0%, 62% { left: -70%; }
    82%, 100% { left: 130%; }
}

@keyframes bw-spark {
    0% { opacity: 0; transform: translate(0, 0) scale(.4); }
    12% { opacity: 1; }
    70% { opacity: .9; }
    100% { opacity: 0; transform: translate(var(--dx, 0), -240%) translateY(-120px) scale(1); }
}

@keyframes bw-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes bw-glow {
    0%, 100% { opacity: .75; }
    50% { opacity: 1; }
}

@keyframes bw-shine {
    0%, 55% { background-position: 100% 0; }
    85%, 100% { background-position: 0 0; }
}

@keyframes bw-cta-shine {
    0%, 60% { left: -60%; }
    100% { left: 130%; }
}

@keyframes bw-store-drift {
    from { transform: scale(1.04) translateX(0); }
    to { transform: scale(1.09) translateX(-1.2%); }
}

@media (prefers-reduced-motion: reduce) {
    .bw-hero *,
    .bw-hero *::before,
    .bw-hero *::after {
        animation: none !important;
        transition: none !important;
    }
}
