/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #f8f9fa;
  --bg-subtle: #f1f3f5;
  --ink: #111827;
  --ink-secondary: #4b5563;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: rgba(37, 99, 235, 0.08);
  --success: #16a34a;
  --success-hover: #15803d;
  --danger: #dc2626;
  --danger-light: rgba(220, 38, 38, 0.08);
  --card: #ffffff;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.14);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --nav-h: 64px;
  --transition: 0.15s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ===== LAYOUT ===== */
main {
  min-height: 100vh;
  padding: var(--nav-h) 0 0;
  position: relative;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* ===== STICKY NAV BAR ===== */
.brand {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== MENU HEADER (3-col nav for inner pages) ===== */
.menu-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.menu-left {
  display: flex;
  align-items: center;
}

.menu-left .brand {
  position: static;
  height: auto;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
}

.menu-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.menu-right.is-empty {
  visibility: hidden;
}

/* ===== HERO / LANDING ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 0 32px;
  animation: fadeUp 0.4s ease both;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

h1 {
  font-family: "Inter", sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink);
}

.hero p {
  font-size: 14px;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

.fade-up {
  animation: fadeUp 0.4s ease both;
}

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

/* ===== PICKER (city/branch selector) ===== */
.picker {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.picker-row {
  display: grid;
  gap: 6px;
}

.picker label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
}

.picker select {
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color var(--transition);
}

.picker select:focus {
  outline: none;
  border-color: var(--accent);
}

/* ===== BUTTONS ===== */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.button {
  display: block;
  width: 100%;
  border: none;
  border-radius: var(--radius);
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.button:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.ghost-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: color var(--transition);
}

.ghost-link:hover {
  color: var(--accent-hover);
}

.helper {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  text-align: center;
}

.helper span {
  color: var(--accent);
  font-weight: 600;
}

.contact-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

/* ===== BRANCH CARDS (hub page) ===== */
.menu-hero {
  padding: 16px 0 0;
}

.menu-hero p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.branch-cards {
  padding: 24px 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  min-height: 120px;
}

.action-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.action-card:active {
  transform: translateY(0);
}

.action-card--menu {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 35% 1fr;
  align-items: center;
  padding: 20px 24px;
  min-height: auto;
  text-align: left;
}

.action-card--menu .card-icon--menu {
  justify-self: center;
}

.action-card--menu > div {
  display: flex;
  flex-direction: column;
}

.action-card:disabled {
  cursor: default;
  opacity: 0.45;
  pointer-events: none;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-light);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.card-icon--menu {
  width: 48px;
  height: 48px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon svg path,
.card-icon svg rect,
.card-icon svg circle,
.card-icon svg line {
  fill: none;
}

.card-label {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.card-label--muted {
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}

.card-label--menu {
  /* within --menu card, label sits above */
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-title--menu {
  text-align: left;
}

/* ===== MENU CONTROL BAR ===== */
.menu-control {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.menu-control-item {
  display: flex;
}

.menu-control-item .ghost-link {
  display: inline-block;
  font-size: 12px;
  padding: 8px 20px;
  border-radius: var(--radius);
  background: var(--accent-light);
  color: var(--accent);
  text-align: center;
  transition: background var(--transition);
}

.menu-control-item .ghost-link:hover {
  background: rgba(37, 99, 235, 0.14);
}

/* ===== MENU GRID ===== */
.menu-grid {
  padding: 20px 0;
  display: grid;
  gap: 12px;
}

.menu-section {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.menu-section.is-collapsible {
  cursor: pointer;
}

.menu-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 12px;
}

.menu-section-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.menu-section:not(.is-collapsed) .menu-section-header {
  border-bottom: 1px solid var(--border-light);
}

.menu-section:not(.is-collapsed) .menu-section-header h2 {
  color: var(--accent);
  font-size: 16px;
}

.menu-section h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.accordion-toggle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-secondary);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.accordion-toggle:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.accordion-icon {
  line-height: 1;
}

.menu-image {
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg-subtle);
  aspect-ratio: 5 / 2;
  max-height: 160px;
  max-width: 70%;
  border-radius: var(--radius);
}

.menu-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.menu-items {
  display: grid;
  gap: 0;
}

.menu-section.is-collapsed .menu-items {
  display: none;
}

.menu-section.is-collapsed .menu-image {
  display: block;
}

.menu-section .menu-image {
  display: none;
}

.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
  cursor: pointer;
  transition: background var(--transition);
}

.menu-item:hover {
  background: var(--bg);
}

.menu-item:last-child {
  border-bottom: none;
}

.item-title {
  font-weight: 500;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
}

.item-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.price {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.price .subtotal {
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--danger-light);
  color: var(--danger);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sold-out .item-title {
  color: var(--muted);
  text-decoration: line-through;
}

.sold-out .price {
  color: var(--muted);
}

.empty-state {
  margin: 0;
  padding: 20px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

/* ===== ORDER CONTROLS ===== */
.order-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition), border-color var(--transition);
  font-family: inherit;
}

.qty-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

/* ===== ORDER FOOTER (total + submit) ===== */
.order-total {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  padding: 0 0 10px;
}

.order-submit {
  position: sticky;
  bottom: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  margin: 0 -20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 50;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.order-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  padding: 14px 24px;
  border-radius: var(--radius);
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
}

.order-cta:hover {
  background: var(--success-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.order-cta:active {
  transform: translateY(0);
}

.order-cta-wrap {
  margin: 24px 0 0;
  display: flex;
  justify-content: center;
}

/* ===== MENU INFO ===== */
.menu-info {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.info-chip,
.info-button {
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  transition: color var(--transition);
}

.info-chip {
  gap: 8px;
  cursor: default;
}

.info-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.info-button { text-align: left; }
.info-button:active { transform: none; }

.info-button:hover,
.info-link:hover {
  color: var(--accent-hover);
}

/* ===== FOOTER ===== */
.menu-footer {
  padding: 20px;
}

.menu-footer .container {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}

.hours-content {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

/* ===== CARDS (generic) ===== */
.cards {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card h3 { margin: 0 0 4px; font-size: 15px; }
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ===== MODALS ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 92vw);
  max-height: 88vh;
  overflow: auto;
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: var(--bg);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: background var(--transition);
  z-index: 2;
}

.modal-close:hover {
  background: var(--border);
}

.modal-media {
  margin-bottom: 16px;
}

.modal-media.is-hidden {
  display: none;
}

.carousel-track {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-slide {
  display: none;
  justify-content: center;
  align-items: center;
  background: var(--bg-subtle);
  min-height: 200px;
}

.carousel-slide.is-active {
  display: flex;
}

.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.carousel-dot {
  border: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.carousel-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

.modal-content h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.modal-content p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.modal-sides {
  font-weight: 400;
  color: var(--ink);
}

.modal-sides strong {
  font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  :root {
    --nav-h: 56px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 32px 0 24px;
  }

  .menu-header {
    padding: 0 16px;
  }

  .menu-center {
    display: none;
  }

  .menu-right {
    font-size: 11px;
  }

  .branch-cards {
    padding: 16px 0 24px;
    gap: 10px;
  }

  .action-card {
    padding: 16px 12px;
    min-height: 100px;
  }

  .action-card--menu {
    padding: 16px;
  }

  .menu-section-header {
    padding: 14px 16px;
  }

  .menu-item {
    grid-template-columns: 1fr;
    padding: 12px 16px;
    gap: 8px;
  }

  .order-controls {
    justify-self: start;
  }

  .price {
    justify-self: start;
  }

  .order-submit {
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .order-cta {
    max-width: none;
  }

  .modal-card {
    width: 94vw;
    padding: 20px;
    border-radius: var(--radius-lg);
  }

  .menu-image {
    max-width: 100%;
    max-height: 120px;
    border-radius: 0;
  }

  .picker {
    padding: 20px;
  }

  .menu-control {
    flex-direction: column;
    gap: 6px;
  }

  .menu-control-item {
    width: 100%;
  }

  .menu-control-item .ghost-link {
    display: block;
    width: 100%;
  }
}

@media (min-width: 721px) {
  .menu-item {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
}
