/* Top navigation */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--card-border);
}

.site-header__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: "Modak", system-ui, sans-serif;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--brand);
  text-transform: uppercase;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  padding: 0.625rem 1.25rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 24, 20, 0.25);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 0.5rem;
}

.btn-ghost:hover {
  background: var(--bg-muted);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.icon-btn:hover {
  background: var(--bg-muted);
}

.btn-desktop-cta {
  display: none;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }

  .btn-desktop-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* Mobile drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 60;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(20rem, 88vw);
  height: 100%;
  background: var(--drawer-bg);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

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

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer__links a {
  padding: 0.875rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  border-radius: 0.75rem;
}

.drawer__links a:hover,
.drawer__links a.is-active {
  background: var(--bg-muted);
  color: var(--brand);
}

/* Bottom navigation */
.bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--bottom-nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--card-border);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.45rem 0.25rem;
  border-radius: 0.85rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background 0.2s ease;
}

.bottom-nav a iconify-icon {
  font-size: 1.25rem;
}

.bottom-nav a.is-active {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

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

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 5rem 0 3rem;
  background: var(--footer);
  color: #fff;
  border-top: 1px solid var(--footer-border);
}

.site-footer a {
  color: #a1a1aa;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--brand);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.site-footer__title {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin: 0 0 1.5rem;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--footer-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
  }
}

.site-footer__credit {
  font-size: 0.75rem;
  color: #a1a1aa;
}

.site-footer__credit a {
  color: var(--accent-bright);
  font-weight: 600;
}

.site-footer__credit a:hover {
  color: #fff;
}

.site-footer__mega {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.site-footer__mega span {
  font-family: "Modak", system-ui, sans-serif;
  font-size: clamp(4rem, 18vw, 12rem);
  line-height: 0.85;
  color: var(--brand);
  user-select: none;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-form input {
  width: 100%;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  background: var(--footer-input);
  border: 1px solid var(--footer-input-border);
  color: #fff;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--brand);
}

.newsletter-form input::placeholder {
  color: #71717a;
}

/* Chips / filters */
.chip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--card-border);
  background: var(--chip-bg);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip.is-active {
  background: var(--chip-active);
  border-color: var(--chip-active);
  color: #fff;
}

/* Forms */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

.form-control.is-invalid {
  border-color: var(--danger);
}

.form-error {
  font-size: 0.75rem;
  color: var(--danger);
  min-height: 1rem;
}

textarea.form-control {
  min-height: 8rem;
  resize: vertical;
  border-radius: 1.25rem;
}

/* Toast */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

@media (min-width: 768px) {
  .toast-host {
    bottom: 2rem;
    left: auto;
    right: 1.5rem;
    transform: none;
  }
}

.toast {
  pointer-events: auto;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: toast-in 0.3s ease;
}

.toast.is-success {
  border-color: color-mix(in srgb, var(--success) 45%, var(--card-border));
}

.toast.is-error {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--card-border));
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cards */
.menu-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.menu-card__media {
  aspect-ratio: 1;
  background: var(--bg-muted);
  overflow: hidden;
}

.menu-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.menu-card:hover .menu-card__media img {
  transform: scale(1.05);
}

.menu-card__body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.menu-card__price {
  margin-top: auto;
  font-weight: 700;
  color: var(--brand);
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--bg-muted);
  color: var(--text-muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Accordion */
.accordion-item {
  border-bottom: 1px solid var(--card-border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-panel.is-open {
  max-height: 20rem;
}

.accordion-panel p {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Search input */
.search-box {
  position: relative;
}

.search-box iconify-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
}

.search-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-state h3 {
  color: var(--text);
  margin: 0 0 0.5rem;
}

/* Page hero */
.page-hero {
  padding: 7rem 0 2.5rem;
  text-align: center;
}

.page-hero h1 {
  font-family: "Modak", system-ui, sans-serif;
  font-size: clamp(2.75rem, 10vw, 5.5rem);
  line-height: 0.95;
  color: var(--brand);
  margin: 0.35rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.page-hero .eyebrow {
  font-family: "Mouse Memoirs", sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.page-hero p {
  max-width: 32rem;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Location / job cards */
.soft-card {
  border-radius: 1.5rem;
  border: 1px solid var(--card-border);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.soft-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Option pills for item customization */
.option-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.option-group legend {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.option-pills label {
  cursor: pointer;
}

.option-pills input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-pills span {
  display: inline-flex;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--bg-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.option-pills input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Swiper tweaks */
.swiper {
  width: 100%;
  max-width: 100%;
}

.swiper-slide {
  overflow: hidden;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
}

.swiper-pagination-bullet {
  background: var(--text-muted) !important;
  opacity: 0.45 !important;
}

.swiper-pagination-bullet-active {
  background: var(--brand) !important;
  opacity: 1 !important;
}

.drawer-overlay[hidden] {
  display: none !important;
}

.empty-state[hidden] {
  display: none !important;
}

.drawer:not(.is-open) {
  visibility: hidden;
  pointer-events: none;
}

.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

/* Cart badge + sticky order bar */
.cart-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 0.15rem;
  right: 0.1rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-badge[hidden] {
  display: none !important;
}

.sticky-cart {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 45;
}

.sticky-cart[hidden] {
  display: none !important;
}

.sticky-cart__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 12px 30px rgba(249, 24, 20, 0.35);
  cursor: pointer;
}

.sticky-cart__btn:hover {
  background: var(--brand-hover);
}

@media (min-width: 768px) {
  .sticky-cart {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    width: min(22rem, calc(100vw - 3rem));
  }
}

.cart-line {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--card-border);
}

.cart-line img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 1rem;
  background: var(--bg-muted);
}

.cart-line__meta h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.cart-line__meta p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.qty-control button {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--bg-muted);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-control span {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-summary {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.cart-summary__row strong {
  color: var(--brand);
  font-size: 1.2rem;
}

.menu-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.btn-add {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  white-space: nowrap;
}

.btn-add:hover {
  background: var(--brand-hover);
}

.btn-add:focus-visible,
.btn:focus-visible,
.icon-btn:focus-visible,
.chip:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail .menu-card {
  flex: 0 0 min(78vw, 16rem);
  scroll-snap-align: start;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .gallery-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1.25rem;
}

.teaser-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .teaser-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
