/* ===================================
   Black Friday Special 2026 — Homepage Section
   The section sits directly below the hero on index.html and is shown only
   while <html data-bfp-state="active"> (set by assets/js/bf-campaign.js
   before first paint). This file also holds the tokens and primitives the
   homepage modal shares (.bfp-eyebrow, .bfp-countdown, .bfp-btn); the
   modal layout itself lives in bf-modal.css.
   =================================== */
.bfp-home,
.bf-modal {
    --bfp-ink: #141114;
    --bfp-ink-soft: #3a3236;
    --bfp-muted: #625a5e;
    --bfp-magenta: #c33d79;
    --bfp-magenta-deep: #962657;
    --bfp-wine: #8e2353;
    --bfp-rose: #efa9c6;
    --bfp-champagne: #dcc29c;
    --bfp-ivory: #fbf8f4;
    --bfp-on-dark: rgba(251, 248, 244, 0.8);
    --bfp-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --bfp-dark-surface:
        radial-gradient(60% 90% at 88% 10%, rgba(195, 61, 121, 0.42) 0%, rgba(195, 61, 121, 0) 62%),
        radial-gradient(45% 70% at 4% 108%, rgba(220, 194, 156, 0.2) 0%, rgba(220, 194, 156, 0) 60%),
        linear-gradient(150deg, #1d181c 0%, #141114 55%, #0f0c0f 100%);
}

.bfp-home {
    display: none;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
    background: linear-gradient(180deg, #fff 0%, #fbf3f6 100%);
}

html[data-bfp-state="active"] .bfp-home {
    display: block;
}

/* ---------- Shared primitives ---------- */
.bfp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.25rem;
    padding: 0.45rem 1rem 0.45rem 0.8rem;
    border: 1px solid rgba(220, 194, 156, 0.38);
    border-radius: 999px;
    background: rgba(220, 194, 156, 0.08);
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--bfp-champagne);
}

.bfp-eyebrow__dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bfp-rose);
    animation: bfp-pulse 2.2s ease-out infinite;
}

@keyframes bfp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 169, 198, 0.6); }
    70% { box-shadow: 0 0 0 9px rgba(239, 169, 198, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 169, 198, 0); }
}

/* "Special" in the display titles. */
.bfp-home__title em,
.bfp-modal__title em {
    display: block;
    padding-right: 0.08em;
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(100deg, #f8d3e2 0%, #efa9c6 38%, #d65a93 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Static text until bf-campaign.js fills in the live tiles. */
.bfp-countdown {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bfp-on-dark);
}

.bfp-countdown__visual {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.bfp-countdown__label {
    margin-right: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bfp-champagne);
}

.bfp-countdown__unit {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 3.5rem;
    padding: 0.55rem 0.45rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.bfp-countdown__unit b {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.bfp-countdown__unit small {
    margin-top: 0.3rem;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(251, 248, 244, 0.7);
}

.bfp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 56px;
    padding: 0 1.75rem 0 2rem;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(135deg, #c93f7f 0%, #b8336f 50%, #962657 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 14px 30px -10px rgba(195, 61, 121, 0.7),
        0 2px 6px rgba(0, 0, 0, 0.22);
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: transform 0.25s var(--bfp-ease), box-shadow 0.25s ease;
}

/* Light sheen that sweeps across on hover. */
.bfp-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.32) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: left 0.65s ease;
    pointer-events: none;
}

.bfp-btn:hover,
.bfp-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 20px 38px -12px rgba(195, 61, 121, 0.8),
        0 3px 8px rgba(0, 0, 0, 0.22);
    color: #fff;
}

.bfp-btn:hover::after {
    left: 120%;
}

.bfp-btn__arrow {
    flex: none;
    transition: transform 0.25s var(--bfp-ease);
}

.bfp-btn:hover .bfp-btn__arrow {
    transform: translateX(4px);
}

.bfp-btn--block {
    width: 100%;
}

.bfp-home :focus-visible {
    outline: 3px solid var(--bfp-rose);
    outline-offset: 3px;
}

/* ---------- Section ---------- */
.bfp-home__stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(2.25rem, 4.5vw, 3.75rem);
    overflow: hidden;
    isolation: isolate;
    border-radius: 32px;
    background: var(--bfp-dark-surface);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 40px 80px -40px rgba(20, 17, 20, 0.6);
    color: var(--bfp-ivory);
}

/* Oversized outlined "BLACK FRIDAY" behind the content. */
.bfp-home__watermark {
    position: absolute;
    z-index: -1;
    left: -0.04em;
    bottom: -0.2em;
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: clamp(5rem, 14vw, 12rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
    pointer-events: none;
    user-select: none;
}

.bfp-home__title {
    margin: 0;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.25rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.015em;
    color: #fff;
}

.bfp-home__tagline {
    margin: 1rem 0 1.5rem;
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--bfp-on-dark);
}

