/*
 * Black Friday look for hostmargin.com (html.black-friday). Loaded by partials/black-friday-theme
 * only while the campaign dresses the site; without it none of this is on the page.
 * Near-black and kasavu gold over the existing layout, Anton for sale type, plus the header strip,
 * the homepage band (partials/black-friday-home) and the floating sticker.
 */

html.black-friday {
    --bfx-black: #07090A;
    --bfx-ink: #12333B;
    --bfx-ink-2: #0C1F24;
    --bfx-gold: #C9A227;
    --bfx-gold-2: #E9C64B;
    --bfx-display: Anton, Impact, "Arial Narrow", sans-serif;
    --bfx-body: "Hanken Grotesk", Inter, system-ui, sans-serif;

    /* The site's own theme colours: buttons and accents go black, so the gold stands out */
    --color-primary: #12333B;
    --color-secondary: #07090A;
    --color-secondary-dark: #050607;
}

html.black-friday ::selection { background: #C9A227; color: #07090A; }

/* ── Header top strip ── */
html.black-friday .rts-ht__bg,
html.black-friday .rts-ht { background: var(--bfx-black) !important; border-bottom: 1px solid #C9A22766; }
html.black-friday .rts-ht__email a,
html.black-friday .rts-ht__links a { color: #E7EEF0 !important; }
.bfx-strip { display: flex; align-items: center; justify-content: center; }
.bfx-strip a { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; color: #fff !important; font: 600 14px/1.3 var(--bfx-body); text-decoration: none; }
.bfx-strip a:hover .bfx-strip__go { text-decoration: underline; }
.bfx-strip__tag { padding: 3px 10px 2px; border-radius: 4px; background: var(--bfx-gold); color: var(--bfx-black); font: 400 15px/1.1 var(--bfx-display); letter-spacing: .06em; text-transform: uppercase; }
.bfx-strip strong { color: var(--bfx-gold-2); letter-spacing: .06em; }
.bfx-strip__go { color: var(--bfx-gold-2); }

/* A thin gold line under the main header, a quiet reminder on every page */
html.black-friday .rts-header { box-shadow: 0 2px 0 0 var(--bfx-gold); }

/* The page hero used across the site (hosting, reseller, SSL, services…): near-black with a gold glow */
html.black-friday .rts-hosting-banner-bg { border-bottom: 3px solid var(--bfx-gold); }
/* The theme paints its blue gradient on ::before, above the element's own background */
html.black-friday .rts-hosting-banner-bg::before {
    background: radial-gradient(55% 80% at 85% 30%, #C9A22733, transparent 70%), radial-gradient(70% 90% at 15% 0%, #17434D 0%, #0C1F24 45%, #07090A 100%) !important;
}
html.black-friday .rts-hosting-banner-bg .banner-title { color: #fff; }

/* ── Shared buttons and screen-reader text ── */
.bfx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 30px; border-radius: 999px; font: 800 17px/1.2 var(--bfx-body); text-decoration: none !important; border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background-color .2s; }
.bfx-btn--gold { background: linear-gradient(135deg, #E9C64B, #C9A227 60%, #A8851A); color: var(--bfx-black) !important; box-shadow: 0 14px 34px -14px #E9C64BCC; }
.bfx-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px #E9C64B; }
.bfx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── Homepage hero (partials/black-friday-hero inside .vhero): the video keeps playing under a black-and-gold veil ── */
html.black-friday .vhero--bf { background: var(--bfx-black); min-height: 100vh; font-family: var(--bfx-body); }
html.black-friday .vhero--bf .vhero__overlay { background: radial-gradient(60% 70% at 80% 40%, #C9A22730, transparent 70%), linear-gradient(110deg, rgba(7, 9, 10, .95) 0%, rgba(12, 31, 36, .9) 55%, rgba(7, 9, 10, .82) 100%); }
/* The content fills the full-height hero, so the ticker sits on its bottom edge */
html.black-friday .vhero--bf .vhero__content { align-self: stretch; display: flex; align-items: center; text-align: left; padding-bottom: 120px; }
.bfx-hero { display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr; color: #fff; }
@media (min-width: 1200px) { .bfx-hero { grid-template-columns: 1.15fr 1fr; } }
.bfx-hero__eyebrow { margin: 0 0 12px; font: 800 13px/1.3 var(--bfx-body); letter-spacing: .2em; text-transform: uppercase; color: var(--bfx-gold-2); }
.bfx-hero__title { margin: 0 0 18px; color: #fff; font-family: var(--bfx-display); font-weight: 400; line-height: .88; }
.bfx-word { display: inline-block; font-size: clamp(72px, 8vw + 24px, 168px); text-transform: uppercase; letter-spacing: .01em; }
.bfx-word--outline { color: transparent; -webkit-text-stroke: 2px #fff; }
.bfx-word--gold { background: linear-gradient(180deg, #F6DD7E, #C9A227 55%, #9C7A14); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bfx-hero__deal { display: block; margin-top: 16px; font: 400 clamp(28px, 2vw + 18px, 44px)/1.05 var(--bfx-display); letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.bfx-hero__sub { max-width: 560px; margin: 0 0 24px; font-size: 18px; line-height: 1.6; color: #D6E3E6; }
.bfx-hero__deal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin: 0 0 28px; }

/* Deal tiles: one per product line, straight to the cart */
.bfx-tiles { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.bfx-tile { position: relative; padding: 22px 96px 20px 24px; border: 1px solid #C9A22766; border-radius: 18px; background: linear-gradient(135deg, #ffffff12, #ffffff05); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .25s, border-color .25s, box-shadow .25s; }
.bfx-tile:hover { transform: translateY(-3px); border-color: var(--bfx-gold); box-shadow: 0 22px 44px -26px #E9C64B99; }
.bfx-tile p { margin: 0; }
.bfx-tile__sticker { position: absolute; top: 50%; right: 18px; display: grid; place-items: center; width: 66px; height: 66px; margin-top: -33px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #F6DD7E, #C9A227 65%, #9C7A14); color: var(--bfx-black); font: 400 21px/1 var(--bfx-display); transform: rotate(12deg); box-shadow: 0 10px 20px -10px #000; }
.bfx-tile__title { font: 400 26px/1.05 var(--bfx-display) !important; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.bfx-tile__line { margin-top: 6px !important; font-size: 15px; line-height: 1.5; color: #C8D7DA; }
.bfx-tile__meta { margin-top: 8px !important; font: 800 13px/1.3 var(--bfx-body); letter-spacing: .04em; color: var(--bfx-gold-2); }
.bfx-tile__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; }
.bfx-tile__go { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 20px; border-radius: 999px; background: linear-gradient(135deg, #F1D46A, #C9A227 60%, #A8851A); color: var(--bfx-black) !important; font: 800 15px/1.2 var(--bfx-body); text-decoration: none !important; }
.bfx-tile__go:hover { filter: brightness(1.08); }
.bfx-tile__all { color: #fff !important; font: 600 14px/1.2 var(--bfx-body); text-decoration: underline !important; text-decoration-color: var(--bfx-gold) !important; text-underline-offset: 4px; }

/* The ticker runs along the foot of the hero */
html.black-friday .vhero--bf .bfx-ticker { position: absolute; left: 0; right: 0; bottom: 0; }

/* -30% stickers on the homepage service cards (Shared Hosting, SSL) */
html.black-friday .bfx-card { position: relative; border: 1px solid var(--bfx-gold) !important; box-shadow: 0 18px 40px -26px #C9A227; }
.bfx-card__sticker { position: absolute; top: -18px; right: -10px; z-index: 2; display: grid; place-items: center; align-content: center; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #F6DD7E, #C9A227 65%, #9C7A14); color: var(--bfx-black) !important; font: 400 22px/1 var(--bfx-display); text-decoration: none !important; transform: rotate(12deg); box-shadow: 0 0 0 3px var(--bfx-black), 0 10px 20px -8px #000; transition: transform .25s; }
.bfx-card__sticker small { margin-top: 2px; font: 800 9px/1 var(--bfx-body); letter-spacing: .08em; }
.bfx-card__sticker:hover { transform: rotate(0) scale(1.06); }

/* Price-tag code card */
.bfx-tag { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label label" "code copy"; align-items: center; gap: 6px 16px; width: min(100%, 380px); padding: 22px 22px 22px 54px; background: linear-gradient(135deg, #F1D46A, #C9A227 70%); color: var(--bfx-black); border-radius: 14px 40px 40px 14px; transform: rotate(-3deg); box-shadow: 0 24px 50px -24px #000, inset 0 0 0 2px #ffffff55; }
.bfx-tag__hole { position: absolute; left: 20px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--bfx-ink-2); box-shadow: inset 0 2px 3px #0008; }
.bfx-tag__label { grid-area: label; font: 700 12px/1.2 var(--bfx-body); letter-spacing: .14em; text-transform: uppercase; }
.bfx-tag__code { grid-area: code; padding: 0; background: none; color: var(--bfx-black); font: 400 40px/1 var(--bfx-display); letter-spacing: .06em; }
.bfx-tag__copy { grid-area: copy; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--bfx-black); color: #fff; font: 700 14px/1.2 var(--bfx-body); cursor: pointer; }
.bfx-tag__copy:hover { background: var(--bfx-ink); }

/* Countdown tiles */
.bfx-count { display: flex; gap: 10px; }
.bfx-count__cell { display: flex; flex-direction: column; align-items: center; min-width: 70px; padding: 10px 8px 8px; border: 1px solid #C9A22766; border-radius: 12px; background: #ffffff0A; }
.bfx-count__num { font: 400 38px/1 var(--bfx-display); color: #fff; font-variant-numeric: tabular-nums; }
.bfx-count__unit { margin-top: 4px; font: 600 11px/1 var(--bfx-body); letter-spacing: .12em; text-transform: uppercase; color: #BFD1D5; }

/* Ticker */
.bfx-ticker { overflow: hidden; background: var(--bfx-gold); color: var(--bfx-black); border-top: 1px solid #F1D46A; }
.bfx-ticker__track { display: flex; width: max-content; animation: bfx-marquee 38s linear infinite; }
.bfx-ticker__group { display: flex; align-items: center; flex: none; }
.bfx-ticker__group span { padding: 12px 18px; font: 400 18px/1 var(--bfx-display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.bfx-ticker__group i { font-style: normal; font-size: 10px; opacity: .7; }
@keyframes bfx-marquee { to { transform: translateX(-50%); } }

/* ── Floating sticker ── */
.bfx-sticker { position: fixed; left: 16px; bottom: 104px; /* above the chat button in the bottom-left corner */ z-index: 998; font-family: var(--bfx-body); animation: bfx-pop .5s cubic-bezier(.2, 1.4, .4, 1) both .8s; }
.bfx-sticker[hidden] { display: none; }
.bfx-sticker__link { display: grid; justify-items: center; place-content: center; width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #F6DD7E, #C9A227 60%, #9C7A14); color: var(--bfx-black) !important; text-decoration: none !important; box-shadow: 0 16px 34px -12px #000C, 0 0 0 4px var(--bfx-black), 0 0 0 6px var(--bfx-gold); transform: rotate(-10deg); transition: transform .25s; }
.bfx-sticker__link:hover { transform: rotate(0) scale(1.05); }
.bfx-sticker__link:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.bfx-sticker__eyebrow { font: 800 10px/1 var(--bfx-body); letter-spacing: .12em; text-transform: uppercase; }
.bfx-sticker__big { font: 400 36px/1 var(--bfx-display); }
.bfx-sticker__big small { font-size: 16px; margin-left: 2px; }
.bfx-sticker__code { font: 700 11px/1 var(--bfx-body); letter-spacing: .1em; }
.bfx-sticker__close { position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bfx-gold); background: var(--bfx-black); color: #fff; font: 700 16px/1 var(--bfx-body); cursor: pointer; }
@keyframes bfx-pop { from { opacity: 0; transform: scale(.4) rotate(-30deg); } to { opacity: 1; transform: none; } }

@media (max-width: 575.98px) {
    html.black-friday .vhero--bf .vhero__content { padding-bottom: 100px; }
    .vhero--bf .bfx-btn { width: 100%; }
    .bfx-tile { padding: 20px 74px 18px 20px; }
    .bfx-tile__sticker { top: 14px; right: 12px; margin-top: 0; width: 54px; height: 54px; font-size: 17px; }
    .bfx-count { width: 100%; }
    .bfx-count__cell { flex: 1; min-width: 0; }
    .bfx-sticker { bottom: 92px; left: 12px; }
    .bfx-sticker__link { width: 84px; height: 84px; }
    .bfx-sticker__big { font-size: 27px; }
    .bfx-tag { padding-left: 48px; }
    .bfx-tag__code { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    .bfx-ticker__track, .bfx-sticker { animation: none !important; }
    .bfx-tile, .bfx-card__sticker { transition: none !important; }
    .bfx-btn, .bfx-sticker__link { transition: none !important; }
}
