/*
  Ramen Rebel - custom CSS layer (WordPress theme `ramen-rebel`)

  Generated from the static prototype's inline <style> blocks:
    index.html (lines 35-844, canonical shared block + .site-bg block)
    menu.html / rezerwacja.html (lines 35-819 shared + page-specific extras)
  The three "shared" blocks had drifted - this file is the superset merge:
    - shared/global rules = index.html version
    - conflicting page rules scoped under body classes (.home / .page-menu /
      .page-rezerwacja - printed by body_class(), see CONTRACT.md)
    - selectors unique to one page's markup stay unscoped
  Tailwind utilities come from the CDN (inline config in header.php) -
  this file is the CUSTOM layer only.
  No NEW !important - the only occurrences are inherited verbatim from the
  static source (mobile marquee kill, mobile scroll-top, reduced-motion).
*/

/* =====================================================================
   SHARED BASE - all pages (from index.html, canonical)
   ===================================================================== */
  :root {
    /* Forest-organic palette (matched to MENU-SHORT-druk + LED SVG assets) */
    --bg: #F4F0E6;          /* warm cream from menu print */
    --bg-paper: #FFFFFF;
    --bg-deep: #21311f;     /* deep forest (was near-black) */
    --ink: #21311f;         /* deep forest text (was near-black) */
    --ink-soft: #5b6e57;    /* sage soft for muted text */
    --accent: #C9342B;      /* KEEP — CTA red, conversion driver */
    --accent-warm: #7e8c74; /* mid sage (was orange #7e8c74) */
    --accent-deep: #3c4834; /* forest primary brand accent (was burgundy #3c4834) */

    /* Brand aliases */
    --brand-green: #3c4834;
    --brand-green-deep: #21311f;
    --brand-sage: #7e8c74;
    --brand-sage-light: #a5a793;
    --brand-paper: #F4F0E6;
  }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Work Sans', sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  .font-display { font-family: 'Oswald', sans-serif; }
  .font-serif-i { font-family: 'Cormorant Garamond', serif; font-style: italic; }

  /* Eyebrow */
  .eyebrow {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-deep);
  }

  /* Container */
  .container-x { max-width: 1140px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

  /* Pills */
  .pill {
    display: inline-flex; align-items: center; justify-content: center;
    height: 48px; padding: 0 24px; border-radius: 999px;
    font-weight: 500; font-size: 14px; letter-spacing: 0.04em;
    transition: all .25s ease;
  }
  .pill-sm { height: 38px; padding: 0 18px; font-size: 13px; }
  .pill-accent { background: var(--accent); color: #fff; }
  .pill-accent:hover { background: #a82a23; transform: translateY(-1px); }
  .pill-ghost-cream { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.65); }
  .pill-ghost-cream:hover { background: rgba(255,255,255,.08); }
  .pill-ghost-ink { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
  .pill-ghost-ink:hover { background: var(--ink); color: var(--bg); }
  .pill-ghost-deep { background: transparent; color: var(--ink-soft); border: 1px solid rgba(92,79,69,.4); }
  .pill-ghost-deep:hover { color: var(--ink); border-color: var(--ink); }

  /* Header */
  .site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease;
    background: transparent;
    border-bottom: 1px solid transparent;
  }
  .site-header.scrolled {
    background: rgba(250, 246, 238, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26,20,16,.08);
  }
  .nav-link {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: color .2s ease;
    position: relative;
  }
  .site-header.scrolled .nav-link { color: var(--ink-soft); }
  .nav-link:hover { color: #fff; }
  .site-header.scrolled .nav-link:hover { color: var(--ink); }
  .nav-link.active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
    height: 1px; background: currentColor;
  }

  /* Hero */
  .hero {
    position: relative; height: 100vh; min-height: 640px;
    overflow: hidden;
    background: #3c4834;
  }
  .hero-bg {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse at 30% 30%, rgba(232,155,60,.18), transparent 50%),
      radial-gradient(ellipse at 70% 70%, rgba(201,52,43,.22), transparent 55%),
      linear-gradient(135deg, #21311f 0%, #111914 100%);
  }
  .hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; pointer-events: none;
  }
  /* shader: darkens the video so the centered copy + white nav stay legible */
  .hero-shader {
    position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(180deg, rgba(8,12,8,.66) 0%, rgba(8,12,8,.42) 24%, rgba(8,12,8,.42) 58%, rgba(8,12,8,.76) 100%),
      radial-gradient(ellipse 92% 72% at 50% 50%, rgba(8,12,8,.32), transparent 76%);
  }
  .hero-content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding-top: 96px; padding-bottom: 84px;
  }
  .hero-content .eyebrow { color: var(--accent-warm); }
  .hero-content h1, .hero-content h2 { color: #F4F0E6; }
  .hero-content .hero-copy { color: rgba(250,246,238,.82); margin-left: auto; margin-right: auto; }
  .hero-img-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.25);
    font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
    font-family: 'Work Sans', sans-serif;
  }
  .hero-vignette {
    position: absolute; left: 0; right: 0; bottom: 0; height: 50%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
  }
  .hero-noise::after {
    content: ''; position: absolute; inset: 0;
    background-image:
      radial-gradient(circle at 20% 30%, rgba(255,255,255,.04) 1px, transparent 1px),
      radial-gradient(circle at 80% 70%, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 6px 6px, 8px 8px;
    pointer-events: none; opacity: .5;
  }

  /* PNG cutout placeholder */
  .png-cutout {
    background:
      repeating-linear-gradient(45deg, rgba(0,0,0,.04), rgba(0,0,0,.04) 8px, rgba(0,0,0,.06) 8px, rgba(0,0,0,.06) 16px);
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    color: rgba(26,20,16,.4);
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    font-family: 'Work Sans', sans-serif;
    position: relative;
  }
  .png-cutout::before {
    content: '';
    position: absolute; inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, rgba(232,155,60,.35), rgba(90,43,31,.45) 60%, rgba(26,20,16,.5) 100%);
  }
  .png-cutout span { position: relative; z-index: 1; color: rgba(255,255,255,.85); font-weight: 500; }

  .photo-placeholder {
    background: #e8e2d4;
    background-image:
      linear-gradient(135deg, rgba(0,0,0,.03) 25%, transparent 25%, transparent 50%, rgba(0,0,0,.03) 50%, rgba(0,0,0,.03) 75%, transparent 75%);
    background-size: 24px 24px;
    color: rgba(26,20,16,.45);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 500;
  }

  /* Pulse */
  .pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #5b6e57;
    position: relative; display: inline-block;
  }
  .pulse-dot::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    background: #5b6e57; opacity: .35; animation: pulse 2s ease-out infinite;
  }
  @keyframes pulse {
    0% { transform: scale(0.6); opacity: .55; }
    100% { transform: scale(2); opacity: 0; }
  }
  .pulse-dot.closed { background: #c9342b; }
  .pulse-dot.closed::after { background: #c9342b; }

  /* Filter pill */
  .filter-pill {
    display: inline-flex; align-items: center; height: 38px; padding: 0 18px;
    border-radius: 999px; font-size: 13px; font-weight: 500;
    color: var(--ink-soft); border: 1px solid rgba(92,79,69,.25);
    background: transparent; transition: all .2s ease; cursor: pointer;
    letter-spacing: 0.02em;
  }
  .filter-pill:hover { color: var(--ink); border-color: var(--ink); }
  .filter-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

  .sticky-filters {
    position: sticky; top: 72px; z-index: 30;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px 0;
    margin: 0 -24px;
    padding-left: 24px; padding-right: 24px;
    border-bottom: 1px solid rgba(26,20,16,.06);
  }

  /* ===== Menu Carousel — floating bowls, no cards ===== */
  .menu-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 16px 0 22px;
  }
  /* Edge fade via overlays (overflow:hidden clips horizontal track; tooltip is body-portaled so no clipping) */
  .menu-carousel::before,
  .menu-carousel::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 6%;
    z-index: 5;
    pointer-events: none;
  }
  .menu-carousel::before { left: 0;  background: linear-gradient(90deg, var(--bg-paper, #F4F0E6) 0%, transparent 100%); }
  .menu-carousel::after  { right: 0; background: linear-gradient(-90deg, var(--bg-paper, #F4F0E6) 0%, transparent 100%); }
  .menu-track {
    display: flex;
    gap: 56px;
    width: max-content;
    will-change: transform;
    animation: marquee-left 70s linear infinite;
    animation-play-state: running;
    align-items: flex-start;
  }
  .menu-track.paused { animation-play-state: paused; }
  .menu-track:hover { animation-play-state: paused; }
  @keyframes marquee-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  /* Dish — bowl as floating PNG, no card wrapper */
  .dish-card {
    flex: 0 0 auto;
    width: 336px;
    padding: 16px 12px 18px;
    position: relative;
    cursor: pointer;
    background: transparent;
    text-align: center;
  }
  .dish-bowl {
    width: 100%;
    max-width: 308px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter:
      drop-shadow(0 22px 28px rgba(33,49,31,.38))
      drop-shadow(0 6px 10px rgba(33,49,31,.22));
    transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .35s ease;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
  }
  .dish-card:hover .dish-bowl,
  .dish-card.is-active .dish-bowl {
    transform: translateY(-14px) scale(1.07);
    filter:
      drop-shadow(0 34px 38px rgba(33,49,31,.48))
      drop-shadow(0 10px 16px rgba(33,49,31,.28));
  }
  .menu-track:hover .dish-card:not(:hover):not(.is-active) .dish-bowl {
    filter:
      drop-shadow(0 18px 22px rgba(33,49,31,.25))
      drop-shadow(0 4px 8px rgba(33,49,31,.15));
    opacity: .78;
  }
  .dish-meta {
    text-align: center;
    margin-top: 18px;
    transition: transform .35s ease;
  }
  .dish-card:hover .dish-meta { transform: translateY(-4px); }
  .dish-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 21px;
    line-height: 1.1;
    color: var(--brand-green-deep, #21311f);
    letter-spacing: 0.01em;
  }
  .dish-romaji {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand-sage, #5b6e57);
    margin-top: 4px;
  }
  .dish-price {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--accent, #C9342B);
    letter-spacing: 0.02em;
    margin-top: 8px;
  }

  /* Per-card tooltip removed — replaced by body-portaled .dish-popover (desktop) + .mobile-dish-sheet (mobile) */
  .dish-tooltip { display: none; }

  /* Desktop hover popover — singleton, body-level, positioned by JS near hovered bowl */
  .dish-popover {
    position: fixed;
    top: 0; left: 0;
    width: 280px;
    background: var(--cream-paper, #F4F0E6);
    border: 1px solid rgba(33,49,31,.12);
    border-radius: 14px;
    padding: 16px 18px 18px;
    box-shadow: 0 24px 44px -16px rgba(33,49,31,.42), 0 6px 14px -6px rgba(33,49,31,.18);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
    text-align: left;
    display: none;
  }
  @media (min-width: 769px) {
    .dish-popover { display: block; }
  }
  .dish-popover.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .dish-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -9px;
    border: 9px solid transparent;
    border-top-color: var(--cream-paper, #F4F0E6);
    filter: drop-shadow(0 3px 2px rgba(33,49,31,.08));
  }
  .dish-popover h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 19px;
    color: var(--brand-green-deep, #21311f);
    margin-bottom: 2px;
  }
  .dish-popover .pop-romaji {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--brand-sage, #5b6e57);
    margin-bottom: 10px;
  }
  .tt-desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink, #21311f);
    margin-bottom: 12px;
  }
  .tt-label {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-sage, #5b6e57);
    font-weight: 600;
    margin-bottom: 6px;
    margin-top: 10px;
  }
  .tt-ing {
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-soft, #3c4834);
    margin-bottom: 0;
  }
  .tt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
  }
  .tt-chips .chip { height: 22px; padding: 0 9px; font-size: 10.5px; }

  /* Tablet */
  @media (max-width: 900px) {
    .dish-card { width: 280px; padding: 12px 8px 14px; }
    .dish-bowl { max-width: 266px; }
    .menu-track { gap: 40px; animation-duration: 60s; }
    .dish-name { font-size: 19px; }
  }

  /* Mobile — swipeable carousel (no marquee), bigger bowls, bottom-sheet details */
  @media (max-width: 768px) {
    .menu-carousel { padding: 11px 0 11px; }
    .dish-card { width: 266px; padding: 10px 6px 14px; scroll-snap-align: center; }
    .dish-bowl { max-width: 252px; }
    .dish-name { font-size: 18px; }
    .dish-romaji { font-size: 10px; letter-spacing: 0.16em; margin-top: 3px; }
    .dish-price { font-size: 15px; margin-top: 6px; }
    .dish-card:hover .dish-bowl { transform: none; filter: drop-shadow(0 18px 22px rgba(33,49,31,.32)); }
    .dish-card.is-active .dish-bowl {
      transform: translateY(-6px) scale(1.04);
      filter: drop-shadow(0 28px 30px rgba(33,49,31,.42));
    }

    /* Disable marquee animation on mobile → user swipes manually */
    .menu-carousel { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
    .menu-carousel::-webkit-scrollbar { display: none; }
    .menu-track {
      animation: none !important;
      width: max-content;
      gap: 24px;
      padding: 0 calc(50vw - 133px); /* center first/last card */
    }
    .menu-carousel::before,
    .menu-carousel::after { display: none; }

    /* Body scrim behind bottom sheet */
    body.tooltip-open::before {
      content: '';
      position: fixed; inset: 0;
      background: rgba(33,49,31,.55);
      z-index: 40;
      animation: fadeInBackdrop .2s ease;
    }
    @keyframes fadeInBackdrop {
      from { opacity: 0; }
      to   { opacity: 1; }
    }
  }

  /* Mobile bottom-sheet (body-level singleton — escapes .menu-track's transform containing block) */
  .mobile-dish-sheet {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: var(--cream-paper, #F4F0E6);
    border-radius: 18px;
    padding: 20px 22px 22px;
    box-shadow: 0 -12px 40px -10px rgba(33,49,31,.5);
    z-index: 50;
    transform: translateY(calc(100% + 32px));
    opacity: 0;
    pointer-events: none;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
    display: none;
  }
  .mobile-dish-sheet.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  @media (max-width: 768px) {
    .mobile-dish-sheet { display: block; }
  }
  .mobile-dish-sheet h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 22px;
    color: var(--brand-green-deep, #21311f);
    margin-bottom: 4px;
  }
  .mobile-dish-sheet .sheet-romaji {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand-sage, #5b6e57);
    margin-bottom: 12px;
  }
  .mobile-dish-sheet .sheet-close {
    position: absolute;
    top: 12px; right: 14px;
    width: 32px; height: 32px;
    border: none; background: transparent;
    color: var(--brand-sage, #5b6e57);
    font-size: 20px; line-height: 1; cursor: pointer;
    border-radius: 50%;
  }
  .mobile-dish-sheet .sheet-close:hover { background: rgba(33,49,31,.08); }

  /* Reduced motion fallback */
  @media (prefers-reduced-motion: reduce) {
    .menu-track {
      animation: none;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
      width: 100%;
      padding: 0 24px;
    }
    .dish-card { scroll-snap-align: center; }
    .dish-bowl { transition: none; }
    .dish-card:hover .dish-bowl { transform: none; }
    .mobile-dish-sheet { transition: none; }
  }

  .chip {
    display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
    border-radius: 999px; font-size: 12px; font-weight: 400;
    color: var(--ink); background: var(--bg); border: 1px solid rgba(26,20,16,.1);
    letter-spacing: 0.01em;
  }
  .chip-allergen {
    background: rgba(232,155,60,.12);
    color: var(--accent-deep);
    border-color: rgba(232,155,60,.35);
  }
  .chip-spice {
    background: rgba(201,52,43,.1);
    color: var(--accent);
    border-color: rgba(201,52,43,.3);
  }

  /* Time slot */
  .time-slot {
    display: inline-flex; align-items: center; justify-content: center;
    height: 42px; min-width: 76px; padding: 0 14px;
    border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.85); font-size: 14px; font-weight: 400;
    background: transparent; cursor: pointer; transition: all .2s ease;
    font-variant-numeric: tabular-nums;
  }
  .time-slot:hover { border-color: rgba(255,255,255,.7); color: #fff; }
  .time-slot.active { background: var(--accent); border-color: var(--accent); color: #fff; }

  .input-dark {
    height: 48px; padding: 0 18px; border-radius: 999px;
    background: transparent; border: 1px solid rgba(255,255,255,.25);
    color: #fff; font-size: 14px;
    transition: border-color .2s ease;
  }
  .input-dark:focus { outline: none; border-color: rgba(255,255,255,.7); }
  .input-dark::placeholder { color: rgba(255,255,255,.45); }

  .input-cream {
    height: 48px; padding: 0 18px; border-radius: 999px;
    background: #fff; border: 1px solid rgba(26,20,16,.15);
    color: var(--ink); font-size: 14px;
    transition: border-color .2s ease;
  }
  .input-cream:focus { outline: none; border-color: var(--ink); }
  .input-cream::placeholder { color: rgba(26,20,16,.4); }

  /* Stepper */
  .stepper-btn {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3);
    color: #fff; background: transparent;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .2s ease; cursor: pointer;
  }
  .stepper-btn:hover { border-color: #fff; }

  /* Gallery */
  .gallery-tile {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform .25s ease;
  }
  .gallery-tile:hover { transform: scale(1.02); }
  .gallery-tile .photo-placeholder { transition: transform .5s ease; }
  .gallery-tile:hover .photo-placeholder { transform: scale(1.04); }
  .tile-caption {
    position: absolute; left: 12px; bottom: 12px;
    background: rgba(255,255,255,.9);
    color: var(--ink);
    padding: 6px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0; transform: translateY(6px);
    transition: all .25s ease;
  }
  .gallery-tile:hover .tile-caption { opacity: 1; transform: translateY(0); }

  /* Lightbox */
  .lightbox {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,.92);
    display: none;
    align-items: center; justify-content: center;
  }
  .lightbox.open { display: flex; }
  .lightbox-img {
    width: min(92vw, 1100px); height: min(82vh, 760px);
  }
  .lightbox-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #fff; border: 1px solid rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .2s ease;
  }
  .lightbox-btn:hover { background: rgba(255,255,255,.2); }
  .lightbox-btn.close { top: 24px; right: 24px; transform: none; }
  .lightbox-btn.prev { left: 24px; }
  .lightbox-btn.next { right: 24px; }

  /* Floating buttons */
  .float-reserve {
    position: fixed; bottom: 20px; right: 20px; z-index: 40;
    display: none;
  }
  @media (max-width: 768px) { .float-reserve { display: inline-flex; } }
  .scroll-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 40;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--ink); color: #fff;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; transition: opacity .25s ease;
  }
  .scroll-top.visible { display: flex; opacity: 1; }
  @media (max-width: 768px) { .scroll-top { display: none !important; } }

  /* Mobile menu */
  .mobile-menu {
    position: fixed; inset: 0; z-index: 60;
    background: var(--bg);
    display: none;
    flex-direction: column;
    padding: 20px 24px;
  }
  .mobile-menu.open { display: flex; }

  /* Reveal */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: translateY(0); }

  /* Hairline divider */
  .hairline-y { width: 1px; align-self: stretch; background: rgba(26,20,16,.12); }
  .hairline-y-light { width: 1px; align-self: stretch; background: rgba(255,255,255,.18); }

  /* Hide cards on filter */
  .dish-card.hidden, .gallery-tile.hidden { display: none; }

  /* Reduce motion */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
  }

  /* Headline tweak */
  .display-hero {
    font-family: 'Oswald', sans-serif;
    line-height: 0.95;
    letter-spacing: -0.01em;
  }
  .display-hero .thin { font-weight: 200; }
  .display-hero .bold { font-weight: 700; }

  /* Small chevron rotate */
  .rot-180 { transform: rotate(180deg); }

  /* Map placeholder */
  .map-placeholder {
    background:
      linear-gradient(135deg, #e8e1d2 0%, #d4cdb8 100%);
    position: relative;
    overflow: hidden;
  }
  .map-placeholder::before {
    content: ''; position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(26,20,16,.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(26,20,16,.06) 1px, transparent 1px);
    background-size: 32px 32px;
  }
  .map-placeholder::after {
    content: ''; position: absolute; inset: 0;
    background-image:
      linear-gradient(120deg, transparent 30%, rgba(232,155,60,.15) 30%, rgba(232,155,60,.15) 35%, transparent 35%, transparent 60%, rgba(201,52,43,.1) 60%, rgba(201,52,43,.1) 62%, transparent 62%);
  }
  .map-pin {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%);
    width: 32px; height: 32px;
    background: var(--accent);
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -100%) rotate(-45deg);
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
  }
  .map-pin::after {
    content: ''; position: absolute;
    width: 8px; height: 8px; background: #fff;
    border-radius: 50%; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Ramen Rebel logo */
  .logo-mark {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
  /* Full-colour badge logo — no inversion on dark backgrounds */
  .bg-deep .logo-mark img,
  footer .logo-mark img { filter: none; }

  /* Dodatki price list */
  .addon-row { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(26,20,16,.08); }
  .addon-name { font-family: 'Work Sans', sans-serif; font-size: 15px; color: var(--ink); }
  .addon-dots { flex: 1; border-bottom: 1px dotted rgba(26,20,16,.28); transform: translateY(-4px); }
  .addon-price { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 16px; color: var(--accent-warm); white-space: nowrap; }

  /* Quote block */
  .quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 80px; line-height: 0.6;
    color: var(--accent-warm);
    font-style: italic;
  }

  /* Social icon */
  .social-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(250,246,238,.08);
    color: var(--bg);
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .2s ease;
  }
  .social-icon:hover { background: var(--accent-warm); color: var(--deep); }

  /* Section padding utility */
  .section-y { padding-top: 35px; padding-bottom: 35px; }
  @media (max-width: 768px) { .section-y { padding-top: 11px; padding-bottom: 11px; } }

  /* ============== MOBILE OPTIMIZATION (Agent B audit) ============== */
  /* Safety net dla pulse-dot scale animation */
  body { overflow-x: hidden; }

  /* Kontakt — mobile reorder: mapa → godziny → kontakt */
  @media (max-width: 1023px) {
    #kontakt .kontakt-col-map   { order: 1; }
    #kontakt .kontakt-col-hours { order: 2; }
    #kontakt .kontakt-col-info  { order: 3; }
    #kontakt .grid { row-gap: 36px; }
  }

  /* Tablet gap (768-1023px) */
  @media (min-width: 768px) and (max-width: 1023px) {
    .info-strip-grid { column-gap: 24px; }
  }

  /* General mobile (<=768px) */
  @media (max-width: 768px) {
    .hero { min-height: 540px; height: 88vh; }
    .time-slot { height: 44px; min-width: 80px; }
    .stepper-btn { width: 40px; height: 40px; }
    #reserve-submit { width: 100%; justify-content: center; }
    .gallery-tile .tile-caption { opacity: 1; transform: translateY(0); }
  }

  /* Small phones (iPhone SE, mini) */
  @media (max-width: 480px) {
    .site-header .container-x { padding-left: 18px; padding-right: 18px; }
    .header-wordmark { font-size: 13px; letter-spacing: 0.14em; }
    #mobile-menu-btn { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; margin-right: -10px; padding: 0 10px; }
    #mobile-menu { padding: 20px 20px; }
    #mobile-menu .mobile-nav { gap: 26px; margin-top: 48px; }
    #mobile-menu .mobile-nav a { font-size: 34px; }
    #mobile-menu-close { min-height: 44px; min-width: 64px; display: inline-flex; align-items: center; justify-content: flex-end; margin-right: -8px; padding: 0 8px; }

    .hero { min-height: 480px; height: 82vh; }
    .hero .absolute.bottom-7 { bottom: 18px; font-size: 11px; letter-spacing: 0.24em; }

    .info-strip-grid { padding-top: 20px; padding-bottom: 20px; row-gap: 14px; }

    .brand-headline { font-size: clamp(40px, 11vw, 56px); }
    .brand-stat-num { font-size: clamp(44px, 12vw, 64px); }

    #rezerwacja h2 { font-size: clamp(40px, 11vw, 52px); line-height: 1.05; }
    #time-slots { gap: 10px; }
    #extra-slots { gap: 10px; }

    #o-nas h2 { font-size: clamp(32px, 9vw, 44px); line-height: 1.1; }
    #kontakt h2 { font-size: clamp(32px, 9vw, 44px); line-height: 1.1; }
    #kontakt .map-placeholder { aspect-ratio: 4 / 3; }

    footer .grid { gap: 36px; }
  }

/* =====================================================================
   PAGE: MENU (body.page-menu)
   Drift overrides - same selectors as the shared base, menu.html values
   ===================================================================== */
  .page-menu .sticky-filters { background: rgba(244,240,230,.88); }
  .page-menu .menu-carousel { padding: 35px 0 35px; }
  .page-menu .menu-carousel::before { background: linear-gradient(90deg, var(--bg) 0%, transparent 100%); }
  .page-menu .menu-carousel::after  { background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%); }
  .page-menu .menu-track { gap: 28px; }
  @media (max-width: 900px) {
    .page-menu .menu-track { gap: 20px; }
  }
  @media (max-width: 768px) {
    .page-menu .dish-card { width: 215px; }
    .page-menu .dish-bowl { max-width: 205px; }
    .page-menu .menu-track { gap: 4px; padding: 0 calc(50vw - 107.5px); /* center active card; neighbors peek */ }
    .page-menu .filter-pill { height: 44px; }
  }

  /* menu.html page-specific block (selectors unique to the menu page - unscoped) */
  /* ===== menu.html page-specific ===== */
  .menu-filter-row { scrollbar-width: none; }
  .menu-filter-row::-webkit-scrollbar { display: none; }

  /* Section title — big centered display header */
  .type-header {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(30px, 5vw, 48px);
    color: var(--ink);
    text-align: center;
    margin: 0;
    letter-spacing: .01em;
  }

  /* Anchor targets clear the sticky header/nav on hash + footer jumps */
  section[id^="sec-"] { scroll-margin-top: 96px; }


  /* Allergen legend + spice scale (slim bar under hero) */
  .allergen-legend .al { font-size: 12px; color: var(--ink-soft); }
  .spice-scale { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 4px; }
  .spice-scale i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* =====================================================================
   PAGE: REZERWACJA (body.page-rezerwacja)
   Drift overrides - rezerwacja.html shared-block values (note: the static
   rezerwacja page has no carousel markup; kept for fidelity)
   ===================================================================== */
  .page-rezerwacja .menu-carousel { padding: 35px 0 35px; }
  .page-rezerwacja .dish-card { width: 240px; }
  .page-rezerwacja .dish-bowl { max-width: 220px; }
  @media (max-width: 900px) {
    .page-rezerwacja .dish-card { width: 200px; }
    .page-rezerwacja .dish-bowl { max-width: 190px; }
  }
  @media (max-width: 768px) {
    .page-rezerwacja .dish-card { width: 190px; }
    .page-rezerwacja .dish-bowl { max-width: 180px; }
    .page-rezerwacja .menu-track { padding: 0 calc(50vw - 95px); /* center first/last card */ }
  }
  /* Float CTA hidden on the reservation page itself (was unscoped in the static extras) */
  .page-rezerwacja .float-reserve { display: none; }

  /* rezerwacja.html page-specific block (room viewer - selectors unique to this page, unscoped) */
  /* ===== rezerwacja.html page-specific ===== */
  /* Room viewer — pannable real interior + clickable table hotspots (Sala Ramen Rebel) */
  /* Overlay control strip — view selector ("slider") + reset, floating on the photo with a scrim */
  .room-topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: flex-start; gap: 8px;
    padding: 10px 10px 26px; pointer-events: none;
    background: linear-gradient(180deg, rgba(15,22,13,.82) 0%, rgba(15,22,13,.42) 55%, transparent 100%); }
  .room-views { display: flex; gap: 7px; flex: 1 1 auto; min-width: 0; overflow-x: auto; padding-bottom: 2px;
    pointer-events: auto; touch-action: pan-x; scrollbar-width: none; -ms-overflow-style: none; }
  .room-views::-webkit-scrollbar { display: none; }
  .room-view-tab { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; letter-spacing: .01em; font-weight: 600;
    background: rgba(20,28,18,.5); border: 1px solid rgba(250,246,238,.24); color: rgba(250,246,238,.92); cursor: pointer; white-space: nowrap;
    backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
    transition: background .15s ease, border-color .15s ease, color .15s ease; }
  .room-view-tab:hover { background: rgba(44,58,38,.72); border-color: rgba(250,246,238,.45); }
  .room-view-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
  .room-view-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .rv-short { display: none; }   /* full names on desktop, short labels on mobile (set below) */

  .room-reset { flex: 0 0 auto; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
    background: rgba(20,28,18,.5); border: 1px solid rgba(250,246,238,.24); color: rgba(250,246,238,.92); cursor: pointer;
    backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease; }
  .room-reset:hover { background: rgba(201,52,43,.88); border-color: var(--accent); color: #fff; }
  .room-reset:active { transform: scale(.95); }
  .room-reset:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .room-reset svg { transition: transform .4s ease; }
  .room-reset:hover svg { transform: rotate(-180deg); }

  .room-stage { position: relative; width: 100%; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden;
    background: #1a2417; border: 1.5px solid rgba(250,246,238,.14); cursor: grab; touch-action: pan-y; user-select: none; }
  .room-stage.grabbing { cursor: grabbing; }
  .room-pan { position: absolute; top: 0; left: 0; will-change: transform; }
  .room-img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }

  .room-hotspot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 5px; min-width: 44px; min-height: 44px; padding: 0; background: none; border: none; cursor: pointer; }
  .rh-dot { width: 26px; height: 26px; border-radius: 50%; background: rgba(126,140,116,.6); border: 2.5px solid #F4F0E6;
    box-shadow: 0 2px 10px rgba(0,0,0,.45); transition: transform .15s ease, background .15s ease, border-color .15s ease; position: relative; }
  .rh-dot::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid rgba(244,240,230,.35); opacity: 0; transition: opacity .15s ease; }
  .room-hotspot:hover .rh-dot { transform: scale(1.12); background: var(--accent-warm); }
  .room-hotspot:hover .rh-dot::after { opacity: 1; }
  .rh-label { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 11px; line-height: 1; color: #F4F0E6;
    background: rgba(18,27,16,.78); padding: 2px 7px; border-radius: 5px; box-shadow: 0 1px 4px rgba(0,0,0,.4); white-space: nowrap; }
  .room-hotspot:focus-visible { outline: none; }
  .room-hotspot:focus-visible .rh-dot { outline: 3px solid var(--accent-warm); outline-offset: 3px; }
  .room-hotspot.selected .rh-dot { background: var(--accent); border-color: #fff; transform: scale(1.15); }
  .room-hotspot.selected .rh-label { background: var(--accent); }
  .room-hotspot.taken { cursor: not-allowed; }
  .room-hotspot.taken .rh-dot { background: repeating-linear-gradient(45deg, rgba(201,52,43,.9), rgba(201,52,43,.9) 4px, rgba(120,20,16,.9) 4px, rgba(120,20,16,.9) 8px); border-color: rgba(255,255,255,.7); }
  .room-hotspot.taken .rh-label { background: rgba(150,30,24,.85); color: rgba(255,255,255,.85); }
  .room-hotspot.is-dim { opacity: .32; pointer-events: none; }
  /* nav hotspots (overview → zone) */
  .room-hotspot.room-nav .rh-dot-nav { width: 30px; height: 30px; background: rgba(18,27,16,.62); border-color: var(--accent-warm); }
  .room-hotspot.room-nav:hover .rh-dot-nav { background: var(--accent); border-color: #fff; }
  .rh-label-nav { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

  .room-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2;
    font-size: 11.5px; letter-spacing: .03em; color: rgba(250,246,238,.85); background: rgba(18,27,16,.6);
    padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(3px); pointer-events: none; white-space: nowrap; }

  .fp-legend { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(250,246,238,.6); }
  .fp-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
  .fp-swatch-free  { background: rgba(126,140,116,.6); border: 2px solid #F4F0E6; border-radius: 50%; }
  .fp-swatch-sel   { background: var(--accent); border-radius: 50%; }
  .fp-swatch-taken { background: repeating-linear-gradient(45deg, rgba(201,52,43,.9), rgba(201,52,43,.9) 4px, rgba(120,20,16,.9) 4px, rgba(120,20,16,.9) 8px); border-radius: 50%; }
  @media (max-width: 768px) {
    .room-stage { aspect-ratio: 4 / 5; }
    .rh-dot { width: 32px; height: 32px; border-width: 3px; }
    .room-hotspot.room-nav .rh-dot-nav { width: 36px; height: 36px; }
    .rh-label { font-size: 12px; padding: 2px 8px; }
    .rh-label-nav { font-size: 12.5px; }
    .room-topbar { padding: 8px 8px 24px; gap: 6px; }
    .room-view-tab { padding: 8px 13px; font-size: 12.5px; }
    .rv-full { display: none; }
    .rv-short { display: inline; }
    .room-reset { padding: 9px; gap: 0; }       /* icon-only on mobile to free room for the tabs */
    .room-reset span { display: none; }
    .room-reset svg { width: 17px; height: 17px; }
    .room-hint { font-size: 11px; bottom: 8px; padding: 5px 11px; }
  }

/* =====================================================================
   SITE BACKGROUND ILLUSTRATION - index.html + menu.html ONLY
   (the static rezerwacja page had no .site-bg block; header.php prints
   .site-bg on every page, so these rules are scoped to .home/.page-menu)
   ===================================================================== */
  .home .site-bg,
  .page-menu .site-bg { position:fixed; inset:0; z-index:-1;
    background:url('../img/bg-illustration.webp') center center / cover no-repeat; }
  @media (max-width:768px){
    .home .site-bg,
    .page-menu .site-bg { background-position:22% center; }
  }
  /* translucent panels: artwork shows softly behind all content, text stays readable */
  body.home,
  body.page-menu { background:transparent; }
  .home section.bg-bg, .home section.bg-paper,
  .page-menu section.bg-bg, .page-menu section.bg-paper { background-color:rgba(244,240,230,.82); }
  .home section.bg-deep, .home footer.bg-deep,
  .page-menu section.bg-deep, .page-menu footer.bg-deep { background-color:rgba(33,49,31,.85); }
  .home .hero,
  .page-menu .hero { background:transparent; }
  .home .hero-bg,
  .page-menu .hero-bg { background:
    radial-gradient(ellipse at 30% 30%, rgba(232,155,60,.18), transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(201,52,43,.22), transparent 55%),
    linear-gradient(135deg, rgba(33,49,31,.80) 0%, rgba(17,25,20,.85) 100%); }


/* =====================================================================
   WP ADDITIONS - reservation form feedback (no static equivalent;
   form posts to the live REST endpoint, errors render inline)
   ===================================================================== */
  .res-error { color: #f3a09a; font-size: 13px; margin-top: 12px; }
  .res-error:empty { display: none; }
  .input-dark.is-invalid, .input-cream.is-invalid { border-color: #C9342B; }

