/* ==========================================================================
   Black Friday landing page: extra sections.
   Loaded after landing-black-friday.css and uses the same colours
   (the --bfl-* variables are defined on .bfl in that file).
   Sections: trust (numbers + logos), steps, inspiration gallery,
   mobile bottom bar, scroll fade-in.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Trust: numbers + sliding client logos
   -------------------------------------------------------------------------- */
.bfl-trust {
    padding: 70px 0 50px;
    background: #fff;
}

.bfl-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.bfl-stats__item strong {
    display: block;
    font-family: var(--bfl-display);
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1;
    color: var(--bfl-purple);
}

.bfl-stats__item span {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #4b5563;
}

/* Logos slide slowly to the left; the row is printed twice for a seamless loop */
.bfl-logos {
    margin-top: 50px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.bfl-logos__track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: bflTape 45s linear infinite;
}

.bfl-logos__item {
    flex: 0 0 auto;
    width: 130px;
    height: 70px;
    background: center / contain no-repeat;
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.bfl-logos__item:hover {
    filter: none;
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Steps: "how it works"
   -------------------------------------------------------------------------- */
.bfl-steps {
    padding: 90px 0;
    background: #f7f1e8;
}

.bfl-steps__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bfl-steps__item {
    position: relative;
    padding: 26px 22px;
    border: 2px solid var(--bfl-purple);
    border-radius: 18px;
    background: #fff;
}

/* Small arrow between the steps (desktop only) */
.bfl-steps__item:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -19px;
    z-index: 1;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--bfl-purple);
    transform: translateY(-50%);
}

.bfl-steps__num {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--bfl-yellow);
    font-family: var(--bfl-mono);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--bfl-black);
}

.bfl-steps__item h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
}

.bfl-steps__item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4b5563;
}

/* --------------------------------------------------------------------------
   Inspiration gallery (black background)
   -------------------------------------------------------------------------- */
.bfl-inspo {
    padding: 90px 0;
    background: var(--bfl-black);
}

.bfl-inspo .bfl-section-title {
    color: var(--bfl-yellow);
}

.bfl-inspo .bfl-section-text {
    color: rgba(255, 255, 255, 0.75);
}

.bfl-inspo__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.bfl-inspo__item {
    display: block;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: #1d1b24;
}

.bfl-inspo__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bfl-inspo__item:hover img {
    transform: scale(1.07);
}

/* --------------------------------------------------------------------------
   Mobile bottom bar (hidden on desktop, shown by the script on mobile)
   -------------------------------------------------------------------------- */
.bfl-sticky {
    display: none;
}

/* --------------------------------------------------------------------------
   Scroll fade-in. The script adds .bfl-fade, then .is-in when visible.
   Without the script, nothing is hidden.
   -------------------------------------------------------------------------- */
.bfl-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.bfl-fade.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .bfl-fade {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Tablet and mobile
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .bfl-steps__list,
    .bfl-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .bfl-steps__item::after {
        display: none;
    }

    .bfl-inspo__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .bfl-trust,
    .bfl-steps,
    .bfl-inspo {
        padding: 64px 0;
    }

    .bfl-steps__list {
        grid-template-columns: 1fr;
    }

    .bfl-logos__item {
        width: 100px;
        height: 56px;
    }

    /* Bottom bar: slides up from below when .is-visible is added */
    .bfl-sticky {
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: 12px;
        z-index: 1040;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 10px 10px 18px;
        border-radius: 999px;
        background: var(--bfl-black);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
        color: #fff;
        transform: translateY(150%);
        transition: transform 0.35s ease;
    }

    .bfl-sticky.is-visible {
        transform: none;
    }

    .bfl-sticky__text strong {
        font-family: var(--bfl-display);
        font-weight: 900;
        text-transform: uppercase;
        color: var(--bfl-yellow);
    }

    .bfl-sticky__text span {
        margin-left: 6px;
        font-size: 0.9rem;
    }

    .bfl-sticky__btn {
        padding: 10px 20px;
        border-radius: 999px;
        background: var(--bfl-yellow);
        font-weight: 800;
        color: var(--bfl-black);
        text-decoration: none;
    }
}
