/* ============================================
   Bottomz Up Hero — orange + cream only
   FreshBox wave plate · animated amber/cream gradient
   No black / charcoal in hero plate or chrome
   Layering: plate 0 · deco 2 · text 3 · food 6 (on top)
   ============================================ */

:root {
  /* Exact menu / print-brand tokens (tokens.css) */
  --fbx-cream: #fffdf9;
  --fbx-cream-hi: #ffffff;
  --fbx-cream-dark: #f4f0e6;
  --fbx-amber: #e7931e;
  --fbx-amber-bright: #f19f0f;
  --fbx-amber-deep: #c67a12;
  --fbx-amber-darker: #b86a0e; /* deeper tone of deep amber */
  --fbx-text: #fffdf6;
  --fbx-text-soft: rgba(255, 253, 246, 0.92);
  /* Type */
  --fbx-h1-size: clamp(2.2rem, 4.8vw + 0.35rem, 68px);
  --fbx-h1-lh: 1.1;
  --fbx-h1-tracking: -0.028em;
  --fbx-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --fbx-appear-y: 48px;
  --fbx-appear-dur: 720ms;
  /*
    Wave + carousel lock (viewport units so hero can shrink without
    collapsing the wave line):
    --fbx-wave-line = food stage sit line
    --hero-art-height = SVG art box (wave ~92% down artboard → ×1.14)
    --fbx-hero-tail = short cream pad under the plates, then next section
  */
  --fbx-wave-line: 58dvh;
  --hero-art-height: calc(var(--fbx-wave-line) * 1.14);
  /* Plates hang below the wave line after translateY — keep them inside the hero */
  /* Shorter tail — next section pulls under plates for the soft overlay */
  --fbx-hero-tail: clamp(120px, 16vh, 180px);
  /* Solid center presence, increased size */
  --fbx-center-w: min(720px, 72vw);
  --fbx-center-h: min(480px, 54vw, 48vh);
  --fbx-side-w: min(340px, 32vw);
  --fbx-side-h: min(340px, 32vw);
  --fbx-right-w: min(520px, 45vw);
  --fbx-right-h: min(380px, 38vw);
  --fbx-far-w: min(300px, 28vw);
  --fbx-far-h: min(290px, 28vw);
  --fbx-content-gap: clamp(14px, 1.5vw, 20px);
  --fbx-content-top: calc(var(--header-height, 78px) + clamp(48px, 8vh, 80px));
}

/* ---------- Shell: cream fallback + art-directed SVG layer (picture) ---------- */
.fbx-hero.hero,
.fbx-hero.fbx-hero--clean.hero {
  position: relative;
  /* End just under the food carousel — keep existing spacing tokens */
  min-height: calc(var(--fbx-wave-line) + var(--fbx-hero-tail));
  padding: 0 !important;
  margin: 0;
  display: block;
  overflow: visible;
  isolation: isolate;
  /* Above known-for so the food carousel can hang into that section */
  z-index: 2;
  /* Solid hero cream — no dissolve veil over the next section */
  background-color: #fffdf9;
  background-image: none;
}

/* Remove cream/amber overlay that was bleeding onto "What we're known for" */
.fbx-hero.hero::after,
.fbx-hero.fbx-hero--clean.hero::after {
  content: none !important;
  display: none !important;
}

/*
  Responsive art direction: six original Header BG SVGs, untouched.
  Art layer is NOT full-bleed — its height ends at the wave/carousel lock
  so the wave crest and food stage share one visual level. Image pinned to
  bottom (wave ≈ bottom of artboard). Cream #fffdf9 fills below.
*/
.hero__art {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  display: block;
  width: 100%;
  height: var(--hero-art-height, calc(var(--fbx-wave-line) * 1.14));
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero__artImage {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.fbx-hero-stage {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: calc(var(--fbx-wave-line) + var(--fbx-hero-tail));
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: transparent;
  pointer-events: none; /* stage shell doesn't steal clicks; content/food re-enable */
}

.fbx-hero-content,
.fbx-food-stage {
  pointer-events: auto;
}

/* ---------- Wave plate — amber/cream only ---------- */
.fbx-plate {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(600px, 91vh, 900px);
  max-height: 94%;
  z-index: 0;
  pointer-events: none;
  line-height: 0;
  filter: none; /* no orange glow / drop-shadow */
}

.fbx-plate-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Glow / sheen layers disabled — keep nodes harmless if present in art */
.fbx-plate-glow,
.fbx-plate-sheen {
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
  mix-blend-mode: normal !important;
}

/* ---------- Type — sits just below the nav bar ---------- */
.fbx-hero-content {
  position: relative;
  z-index: 5;
  /* Sit comfortably below the fixed nav */
  margin-top: calc(var(--header-height, 78px) + clamp(16px, 3vh, 36px));
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: var(--fbx-content-gap);
  width: min(100%, 1080px);
  padding-inline: clamp(20px, 4vw, 40px);
  padding-bottom: 0;
  pointer-events: none;
}

.fbx-hero-content .btn-ticket,
.fbx-hero-content a,
.fbx-hero-content button {
  pointer-events: auto;
}

.fbx-hero-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.4vw, 18px);
  width: 100%;
  max-width: min(800px, 96vw);
}

