/* ============================================================
   ENDLESS — "HYPER-PREMIUM SAUCE" GLOBAL LAYER  (V4/V5)
   Loaded AFTER each page's inline <style> so it overrides.
   ============================================================ */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700&display=swap');

/* Black lives on <html> so the kinetic bg can sit behind body */
html { background: #000; }
body { background: transparent !important; }

/* ============================================================
   1. KINETIC BACKGROUND  — "infinite void gradient"
   barely-perceptible living depth behind everything
   ============================================================ */
.kinetic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}
.kinetic-bg .kb-layer {
  position: absolute;
  inset: -35%;
  will-change: transform;
}
.kinetic-bg .kb-1 {
  background:
    radial-gradient(42% 50% at 28% 32%, rgba(197,160,89,0.13), transparent 70%),
    radial-gradient(38% 46% at 74% 66%, rgba(197,160,89,0.08), transparent 72%);
  filter: blur(46px);
  opacity: .55;
  animation: kbDrift1 28s ease-in-out infinite alternate;
}
.kinetic-bg .kb-2 {
  background:
    radial-gradient(46% 56% at 62% 40%, rgba(150,108,46,0.11), transparent 75%),
    radial-gradient(30% 40% at 18% 78%, rgba(120,92,40,0.07), transparent 74%);
  filter: blur(64px);
  opacity: .5;
  animation: kbDrift2 38s ease-in-out infinite alternate;
}
/* gentle vignette + grain veil for a cinematic finish */
.kinetic-bg .kb-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 50% 30%, transparent 55%, rgba(0,0,0,0.55) 100%);
}
@keyframes kbDrift1 {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1.05) rotate(0deg); }
  100% { transform: translate3d(4%, 3%, 0)  scale(1.18) rotate(8deg); }
}
@keyframes kbDrift2 {
  0%   { transform: translate3d(3%, 2%, 0)  scale(1.12) rotate(0deg); }
  100% { transform: translate3d(-4%, -3%, 0) scale(1.02) rotate(-7deg); }
}

/* ============================================================
   2. CINEMATIC PRELOADER  (CSS-driven => self-completing,
      survives even if JS fails)
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #050403;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: preOverlay 1s cubic-bezier(.7,0,.2,1) forwards;
}
#preloader-logo {
  font-size: clamp(70px, 16vw, 150px);
  line-height: 1;
  color: var(--gold, #C5A059);
  text-shadow: 0 0 38px rgba(197,160,89,0.45), 0 0 80px rgba(197,160,89,0.18);
  opacity: 0;
  transform: translateY(0) scale(2);
  animation: preLogoFull 1s cubic-bezier(.7,0,.2,1) forwards;
}
/* quick variant for sub-pages */
body[data-preloader="quick"] #preloader { animation-duration: .8s; }
body[data-preloader="quick"] #preloader-logo {
  animation: preLogoQuick .8s cubic-bezier(.7,0,.2,1) forwards;
}

@keyframes preLogoFull {
  0%   { opacity: 0; transform: translateY(0) scale(2); }
  16%  { opacity: 1; }
  50%  { opacity: 1; transform: translateY(0) scale(1); }
  66%  { opacity: 1; transform: translateY(0) scale(1); }       /* hold, heavy */
  100% { opacity: 1; transform: translateY(calc(-50vh + 30px)) scale(.17); }
}
@keyframes preLogoQuick {
  0%   { opacity: 0; transform: translateY(0) scale(1.4); }
  40%  { opacity: 1; transform: translateY(0) scale(1); }
  70%  { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(calc(-30vh)) scale(.5); }
}
@keyframes preOverlay {
  0%,72% { opacity: 1; visibility: visible; }
  100%   { opacity: 0; visibility: hidden; }
}
body[data-preloader="quick"] #preloader { animation-name: preOverlayQuick; }
@keyframes preOverlayQuick {
  0%,55% { opacity: 1; visibility: visible; }
  100%   { opacity: 0; visibility: hidden; }
}

