/* ============================================
   BOTTOMZ UP — Navbar + Ticket Buttons
   Freshbox floating cream panel · Bottomz brand
   ============================================ */

:root {
  --nav-cream: #fffdf9;
  --nav-ink: #2e2c2c;
  --nav-active: #e7931e;
  --btn-deep: #2e2c2c;
  --btn-bloom: #f19f0f;
  --btn-ticket-tl: 8px;
  --btn-ticket-br: 8px;
  --nav-max: 1120px;
  --nav-bar-radius: 0 0 30px 30px;
  --header-height: 78px;
}

/* ---------- Header shell ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500; /* above sticky (200) and grain visual only */
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none; /* shell ignores clicks; panel re-enables */
}

.nav-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

/* Continuous unit: bar + drawer
   At rest: fully transparent over hero white.
   On scroll: sticky white glass (existing dock feel). */
.nav-panel {
  pointer-events: auto;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  border-radius: 0 0 22px 22px;
  box-shadow: none;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease;
  overflow: hidden;
}

.site-header.is-scrolled .nav-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-bottom-color: rgba(46, 44, 44, 0.08);
  box-shadow:
    0 10px 36px rgba(46, 44, 44, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.6);
}

/*
  Inner pages (About, Catering, Contact, Menu) have no full-bleed dark/white hero.
  Always show the solid frosted dock so the header never looks missing.
*/
.about-page .site-header .nav-panel,
.lead-page .site-header .nav-panel,
.menu-page .site-header .nav-panel,
.cat-page-body .site-header .nav-panel,
body:has(main.ev-page) .site-header .nav-panel {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-bottom-color: rgba(46, 44, 44, 0.08);
  box-shadow:
    0 10px 36px rgba(46, 44, 44, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.6);
}

.site-header.nav-open .nav-panel,
body.nav-open .nav-panel {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: rgba(46, 44, 44, 0.08);
  box-shadow: 0 8px 28px rgba(46, 44, 44, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px clamp(20px, 4vw, 40px);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  background: transparent;
  position: relative;
  z-index: 2;
}

@media (max-width: 899px) {
  .nav-bar {
    padding: 12px 16px;
  }
}

/* ---------- Logo ---------- */
.nav-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  line-height: 0;
  position: relative;
  z-index: 2;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-logo:hover {
  transform: scale(1.03);
}

.nav-logo img,
.nav-logo .logo-img {
  display: block;
  width: 128px;
  height: auto;
  max-width: 128px;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 900px) {
  .nav-logo img,
  .nav-logo .logo-img {
    width: 152px;
    max-width: 152px;
    max-height: 48px;
  }
}

/* ---------- Desktop links ---------- */
.nav-links {
  display: none;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 22px);
  flex: 2;
  min-width: 0;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 6px 2px 2px;
  text-decoration: none;
  overflow: hidden;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nav-ink);
  opacity: 0.88;
  cursor: pointer;
  transition:
    color 0.22s ease,
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  background: none;
  border: none;
  position: relative;
}

.nav-link:hover {
  opacity: 1;
  color: var(--nav-ink);
  transform: translateY(-1px);
}

.nav-link-line {
  display: block;
  width: 0;
  height: 2.5px;
  margin-top: 5px;
  background: var(--accent-flow, var(--theme-gradient));
  border-radius: 99px;
  transition:
    width 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.32s ease;
  box-shadow: 0 0 0 transparent;
}

.nav-link:hover .nav-link-line {
  width: 100%;
  box-shadow: 0 0 12px rgba(255, 147, 30, 0.45);
}

.nav-link[aria-current="page"] .nav-link-line,
.nav-link.is-current .nav-link-line {
  width: 100%;
  box-shadow: 0 0 10px rgba(255, 147, 30, 0.35);
}

.nav-link[aria-current="page"],
.nav-link.is-current {
  color: var(--nav-active);
  opacity: 1;
  font-weight: 600;
}

