/**
 * Global promo top banner (Black November) - pure CSS, no image.
 *
 * Sits at the very top of the page, above the testimonial bar, and scrolls
 * away with the page, so the sticky header (top:0) and #global-subnav
 * (top:118px) offsets stay untouched.
 *
 * Live text over a gradient plus a few floating CSS coins - nothing scaled,
 * nothing blurry, no extra requests. Font sizes use clamp() so the stack
 * reflows down to ~320px instead of cropping.
 *
 * Theme language: #FFBD25 gold, Poppins/Open Sans.
 */

.gtb {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(90% 260% at 18% 0%, rgba(122, 82, 40, 0.55) 0%, rgba(122, 82, 40, 0) 55%),
        radial-gradient(90% 260% at 82% 0%, rgba(122, 82, 40, 0.55) 0%, rgba(122, 82, 40, 0) 55%),
        linear-gradient(100deg, #170c05 0%, #2b1710 26%, #33200f 46%, #241206 62%, #170c05 100%);
    box-shadow: inset 0 -1px 0 rgba(255, 189, 37, 0.18);
}

/* ---------- Decorative layer ---------- */

.gtb-vectors {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Soft gold pools behind the coins. */
.gtb-glow {
    position: absolute;
    top: -50%;
    height: 200%;
    width: 260px;
}

.gtb-glow--left {
    left: -60px;
    background: radial-gradient(closest-side, rgba(255, 189, 37, 0.16) 0%, rgba(255, 189, 37, 0) 100%);
}

.gtb-glow--right {
    right: -60px;
    background: radial-gradient(closest-side, rgba(255, 214, 102, 0.14) 0%, rgba(255, 214, 102, 0) 100%);
}

/* Coins: gold discs with an embossed $ - the element sizes/nudges itself from
   the per-instance custom properties set in the markup. */
.gtb-coin {
    position: absolute;
    left: var(--gtb-x);
    top: var(--gtb-y);
    width: var(--gtb-size);
    height: var(--gtb-size);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #ffe9a8 0%, #f5c445 48%, #a8761a 88%);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.55),
        0 0 6px rgba(255, 189, 37, 0.45);
    font-family: 'Poppins', sans-serif;
    font-size: calc(var(--gtb-size) * 0.62);
    font-weight: 600;
    line-height: 1;
    color: #6b4a12;
    animation: gtbFloat 5.5s ease-in-out infinite;
    animation-delay: var(--gtb-delay, 0s);
}

@keyframes gtbFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

/* Slow diagonal sheen, same treatment as the testimonial bar. */
.gtb-sheen {
    position: absolute;
    top: -50%;
    left: -30%;
    width: 22%;
    height: 200%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 230, 170, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    animation: gtbSheen 11s ease-in-out infinite;
}

@keyframes gtbSheen {
    0%   { left: -30%; opacity: 0; }
    18%  { opacity: 1; }
    82%  { opacity: 1; }
    100% { left: 108%; opacity: 0; }
}

/* ---------- Text ---------- */

.gtb-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.gtb-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(20px, 3.2vw, 40px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.gtb-off {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 3px 16px 4px;
    border-radius: 8px;
    background: rgba(15, 7, 2, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 189, 37, 0.22);
    white-space: nowrap;
}

.gtb-off-strong {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(15px, 2vw, 23px);
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.gtb-off-rest {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(12.5px, 1.5vw, 17px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
}

.gtb-link {
    display: flex;
    justify-content: center;
    padding: 13px 24px;
    text-decoration: none;
    transition: filter 0.25s ease;
}

.gtb-link:hover,
.gtb-link:focus {
    text-decoration: none;
    filter: brightness(1.12);
}

.gtb-link:focus-visible {
    outline: 2px solid #FFBD25;
    outline-offset: -4px;
    border-radius: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {

    .gtb-link {
        padding: 11px 16px;
    }

    /* The outer coins crowd the tighter layout; keep the two mid-field ones. */
    .gtb-coin { display: none; }
    .gtb-coin:nth-child(3),
    .gtb-coin:nth-child(4) {
        display: flex;
    }
}

@media (max-width: 400px) {

    .gtb-off {
        gap: 5px;
        padding: 2px 12px 3px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .gtb-coin,
    .gtb-sheen {
        animation: none;
    }

    .gtb-sheen {
        opacity: 0;
    }

    .gtb-link {
        transition: none;
    }
}