.fbx-hero-tag {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  padding: 8px 24px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(46, 44, 44, 0.1);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(198, 122, 18, 0.15);
  opacity: 0;
  transform: translateY(var(--fbx-appear-y));
  transition:
    opacity var(--fbx-appear-dur) var(--fbx-ease),
    transform var(--fbx-appear-dur) var(--fbx-ease);
  transition-delay: 70ms;
}

.fbx-hero.is-ready .fbx-hero-tag {
  opacity: 1;
  transform: translateY(0);
}

.fbx-hero-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--fbx-amber, #e7931e);
  box-shadow:
    0 0 0 3px rgba(231, 147, 30, 0.22),
    0 0 12px rgba(231, 147, 30, 0.35);
}

.fbx-hero-tag-text {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #2e2c2c;
  white-space: nowrap;
  line-height: 1.35;
}

.fbx-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fbx-h1-size);
  line-height: var(--fbx-h1-lh);
  letter-spacing: var(--fbx-h1-tracking);
  color: #2e2c2c;
  text-align: center;
  text-wrap: balance;
  margin: 0;
  width: 100%;
  max-width: min(820px, 98vw);
  text-shadow: none;
  opacity: 0;
  transform: translateY(var(--fbx-appear-y));
  transition:
    opacity 780ms var(--fbx-ease),
    transform 780ms var(--fbx-ease);
  transition-delay: 180ms;
}

.fbx-hero-title--bold,
.fbx-hero-title.fbx-hero-title--bold {
  font-weight: 700;
}

.fbx-hero-title .fbx-line {
  display: block;
  white-space: nowrap;
}

.fbx-hero.is-ready .fbx-hero-title {
  opacity: 1;
  transform: translateY(0);
}

/* CTA under title — above food, always clear */
.fbx-hero-cta-wrap {
  margin-top: clamp(2px, 0.6vw, 8px);
  opacity: 0;
  transform: translateY(var(--fbx-appear-y));
  transition:
    opacity 720ms var(--fbx-ease),
    transform 720ms var(--fbx-ease);
  transition-delay: 320ms;
  position: relative;
  z-index: 4; /* above plate, food may sit lower */
}

.fbx-hero-cta-wrap.cta-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.75rem;
}

.fbx-hero-cta--secondary {
  background: #ffffff !important;
  color: #1a1510 !important;
  border: 1.5px solid rgba(46, 44, 44, 0.12) !important;
  box-shadow: 0 6px 18px rgba(46, 44, 44, 0.08) !important;
}

.fbx-hero-cta--secondary:hover {
  border-color: rgba(231, 147, 30, 0.45) !important;
  background: #fffdf9 !important;
}

.fbx-hero.is-ready .fbx-hero-cta-wrap {
  opacity: 1;
  transform: translateY(0);
}

/* CTA — theme gradient */
.fbx-hero-cta {
  background: var(--theme-gradient);
  color: #fffdf9;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 38px;
  border: none;
  border-radius: 99px;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(255, 147, 30, 0.35);
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.fbx-hero-cta .btn-hover-fill {
  display: none;
}

.fbx-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 147, 30, 0.45);
}

.fbx-hero-cta:focus-visible {
  outline: 2px solid var(--fbx-cream-hi);
  outline-offset: 3px;
}

/* ---------- Food — lower on wave, clears CTA ---------- */
.fbx-food-stage {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--fbx-wave-line);
  /* Center food on the wave crest */
  transform: translateY(-42%);
  height: min(420px, 46vh, 46vw);
  min-height: 240px;
  z-index: 6;
  overflow: visible;
  pointer-events: none;
}

.fbx-food-stage .fbx-food-dots,
.fbx-food-stage .fbx-food {
  pointer-events: auto;
}

/* Carousel glow removed */
.fbx-food-floor {
  display: none !important;
}

.fbx-food {
  position: absolute;
  bottom: 4%;
  left: 50%;
  width: var(--fbx-side-w);
  height: var(--fbx-side-h);
  margin-left: calc(var(--fbx-side-w) / -2);
  overflow: visible;
  will-change: transform, opacity, width, height, filter;
  opacity: 0;
  z-index: 1;
  transition:
    transform 0.9s var(--fbx-ease),
    width 0.9s var(--fbx-ease),
    height 0.9s var(--fbx-ease),
    margin-left 0.9s var(--fbx-ease),
    bottom 0.9s var(--fbx-ease),
    top 0.9s var(--fbx-ease),
    opacity 0.7s var(--fbx-ease),
    filter 0.7s ease;
  cursor: pointer;
}

