/* ============================================================
   BARNEY'S SLICE — Design System
   Warm near-black surfaces + cream, ember & gold accents.
   Display serif (Fraunces) paired with a clean sans (Inter).
   ============================================================ */

:root {
  --ink:        #14110C;   /* base surface (warm near-black) */
  --ink-2:      #1C1811;   /* elevated surface */
  --ink-3:      #262019;   /* floating surface */
  --line:       rgba(244, 235, 217, 0.10);
  --line-soft:  rgba(244, 235, 217, 0.06);

  --cream:      #F4EBD9;
  --cream-dim:  #D9CDB6;
  --muted:      #9A8F7B;

  --ember:      #E1542A;
  --ember-soft: #F06A3C;
  --gold:       #E7B24C;
  --basil:      #8AA25B;

  --shadow-card: 0 1px 0 rgba(244,235,217,0.05) inset,
                 0 30px 60px -30px rgba(0,0,0,0.85);
  --shadow-float: 0 24px 60px -20px rgba(0,0,0,0.7);

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--ink);
  color: var(--cream);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--ember); color: #fff; }

/* Layered warm background glow + fine grain for depth ------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 82% -8%,  rgba(225, 84, 42, 0.16), transparent 60%),
    radial-gradient(900px 700px at 6% 4%,     rgba(231, 178, 76, 0.10), transparent 55%),
    radial-gradient(1200px 900px at 50% 118%, rgba(138, 162, 91, 0.10), transparent 60%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typography ------------------------------------------------ */
.font-display { font-family: 'Fraunces', Georgia, serif; }

.h-display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead { color: var(--cream-dim); }

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring),
              box-shadow 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out),
              color 0.35s var(--ease-out);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(180deg, var(--ember-soft), var(--ember));
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(225, 84, 42, 0.75),
              0 1px 0 rgba(255,255,255,0.25) inset;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -12px rgba(225, 84, 42, 0.85),
              0 1px 0 rgba(255,255,255,0.3) inset;
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 235, 217, 0.28);
  background: rgba(244, 235, 217, 0.04);
}

/* Header / navigation -------------------------------------- */
.site-header {
  transition: background-color 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out),
              backdrop-filter 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(20, 17, 12, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-soft);
}

.nav-link {
  position: relative;
  color: var(--cream-dim);
  font-weight: 500;
  transition: color 0.3s var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 0;
  background: var(--ember);
  transition: width 0.35s var(--ease-out);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { width: 100%; }

/* Logo mark (inline SVG line-art) */
.logo-mark { color: var(--cream); }
.logo-mark path,
.logo-mark line,
.logo-mark circle { vector-effect: non-scaling-stroke; }

/* Mobile menu */
.mobile-menu {
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.hamburger span {
  display: block; height: 2px; width: 24px;
  background: var(--cream); border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero ------------------------------------------------------ */
.hero-photo {
  filter: saturate(1.02) contrast(1.02);
}
.hero-scrim {
  background:
    linear-gradient(180deg, rgba(20,17,12,0.55) 0%, rgba(20,17,12,0.35) 35%, rgba(20,17,12,0.85) 78%, var(--ink) 100%),
    linear-gradient(90deg, rgba(20,17,12,0.7) 0%, transparent 55%);
}
.hero-treat {
  mix-blend-mode: multiply;
  background: radial-gradient(120% 100% at 80% 0%, rgba(225,84,42,0.35), transparent 55%);
}

/* Section framing ------------------------------------------ */
.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(244,235,217,0.03);
  font-size: 0.78rem; color: var(--cream-dim);
}

/* Surfaces */
.surface {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: 1.5rem;
}

/* Pizza cards ---------------------------------------------- */
.pizza-card {
  position: relative;
  background:
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line-soft);
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease-out),
              border-color 0.5s var(--ease-out),
              box-shadow 0.5s var(--ease-out);
  will-change: transform;
}
.pizza-card:hover {
  transform: translateY(-8px);
  border-color: rgba(231, 178, 76, 0.35);
  box-shadow: 0 40px 70px -30px rgba(0,0,0,0.9),
              0 0 0 1px rgba(231, 178, 76, 0.12);
}
.pizza-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0d0b08;
}
.pizza-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.pizza-card:hover .pizza-media img { transform: scale(1.06); }
.pizza-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(13,11,8,0.55));
  pointer-events: none;
}
.tag {
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.28rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--cream-dim);
  background: rgba(20,17,12,0.5);
  backdrop-filter: blur(4px);
}
.tag[data-cat="acili"]  { color: #ffb59a; border-color: rgba(225,84,42,0.5); }
.tag[data-cat="vejetaryen"] { color: #cbe09a; border-color: rgba(138,162,91,0.5); }
.tag[data-cat="sef"]    { color: var(--gold); border-color: rgba(231,178,76,0.45); }

.price {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--cream);
}
.card-veg {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--basil); margin-top: 0.5rem;
}

