/* ============================================================================
 * SMASH BURGER — redesign-home.css
 * Layered ON TOP of redesign.css. Carries the finalize-pass components:
 *   - Cyrillic-capable display font for MK (Anton has NO Cyrillic glyphs)
 *   - 4-language header switcher (MK · SQ · TR · EN)
 *   - HERO motion layer (reduced-motion safe)
 *   - In-house menu MARQUEE (real items + prices, looping, pausable)
 *   - Menu cards row + "powered by Servari" co-brand mark
 * Mobile-first, DOM-safe, a11y. No :root re-declared — tokens come from redesign.css.
 * ========================================================================== */

/* ---------------------------------------------------------------------------
 * 0. CYRILLIC DISPLAY FONT FIX
 * "Anton" (the display font) ships Latin-only — Macedonian headings fall back to
 * a serif/sans without the SMASH look. "Oswald" has full Cyrillic + Latin and the
 * same condensed-uppercase character. We layer Oswald FIRST for [lang=mk] display
 * text so Cyrillic renders in-brand; Latin langs keep Anton. Inter (body) already
 * covers Cyrillic.
 * ------------------------------------------------------------------------- */
html[lang="mk"] .rd-h1,
html[lang="mk"] .rd-h2,
html[lang="mk"] .rd-h3,
html[lang="mk"] .rd-h4,
html[lang="mk"] .rd-hero__mark,
html[lang="mk"] .rd-hero__tagline,
html[lang="mk"] .rd-band h2,
html[lang="mk"] .rd-footer__brand,
html[lang="mk"] .hero-slide__name,
html[lang="mk"] .combo-card__name,
html[lang="mk"] .marquee-item__name,
html[lang="mk"] .game-body h3 {
  font-family: "Oswald", var(--smash-font-display);
  font-weight: 600;
  letter-spacing: 0.012em;
}

/* Weight hierarchy (MK / Oswald only — Latin Anton is single-weight by design).
 * Anton renders heavy at 400, so on Latin langs the hierarchy is carried by SIZE.
 * Oswald is a variable-weight family, so for MK we make the hierarchy intentional:
 *   TIER 1 (700) — the loudest marks: the hero wordmark, the page H1/H2, the
 *                  order-band shout, the footer brand. These should hit hard.
 *   TIER 2 (600, above) — H3/H4, card + item names: clean and legible, not shouty.
 * The two-step jump (600 -> 700) reads as deliberate, premium, and on-brand. */
html[lang="mk"] .rd-h1,
html[lang="mk"] .rd-h2,
html[lang="mk"] .rd-band h2,
html[lang="mk"] .rd-footer__brand {
  font-weight: 700;
}
/* The big hero wordmark "SMASH BURGER" is the Latin logo (Anton) — but on MK the
 * disc + text scale with the page, so pin the heaviest Oswald weight for parity. */
html[lang="mk"] .rd-hero__mark {
  font-weight: 700;
}
/* The hero tagline "ЈАДИ · ИГРАЈ · УЧИ AI" is a kicker, not a headline — keep it
 * lighter + tracked so it reads as a confident sub-line under the wordmark. */
