:root {
  --ashby-header-navy: #061f3b;
  --ashby-header-navy-deep: #031426;
  --ashby-header-orange: #f97316;
  --ashby-header-gold: #f6c344;
  --ashby-header-white: #ffffff;
  --ashby-header-shell: 1200px;
}

.site-shell {
  width: min(calc(100% - 2.5rem), var(--ashby-header-shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 18px;
  z-index: 10000;
  padding: 11px 15px;
  background: #fff;
  color: var(--ashby-header-navy);
  font-weight: 900;
  border: 2px solid var(--ashby-header-orange);
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(6, 31, 59, 0.12);
  text-decoration: none;
}

.skip-link:focus {
  top: 18px;
}

.site-header,
.site-header * {
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4000;
  background: linear-gradient(135deg, rgba(3, 20, 38, 0.97), rgba(6, 31, 59, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.scrolled {
  background: rgba(3, 20, 38, 0.985);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  line-height: 0;
}

.site-brand img {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: contain;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.site-brand:hover img {
  transform: translateY(-1px) scale(1.025);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.header-navigation {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav a {
  position: relative;
  padding: 10px 9px;
  color: rgba(255, 255, 255, 0.84);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ashby-header-orange);
  opacity: 0;
  transform: translateX(-50%) scale(0.5);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--ashby-header-white);
  background: rgba(255, 255, 255, 0.08);
}

.primary-nav a.active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.header-book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ashby-header-navy-deep);
  background: linear-gradient(135deg, var(--ashby-header-gold), #ffd971);
  box-shadow: 0 8px 24px rgba(246, 195, 68, 0.2);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-book-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(246, 195, 68, 0.28);
}

.mobile-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--ashby-header-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  font-size: 1.15rem;
  cursor: pointer;
}

body.nav-open {
  overflow: hidden;
}

/* UV / Cosmic shared header theme */
body.uv-mode {
  --ashby-uv-ink: #07051a;
  --ashby-uv-panel: #0b1028;
  --ashby-uv-cyan: #4df8ff;
  --ashby-uv-violet: #8b5cff;
  --ashby-uv-pink: #ff4fd8;
  --ashby-uv-lime: #dcff4f;
  background:
    radial-gradient(circle at 15% 12%, rgba(139, 92, 255, 0.12), transparent 30%),
    radial-gradient(circle at 88% 26%, rgba(77, 248, 255, 0.08), transparent 28%),
    var(--ashby-uv-ink) !important;
  animation: none !important;
  filter: none !important;
}

body.uv-mode h1,
body.uv-mode h2,
body.uv-mode h3 {
  text-shadow: 0 0 16px rgba(77, 248, 255, 0.12) !important;
}

body.uv-mode .site-header {
  background:
    radial-gradient(circle at 16% 0%, rgba(139, 92, 255, 0.2), transparent 28%),
    radial-gradient(circle at 88% 100%, rgba(77, 248, 255, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(6, 5, 25, 0.985), rgba(9, 14, 42, 0.975));
  border-bottom-color: rgba(77, 248, 255, 0.22);
  box-shadow:
    0 14px 40px rgba(3, 3, 18, 0.28),
    0 0 26px rgba(77, 248, 255, 0.07),
    inset 0 -1px 0 rgba(139, 92, 255, 0.1);
}

body.uv-mode .site-header.scrolled {
  background: rgba(6, 7, 26, 0.99);
  box-shadow:
    0 16px 42px rgba(2, 2, 15, 0.44),
    0 0 30px rgba(77, 248, 255, 0.08);
}

body.uv-mode .site-brand img {
  filter:
    drop-shadow(0 0 8px rgba(77, 248, 255, 0.18))
    drop-shadow(0 0 16px rgba(139, 92, 255, 0.12));
}

body.uv-mode .site-brand:hover img {
  filter:
    drop-shadow(0 0 10px rgba(77, 248, 255, 0.3))
    drop-shadow(0 0 22px rgba(139, 92, 255, 0.2));
}

body.uv-mode .primary-nav a {
  color: rgba(239, 248, 255, 0.82);
}

body.uv-mode .primary-nav a::after {
  background: var(--ashby-uv-cyan);
  box-shadow: 0 0 10px rgba(77, 248, 255, 0.7);
}

body.uv-mode .primary-nav a:hover,
body.uv-mode .primary-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(77, 248, 255, 0.1), rgba(139, 92, 255, 0.1));
}

body.uv-mode .header-book-button {
  color: #08101c;
  background: linear-gradient(135deg, #e8ff69, #adff7f);
  border-color: rgba(232, 255, 105, 0.3);
  box-shadow:
    0 9px 26px rgba(173, 255, 127, 0.18),
    0 0 20px rgba(220, 255, 79, 0.1);
}

body.uv-mode .header-book-button:hover {
  box-shadow:
    0 13px 32px rgba(173, 255, 127, 0.27),
    0 0 28px rgba(220, 255, 79, 0.16);
}

body.uv-mode .mobile-nav-toggle {
  color: var(--ashby-uv-cyan);
  background: rgba(77, 248, 255, 0.07);
  border-color: rgba(77, 248, 255, 0.22);
}

body.uv-mode .skip-link {
  color: #07101e;
  background: #eaffff;
  border-color: var(--ashby-uv-cyan);
}

html.halloween-mode .site-header {
  background: linear-gradient(135deg, rgba(9, 5, 13, 0.985), rgba(34, 11, 43, 0.97));
  border-bottom-color: rgba(255, 122, 0, 0.26);
  box-shadow: 0 8px 36px rgba(10, 3, 14, 0.38);
}

html.halloween-mode .primary-nav a::after {
  background: #ff7a00;
}

html.halloween-mode .header-book-button {
  color: #1a091f;
  background: linear-gradient(135deg, #ff7a00, #ffb020);
  box-shadow: 0 8px 26px rgba(255, 122, 0, 0.27);
}

.halloween-atmosphere {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3600;
  pointer-events: none;
  overflow: hidden;
}

html.halloween-mode .halloween-atmosphere {
  display: block;
}

.halloween-fog {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -20px;
  height: 210px;
  background-image: url('/assets/themes/optimized/fog.webp');
  background-repeat: repeat-x;
  background-size: 760px 220px;
  opacity: 0.11;
  animation: ashbyHalloweenFog 55s linear infinite;
}

.halloween-fog-two {
  bottom: 80px;
  opacity: 0.07;
  transform: scaleX(-1);
  animation-duration: 72s;
}

.halloween-pumpkin {
  position: absolute;
  bottom: 12px;
  width: 82px;
  height: auto;
  opacity: 0.62;
  filter: drop-shadow(0 0 10px rgba(255, 103, 0, 0.48));
  animation: ashbyPumpkinGlow 3s ease-in-out infinite alternate;
}

.pumpkin-left { left: 12px; }
.pumpkin-right { right: 12px; transform: scaleX(-1); }

.halloween-eyes {
  position: absolute;
  width: 74px;
  height: auto;
  opacity: 0;
  animation: ashbyHalloweenBlink 8s ease-in-out infinite;
}

.eyes-one { top: 26%; left: 8%; }
.eyes-two { top: 39%; right: 10%; animation-delay: 3.2s; }

.halloween-bat {
  position: absolute;
  top: 19%;
  left: -100px;
  width: 58px;
  height: auto;
  opacity: 0.38;
  animation: ashbyBatFlight 20s linear infinite;
}

.bat-two { top: 31%; animation-duration: 27s; animation-delay: 7s; }
.bat-three { top: 11%; animation-duration: 31s; animation-delay: 13s; }

@keyframes ashbyHalloweenFog {
  from { background-position-x: 0; }
  to { background-position-x: -760px; }
}

@keyframes ashbyPumpkinGlow {
  from { filter: drop-shadow(0 0 7px rgba(255, 103, 0, 0.42)); }
  to { filter: drop-shadow(0 0 18px rgba(255, 103, 0, 0.72)); }
}

@keyframes ashbyHalloweenBlink {
  0%, 18%, 24%, 100% { opacity: 0; }
  20%, 22% { opacity: 0.7; }
}

@keyframes ashbyBatFlight {
  0% { transform: translate(-10vw, 10px) rotate(-8deg); }
  24% { transform: translate(32vw, -25px) rotate(6deg); }
  54% { transform: translate(66vw, 45px) rotate(-5deg); }
  100% { transform: translate(120vw, -15px) rotate(8deg); }
}

@media (max-width: 1120px) {
  .primary-nav a {
    padding-inline: 7px;
    font-size: 0.82rem;
  }

  .header-navigation {
    gap: 10px;
  }
}

@media (max-width: 1020px) {
  .mobile-nav-toggle {
    display: grid;
  }

  .header-navigation {
    position: fixed;
    left: 0;
    right: 0;
    top: 88px;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    display: none;
    padding: 14px 20px 22px;
    background: rgba(3, 20, 38, 0.985);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  }

  body.nav-open .header-navigation {
    display: block;
  }

  .primary-nav {
    display: grid;
    gap: 4px;
  }

  .primary-nav a {
    width: 100%;
    padding: 13px 14px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .primary-nav a::after {
    display: none;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .header-book-button {
    width: 100%;
  }

  html.halloween-mode .header-navigation {
    background: rgba(9, 5, 13, 0.985);
  }
}

@media (max-width: 650px) {
  .site-shell {
    width: min(calc(100% - 1.35rem), var(--ashby-header-shell));
  }

  .header-inner {
    min-height: 78px;
  }

  .site-brand img {
    width: 58px;
    height: 58px;
  }

  .header-navigation {
    top: 78px;
    max-height: calc(100vh - 78px);
    padding-inline: 11px;
  }

  .halloween-pumpkin {
    bottom: 8px;
    width: 54px;
    opacity: 0.52;
  }

  .halloween-fog {
    bottom: 0;
    height: 145px;
    background-size: 520px 165px;
    opacity: 0.09;
  }

  .halloween-fog-two,
  .halloween-eyes,
  .halloween-bat {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *,
  .site-header *::before,
  .site-header *::after {
    transition-duration: 0.01ms !important;
  }

  .halloween-atmosphere {
    display: none !important;
  }
}

.legacy-main-anchor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1020px) {
  body.uv-mode .header-navigation {
    background:
      radial-gradient(circle at 15% 0%, rgba(139, 92, 255, 0.13), transparent 30%),
      rgba(6, 7, 26, 0.992);
    border-top-color: rgba(77, 248, 255, 0.16);
  }
}


/* v9: clear Cafe / Bar links and a progressively enhanced mobile disclosure. */
.site-header .primary-nav a { white-space: nowrap; }
.site-header a:focus-visible,
.site-header button:focus-visible { outline: 3px solid var(--ashby-header-gold); outline-offset: 3px; }
.mobile-nav-toggle .nav-icon-close { display: none; }
.mobile-nav-toggle[aria-expanded="true"] .nav-icon-open { display: none; }
.mobile-nav-toggle[aria-expanded="true"] .nav-icon-close { display: block; }
@media (max-width: 1020px) {
  .primary-nav a { min-height: 44px; display: flex; align-items: center; }
  .header-navigation { overscroll-behavior: contain; max-height: calc(100dvh - 88px); }
  body:not(.nav-ready) .header-inner { flex-wrap: wrap; gap: 0; }
  body:not(.nav-ready) .mobile-nav-toggle { display: none; }
  body:not(.nav-ready) .header-navigation { position: static; display: block; width: 100%; max-height: none; box-shadow: none; }
}
@media (max-width: 650px) {
  .header-navigation { max-height: calc(100dvh - 78px); }
}
@media (max-width: 1020px) {
  body:not(.nav-ready) .site-header { position: relative; }
}

/* v10: two distinct, directly accessible dining destinations in one neat group. */
.site-header .site-shell { width: min(calc(100% - 3rem), 1280px); }
.nav-dining-group { display: flex; align-items: center; padding: 3px; gap: 1px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }
.nav-dining-group a { min-height: 34px; display: flex; align-items: center; justify-content: center; padding-inline: 11px; }
.nav-dining-group a.active { background: rgba(255,255,255,.14); }
.nav-dining-group a::after { bottom: 2px; width: 3px; height: 3px; }
@media (max-width: 1120px) and (min-width: 1021px) {
  .site-header .header-inner { gap: 14px; }
  .nav-dining-group a { padding-inline: 7px; }
}
@media (max-width: 1020px) {
  .nav-dining-group { display: grid; grid-template-columns: 1fr 1fr; border-radius: 13px; margin-block: 5px; padding: 4px; gap: 4px; }
  .nav-dining-group a { justify-content: flex-start; min-height: 44px; padding-inline: 14px; }
}
@media (max-width: 650px) {
  .site-header .site-shell { width: calc(100% - 1.75rem); }
}
/* Avoid a transparent intermediate frame when the sticky header changes state. */
.site-header { transition: box-shadow .2s ease; }
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}