/* Menu category heading (section divider inside the menu) */
.menu-cat-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cream);
  display: flex; align-items: center; gap: 1.1rem;
}
.menu-cat-title::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* Text menu lists (combos, happy hour, drinks, dessert) */
.menu-list { padding: 1.4rem 1.5rem 0.6rem; }
.menu-list-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.menu-list-head h4 {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.4rem; color: var(--cream);
  letter-spacing: -0.01em;
}
.menu-list-head .time {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(231,178,76,0.35); border-radius: 999px;
  padding: 0.28rem 0.7rem; white-space: nowrap;
}
.menu-row { padding: 0.75rem 0; border-bottom: 1px solid var(--line-soft); }
.menu-row:last-child { border-bottom: none; }
.menu-row-top { display: flex; align-items: baseline; gap: 0.55rem; }
.menu-row .name { color: var(--cream); font-weight: 500; }
.menu-row .leader {
  flex: 1; align-self: center;
  border-bottom: 1px dotted rgba(244,235,217,0.24);
  min-width: 1.25rem; height: 0;
}
.menu-row .price {
  font-family: 'Fraunces', serif; font-weight: 600; color: var(--cream); white-space: nowrap;
}
.menu-row .desc { color: var(--muted); font-size: 0.82rem; line-height: 1.55; margin-top: 0.25rem; max-width: 52ch; }
.menu-note { color: var(--muted); font-size: 0.78rem; padding: 0.6rem 0 0.3rem; }

/* Filters --------------------------------------------------- */
.filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--cream-dim);
  font-weight: 500; font-size: 0.92rem;
  background: transparent;
  cursor: pointer;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
              background-color 0.3s var(--ease-out), transform 0.3s var(--ease-spring);
}
.filter-btn:hover { transform: translateY(-2px); border-color: rgba(244,235,217,0.28); color: var(--cream); }
.filter-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.filter-btn.active {
  color: #1a1509;
  background: linear-gradient(180deg, #f2c766, var(--gold));
  border-color: transparent;
  box-shadow: 0 10px 24px -12px rgba(231,178,76,0.7);
}

/* filter fade transition */
.pizza-card.filtering { opacity: 0; transform: translateY(10px) scale(0.98); }

/* Featured carousel ---------------------------------------- */
.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: center; flex: 0 0 auto; }

/* Contact / map -------------------------------------------- */
.map-frame {
  filter: grayscale(0.35) contrast(1.05) brightness(0.85) sepia(0.12) saturate(1.1);
  transition: filter 0.5s var(--ease-out);
}
.map-wrap:hover .map-frame { filter: grayscale(0) contrast(1) brightness(1); }

.contact-row { border-bottom: 1px solid var(--line-soft); }
.contact-row:last-child { border-bottom: none; }

.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--cream-dim);
  transition: transform 0.35s var(--ease-spring), color 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.social-btn:hover {
  transform: translateY(-3px);
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--ember));
}

/* Scroll reveal -------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   WHEEL OF FORTUNE (hidden /sans-carki page)
   ============================================================ */
.wheel-page-bg::before {
  background:
    radial-gradient(1000px 700px at 50% -10%, rgba(225,84,42,0.22), transparent 60%),
    radial-gradient(900px 900px at 50% 120%, rgba(231,178,76,0.12), transparent 60%);
}

.wheel-stage {
  position: relative;
  width: min(88vw, 460px);
  aspect-ratio: 1;
  margin-inline: auto;
}