html[lang="mk"] .rd-hero__tagline {
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ---------------------------------------------------------------------------
 * 0b. 4-LANGUAGE MECHANISM — OWNED BY servari-lang.css + servari-lang.js
 * This page uses MK + EN sibling spans only; SQ/TR are supplied by the engine's
 * source-text registry (servari-lang-spans.js), and visibility is driven by the
 * data-css-lang overlay in servari-lang.css. No data-lang-sq/-tr spans here, so
 * no page-local lang CSS is needed. (Intentionally left to the canonical layer.)
 * ------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
 * 1. 4-LANGUAGE SWITCHER (header)
 * ------------------------------------------------------------------------- */
.rd-lang--4 {
  flex-wrap: nowrap;
}
.rd-lang--4 button {
  padding: 7px 9px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
@media (max-width: 380px) {
  .rd-lang--4 button {
    padding: 6px 7px;
    font-size: 10px;
  }
}

/* ---------------------------------------------------------------------------
 * 2. SCROLLING HERO FEATURED ITEMS
 * Slides stack in a track; one visible at a time; cross-fade + slide.
 * Auto-rotate (JS) + swipe (JS) + prev/next/pause controls + dots.
 * Each slide = a real menu item or bundle (photo + name + price + CTAs).
 * ------------------------------------------------------------------------- */
.hero-campaigns {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 8px;
}
.hero-slides {
  position: relative;
  border-radius: var(--smash-radius-lg);
  overflow: hidden;
  background: var(--smash-ink-3);
  box-shadow: var(--smash-shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px) scale(0.995);
  transition: opacity 0.6s var(--smash-ease),
    transform 0.6s var(--smash-ease), visibility 0s linear 0.6s;
}
.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.6s var(--smash-ease),
    transform 0.6s var(--smash-ease), visibility 0s;
  z-index: 2;
}
.hero-slide__media {
  position: relative;
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, #2a1f18, var(--smash-ink));
  overflow: hidden;
}
.hero-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}
.hero-slide.is-active .hero-slide__media img {
  animation: hero-slide-zoom 7s var(--smash-ease) forwards;
}
@keyframes hero-slide-zoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.1);
  }
}
.hero-slide__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 11, 9, 0) 30%,
    rgba(15, 11, 9, 0.55) 70%,
    rgba(15, 11, 9, 0.94) 100%
  );
}
.hero-slide__body {
  position: relative;
  z-index: 2;
  margin-top: -120px;
  padding: 0 22px 24px;
  color: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-slide__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.hero-slide__save {
  background: var(--smash-orange);
  color: #fff;
  font-family: var(--smash-font-body);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--smash-radius-pill);
}
.hero-slide__cat {
  background: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: var(--smash-font-body);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--smash-radius-pill);
}
.hero-slide__name {
  font-family: var(--smash-font-display);
  font-weight: 400;
  font-size: clamp(28px, 7vw, 52px);
  line-height: 0.98;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  color: #fff;
  margin: 2px 0 0;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
}
.hero-slide__desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  max-width: 540px;
  margin: 0;
}
.hero-slide__pricerow {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.hero-slide__price {
  font-family: var(--smash-font-display);
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1;
  color: #f5b08a;
}
.hero-slide__price .ccy {
  font-family: var(--smash-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  margin-left: 4px;
}
.hero-slide__was {
  font-family: var(--smash-font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
}
.hero-slide__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.hero-slide__ctas .rd-btn {
  min-height: 48px;
  padding: 13px 22px;
}

@media (min-width: 820px) {
  .hero-slide {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
  }
  .hero-slide__media {
    aspect-ratio: auto;
    min-height: 420px;
  }
  .hero-slide__media::after {
    background: linear-gradient(
      90deg,
      rgba(15, 11, 9, 0) 40%,
      rgba(15, 11, 9, 0.2) 100%
    );
  }
  .hero-slide__body {
    margin-top: 0;
    padding: 40px 44px;
    justify-content: center;
    background: linear-gradient(180deg, var(--smash-ink-2), var(--smash-ink-3));
  }
  .hero-slide__desc {
    font-size: 15.5px;
  }
}

/* Controls (prev / next / pause) */
.hero-ctrl {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--smash-dur) var(--smash-ease),
    border-color var(--smash-dur) var(--smash-ease);
}
.hero-ctrl:hover {
  background: var(--smash-orange);
  border-color: var(--smash-orange);
}
.hero-ctrl svg {
  width: 20px;
  height: 20px;
}
.hero-ctrl--prev {
  left: 12px;
}
.hero-ctrl--next {
  right: 12px;
}
@media (max-width: 560px) {
  .hero-ctrl {
    width: 36px;
    height: 36px;
  }
  .hero-ctrl--prev {
    left: 8px;
  }
  .hero-ctrl--next {
    right: 8px;
  }
}
.hero-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background var(--smash-dur) var(--smash-ease),
    width var(--smash-dur) var(--smash-ease);
}
.hero-dot.is-active {
  background: var(--smash-orange);
  width: 22px;
  border-radius: var(--smash-radius-pill);
}
.hero-dot:focus-visible {
  outline: 2px solid var(--smash-orange);
  outline-offset: 3px;
}
.hero-pause {
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-pause:hover {
  background: var(--smash-orange);
  border-color: var(--smash-orange);
}
.hero-pause svg {
  width: 16px;
  height: 16px;
}
.hero-pause .ic-play {
  display: none;
}
.hero-pause[data-paused="true"] .ic-pause {
  display: none;
}
.hero-pause[data-paused="true"] .ic-play {
  display: inline;
}

/* Hero copy block above the featured carousel */
.hero-head {
  text-align: center;
  margin-bottom: 22px;
}

/* ---------------------------------------------------------------------------
 * 3. IN-HOUSE MENU MARQUEE (replaces stock "girls" photos)
 * A looping horizontal scroller of real menu items (photo + name + price).
 * Two duplicated tracks for a seamless loop; pauses on hover/focus + button.
 * ------------------------------------------------------------------------- */
.menu-marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0 6px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}
.menu-marquee__track {
  display: flex;
  width: max-content;
  gap: 16px;
  will-change: transform;
  animation: marquee-scroll 48s linear infinite;
}
.menu-marquee:hover .menu-marquee__track,
.menu-marquee:focus-within .menu-marquee__track,
.menu-marquee[data-paused="true"] .menu-marquee__track {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee-item {
  flex: 0 0 auto;
  width: 220px;
  background: var(--smash-cream-3);
  border: 1px solid var(--smash-border);
  border-radius: var(--smash-radius-md);
  overflow: hidden;
  transition: transform var(--smash-dur) var(--smash-ease),
    box-shadow var(--smash-dur) var(--smash-ease),
    border-color var(--smash-dur) var(--smash-ease);
}
.marquee-item:hover,
.marquee-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--smash-shadow-md);
  border-color: #d8c9bb;
  outline: none;
}
.marquee-item__photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #2a1f18, var(--smash-ink));
  overflow: hidden;
}
.marquee-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.marquee-item__body {
  padding: 12px 14px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.marquee-item__name {
  font-family: var(--smash-font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--smash-ink);
}
.marquee-item__price {
  font-family: var(--smash-font-display);
  font-size: 18px;
  line-height: 1;
  color: var(--smash-orange);
  white-space: nowrap;
}
.marquee-item__price .ccy {
  font-family: var(--smash-font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--smash-muted);
  margin-left: 3px;
}
@media (max-width: 480px) {
  .marquee-item {
    width: 168px;
  }
  .marquee-item__name {
    font-size: 14px;
  }
}
.marquee-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.marquee-pause {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--smash-font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smash-muted);
  border: 1px solid var(--smash-border);
  border-radius: var(--smash-radius-pill);
  padding: 8px 14px;
  transition: border-color var(--smash-dur) var(--smash-ease),
    color var(--smash-dur) var(--smash-ease);
}
.marquee-pause:hover {
  border-color: var(--smash-orange);
  color: var(--smash-orange);
}
.marquee-pause .ic-play {
  display: none;
}
.marquee-pause[data-paused="true"] .ic-pause {
  display: none;
}
.marquee-pause[data-paused="true"] .ic-play {
  display: inline;
}
.marquee-pause svg {
  width: 13px;
  height: 13px;
}

