/* HostArmada Black Friday 2026: home page hero section.
   Used only by PageContentElements/homepage2026/black_friday_2026.html.twig.
   Every rule is scoped under .bf-hero so nothing leaks into the rest of the site. */

@font-face { font-family: "BF Euclid"; src: url(../fonts/euclid-circular-b-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "BF Euclid"; src: url(../fonts/euclid-circular-b-500.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "BF Euclid"; src: url(../fonts/euclid-circular-b-600.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "BF Inter"; src: url(../fonts/inter-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "BF Inter"; src: url(../fonts/inter-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "BF Montserrat"; src: url(../fonts/montserrat-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "BF Montserrat"; src: url(../fonts/montserrat-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "BF Montserrat"; src: url(../fonts/montserrat-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }

/* ---------- Section reset (instead of the design's global resets) ---------- */
.bf-hero {
  --bf-violet: #6840DB;
  --bf-night-card: #0F0328;
  --bf-coral: #FC6D6B;
  --bf-coral-2: #FF9472;
  --bf-white: #FFFFFF;
  --bf-font-display: "BF Montserrat", "BF Euclid", system-ui, sans-serif;
  --bf-font-head: "BF Euclid", system-ui, sans-serif;
  --bf-font-body: "BF Inter", system-ui, sans-serif;
  font: 400 16px/1.6 var(--bf-font-body);
  -webkit-text-size-adjust: 100%;
}
.bf-hero *, .bf-hero *::before, .bf-hero *::after { box-sizing: border-box; }
.bf-hero img, .bf-hero svg { display: block; max-width: 100%; }
.bf-hero ul { list-style: none; margin: 0; padding: 0; }
.bf-hero h1, .bf-hero p { margin: 0; }
.bf-hero a, .bf-hero a:hover, .bf-hero a:focus { text-decoration: none; }
.bf-hero .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bf-hero :focus-visible { outline: 3px solid var(--bf-coral-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- Hero ----------
   Geometry comes from Figma "Black Friday (BF) 2025" > Frame 13 (2560 px wide).
   Every Figma pixel is multiplied by --u, which scales the design with the viewport.
   The site header sits above the hero (in the page flow), so the hero fills the rest of the screen. */
.bf-hero {
  --u: clamp(0.5px, min(calc(100vw / 2000), calc((100svh - 170px) / 1300)), 0.8px);
  --tu: calc(var(--u) * .8); /* wordmark scale: 80% of the Figma size */
  position: relative; overflow: hidden; color: var(--bf-white);
  min-height: min(calc(100vh - 90px), 1400px); min-height: min(calc(100svh - 90px), 1400px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 16px 32px;
  background-color: #030008;
  background-image:
    radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(1,0,5,.88) 100%),
    radial-gradient(18% 14% at 50% calc(240 * var(--u)), rgba(255,90,90,.12), transparent 70%),
    radial-gradient(42% 30% at 50% calc(300 * var(--u)), rgba(104,64,219,.28), transparent 72%),
    radial-gradient(60% 40% at 50% 62%, rgba(58,20,120,.22), transparent 75%),
    radial-gradient(40% 35% at 0% 100%, rgba(96,22,92,.4), transparent 70%),
    radial-gradient(40% 35% at 100% 100%, rgba(70,24,130,.4), transparent 70%),
    linear-gradient(180deg, #030008 0%, #070215 30%, #0C0420 60%, #140630 100%);
}
.bf-hero::after { /* perspective grid floor under the deal cards */
  content: ""; position: absolute; left: -50%; right: -50%; bottom: 0; height: 58%; pointer-events: none;
  background-image:
    linear-gradient(rgba(150,110,255,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,110,255,.13) 1px, transparent 1px);
  background-size: calc(72 * var(--u)) calc(72 * var(--u));
  background-position: center bottom;
  transform: perspective(calc(900 * var(--u))) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 35%, transparent 80%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 35%, transparent 80%);
}
.bf-hero::before { /* film grain, as in the Figma noise layer */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bf-hero .bf-hero__inner { position: relative; z-index: 1; width: calc(1442 * var(--u)); margin: 0 auto; text-align: center; }

/* Glass surface (Figma: radial #787878 -> #FFFFFF at 20%, layer 50%, 1px white 10% stroke, background blur 10) */
.bf-hero .bf-glass {
  background: radial-gradient(circle at 50% 50%, rgba(120,120,120,.1), rgba(255,255,255,.1));
  border: 1px solid rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* Decorative outline icons; js/bf-home.js sets --mx / --my (-1 to 1) for the mouse parallax */
.bf-hero .bf-hero__deco { position: absolute; inset: 0; pointer-events: none; }
.bf-hero .bf-deco {
  position: absolute; display: block;
  translate: calc(var(--mx, 0) * var(--depth) * 1px) calc(var(--my, 0) * var(--depth) * 1px);
  rotate: calc(var(--mx, 0) * var(--tilt));
  transition: translate .6s cubic-bezier(.2,.8,.2,1), rotate .6s cubic-bezier(.2,.8,.2,1);
}
.bf-hero .bf-deco--tags   { --depth: 12; --tilt: -3deg; --dur: 7s;   --delay: -1s; }
.bf-hero .bf-deco--pct    { --depth: 18; --tilt: 4deg;  --dur: 8.5s; --delay: -3s; }
.bf-hero .bf-deco--gift   { --depth: 15; --tilt: 3deg;  --dur: 6.5s; --delay: -2s; }
.bf-hero .bf-deco--dollar { --depth: 22; --tilt: -4deg; --dur: 9s;   --delay: -4.5s; }
/* Touch screens have no cursor: fall back to a slow float */
@media (hover: none) {
  .bf-hero .bf-deco { animation: bf-float var(--dur) ease-in-out var(--delay) infinite alternate; }
}
@keyframes bf-float {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(calc(-4 * var(--u)), calc(-24 * var(--u)), 0) rotate(var(--tilt)); }
}
@media (prefers-reduced-motion: reduce) { .bf-hero .bf-deco { animation: none; translate: none; rotate: none; } }
.bf-hero .bf-deco--tags { width: calc(135 * var(--u)); left: calc(50% - 613 * var(--u)); top: calc(207 * var(--u)); }
.bf-hero .bf-deco--pct  { width: calc(137 * var(--u)); left: calc(50% + 558 * var(--u)); top: calc(342 * var(--u)); }
.bf-hero .bf-deco--gift { width: calc(132 * var(--u)); left: calc(50% - 694 * var(--u)); top: calc(560 * var(--u)); }
.bf-hero .bf-deco--dollar {
  left: calc(50% + 470 * var(--u)); top: calc(580 * var(--u)); width: calc(100 * var(--u)); height: calc(150 * var(--u));
  opacity: .5; overflow: visible; filter: drop-shadow(0 0 2px rgba(104,64,219,.6));
}
.bf-hero .bf-dollar-glyph { font: 700 128px/1 var(--bf-font-display); }

/* Title block: 772 x 451 */
.bf-hero .bf-title-block { position: relative; width: calc(772 * var(--tu)); height: calc(451 * var(--tu)); margin: 0 auto; text-align: left; }
.bf-hero .bf-title { position: relative; z-index: 1; margin: 0; color: var(--bf-white); font-family: var(--bf-font-display); font-weight: 900; text-transform: uppercase; }
.bf-hero .bf-title__l1 { display: flex; justify-content: space-between; width: calc(756 * var(--tu)); font-size: calc(190 * var(--tu)); line-height: calc(232 * var(--tu)); letter-spacing: .03em; }
.bf-hero .bf-title__l2 { display: block; width: calc(757 * var(--tu)); margin: calc(-54 * var(--tu)) 0 0 calc(2 * var(--tu)); font-size: calc(175 * var(--tu)); line-height: calc(213 * var(--tu)); letter-spacing: .06em; text-align: center; white-space: nowrap; }
.bf-hero .bf-title__gem   { position: absolute; left: calc(205 * var(--tu)); top: calc(16 * var(--tu)); width: calc(346 * var(--tu)); height: auto; pointer-events: none; z-index: 2; }
.bf-hero .bf-title__wires { position: absolute; left: calc(205 * var(--tu)); top: calc(16 * var(--tu)); width: calc(346 * var(--tu)); height: auto; pointer-events: none; z-index: 0; }
.bf-hero .bf-title__deals { position: absolute; left: calc(9 * var(--tu)); top: calc(263 * var(--tu)); width: calc(342 * var(--tu)); height: auto; pointer-events: none; z-index: 2; }
.bf-hero .bf-chip {
  position: absolute; left: calc(380 * var(--tu)); top: calc(378 * var(--tu));
  width: calc(392 * var(--tu)); height: calc(54 * var(--tu)); border-radius: calc(10 * var(--tu));
  display: grid; place-items: center;
  font: 900 calc(25 * var(--tu))/1 var(--bf-font-display); letter-spacing: .065em; text-transform: uppercase;
}

/* Lead and actions */
.bf-hero .bf-lead { margin-top: calc(10 * var(--u)); font: 400 calc(30 * var(--u))/1.2 var(--bf-font-body); letter-spacing: .065em; }
.bf-hero .bf-hero__actions { display: flex; justify-content: center; align-items: center; gap: calc(29 * var(--u)); margin-top: calc(28 * var(--u)); }
.bf-hero .bf-hero__btn, .bf-hero .bf-hero__link { display: inline-flex; align-items: center; gap: calc(14 * var(--u)); color: var(--bf-white); font: 400 calc(21 * var(--u))/1 var(--bf-font-head); }
.bf-hero .bf-hero__btn { justify-content: center; width: calc(270 * var(--u)); height: calc(64 * var(--u)); min-height: 44px; border-radius: calc(60 * var(--u)); background: linear-gradient(180deg, #FA8681, #FF5A5A); font-weight: 500; box-shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(255,90,90,.35); transition: box-shadow .2s, filter .2s; }
.bf-hero .bf-hero__btn:hover, .bf-hero .bf-hero__btn:focus { color: var(--bf-white); filter: brightness(1.06); box-shadow: 0 calc(10 * var(--u)) calc(30 * var(--u)) rgba(255,90,90,.5); }
.bf-hero .bf-hero__link:hover, .bf-hero .bf-hero__link:focus { color: var(--bf-coral-2); }
.bf-hero .bf-hero__btn svg, .bf-hero .bf-hero__link svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); fill: none; stroke: currentColor; stroke-width: 2.2; }

/* Countdown: roomier than the Figma 75 x 64 cells so the digits don't touch the glass edges */
.bf-hero .bf-count { display: inline-flex; align-items: flex-start; gap: calc(8 * var(--u)); margin-top: calc(47 * var(--u)); }
.bf-hero .bf-count__cell { display: grid; justify-items: center; align-content: center; width: calc(90 * var(--u)); height: calc(78 * var(--u)); padding: calc(6 * var(--u)) calc(10 * var(--u)); border-radius: calc(15 * var(--u)); }
.bf-hero .bf-count__num { font: 700 calc(28 * var(--u))/1 var(--bf-font-display); letter-spacing: .06em; margin-right: -.06em; font-variant-numeric: tabular-nums; }
.bf-hero .bf-count__lbl { margin-top: calc(5 * var(--u)); font: 600 calc(11 * var(--u))/1.2 var(--bf-font-display); letter-spacing: .095em; }
.bf-hero .bf-count__sep { width: calc(14 * var(--u)); padding-top: calc(16 * var(--u)); font: 700 calc(28 * var(--u))/1 var(--bf-font-display); color: var(--bf-coral); text-align: center; }

/* Deal cards: 469 x 297 (x3, gap 17) and 712 x 219 (x2, gap 16), r 30 */
.bf-hero .bf-deals { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: calc(17 * var(--u)); row-gap: calc(16 * var(--u)); margin-top: calc(44 * var(--u)); text-align: left; }
.bf-hero .bf-card { grid-column: span 2; }
.bf-hero .bf-card--wide { grid-column: span 3; }
.bf-hero .bf-card__link {
  position: relative; display: flex; flex-direction: column; height: calc(297 * var(--u));
  padding: calc(30 * var(--u)) calc(30 * var(--u)) calc(21 * var(--u));
  border-radius: calc(30 * var(--u)); color: var(--bf-white);
  transition: border-color .2s, background-color .2s;
}
.bf-hero .bf-card__link:hover, .bf-hero .bf-card__link:focus { color: var(--bf-white); border-color: rgba(255,255,255,.25); }
.bf-hero .bf-card--wide .bf-card__link { height: auto; min-height: calc(219 * var(--u)); padding-bottom: calc(34 * var(--u)); }
.bf-hero .bf-card__desc { margin-top: calc(6 * var(--u)); white-space: nowrap; font: 400 calc(18 * var(--u))/1.35 var(--bf-font-body); color: rgba(255,255,255,.7); }
.bf-hero .bf-card--wide .bf-card__price { margin-top: calc(16 * var(--u)); }
.bf-hero .bf-card__head { display: flex; align-items: center; gap: calc(12 * var(--u)); font: 400 calc(20 * var(--u))/1.2 var(--bf-font-body); color: rgba(255,255,255,.6); }
.bf-hero .bf-card__icon { position: relative; display: grid; place-items: center; width: calc(51 * var(--u)); height: calc(51 * var(--u)); border-radius: calc(10 * var(--u)); background: var(--bf-night-card); }
.bf-hero .bf-card__icon::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, #FA8681, #FF5A5A); opacity: 0; transition: opacity .25s; }
.bf-hero .bf-card__icon img { position: relative; width: auto; height: calc(24 * var(--u)); }
.bf-hero .bf-card__link:hover .bf-card__icon::before, .bf-hero .bf-card__link:focus-visible .bf-card__icon::before { opacity: 1; }
.bf-hero .bf-card__arrow { position: absolute; top: calc(30 * var(--u)); right: calc(30 * var(--u)); width: calc(50 * var(--u)); height: calc(50 * var(--u)); min-width: 36px; min-height: 36px; }
.bf-hero .bf-card__arrow svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.bf-hero .bf-card__arrow circle { fill: transparent; stroke: rgba(255,255,255,.1); stroke-width: 1; transition: fill .25s, stroke .25s; }
.bf-hero .bf-card__arrow path { fill: rgba(255,255,255,.35); transition: fill .25s; }
.bf-hero .bf-card__arrow::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(180deg, #FA8681, #FF5A5A); opacity: 0; transition: opacity .25s; }
.bf-hero .bf-card__link:hover .bf-card__arrow svg, .bf-hero .bf-card__link:focus-visible .bf-card__arrow svg { transform: rotate(45deg); }
.bf-hero .bf-card__link:hover .bf-card__arrow::before, .bf-hero .bf-card__link:focus-visible .bf-card__arrow::before { opacity: 1; }
.bf-hero .bf-card__link:hover .bf-card__arrow circle, .bf-hero .bf-card__link:focus-visible .bf-card__arrow circle { stroke: transparent; }
.bf-hero .bf-card__link:hover .bf-card__arrow path, .bf-hero .bf-card__link:focus-visible .bf-card__arrow path { fill: var(--bf-white); }
.bf-hero .bf-card__badge { position: absolute; top: calc(-14 * var(--u)); left: calc(30 * var(--u)); padding: calc(6 * var(--u)) calc(14 * var(--u)); border-radius: 999px; background: linear-gradient(180deg, #FA8681, #FF5A5A); font: 500 calc(15 * var(--u))/1.2 var(--bf-font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--bf-white); }
.bf-hero .bf-card__deal { margin-top: calc(17 * var(--u)); font: 600 calc(35 * var(--u))/1.25 var(--bf-font-head); text-transform: uppercase; }
.bf-hero .bf-card__price { margin-top: auto; display: grid; gap: calc(4 * var(--u)); font: 400 calc(20 * var(--u))/1.2 var(--bf-font-body); }
.bf-hero .bf-card__from s { color: rgba(255,255,255,.55); text-decoration-thickness: 1px; }
.bf-hero .bf-card__from b { font-weight: 700; font-size: 1.25em; }
.bf-hero .bf-card__term { font-size: .8em; color: rgba(255,255,255,.6); }
.bf-hero .bf-card__feats { position: absolute; right: calc(29 * var(--u)); bottom: calc(34 * var(--u)); display: flex; gap: calc(13 * var(--u)); }
.bf-hero .bf-card__feats > span { display: grid; place-items: center; width: calc(62 * var(--u)); height: calc(62 * var(--u)); border-radius: calc(5 * var(--u)); }
.bf-hero .bf-card__feats img { width: auto; height: calc(21 * var(--u)); }
.bf-hero .bf-deals__note { margin-top: calc(24 * var(--u)); font: 400 max(13px, calc(18 * var(--u)))/1.4 var(--bf-font-body); color: rgba(255,255,255,.7); }

/* Sale states: set by the template at render time and by js/bf-home.js while the page is open */
.bf-hero .bf-lastday, .bf-hero .bf-ended { margin-top: calc(40 * var(--u)); font: 600 max(14px, calc(20 * var(--u)))/1.3 var(--bf-font-head); letter-spacing: .04em; }
.bf-hero .bf-lastday { color: var(--bf-coral); text-transform: uppercase; }
.bf-hero .bf-lastday:not([hidden]) ~ .bf-count { margin-top: calc(14 * var(--u)); }
.bf-hero [hidden] { display: none !important; }
.bf-hero.is-ended .bf-count, .bf-hero.is-ended .bf-card__deal, .bf-hero.is-ended .bf-card__price,
.bf-hero.is-ended .bf-card__badge, .bf-hero.is-ended .bf-deals__note, .bf-hero.is-ended .bf-chip { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .bf-hero { --u: calc((100vw - 32px) / 772); --tu: var(--u); min-height: 0; padding: 32px 16px 40px; }
  .bf-hero .bf-hero__inner { width: 100%; }
  .bf-hero .bf-hero__deco { display: none; }
  .bf-hero .bf-chip { font-size: max(12px, calc(25 * var(--u))); }
  .bf-hero .bf-lead { margin-top: 14px; font-size: 17px; }
  .bf-hero .bf-hero__actions { gap: 18px; margin-top: 16px; flex-wrap: nowrap; }
  .bf-hero .bf-hero__btn, .bf-hero .bf-hero__link { font-size: 16px; gap: 8px; }
  .bf-hero .bf-hero__btn { width: auto; height: 46px; padding: 0 22px; border-radius: 999px; }
  .bf-hero .bf-hero__btn svg, .bf-hero .bf-hero__link svg { width: 16px; height: 16px; }
  .bf-hero .bf-count { margin-top: 20px; gap: 6px; }
  .bf-hero .bf-count__cell { width: 62px; height: 56px; padding: 4px 6px; border-radius: 10px; }
  .bf-hero .bf-count__num { font-size: 20px; }
  .bf-hero .bf-count__lbl { font-size: 9px; margin-top: 3px; }
  .bf-hero .bf-count__sep { width: 10px; padding-top: 11px; font-size: 20px; }
  .bf-hero .bf-lastday, .bf-hero .bf-ended { margin-top: 18px; }
  .bf-hero .bf-card__desc { white-space: normal; font-size: 14px; }
  .bf-hero .bf-card--wide .bf-card__price { margin-top: 4px; }
  .bf-hero .bf-deals { grid-template-columns: 1fr; gap: 12px; row-gap: 20px; margin-top: 28px; }
  .bf-hero .bf-card, .bf-hero .bf-card--wide { grid-column: auto; }
  .bf-hero .bf-card__link, .bf-hero .bf-card--wide .bf-card__link { height: auto; padding: 20px; border-radius: 20px; gap: 14px; }
  .bf-hero .bf-card__head { font-size: 15px; gap: 10px; }
  .bf-hero .bf-card__icon { width: 40px; height: 40px; border-radius: 8px; }
  .bf-hero .bf-card__icon img { height: 20px; }
  .bf-hero .bf-card__arrow { top: 20px; right: 20px; width: 36px; height: 36px; }
  .bf-hero .bf-card__badge { top: -11px; left: 20px; font-size: 11px; padding: 5px 10px; }
  .bf-hero .bf-card__term { font-size: 13px; }
  .bf-hero .bf-card__deal { margin-top: 4px; font-size: 24px; }
  .bf-hero .bf-card__price { font-size: 15px; }
  .bf-hero .bf-card__feats { position: static; gap: 8px; }
  .bf-hero .bf-card__feats > span { width: 44px; height: 44px; border-radius: 6px; }
  .bf-hero .bf-card__feats img { height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-hero, .bf-hero * { transition: none !important; }
}