.fbx-food img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter: none; /* no amber carousel glow */
}

.fbx-food.is-center {
  width: var(--fbx-center-w);
  height: var(--fbx-center-h);
  margin-left: calc(var(--fbx-center-w) / -2);
  bottom: 0;
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  z-index: 5;
  filter: none;
}

.fbx-food.is-center img {
  filter: none;
}

.fbx-food.is-center.is-appear {
  opacity: 0;
  transform: translate3d(0, 56px, 0) scale(0.98);
  filter: none; /* no blur on appear */
}

/* Stage 2 (adjacent left/right): full opacity — do not fade here */
.fbx-food.is-left {
  width: var(--fbx-side-w);
  height: var(--fbx-side-h);
  margin-left: calc(var(--fbx-side-w) / -2);
  bottom: 14%;
  transform: translate3d(clamp(-48vw, -40vw, -340px), 6%, 0) scale(0.92);
  opacity: 1;
  visibility: visible;
  z-index: 3;
}

.fbx-food.is-right {
  width: var(--fbx-right-w);
  height: var(--fbx-right-h);
  margin-left: calc(var(--fbx-right-w) / -2);
  bottom: 0;
  transform: translate3d(clamp(280px, 36vw, 44vw), 4%, 0) scale(0.94);
  opacity: 1;
  visibility: visible;
  z-index: 3;
}

/*
  Stage 3+ (far / parked): fully fade out here — not on stage 2.
  Stay at opacity 0 through far-left → hidden → far-right so the
  recycle path never shows a ghost burger rotating back into view.
*/
.fbx-food.is-far-left,
.fbx-food.is-far-right,
.fbx-food.is-hidden {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
  filter: none;
  z-index: 0;
  /* Full fade only when entering stage 3; stay invisible while repositioning */
  transition:
    opacity 0.55s var(--fbx-ease),
    visibility 0s linear 0.55s,
    width 0.9s var(--fbx-ease),
    height 0.9s var(--fbx-ease),
    bottom 0.9s var(--fbx-ease),
    top 0.9s var(--fbx-ease),
    margin-left 0.9s var(--fbx-ease),
    transform 0.9s var(--fbx-ease);
}

.fbx-food.is-far-left {
  width: var(--fbx-far-w);
  height: var(--fbx-far-h);
  margin-left: calc(var(--fbx-far-w) / -2);
  bottom: auto;
  top: -4%;
  transform: translate3d(clamp(-54vw, -48vw, -400px), 0, 0) scale(0.85);
}

.fbx-food.is-far-right {
  width: var(--fbx-side-w);
  height: var(--fbx-side-h);
  margin-left: calc(var(--fbx-side-w) / -2);
  bottom: 8%;
  top: auto;
  transform: translate3d(clamp(400px, 56vw, 64vw), 0, 0) scale(0.8);
}

.fbx-food.is-hidden {
  top: auto;
  bottom: 0;
  transform: translate3d(72vw, 80px, 0) scale(0.7);
}

/* Visible stages: restore visibility immediately so fade-in works */
.fbx-food.is-center,
.fbx-food.is-left,
.fbx-food.is-right {
  visibility: visible;
  transition:
    transform 0.9s var(--fbx-ease),
    width 0.9s var(--fbx-ease),
    height 0.9s var(--fbx-ease),
    bottom 0.9s var(--fbx-ease),
    top 0.9s var(--fbx-ease),
    margin-left 0.9s var(--fbx-ease),
    opacity 0.55s var(--fbx-ease),
    visibility 0s linear 0s,
    filter 0.55s var(--fbx-ease);
}

/* Hero carousel chrome removed — autoplay only, no dots / progress / taps */
.fbx-food-dots,
.fbx-food-progress,
.fbx-food-dot {
  display: none !important;
}

.fbx-food-stage .fbx-food {
  pointer-events: none !important;
  cursor: default !important;
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1199px) {
  :root {
    --fbx-center-w: min(540px, 68vw);
    --fbx-center-h: min(360px, 48vw, 38vh);
    --fbx-right-w: min(360px, 36vw);
    --fbx-right-h: min(260px, 28vw);
    --fbx-wave-line: 56dvh;
    --fbx-hero-tail: clamp(110px, 14vh, 160px);
  }

  .fbx-hero-content {
    margin-top: calc(var(--header-height, 78px) + clamp(12px, 2.2vh, 28px));
  }

  .fbx-food.is-far-left {
    opacity: 0;
    pointer-events: none;
  }

  .fbx-food.is-left {
    transform: translate3d(-34vw, 4%, 0) scale(0.88);
  }

  .fbx-food.is-right {
    transform: translate3d(30vw, 2%, 0) scale(0.9);
  }
}