/* ---------------------------------------------------------------------------
 * 4. COMBOS ROW
 * ------------------------------------------------------------------------- */
.combo-card {
  display: flex;
  flex-direction: column;
  background: var(--smash-cream-3);
  border: 1px solid var(--smash-border);
  border-radius: var(--smash-radius-lg);
  overflow: hidden;
  transition: transform var(--smash-dur) var(--smash-ease),
    box-shadow var(--smash-dur) var(--smash-ease),
    border-color var(--smash-dur) var(--smash-ease);
}
.combo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--smash-shadow-md);
  border-color: #d8c9bb;
}
.combo-card:focus-visible {
  outline: 3px solid var(--smash-orange);
  outline-offset: 2px;
}
.combo-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #2a1f18, var(--smash-ink));
  overflow: hidden;
}
.combo-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--smash-dur-slow) var(--smash-ease);
}
.combo-card:hover .combo-card__photo img {
  transform: scale(1.04);
}
.combo-card__save {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--smash-orange);
  color: #fff;
  font-family: var(--smash-font-body);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--smash-radius-pill);
  box-shadow: var(--smash-shadow-sm);
}
.combo-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.combo-card__name {
  font-family: var(--smash-font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--smash-ink);
  margin: 0;
}
.combo-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--smash-text);
  flex: 1;
}
.combo-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--smash-hairline);
}
.combo-card__pricewrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.combo-card__price {
  font-family: var(--smash-font-display);
  font-size: 24px;
  line-height: 1;
  color: var(--smash-orange);
}
.combo-card__price .ccy {
  font-family: var(--smash-font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--smash-muted);
  margin-left: 4px;
  letter-spacing: 0.04em;
}
.combo-card__was {
  font-family: var(--smash-font-body);
  font-size: 13px;
  color: var(--smash-muted);
  text-decoration: line-through;
}
.combo-card__order {
  font-family: var(--smash-font-body);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smash-ink);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
 * 5. "POWERED BY SERVARI" co-brand mark (sealed: brand link only)
 * ------------------------------------------------------------------------- */
.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--smash-font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}
.powered-by .pb-label {
  text-transform: lowercase;
}
.powered-by .pb-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid transparent;
  transition: color var(--smash-dur) var(--smash-ease),
    border-color var(--smash-dur) var(--smash-ease);
}
.powered-by .pb-brand:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.powered-by .pb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--smash-orange);
  box-shadow: 0 0 0 3px rgba(217, 72, 15, 0.25);
}
.powered-by--center {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ---------------------------------------------------------------------------
 * 6. MOTION SAFETY (reduced-motion: stop loops, keep all content visible)
 * ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .menu-marquee__track {
    animation: none !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .menu-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-slide.is-active .hero-slide__media img {
    animation: none !important;
    transform: scale(1.02) !important;
  }
  .hero-slide {
    transition: opacity 0.001s, visibility 0.001s !important;
  }
}
