/* elitesoft — a sales campaign (inc/promo.php): the stage on the home page and on the campaign
 * page, the offer cards, the badge on product cards, the line on the product page, the link
 * in the menu.
 *
 * The campaign is meant NOT to look like part of the page (Κώστας 2026-11-17): it gets its own
 * stage, full width and pure black, with a floor grid in perspective running towards the viewer,
 * a lamp-coloured horizon, two tapes that cross its edges, a title with depth, and the offers as
 * a fan of cards in 3D that follows the pointer (assets/js/promo.js). */

@property --bf-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.bf { --bf-amber: #F2B05E; --bf-hot: #FF7A1A; --bf-deep: #7A3A08; position: relative; margin: clamp(28px, 4vw, 56px) 0; padding: 30px 0; overflow: hidden; isolation: isolate; }
.bf--page { margin-top: var(--top-h); }
.bf__stage { position: relative; overflow: hidden; isolation: isolate; padding: clamp(48px, 6vw, 96px) 0 clamp(40px, 5vw, 80px); background:
	radial-gradient(60% 55% at 72% 100%, rgba(255, 122, 26, .38), transparent 70%),
	radial-gradient(40% 40% at 10% 0%, rgba(242, 176, 94, .16), transparent 70%),
	#000; box-shadow: inset 0 1px 0 rgba(242, 176, 94, .35), inset 0 -1px 0 rgba(242, 176, 94, .35); }
/* the floor: the drawing grid of the site, laid down in perspective, running towards the viewer */
.bf__floor { position: absolute; left: -40%; right: -40%; bottom: -6%; height: 68%; z-index: -2; overflow: hidden;
	transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
	-webkit-mask-image: linear-gradient(to top, #000 10%, transparent 92%); mask-image: linear-gradient(to top, #000 10%, transparent 92%);
	opacity: .8; }
/* the grid is one cell taller than the floor and slides down one cell, again and again: the same
 * running floor as moving the background, but on the GPU instead of a repaint every frame */
.bf__floor::before { content: ''; position: absolute; left: 0; right: 0; top: -64px; bottom: 0; background:
	linear-gradient(rgba(242, 176, 94, .5) 1px, transparent 1px) 0 0 / 64px 64px,
	linear-gradient(90deg, rgba(242, 176, 94, .5) 1px, transparent 1px) 0 0 / 64px 64px;
	animation: bf-floor 2.4s linear infinite; }
@keyframes bf-floor { to { transform: translateY(64px); } }
/* off screen the endless effects wait (promo.js) */
.bf__stage.is-off *, .bf__stage.is-off *::before, .bf__stage.is-off *::after { animation-play-state: paused !important; }
/* the horizon: a soft light where the floor fades into the dark */
.bf__light { position: absolute; left: 10%; right: 10%; bottom: 30%; height: 160px; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(255, 150, 60, .35), transparent 70%); filter: blur(10px); pointer-events: none; }

/* the tapes */
.bf__tape { position: absolute; left: -4%; right: -4%; z-index: 3; overflow: hidden; padding: 10px 0; font: 700 clamp(15px, 1.4vw, 19px)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .9); }
.bf__tape--a { top: 8px; transform: rotate(-1.6deg); background: var(--bf-amber); color: #120C04; }
.bf__tape--b { bottom: 8px; transform: rotate(1.2deg); background: #120C04; color: var(--bf-amber); border-block: 1px solid rgba(242, 176, 94, .5); }
.bf__tapein { display: inline-flex; animation: bf-tape 38s linear infinite; }
.bf__tape--b .bf__tapein { animation-direction: reverse; animation-duration: 46s; }
.bf__tapein span { display: inline-flex; align-items: center; }
.bf__tapein span::after { content: ''; width: 9px; height: 9px; margin: 0 26px; transform: rotate(45deg); background: currentColor; }
@keyframes bf-tape { to { transform: translateX(-50%); } }

/* the band: words left, fan of offers right */
.bf__band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 64px); align-items: center; color: var(--ink); }
.bf__copy { display: grid; justify-items: start; gap: 14px; min-width: 0; }
.bf__when { margin: 0; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(242, 176, 94, .55); background: rgba(242, 176, 94, .1); color: var(--bf-amber); font: 600 14px/1.2 var(--sans); font-variant-numeric: tabular-nums; }

/* the title, with depth: the back copy (::before) is the extrusion, the front is lit metal */
.bf__title { position: relative; margin: 0; font: 800 clamp(54px, 8.4vw, 132px)/.88 var(--display); letter-spacing: -0.05em; text-wrap: balance; transform: perspective(900px) rotateY(-9deg) rotateX(4deg); transform-origin: 0 50%; }
.bf__title::before { content: attr(data-text); position: absolute; inset: 0; z-index: -1; color: var(--bf-deep); text-shadow: 1px 1px 0 #6A3207, 2px 2px 0 #612D06, 3px 3px 0 #582905, 4px 4px 0 #4F2404, 5px 5px 0 #452003, 6px 6px 0 #3B1B02, 7px 7px 0 #321702, 8px 8px 0 #281201, 9px 9px 0 #1E0D01, 14px 18px 24px rgba(0, 0, 0, .85); }
.bf__title span { display: block; color: transparent; background: linear-gradient(100deg, #E8913A 0%, #FFD39A 30%, #FFF4E2 42%, #FFC375 54%, #E8913A 80%) 0 0 / 260% 100%; -webkit-background-clip: text; background-clip: text; animation: bf-sheen 5.5s ease-in-out infinite; }
@keyframes bf-sheen { 0%, 20% { background-position: 100% 0; } 60%, 100% { background-position: -60% 0; } }

/* the largest discount, huge */
.bf__max { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 0; }
.bf__max i { font: 600 18px/1 var(--sans); font-style: normal; color: var(--muted); }
.bf__max b { position: relative; font: 800 clamp(64px, 7vw, 108px)/.9 var(--display); letter-spacing: -0.05em; color: #fff; text-shadow: 0 0 18px rgba(255, 140, 40, .65), 0 0 60px rgba(255, 122, 26, .5); font-variant-numeric: tabular-nums; }
.bf__lead { margin: 0; max-width: 34ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: var(--ink-soft); }

/* the clock: keys with depth; a digit that changes flips (promo.js) */
.bf__clock { display: grid; gap: 8px; margin-top: 6px; }
.bf__clockt { margin: 0; font: 600 13px/1.2 var(--sans); color: var(--muted); }
.bf__count { display: flex; gap: 10px; perspective: 600px; }
.bf__count span { position: relative; display: grid; justify-items: center; gap: 6px; min-width: 72px; padding: 13px 8px 11px; border-radius: 10px; background: linear-gradient(180deg, #2A2A2E 0%, #1A1A1D 49.5%, #0E0E10 50.5%, #17171A 100%); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 6px 0 #050505, 0 7px 0 rgba(242, 176, 94, .35), 0 18px 28px -10px rgba(0, 0, 0, .9); }
.bf__count b { font: 700 clamp(28px, 2.7vw, 40px)/1 var(--display); letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; transform-origin: 50% 60%; }
.bf__count b.is-flip { animation: bf-flip 420ms cubic-bezier(.2, .8, .2, 1); }
@keyframes bf-flip { from { transform: rotateX(-90deg); opacity: .2; } to { transform: none; opacity: 1; } }
.bf__count i { font: 500 12px/1 var(--sans); font-style: normal; color: var(--muted); }
.bf__band .bf__btn { margin-top: 10px; background: var(--bf-amber); border-color: var(--bf-amber); color: #120C04; box-shadow: 0 0 0 0 rgba(242, 176, 94, .6); animation: bf-pulse 2.6s ease-out infinite; }
.bf__band .bf__btn:hover { background: #FFC67E; border-color: #FFC67E; }
@keyframes bf-pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 176, 94, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(242, 176, 94, 0); } }
.bf a:focus-visible { outline: 2px solid var(--bf-amber); outline-offset: 3px; }
.bf--page .bf__band { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.bf__sample { position: relative; margin: 18px 0 0; max-width: none; font-size: 13px; color: var(--muted); }
.bf__terms { margin: 28px 0 0; max-width: 80ch; font-size: var(--t-sm); color: var(--muted); }

/* the offers: a fan of cards in 3D; --rx/--ry follow the pointer (promo.js) */
.bf__offers { --rx: 0deg; --ry: 0deg; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; perspective: 1300px; transform-style: preserve-3d; }
.ocard { transform-style: preserve-3d; transform: rotateX(calc(6deg + var(--rx))) rotateY(calc(-14deg + var(--ry))) translateZ(calc(var(--n, 0) * 14px)); transition: transform 500ms cubic-bezier(.2, .8, .2, 1); }
.ocard:nth-child(even) { margin-top: 34px; }
.ocard a { --gx: 50%; --gy: 0%; position: relative; display: grid; gap: 6px; height: 100%; padding: 10px 10px 14px; border-radius: 14px; background: #0F1116; color: var(--ink); text-decoration: none; box-shadow: 0 30px 50px -22px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .05); transition: transform 300ms cubic-bezier(.2, .8, .2, 1); }
/* a moving lit edge */
.ocard a::before { content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: 15px; padding: 1px; background: conic-gradient(from var(--bf-ang), transparent 0 62%, var(--bf-amber) 76%, #FFF2DC 80%, var(--bf-hot) 86%, transparent 92%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: bf-edge 4.5s linear infinite; animation-delay: calc(var(--n, 0) * -1.1s); }
@keyframes bf-edge { to { --bf-ang: 360deg; } }
/* glare where the light falls */
.ocard a::after { content: ''; position: absolute; inset: 0; border-radius: 14px; pointer-events: none; background: radial-gradient(60% 50% at var(--gx) var(--gy), rgba(255, 236, 205, .22), transparent 60%); mix-blend-mode: screen; }
.ocard__art { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 9px; background: var(--sheet); }
.ocard__art img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; transition: transform 600ms cubic-bezier(.2, .8, .2, 1); }
.ocard__name { padding: 6px 4px 0; font: 600 18px/1.15 var(--display); letter-spacing: -0.02em; }
.ocard__price { padding: 0 4px; font: 500 14px/1.3 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.ocard__price b { margin-left: 4px; font: 700 21px/1 var(--display); letter-spacing: -0.02em; color: var(--bf-amber); }
@media (hover: hover) and (pointer: fine) {
  .ocard:hover { z-index: 2; }
  .ocard a:hover { transform: translateZ(40px) scale(1.03); }
  .ocard a:hover .ocard__art img { transform: scale(1.06); }
}

/* the badge */
.pbadge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--tungsten); color: #17120A; font: 700 15px/1 var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ocard__art .pbadge, .pbadge--card { position: absolute; left: 10px; top: 10px; z-index: 2; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .7); }
.ocard__art .pbadge { min-height: 34px; padding: 0 12px; font-size: 18px; background: linear-gradient(180deg, #FFC67E, var(--bf-amber, #F2B05E)); transform: rotate(-4deg); box-shadow: 0 3px 0 #8A4A10, 0 10px 18px -6px rgba(0, 0, 0, .8); }
.pbadge--card { left: 20px; top: 20px; }
.price__promo { color: var(--tungsten); }

/* product page */
.pstrip { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--tungsten-line); background: rgba(242, 176, 94, .1); color: var(--ink); text-decoration: none; font: 600 15px/1.3 var(--sans); }
.pstrip:hover { background: rgba(242, 176, 94, .16); }

/* menu */
.nav .nav__tools a.nav__bf { color: var(--tungsten); }
.nav .nav__tools a.nav__bf::before { content: ''; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--tungsten); }

@media (max-width: 1000px) {
  .bf__band, .bf--page .bf__band { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .bf__title { transform: none; }
  .bf__offers { margin-top: 8px; }
}
@media (max-width: 520px) {
  .bf { padding: 26px 0; }
  .bf__stage { padding: 52px 0 44px; }
  .bf__count { gap: 6px; }
  .bf__count span { min-width: 0; flex: 1; }
  .bf__offers { gap: 12px; }
  .ocard { transform: rotateX(4deg) rotateY(-6deg); }
  .ocard:nth-child(even) { margin-top: 20px; }
  .ocard__name { font-size: 15px; }
  .ocard__price { font-size: 12px; }
  .ocard__price b { font-size: 17px; }
  .ocard__art .pbadge { font-size: 15px; min-height: 28px; }
  .pbadge--card { left: 16px; top: 16px; }
  .bf__title::before { text-shadow: 1px 1px 0 #6A3207, 2px 2px 0 #582905, 3px 3px 0 #452003, 4px 4px 0 #321702, 5px 5px 0 #1E0D01, 8px 10px 16px rgba(0, 0, 0, .85); }
}
@media (prefers-reduced-motion: reduce) {
  .bf__floor::before, .bf__tapein, .bf__title span, .bf__band .bf__btn, .ocard a::before, .bf__count b.is-flip { animation: none; }
  .ocard, .ocard a, .ocard__art img { transition: none; }
  .ocard a:hover, .ocard a:hover .ocard__art img { transform: none; }
}

/* ---------- compact: the whole stage fits on one screen under the header (Κώστας 2026-11-17) ----------
   Sizes follow the height of the screen too (vh), so a 1366×768 laptop sees all of it. */
.bf { margin: clamp(20px, 3vh, 40px) 0; padding: 22px 0; }
/* the rule above has the same weight as .bf--page and comes later: without this line the campaign
   page starts 20px from the top and runs under the fixed header */
.bf--page { margin-top: var(--top-h); }
.bf__tape { padding: 7px 0; font-size: clamp(13px, 1.1vw, 16px); }
.bf__tape--a { top: 4px; }
.bf__tape--b { bottom: 4px; }
.bf__stage { padding: clamp(30px, 5vh, 56px) 0 clamp(26px, 4vh, 46px); }
.bf__copy { gap: clamp(6px, 1.2vh, 12px); }
.bf__title { font-size: clamp(46px, min(6.4vw, 10.5vh), 112px); }
.bf__max { margin: 0; }
.bf__max b { font-size: clamp(48px, min(5.6vw, 9vh), 92px); }
.bf__lead { font-size: clamp(15px, 1.2vw, 18px); }
.bf__clock { margin-top: 2px; gap: 6px; }
.bf__count span { min-width: 64px; padding: clamp(8px, 1.2vh, 12px) 8px clamp(7px, 1vh, 10px); gap: 4px; }
.bf__count b { font-size: clamp(24px, min(2.3vw, 4vh), 36px); }
.bf__band .bf__btn { margin-top: 4px; }
.bf__offers { gap: 14px; align-self: center; max-width: min(100%, calc((100vh - var(--top-h) - 150px) * 1.25)); justify-self: end; width: 100%; }
.ocard:nth-child(even) { margin-top: 22px; }
.ocard a { padding: 8px 8px 10px; gap: 4px; }
.ocard__art { aspect-ratio: 16 / 9; }
.ocard__name { padding-top: 4px; font-size: 16px; }
.ocard__price b { font-size: 18px; }
@media (max-width: 1000px) {
  .bf__offers { justify-self: stretch; max-width: none; }
}
/* phones: the offers become one row you swipe, so the stage stays one screen tall */
@media (max-width: 700px) {
  .bf__title { font-size: clamp(40px, 13vw, 60px); line-height: .95; }
  .bf__title::before { white-space: normal; }
  .bf__max b { font-size: clamp(44px, 14vw, 64px); }
  .bf__lead { font-size: 15px; }
  .bf__offers { display: flex; gap: 12px; margin: 4px -16px 0; padding: 6px 16px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; perspective: none; }
  .bf__offers::-webkit-scrollbar { display: none; }
  .ocard, .ocard:nth-child(even) { flex: 0 0 62%; margin-top: 0; scroll-snap-align: start; transform: none; }
  .bf__band .bf__btn { justify-self: stretch; text-align: center; }
}