@media (max-width: 900px) {
  :root {
    --fbx-center-w: min(460px, 80vw);
    --fbx-center-h: min(310px, 54vw, 36vh);
    --fbx-wave-line: 54dvh;
    --fbx-hero-tail: clamp(100px, 13vh, 150px);
    --fbx-h1-size: clamp(2rem, 6.5vw, 2.75rem);
  }

  .fbx-hero-content {
    margin-top: calc(var(--header-height, 78px) + clamp(10px, 2vh, 22px));
    gap: clamp(10px, 1.4vh, 16px);
  }

  .fbx-plate {
    height: clamp(540px, 86vh, 760px);
  }

  .fbx-food-stage {
    transform: translateY(-40%);
  }

  .fbx-food.is-left,
  .fbx-food.is-far-right {
    opacity: 0 !important;
    pointer-events: none;
  }

  .fbx-food.is-right {
    width: min(220px, 34vw);
    height: min(180px, 28vw);
    margin-left: calc(min(220px, 34vw) / -2);
    transform: translate3d(36vw, 2%, 0) scale(0.9);
    opacity: 1;
  }
}

@media (max-width: 767px) {
  :root {
    --fbx-wave-line: 52dvh;
    --fbx-hero-tail: clamp(90px, 12vh, 140px);
    --fbx-center-w: min(88vw, 360px);
    --fbx-center-h: min(66vw, 270px);
    --fbx-content-gap: 10px;
  }

  .fbx-hero-content {
    margin-top: calc(var(--header-height, 78px) + clamp(8px, 1.8vh, 18px));
    max-width: min(92vw, 420px);
  }

  .fbx-hero-title {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    letter-spacing: -0.02em;
  }

  .fbx-hero-title .fbx-line {
    white-space: normal;
  }

  .fbx-hero-tag {
    padding: 6px 16px;
  }

  .fbx-hero-cta {
    padding: 12px 28px;
    font-size: 14px;
  }

  .fbx-hero-cta-wrap {
    gap: 8px;
  }

  .fbx-plate {
    height: clamp(520px, 84vh, 700px);
  }

  .fbx-food.is-left,
  .fbx-food.is-right,
  .fbx-food.is-far-left,
  .fbx-food.is-far-right {
    opacity: 0 !important;
    pointer-events: none;
  }

  .fbx-food.is-center {
    width: var(--fbx-center-w);
    height: var(--fbx-center-h);
    margin-left: calc(var(--fbx-center-w) / -2);
    transform: translate3d(0, 0, 0) scale(1);
  }

  .fbx-food-stage {
    height: min(280px, 38vh);
    transform: translateY(-38%);
  }
}

/* Portrait tablets: pull type + wave up so the stage does not feel empty */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  :root {
    --fbx-wave-line: 50dvh;
    --fbx-hero-tail: clamp(100px, 13vh, 150px);
    --fbx-h1-size: clamp(2.1rem, 4.8vw, 2.85rem);
  }

  .fbx-hero-content {
    margin-top: calc(var(--header-height, 78px) + clamp(18px, 3vh, 36px));
  }

  .fbx-food-stage {
    transform: translateY(-44%);
  }
}

@media (max-height: 720px) and (min-width: 768px) {
  :root {
    --fbx-wave-line: 55dvh;
    --fbx-hero-tail: clamp(90px, 12vh, 140px);
    --fbx-center-h: min(280px, 34vh);
    --fbx-center-w: min(480px, 54vw);
    --fbx-content-top: calc(var(--header-height, 78px) + 8px);
    --fbx-h1-size: clamp(1.85rem, 3.8vw, 2.75rem);
    --fbx-content-gap: 10px;
  }

  .fbx-hero-content {
    margin-top: calc(var(--header-height, 78px) + 8px);
  }

  .fbx-plate {
    height: min(80vh, 640px);
  }

  .fbx-food-stage {
    transform: translateY(-40%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fbx-hero-tag,
  .fbx-hero-title,
  .fbx-hero-cta-wrap,
  .fbx-food {
    transition: opacity 0.2s ease !important;
    transform: none !important;
    filter: none !important;
  }

  .fbx-hero.is-ready .fbx-hero-tag,
  .fbx-hero.is-ready .fbx-hero-title,
  .fbx-hero.is-ready .fbx-hero-cta-wrap {
    opacity: 1;
  }

  .fbx-food.is-center {
    transform: translate3d(0, 0, 0) scale(1) !important;
  }

  .fbx-food-progress > span.is-run {
    animation: none;
    width: 100%;
  }

  .fbx-plate-glow,
  .fbx-plate-sheen {
    animation: none !important;
  }

  /* Freeze SVG gradient animates */
  .fbx-plate-svg animate {
    display: none;
  }
}