.nav-link:hover[aria-current="page"],
.nav-link:hover.is-current {
  color: var(--color-amber-bright, #f19f0f);
}

.nav-actions {
  display: none;
  align-items: center;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .nav-actions {
    display: flex;
  }
}

/* ---------- Ticket primary button ---------- */
.btn-ticket {
  --btn-lift: 0px;
  --btn-scale: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  background: var(--theme-gradient, linear-gradient(135deg, #e7931e, #c67a12));
  border: none;
  border-radius: 99px;
  color: #fffdf9;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 1px 0 rgba(255, 253, 249, 0.22) inset,
    0 4px 14px rgba(198, 122, 18, 0.28);
  transform: translateY(var(--btn-lift)) scale(var(--btn-scale));
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.22s ease,
    background 0.22s ease,
    filter 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn-ticket:hover {
    --btn-lift: -2px;
    --btn-scale: 1.015;
    color: #fffdf9;
    box-shadow:
      0 1px 0 rgba(255, 253, 249, 0.28) inset,
      0 10px 28px rgba(198, 122, 18, 0.38),
      0 0 0 1px rgba(231, 147, 30, 0.2);
  }

  .btn-ticket:hover .btn-hover-fill {
    transform: translateY(0);
  }

  .btn-ticket:hover .btn-arrow {
    transform: translate(2px, -1px);
  }
}

.btn-ticket:active {
  --btn-lift: 0px;
  --btn-scale: 0.97;
  box-shadow:
    0 1px 0 rgba(255, 253, 249, 0.16) inset,
    0 2px 8px rgba(198, 122, 18, 0.22);
}

.btn-hover-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #f19f0f 0%, #b86a0e 100%);
  transform: translateY(102%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}

.btn-ticket .btn-label,
.btn-ticket .btn-arrow,
.btn-ticket > span:not(.btn-hover-fill) {
  position: relative;
  z-index: 2;
}

.btn-ticket .btn-arrow {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-nav-cta {
  padding: 11px 26px;
  font-size: 0.875rem;
}

.btn-ticket.btn-lg {
  min-height: 52px;
  padding: 14px 36px;
  font-size: 1rem;
}

.btn-ticket-light {
  background: #fffdf9;
  color: #1a1510;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 14px rgba(46, 44, 44, 0.08),
    0 0 0 1px rgba(46, 44, 44, 0.08);
}

.btn-ticket-light .btn-hover-fill {
  background: linear-gradient(180deg, #ffe7b8 0%, #e7931e 100%);
}

@media (hover: hover) and (pointer: fine) {
  .btn-ticket-light:hover {
    color: #1a1510;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.95) inset,
      0 10px 26px rgba(46, 44, 44, 0.12),
      0 0 0 1px rgba(231, 147, 30, 0.28);
  }
}

.btn-ticket-amber {
  background: var(--color-amber, #e7931e);
  color: #1a1510;
}

.btn-ticket-amber .btn-hover-fill {
  background: linear-gradient(180deg, #f19f0f 0%, #c67a12 100%);
}

@media (hover: hover) and (pointer: fine) {
  .btn-ticket-amber:hover {
    color: #1a1510;
  }
}

/* ---------- Hamburger (two-line) ---------- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
  position: relative;
  z-index: 3;
}

.nav-toggle:hover {
  background: rgba(46, 44, 44, 0.06);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--nav-ink);
  border-radius: 2px;
  transition: transform 0.28s var(--ease-out, ease), opacity 0.2s ease, width 0.2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

/* ---------- Mobile drawer (inside panel) ---------- */
.nav-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--nav-cream);
  pointer-events: none;
}

.nav-drawer > .nav-drawer-inner {
  overflow: hidden;
  min-height: 0;
}

.nav-drawer.is-open {
  grid-template-rows: 1fr;
  pointer-events: auto;
}

.nav-drawer-inner {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  gap: 0;
}

.nav-drawer.is-open .nav-drawer-inner {
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom, 0px));
}

.nav-drawer .nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 16px 0;
  width: 100%;
  border-bottom: 1px solid rgba(46, 44, 44, 0.08);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.2s ease;
}

.nav-drawer.is-open .nav-link {
  opacity: 1;
  transform: translateY(0);
}

.nav-drawer.is-open .nav-link:nth-child(1) { transition-delay: 0.04s; }
.nav-drawer.is-open .nav-link:nth-child(2) { transition-delay: 0.08s; }
.nav-drawer.is-open .nav-link:nth-child(3) { transition-delay: 0.12s; }
.nav-drawer.is-open .nav-link:nth-child(4) { transition-delay: 0.16s; }
.nav-drawer.is-open .nav-link:nth-child(5) { transition-delay: 0.2s; }
.nav-drawer.is-open .nav-link:nth-child(6) { transition-delay: 0.24s; }

.nav-drawer .nav-link-line {
  display: none;
}

.nav-drawer .btn-ticket {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.18s,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.18s,
    box-shadow 0.2s ease;
}

.nav-drawer.is-open .btn-ticket {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 900px) {
  .nav-drawer {
    display: none !important;
  }
}

body.nav-open {
  overflow: hidden;
}

/* Dim scrim behind open mobile drawer */
body.nav-open::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 450;
  background: rgba(26, 25, 25, 0.38);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: auto;
  animation: navScrimIn 0.28s ease both;
}

@keyframes navScrimIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 900px) {
  body.nav-open::after {
    display: none;
  }
}

