/* ============================================
   NAV — Topbar, navbar, mobile menu
   ============================================ */

/* ── Shared inner container ── */
.tinner {
  width: 100%;
  max-width: 1320px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left:  20px;
}
@media (min-width: 576px)  { .tinner { max-width: 540px;  } }
@media (min-width: 768px)  { .tinner { max-width: 720px;  } }
@media (min-width: 992px)  { .tinner { max-width: 960px;  } }
@media (min-width: 1200px) { .tinner { max-width: 1140px; } }
@media (min-width: 1400px) { .tinner { max-width: 1320px; } }

/* ── Topbar ── */
.topbar {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: .82rem;
}
.topbar .tinner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a       { color: var(--muted); transition: color .2s; }
.topbar a:hover { color: var(--blue); }
.topbar .bold   { color: #fff; font-weight: 700; }
.topbar i       { color: var(--blue); margin-right: 5px; }

/* ── Main Nav ── */
.main-nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 300;
}
.nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 64px;
}

/* ── Logo ── */
.logo-wrap {
  display: flex;
  align-items: center;
  padding: 8px 0;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  /* PNG has black bg — make it transparent on dark nav */
  mix-blend-mode: screen;
}
@media (max-width: 480px) {
  .logo-img { height: 34px; }
}

/* ── Desktop Nav Links ── */
.nav-links {
  display: flex;
  align-items: stretch;
}
.nav-link-custom {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-weight: 500;
  font-size: .82rem;
  padding: 0 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: color .2s, background .2s;
  text-decoration: none;
}
.nav-link-custom:hover  { color: var(--blue); }
.nav-link-custom.active { background: var(--blue); color: #fff; }
.active-drop            { color: var(--blue) !important; }

/* ── Dropdown ── */
.dropdown { display: flex; align-items: stretch; }
.dropdown-toggle-custom {
  display: flex; align-items: center; gap: 5px;
  color: var(--muted);
  font-weight: 500; font-size: .82rem;
  padding: 0 14px;
  text-transform: uppercase; letter-spacing: 1px;
  cursor: pointer; border: none; background: none;
  white-space: nowrap; transition: color .2s;
}
.dropdown-toggle-custom:hover { color: var(--blue); }
.dropdown-menu-custom {
  background: #0f1219;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 0;
  min-width: 170px;
  list-style: none;
  z-index: 400;
}
.dropdown-menu-custom li { list-style: none; padding: 0; margin: 0; }
.dropdown-menu-custom a {
  display: block;
  padding: 10px 18px;
  color: var(--muted);
  font-size: .82rem;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.dropdown-menu-custom a:hover { color: var(--blue); background: var(--blue-glow); }

/* ── Search button ── */
.nav-search-btn {
  display: flex; align-items: center;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .95rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  margin: auto 0 auto 8px;
  transition: all .2s;
}
.nav-search-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: auto 0;
  z-index: 310;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .25s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Drawer ── */
.mobile-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 85vw);
  height: 100%;
  background: #0d1017;
  border-left: 1px solid var(--border);
  z-index: 350;
  transition: right .3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open { right: 0; }

.mobile-drawer-inner {
  padding: 80px 0 40px;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color .2s, background .2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mobile-nav-link i { color: var(--blue); font-size: 1rem; width: 18px; }
.mobile-nav-link:hover,
.mobile-nav-link.active { color: var(--blue); background: var(--blue-glow); }

/* Mobile conversion CTAs */
.mobile-cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}
.mobile-cta-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700; font-size: .88rem;
  padding: 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  text-align: center;
  letter-spacing: .5px;
}
.mobile-cta-secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
  font-weight: 600; font-size: .88rem;
  padding: 13px;
  border-radius: var(--radius-md);
  text-decoration: none;
  text-align: center;
}
.mobile-drawer-hours {
  padding: 20px 28px;
  font-size: .76rem;
  color: var(--muted);
  line-height: 1.6;
}
.mobile-drawer-hours .footer-icon { color: var(--blue); margin-right: 6px; }

/* ── Overlay ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 299;
  backdrop-filter: blur(2px);
}
.nav-overlay.open { display: block; }

/* ── Search Modal ── */
.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.search-modal.open { display: flex; }
.search-modal-inner {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 480px;
}
.search-modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 16px;
}
.search-results { margin-top: 12px; max-height: 260px; overflow-y: auto; }
.search-result-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  color: var(--text);
  transition: background .2s;
  text-decoration: none;
}
.search-result-item:hover { background: var(--border); }
.search-result-img  { width: 50px; height: 36px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.search-result-name { font-size: .82rem; font-weight: 600; color: #fff; }
.search-result-price{ font-size: .72rem; color: var(--muted); }

/* Hide mobile-only elements on desktop */
.nav-cta-btn { display: none; }
.hamburger   { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .topbar    { display: none; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