/* ============================================================
   3. APP-LIKE GLASS MOBILE OVERLAY  (extreme glassmorphism)
   z-index 9999 => fully obscures category bar / content.
   ============================================================ */
.mobile-nav {
  inset: 0 !important;
  z-index: 9999 !important;
  background: rgba(8,8,8,0.45) !important;
  -webkit-backdrop-filter: blur(0px) saturate(180%);
  backdrop-filter: blur(0px) saturate(180%);
  transition: opacity .45s ease,
              -webkit-backdrop-filter .6s ease,
              backdrop-filter .6s ease !important;
}
/* blur "grows" into focus on open */
body.nav-open .mobile-nav {
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
}
.site-nav {
  z-index: 9000 !important;
  /* near-opaque so dense menu content can't bleed through behind it */
  background: rgba(6, 5, 4, 0.96) !important;
}
.nav-burger { z-index: 10000 !important; }

/* unified premium link styling across all pages */
.mobile-nav-links { gap: 30px !important; }
.mobile-nav-links a {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(34px, 11vw, 56px) !important;
  font-weight: 300 !important;
  font-style: italic !important;
  letter-spacing: .03em !important;
  text-transform: none !important;
  padding: 4px 0 !important;
  border: none !important;
  width: auto !important;
  background: none !important;
  color: var(--cream, #F0EDE8);
  /* kill per-page transition-based stagger; we drive via animation */
  transition: color .25s ease !important;
  opacity: 0;
  transform: translateY(28px) skewY(6deg);
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active { color: var(--gold, #C5A059) !important; }

/* staggered skewed reveal */
body.nav-open .mobile-nav-links a {
  animation: sauceLinkIn .72s cubic-bezier(.16,.9,.3,1) forwards;
}
body.nav-open .mobile-nav-links a:nth-child(1) { animation-delay: .14s; }
body.nav-open .mobile-nav-links a:nth-child(2) { animation-delay: .21s; }
body.nav-open .mobile-nav-links a:nth-child(3) { animation-delay: .28s; }
body.nav-open .mobile-nav-links a:nth-child(4) { animation-delay: .35s; }
body.nav-open .mobile-nav-links a:nth-child(5) { animation-delay: .42s; }
@keyframes sauceLinkIn {
  to { opacity: 1; transform: translateY(0) skewY(0); }
}
.mobile-nav-cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s ease .5s, transform .4s ease .5s, background .2s !important;
}
body.nav-open .mobile-nav-cta { opacity: 1 !important; transform: none; }

/* ============================================================
   4. MAGNETIC CTA  (smooth return baseline)
   ============================================================ */
.nav-reserve, .btn-gold, .mobile-nav-cta, button[type="submit"], [data-magnetic] {
  will-change: transform;
}

/* ============================================================
   5. MENU TABS — gold overflow glow (replaces flat fade)
   ============================================================ */
/* stays in place (does not follow scroll) — anchors the glow pseudo-elements */
.mobile-cat-bar { position: relative !important; top: auto !important; }
.mobile-cat-bar::before,
.mobile-cat-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 46px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity .35s ease;
}
.mobile-cat-bar::after {
  right: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.96), transparent);
  box-shadow: inset -26px 0 26px -18px rgba(197,160,89,0.65);
}
.mobile-cat-bar::before {
  left: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.96), transparent);
  box-shadow: inset 26px 0 26px -18px rgba(197,160,89,0.65);
}
.mobile-cat-bar.glow-right::after { opacity: 1; }
.mobile-cat-bar.glow-left::before { opacity: 1; }

/* ============================================================
   6. PARALLAX  (gallery imagery floats slower than text)
   ============================================================ */
.g-cell { overflow: hidden; }
.g-cell img { will-change: transform; }

/* ============================================================
   7. "ENDLESS" FOOTER — living gold shimmer + spinning ∞
   ============================================================ */
