/* ==========================================================================
   EatsPrices — Site Navigation (matches tokens + homepage design)
   ========================================================================== */

:root {
  --sh-max: 1200px;
  --sh-pad: 24px;
  --sh-header-offset: 132px;
}

/* ── Shell ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--surface, #fff);
  border-bottom: 1px solid var(--border, #e7e5de);
  transition: box-shadow var(--ease, 150ms ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(28, 27, 26, 0.06));
}

.site-header.is-scrolled .sh-trust {
  display: none;
}

.site-header.panel-open {
  box-shadow: none;
}

.sh-wrap {
  max-width: var(--sh-max);
  margin: 0 auto;
  padding: 0 var(--sh-pad);
}

/* ── Trust strip ────────────────────────────────────────────── */
.sh-trust {
  background: var(--surface-alt, #f5f5f0);
  border-bottom: 1px solid var(--border, #e7e5de);
}

.sh-trust-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4, 16px);
  padding: 7px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2, #57534e);
  flex-wrap: wrap;
}

.sh-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ok-600, #059669);
  white-space: nowrap;
}

.sh-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok-500, #10b981);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: sh-pulse 2s ease infinite;
}

@keyframes sh-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.sh-trust-text a {
  color: var(--brand-600, #4338ca);
  font-weight: 600;
  text-decoration: none;
}

.sh-trust-text a:hover {
  text-decoration: underline;
}

.sh-trust-badge {
  margin-left: auto;
  padding: 3px 10px;
  background: var(--brand-50, #eef2ff);
  color: var(--brand-600, #4338ca);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-pill, 999px);
  white-space: nowrap;
}

/* ── Main bar ───────────────────────────────────────────────── */
.sh-bar {
  background: var(--surface, #fff);
}

.sh-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6, 24px);
  min-height: 64px;
}

.sh-logo {
  flex-shrink: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text, #1c1b1a);
  text-decoration: none;
  line-height: 1;
}

.sh-logo-accent {
  color: var(--accent-600, #ea580c);
}

.sh-nav {
  flex: 1;
  min-width: 0;
}

.sh-nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sh-nav-list > li > a,
.sh-nav-list > li > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2, #57534e);
  text-decoration: none;
  background: none;
  border: none;
  border-radius: var(--r-sm, 8px);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--ease, 150ms ease), background var(--ease, 150ms ease);
}

.sh-nav-list > li > a:hover,
.sh-nav-list > li > button:hover,
.sh-nav-list > li.is-open > button {
  color: var(--brand-600, #4338ca);
  background: var(--brand-50, #eef2ff);
}

.sh-nav-list > li.is-active > a,
.sh-nav-list > li.is-active > button {
  color: var(--brand-600, #4338ca);
  background: var(--brand-50, #eef2ff);
}

.sh-nav-chevron {
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.sh-nav-list > li.is-open .sh-nav-chevron {
  transform: rotate(180deg);
}

.sh-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2, 8px);
  flex-shrink: 0;
  margin-left: auto;
}

.sh-icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e7e5de);
  border-radius: var(--r-sm, 8px);
  color: var(--text, #1c1b1a);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--ease, 150ms ease), color var(--ease, 150ms ease), background var(--ease, 150ms ease);
}

.sh-icon-btn:hover {
  border-color: var(--border-strong, #d6d3ca);
  color: var(--brand-600, #4338ca);
  background: var(--surface-alt, #f5f5f0);
}

.sh-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: var(--brand-600, #4338ca);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--r-sm, 8px);
  white-space: nowrap;
  transition: background var(--ease, 150ms ease), transform var(--ease, 150ms ease);
}

.sh-cta:hover {
  background: var(--brand-700, #3730a3);
}

.sh-cta--active {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.sh-menu-btn {
  display: none;
}

/* ── Dropdown panels ────────────────────────────────────────── */
.sh-panels {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 310;
  pointer-events: none;
}

.sh-panel {
  display: none;
  background: var(--surface, #fff);
  border-bottom: 1px solid var(--border, #e7e5de);
  box-shadow: var(--shadow-md, 0 6px 16px rgba(28, 27, 26, 0.08));
  pointer-events: all;
}

.sh-panel.is-open {
  display: block;
}

.sh-panel-inner {
  max-width: var(--sh-max);
  margin: 0 auto;
  padding: var(--sp-8, 32px) var(--sh-pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8, 32px);
}

.sh-panel-inner--2 {
  grid-template-columns: 1fr 1fr;
}

.sh-panel-inner--1 {
  grid-template-columns: 1fr;
  max-width: 420px;
}

.sh-panel-col-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #a8a29e);
  margin-bottom: var(--sp-3, 12px);
}

.sh-panel-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sh-panel-links a {
  display: block;
  padding: 8px 10px;
  margin: 0 -10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text, #1c1b1a);
  text-decoration: none;
  border-radius: var(--r-sm, 8px);
  transition: color var(--ease, 150ms ease), background var(--ease, 150ms ease);
}

.sh-panel-links a:hover {
  color: var(--brand-600, #4338ca);
  background: var(--brand-50, #eef2ff);
}

.sh-panel-links a.sh-link-featured {
  font-weight: 700;
  color: var(--brand-600, #4338ca);
}

.sh-panel-feature {
  background: var(--page, #fafaf7);
  border: 1px solid var(--border, #e7e5de);
  border-radius: var(--r, 12px);
  padding: var(--sp-6, 24px);
}

.sh-panel-feature-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #1c1b1a);
  margin-bottom: var(--sp-2, 8px);
  line-height: 1.35;
}

.sh-panel-feature-desc {
  font-size: 13px;
  color: var(--text-2, #57534e);
  line-height: 1.6;
  margin-bottom: var(--sp-4, 16px);
}

.sh-panel-feature-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--brand-600, #4338ca);
  border-radius: var(--r-sm, 8px);
  text-decoration: none;
  transition: background var(--ease, 150ms ease);
}

.sh-panel-feature-btn:hover {
  background: var(--brand-700, #3730a3);
}

.sh-panel-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 26, 0.2);
  z-index: 290;
}

.site-header.panel-open .sh-panel-backdrop {
  display: block;
}

/* ── Search overlay ─────────────────────────────────────────── */
.sh-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 26, 0.55);
  backdrop-filter: blur(4px);
  z-index: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 96px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sh-search-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.sh-search-box {
  width: 100%;
  max-width: 560px;
  margin: 0 var(--sh-pad);
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e7e5de);
  border-radius: var(--r, 12px);
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(28, 27, 26, 0.12));
  overflow: visible;
}

.sh-search-row {
  display: flex;
  align-items: center;
  padding: 4px 16px;
  border-bottom: 1px solid var(--border, #e7e5de);
}

.sh-search-row svg {
  color: var(--text-muted, #a8a29e);
  flex-shrink: 0;
}

.sh-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text, #1c1b1a);
  background: transparent;
}

.sh-search-close {
  background: var(--surface-alt, #f5f5f0);
  border: 1px solid var(--border, #e7e5de);
  border-radius: var(--r-sm, 8px);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2, #57534e);
  cursor: pointer;
  font-family: inherit;
}

.sh-search-quick {
  padding: var(--sp-4, 16px);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2, 8px);
}

.sh-search-quick-label {
  width: 100%;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #a8a29e);
  margin-bottom: 2px;
}

.sh-search-pill {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text, #1c1b1a);
  background: var(--page, #fafaf7);
  border: 1px solid var(--border, #e7e5de);
  border-radius: var(--r-pill, 999px);
  text-decoration: none;
  transition: border-color var(--ease, 150ms ease), color var(--ease, 150ms ease);
}

.sh-search-pill:hover {
  border-color: var(--brand-200, #c7d2fe);
  color: var(--brand-600, #4338ca);
}

/* ── Mobile drawer ──────────────────────────────────────────── */
.sh-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 26, 0.4);
  z-index: 450;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sh-mobile-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.sh-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 100%);
  height: 100vh;
  background: var(--surface, #fff);
  z-index: 460;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  border-left: 1px solid var(--border, #e7e5de);
  box-shadow: var(--shadow-lg);
}

.sh-mobile-drawer.is-open {
  transform: translateX(0);
}

.sh-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4, 16px) var(--sh-pad);
  border-bottom: 1px solid var(--border, #e7e5de);
}

.sh-drawer-logo {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text, #1c1b1a);
  text-decoration: none;
}

.sh-drawer-logo span {
  color: var(--accent-600, #ea580c);
}

.sh-drawer-section {
  padding: var(--sp-4, 16px) var(--sh-pad);
  border-bottom: 1px solid var(--border, #e7e5de);
}

.sh-drawer-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted, #a8a29e);
  margin-bottom: var(--sp-2, 8px);
}

.sh-drawer-link {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #1c1b1a);
  text-decoration: none;
  border-bottom: 1px solid var(--surface-alt, #f5f5f0);
}

.sh-drawer-link:last-child {
  border-bottom: none;
}

.sh-drawer-link:hover {
  color: var(--brand-600, #4338ca);
}

.sh-drawer-cta {
  padding: var(--sp-6, 24px) var(--sh-pad);
}

.sh-drawer-cta-btn {
  display: block;
  padding: 13px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: var(--brand-600, #4338ca);
  color: #fff;
  border-radius: var(--r-sm, 8px);
  margin-bottom: var(--sp-2, 8px);
}

.sh-drawer-cta-btn--outline {
  background: transparent;
  color: var(--text, #1c1b1a);
  border: 1px solid var(--border, #e7e5de);
}

/* ── Restaurant sub-nav offset ──────────────────────────────── */
body.restaurant-menu-page .page-subnav {
  top: var(--sh-header-offset, 132px);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .sh-nav-list {
    display: none;
  }

  .sh-menu-btn {
    display: inline-flex;
    margin-left: auto;
  }

  .sh-actions .sh-cta {
    display: none;
  }

  .sh-trust-text {
    display: none;
  }

  .sh-panel-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6, 24px);
  }
}

@media (max-width: 640px) {
  :root {
    --sh-pad: 16px;
  }

  .sh-bar-inner {
    min-height: 58px;
    gap: var(--sp-3, 12px);
  }

  .sh-logo {
    font-size: 1.2rem;
  }

  .sh-trust-inner {
    justify-content: flex-start;
    padding: 10px 0;
    gap: 8px;
  }

  .sh-live {
    flex: 1 1 100%;
    white-space: normal;
    line-height: 1.35;
  }

  .sh-trust-badge {
    display: none;
  }

  .sh-panel-inner {
    grid-template-columns: 1fr;
    padding: var(--sp-6, 24px) var(--sh-pad);
  }

  .sh-mobile-drawer {
    width: 100%;
    border-left: none;
    top: auto;
    bottom: 0;
    height: 88vh;
    transform: translateY(100%);
    border-radius: var(--r, 12px) var(--r, 12px) 0 0;
  }

  .sh-mobile-drawer.is-open {
    transform: translateY(0);
  }
}