.bfp-home__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 1.75rem;
}

.bfp-home__link {
    padding: 0.35rem 0.1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 5px;
    transition: text-decoration-color 0.2s ease;
}

.bfp-home__link:hover {
    color: #fff;
    text-decoration-color: var(--bfp-rose);
}

.bfp-home__note {
    max-width: 31rem;
    margin: 1.1rem 0 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--bfp-on-dark);
}

/* ---------- Offer cards ---------- */
.bfp-home__deal {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}

.bfp-offer {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 16rem;
    padding: 1.4rem 1.4rem 1.6rem;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fbf6f2 100%);
    box-shadow:
        inset 0 1px 0 #fff,
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 28px 50px -22px rgba(0, 0, 0, 0.75);
    color: var(--bfp-ink);
    text-align: center;
    transition: transform 0.35s var(--bfp-ease);
}

.bfp-offer:hover {
    transform: translateY(-4px);
}

.bfp-offer__chip {
    display: inline-block;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    background: #f5e8d6;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
    color: #654c28;
}

.bfp-offer--alt .bfp-offer__chip {
    background: #fbe3ee;
    color: var(--bfp-wine);
}

.bfp-offer__amount {
    margin: auto 0 0;
    padding-top: 1.75rem;
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: clamp(3.4rem, 2.2rem + 2.8vw, 4.6rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--bfp-ink);
}

/* "OFF" sits on its own line under the number. */
.bfp-offer__amount span {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.3em;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bfp-magenta);
}

/* Two lines reserved so both numbers line up side by side. */
.bfp-offer__label {
    min-height: 2.7em;
    margin: 0.8rem 0 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--bfp-ink-soft);
}

/* "+" disc that joins the two cards, ringed in the stage colour. */
.bfp-plus {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d24a8a 0%, var(--bfp-magenta) 50%, var(--bfp-magenta-deep) 100%);
    box-shadow:
        0 0 0 6px #171317,
        0 10px 24px rgba(195, 61, 121, 0.5);
    color: #fff;
    transform: translate(-50%, -50%);
}

/* ---------- Responsive ---------- */
/* Single column: the offer cards move up under the tagline so the
   discounts are seen before the CTA, which keeps its note beside it. */
@media (max-width: 960px) {
    .bfp-home__stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        justify-items: center;
        text-align: center;
    }

    .bfp-home__text {
        display: contents;
    }

    .bfp-home .bfp-eyebrow { order: 1; }
    .bfp-home__title { order: 2; }
    .bfp-home__tagline { order: 3; margin-bottom: 1.75rem; }
    .bfp-home__deal { order: 4; }
    .bfp-home .bfp-countdown { order: 5; margin-top: 1.75rem; }
    .bfp-home__actions { order: 6; justify-content: center; }
    .bfp-home__note { order: 7; }

    .bfp-home__deal {
        width: 100%;
        max-width: 560px;
    }
}

@media (max-width: 520px) {
    .bfp-home__stage {
        padding: 2rem 1.25rem 1.75rem;
        border-radius: 24px;
    }

    .bfp-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }

    /* The title already says "Black Friday"; keep the pill on one line. */
    .bfp-eyebrow__lead {
        display: none;
    }

    .bfp-home__tagline {
        font-size: 1.05rem;
    }

    .bfp-home__actions {
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
    }

    .bfp-btn {
        width: 100%;
        padding: 0 1.25rem;
    }

    .bfp-home__note {
        margin-top: 0.75rem;
    }

    /* Stack the discounts in order; the "+" disc sits in the gap between them. */
    .bfp-home__deal {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .bfp-offer {
        min-height: 0;
        padding: 1.25rem 1.25rem 1.4rem;
    }

    .bfp-offer__amount {
        padding-top: 0.9rem;
        font-size: 3.4rem;
    }

    .bfp-offer__label {
        min-height: 0;
    }

    .bfp-plus {
        width: 40px;
        height: 40px;
        box-shadow:
            0 0 0 5px #171317,
            0 8px 20px rgba(195, 61, 121, 0.5);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bfp-eyebrow__dot {
        animation: none;
    }

    .bfp-btn,
    .bfp-btn::after,
    .bfp-btn__arrow,
    .bfp-offer {
        transition: none;
    }

    .bfp-btn:hover,
    .bfp-btn:focus-visible,
    .bfp-offer:hover {
        transform: none;
    }

    .bfp-btn:hover::after {
        left: -60%;
    }

    .bfp-btn:hover .bfp-btn__arrow {
        transform: none;
    }
}