.footer-logo {
  background: linear-gradient(100deg,
    rgba(197,160,89,0.58) 0%,
    rgba(197,160,89,0.58) 36%,
    #f6e7bb 50%,
    rgba(197,160,89,0.58) 64%,
    rgba(197,160,89,0.58) 100%);
  background-size: 220% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: filter .4s ease;
}
.footer-logo,
.footer-logo.shimmer-live,
.footer-logo:hover {
  animation: footerShimmer 3.4s ease-in-out infinite;
}
.footer-logo:hover { filter: drop-shadow(0 0 16px rgba(197,160,89,0.38)); }
@keyframes footerShimmer {
  0%   { background-position: 120% 0; }
  50%  { background-position: -20% 0; }
  100% { background-position: 120% 0; }
}

.footer-infinity {
  display: inline-block;
  transform-style: preserve-3d;
}
.footer-infinity.spin-live {
  animation: footerSpin 13s linear infinite;
}
@keyframes footerSpin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

/* ============================================================
   8. ACCESSIBILITY — respect reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  /* Only the heavy ambient motion is disabled. The gold brand shimmer/∞ spin
     are intentional and stay on (user wants them on PC even with reduced-motion). */
  .kinetic-bg .kb-layer { animation: none !important; }
  #preloader, #preloader-logo { animation-duration: .6s !important; }
}

/* ============================================================
   V5 — UX / PERF REFINEMENTS
   ============================================================ */

/* 1. Header brand — larger + elegant gold glow (icon + wordmark) */
.nav-logo {
  font-size: 14px !important;
  letter-spacing: .3em !important;
  filter: drop-shadow(0 0 10px rgba(197,160,89,0.55));
}
.nav-logo .nav-inf {
  font-size: 1.55em;
  vertical-align: -0.08em;
  filter: drop-shadow(0 0 9px rgba(197,160,89,0.75));
}
.footer-infinity { filter: drop-shadow(0 0 12px rgba(197,160,89,0.6)); }
.footer-logo     { filter: drop-shadow(0 0 14px rgba(197,160,89,0.22)); }

/* 4. Hamburger — generous hitbox (transparent padding) + bigger icon */
.nav-burger {
  padding: 18px !important;
  margin: -18px -12px !important;     /* grow hitbox, keep layout */
  width: auto !important;
  height: auto !important;
}
.nav-burger span {
  width: 26px !important;
  height: 2px !important;
}

/* 5. Menu links — Clash Display / Syne + yellow glow */
.mobile-nav-links a {
  font-family: 'Clash Display', 'Syne', sans-serif !important;
  font-style: normal !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: .005em !important;
  font-size: clamp(32px, 10vw, 52px) !important;
  text-shadow: 0 0 8px rgba(255, 255, 0, 0.8) !important;
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--gold, #C5A059) !important;
  text-shadow: 0 0 14px rgba(255, 255, 0, 0.95) !important;
}

/* 6. Kill horizontal scroll while the menu is open */
body.nav-open { overflow: hidden !important; overflow-x: hidden !important; }
.mobile-nav   { overflow-x: hidden !important; overflow-y: auto; }