/* ---------- Sticky dock — Apple-style floating bar ---------- */
/* Layout: [icon Menu] [Order Online text] [icon Call] — no side labels */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  pointer-events: none;
  padding:
    0
    max(1rem, env(safe-area-inset-left, 0px))
    calc(0.9rem + env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-right, 0px));
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sticky-cta-inner {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: min(360px, 100%);
  margin: 0 auto;
  padding: 0.35rem;
  border-radius: 999px;
  /* Frosted glass capsule */
  background: rgba(22, 22, 24, 0.88);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 14px 44px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.sticky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: var(--font-body, system-ui, -apple-system, sans-serif);
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

/* Side icon hits — solid circles + filled SVG only (high contrast) */
.sticky-btn-menu,
.sticky-btn-call {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #1c1c1e;
  background: #f5f5f7;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 4px 12px rgba(0, 0, 0, 0.28);
  font-size: 0; /* never show accidental text */
  line-height: 0;
  overflow: hidden;
}

.sticky-btn-call {
  color: #1c1c1e;
  background: linear-gradient(180deg, #f4b445 0%, #e7931e 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 4px 14px rgba(231, 147, 30, 0.45);
}

.sticky-btn-menu .sticky-ico,
.sticky-btn-call .sticky-ico,
.sticky-btn-menu svg.sticky-ico,
.sticky-btn-call svg.sticky-ico {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  pointer-events: none;
}

/* Kill any leftover label nodes if an old build injects them */
.sticky-btn-menu .sticky-btn-text,
.sticky-btn-call .sticky-btn-text,
.sticky-btn-menu [data-contact="call-label"],
.sticky-btn-call [data-contact="call-label"],
.sticky-btn-menu::after,
.sticky-btn-call::after,
.sticky-btn-menu::before,
.sticky-btn-call::before {
  content: none !important;
  display: none !important;
  font-size: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

@media (hover: hover) and (pointer: fine) {
  .sticky-btn-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.04);
  }

  .sticky-btn-call:hover {
    filter: brightness(1.06);
    transform: scale(1.04);
  }
}

.sticky-btn-menu:active,
.sticky-btn-call:active {
  transform: scale(0.92);
}

/* Center — Order Online text only */
.sticky-cta .sticky-btn-order {
  min-height: 52px;
  width: 100%;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4b445 0%, #e7931e 55%, #d48416 100%);
  color: #1c1c1e;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 6px 18px rgba(231, 147, 30, 0.4);
}

.sticky-cta .sticky-btn-order .btn-hover-fill,
.sticky-cta .sticky-btn-order .btn-arrow,
.sticky-cta .sticky-btn-order .sticky-order-ico {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .sticky-cta .sticky-btn-order:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
  }
}

.sticky-cta .sticky-btn-order:active {
  transform: scale(0.98);
}

@media (max-width: 720px) {
  .sticky-cta-inner {
    max-width: 100%;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 0.4rem;
    padding: 0.3rem;
  }

  .sticky-btn-menu,
  .sticky-btn-call {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .sticky-cta .sticky-btn-order {
    min-height: 48px;
    font-size: 0.9rem;
    padding: 0 0.85rem;
  }
}

@media (min-width: 721px) {
  .sticky-cta-inner {
    max-width: min(400px, 100%);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .sticky-cta-inner {
    background: #1c1c1e;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

body.nav-open .sticky-cta,
body.reserve-open .sticky-cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(120%);
}

/* Legacy bridges */
.site-header .header-inner {
  display: contents;
}

.site-header .container.header-inner {
  max-width: none;
  padding: 0;
  width: 100%;
}

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

/* Don't force padding on FreshBox hero (it manages its own top inset) */
.hero:not(.fbx-hero) {
  padding-top: calc(var(--header-height) + 8px);
}

.menu-hero {
  padding-top: calc(var(--header-height) + 40px);
}

.nav-link:focus-visible,
.btn-ticket:focus-visible,
.sticky-btn-menu:focus-visible,
.sticky-btn-call:focus-visible,
.sticky-cta .sticky-btn-order:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--nav-active, #e7931e);
  outline-offset: 3px;
}