/* Pointer at 12 o'clock */
.wheel-pointer {
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: 0; height: 0;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-top: 30px solid var(--cream);
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.6));
}
.wheel-pointer::after {
  content: "";
  position: absolute;
  top: -38px; left: -8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cream);
}

/* Outer ring */
.wheel-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  padding: 12px;
  background:
    conic-gradient(from 0deg, #3a3020, #6b5a34, #3a3020, #6b5a34, #3a3020);
  box-shadow:
    0 40px 90px -30px rgba(0,0,0,0.85),
    0 0 0 2px rgba(231,178,76,0.25),
    0 0 60px -10px rgba(225,84,42,0.35);
}
.wheel-ring::before {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 50%;
  border: 2px dashed rgba(244,235,217,0.25);
  z-index: 4;
  pointer-events: none;
}

/* Studs around the ring */
.wheel-studs { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.wheel-studs i {
  position: absolute; top: 50%; left: 50%;
  width: 7px; height: 7px; margin: -3.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6e0, var(--gold));
  box-shadow: 0 0 6px rgba(231,178,76,0.7);
}

/* Rotating disc (SVG lives inside and rotates as one) */
.wheel {
  position: absolute; inset: 12px;
  border-radius: 50%;
  overflow: hidden;
  transform: rotate(0deg);
  will-change: transform;
  /* spin transition applied via .spinning */
}
.wheel.spinning {
  transition: transform 5.4s cubic-bezier(0.12, 0.62, 0.12, 1);
}
.wheel svg { width: 100%; height: 100%; display: block; }
.wheel-seg-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  paint-order: stroke;
  stroke: rgba(0,0,0,0.28);
  stroke-width: 3px;
  stroke-linejoin: round;
}

/* Center hub / spin button */
.wheel-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 27%; height: 27%;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: #fff;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  background: radial-gradient(circle at 35% 30%, var(--ember-soft), var(--ember) 60%, #b23c17);
  border: 4px solid var(--cream);
  box-shadow: 0 12px 26px -8px rgba(0,0,0,0.7), 0 0 0 6px rgba(20,17,12,0.6);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out);
}
.wheel-hub:hover { transform: translate(-50%, -50%) scale(1.06); }
.wheel-hub:active { transform: translate(-50%, -50%) scale(0.96); }
.wheel-hub:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.wheel-hub[disabled] { cursor: not-allowed; filter: saturate(0.5) brightness(0.8); }
.wheel-hub span { font-size: clamp(0.85rem, 3.6vw, 1.15rem); letter-spacing: 0.06em; line-height: 1; }
.wheel-hub small { display:block; font-family:'Inter',sans-serif; font-weight:600; font-size:0.55rem; letter-spacing:0.2em; opacity:0.85; }

@keyframes hub-pulse {
  0%,100% { box-shadow: 0 12px 26px -8px rgba(0,0,0,0.7), 0 0 0 6px rgba(20,17,12,0.6), 0 0 0 0 rgba(225,84,42,0.5); }
  50%     { box-shadow: 0 12px 26px -8px rgba(0,0,0,0.7), 0 0 0 6px rgba(20,17,12,0.6), 0 0 0 16px rgba(225,84,42,0); }
}
.wheel-hub.idle { animation: hub-pulse 2.4s ease-in-out infinite; }

/* Result / coupon ticket ----------------------------------- */
.ticket {
  position: relative;
  background: linear-gradient(180deg, #fbf3e2, #f3e7cd);
  color: #241c0e;
  border-radius: 1.1rem;
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink);
  top: 50%; transform: translateY(-50%);
}
.ticket::before { left: -13px; }
.ticket::after  { right: -13px; }
.ticket-perf {
  border-top: 2px dashed rgba(36,28,14,0.28);
  margin: 1rem 0 0.85rem;
}
.coupon-code {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.4rem;
  color: #b23c17;
}

.result-enter { animation: pop 0.6s var(--ease-spring) both; }
@keyframes pop {
  0% { opacity: 0; transform: translateY(14px) scale(0.94); }
  100% { opacity: 1; transform: none; }
}

/* Confetti bits (JS-created) */
.confetti {
  position: fixed; top: -12px;
  width: 9px; height: 14px;
  z-index: 60; pointer-events: none;
  opacity: 0.95;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translateY(105vh) rotate(720deg); opacity: 0.4; }
}