/* 7. Explicit close (X) button inside the overlay */
.mobile-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 50px; height: 50px;
  display: none;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  z-index: 10001;
}
body.nav-open .mobile-close { display: flex; }
.mobile-close::before, .mobile-close::after {
  content: '';
  position: absolute;
  width: 26px; height: 2px;
  background: var(--gold, #C5A059);
  box-shadow: 0 0 8px rgba(197,160,89,0.7);
}
.mobile-close::before { transform: rotate(45deg); }
.mobile-close::after  { transform: rotate(-45deg); }

/* Language toggle (RO / EN) — desktop nav + mobile menu */
.lang-toggle {
  display: inline-flex; align-items: center;
  font-family: 'Urbanist', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  border: 1px solid var(--gold-line, rgba(197,160,89,.22));
  border-radius: 100px; overflow: hidden;
  cursor: pointer; padding: 0;
  z-index: 9500;
}
.lang-toggle .lang-opt {
  padding: 5px 10px; line-height: 1;
  color: rgba(240,237,232,0.5);
  background: transparent;
  text-transform: uppercase;
  transition: color .2s, background .2s;
}
.lang-toggle .lang-opt.active { color: #000; background: var(--gold, #C5A059); }

.nav-lang-desktop {
  margin-left: 20px !important;
  order: 1;
}
@media (max-width: 900px) {
  .nav-lang-desktop {
    margin-left: 10px !important;
  }
}
.mobile-nav .lang-toggle { display: none !important; }

/* ============================================================
   V6 — HEADER & NAVIGATION FINISHING TOUCHES
   ============================================================ */

/* Keep the header pinned so content scrolls beneath it (was wrongly absolute) */
.site-nav {
  position: fixed !important;
}

/* Header logo glow & shimmer match footer */
.nav-logo {
  font-size: 14px !important;
  letter-spacing: .3em !important;
  background: linear-gradient(100deg,
    rgba(197,160,89,0.58) 0%,
    rgba(197,160,89,0.58) 36%,
    #f6e7bb 50%,
    rgba(197,160,89,0.58) 64%,
    rgba(197,160,89,0.58) 100%) !important;
  background-size: 220% 100% !important;
  background-position: 120% 0 !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  animation: footerShimmer 3.4s ease-in-out infinite !important;
  filter: drop-shadow(0 0 14px rgba(197,160,89,0.38)) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Bigger glowing infinity in the header — spins like the footer ∞ */
.nav-logo .nav-inf {
  display: inline-block !important;
  font-size: 1.5em !important;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 9px rgba(197,160,89,0.75)) !important;
  animation: footerSpin 13s linear infinite !important;
}

/* Red button "Endless N" next to logo */
.nav-reserve.red-btn {
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: .24em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  background: #A00E17 !important;
  padding: 8px 16px !important;
  text-decoration: none !important;
  border-radius: 2px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 0 10px rgba(160, 14, 23, 0.3) !important;
  transition: all 0.3s ease !important;
  margin-left: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
}
.nav-reserve.red-btn:hover {
  background: #C11E27 !important;
  box-shadow: 0 0 15px rgba(193, 30, 39, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Conventional header order regardless of DOM order:
   logo (left) … links · lang · reserve (right) */
.nav-logo        { order: 0; }
.nav-lang-desktop{ order: 1; }
.nav-links       { margin-left: auto !important; order: 2; }
.nav-reserve     { order: 3; margin-left: 18px !important; }
.nav-burger      { order: 4; }

@media (max-width: 900px) {
  .nav-lang-desktop {
    order: 3 !important;
    margin-left: auto !important;
    margin-right: 8px !important;
  }
  .nav-reserve {
    order: 2 !important;
    margin-left: 10px !important;
    margin-right: 0 !important;
  }
}

.mobile-nav-cta {
  display: none !important;
}

.nav-links a[href*="prive.html"] {
  display: none !important;
}

/* Responsive Header */
@media (max-width: 900px) {
  .site-nav {
    padding: 0 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .nav-logo {
    font-size: 11px !important;
    letter-spacing: .15em !important;
    margin-right: 6px !important;
  }
  .nav-reserve.red-btn {
    font-size: 8px !important;
    padding: 6px 10px !important;
    margin-left: 6px !important;
    margin-right: auto !important;
  }
}

/* Uniformize grid frames — solid dark fill so empty cells stay black,
   keep a thin gold outer frame. (Empty grid tracks were showing the
   kinetic gold through the old translucent fill.) */
.narghilea-grid,
.items-grid,
.specials-grid,
.items-list,
.items-shots,
.form-grid,
.form-grid-full {
  background: #111 !important;
  border: 1px solid var(--gold-line, rgba(197,160,89,0.22)) !important;
}

