:root {
  color-scheme: dark;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #070707;
  --surface: #101010;
  --text: #f3f3f3;
  --muted: #bababa;
  --red: #b80d1f;
  --red-bright: #e1182f;
  --white: #ffffff;
  --border: #2a2a2a;
  --card: #0f0f0f;
  --input-bg: #090909;
  --nav-toggle-bg: #111;
  --header-bg: rgba(7, 7, 7, 0.88);
  --chip-bg: #0c0c0c;
  --row-border: rgba(255, 255, 255, 0.06);
  --hero-bg: #050505;
  --section-alt-bg: linear-gradient(180deg, #080808 0%, #060606 100%);
  --hero-text: #fafafa;
  --hero-muted: rgba(255, 255, 255, 0.78);
  --gold: #d4a34f;
  --gold-soft: #e8c878;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f3ee;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5e5a53;
  --border: #e0d9ce;
  --card: #ffffff;
  --input-bg: #fffcf7;
  --nav-toggle-bg: #ebe6df;
  --header-bg: rgba(255, 255, 255, 0.9);
  --chip-bg: #f3efe8;
  --row-border: rgba(0, 0, 0, 0.08);
  --hero-bg: #121212;
  --section-alt-bg: linear-gradient(180deg, #faf8f5 0%, #f3efe8 100%);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 0;
  font-feature-settings: "kern" 1, "liga" 1, "lnum" 1;
}

h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.75rem);
  margin-bottom: 0.5rem;
  line-height: 1.08;
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  margin-bottom: 0.8rem;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

button,
select {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 2px;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  min-width: 0;
}

.brand-wordmark {
  font-family: "Great Vibes", "Snell Roundhand", "Segoe Script", cursive;
  font-weight: 400;
  font-size: clamp(1.55rem, 3.4vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #e8c76a;
  white-space: nowrap;
  text-shadow:
    0 1px 2px rgba(40, 28, 8, 0.45),
    0 0 10px rgba(212, 175, 55, 0.22);
}

.brand-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

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

.open-now-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  background: transparent;
  color: var(--muted);
}

.open-now-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fae6d;
  box-shadow: 0 0 0 3px rgba(63, 174, 109, 0.16);
}

.open-now-chip.offline {
  color: var(--red-bright);
  border-color: rgba(225, 24, 47, 0.5);
}

.open-now-chip.offline i {
  background: var(--red-bright);
  box-shadow: none;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--nav-toggle-bg);
  color: var(--text);
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--red-bright);
  color: var(--red-bright);
}

.theme-icon {
  width: 20px;
  height: 20px;
  grid-area: 1 / 1;
}

html[data-theme="dark"] .theme-icon-moon,
html[data-theme="light"] .theme-icon-sun {
  display: none;
}

/* Shared components */
.eyebrow {
  font-family: var(--font-body);
  color: var(--red-bright);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.tab-btn {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.52rem 0.86rem 0.56rem;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent 28%);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: 180ms ease;
}

.tab-btn:hover {
  color: var(--text);
  border-color: rgba(225, 24, 47, 0.55);
}

.tab-btn.is-active {
  color: var(--text);
  border-color: rgba(225, 24, 47, 0.55);
  background: rgba(225, 24, 47, 0.06);
}

.count-badge {
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0;
}

.btn {
  font-family: var(--font-body);
  background: var(--red);
  color: var(--white);
  border: 1px solid transparent;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: 180ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn:hover {
  background: var(--red-bright);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

html[data-theme="light"] .btn-outline {
  border-color: rgba(0, 0, 0, 0.18);
}

.btn-outline:hover {
  border-color: var(--red-bright);
  background: rgba(225, 24, 47, 0.12);
}

.btn-small {
  padding: 0.5rem 0.95rem;
  font-size: 0.86rem;
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-top: 1rem;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--red-bright);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0;
}

.link-btn:hover {
  color: var(--text);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
}

.accent-border {
  border-left: 3px solid var(--red);
}

.chip {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  font-size: 0.85rem;
  color: var(--text);
}

.chip-static {
  color: var(--muted);
}

.section {
  padding: clamp(2.25rem, 6vw, 5.2rem) 0;
}

.section-dark {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-lede {
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.form-title {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--hero-bg);
  min-height: 46vh;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 22%, rgba(225, 24, 47, 0.22), transparent 38%),
    radial-gradient(circle at 82% 78%, rgba(212, 163, 79, 0.14), transparent 42%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 85%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 10px);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(2.75rem, 7vw, 5rem) 0;
}

.hero-content h1 {
  color: var(--hero-text);
}

.hero-subtext {
  max-width: 56ch;
  color: var(--hero-muted);
}

.hero-brand {
  display: inline-block;
  font-style: italic;
  font-weight: 600;
  border-bottom: 2px solid var(--red-bright);
  padding-bottom: 0.05em;
}

/* Guest ordering */
.guest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}

.reserve-form {
  display: grid;
  gap: 0.85rem;
}

.reserve-form label > span,
.order-composer > label,
.dashboard-controls label > span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.3rem;
}

.detected-context {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.detected-context strong {
  color: var(--text);
  margin-left: 0.2rem;
}

input,
select,
textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.92rem;
}

input,
select {
  height: 2.7rem;
  padding: 0 0.7rem;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent 25%);
}

.order-composer {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--input-bg);
  padding: 0.9rem;
}

.order-composer textarea {
  border: 0;
  background: transparent;
  padding: 0;
  resize: vertical;
  min-height: 6.5rem;
  line-height: 1.6;
  font-size: 1rem;
}

.order-composer textarea:focus-visible {
  outline: 0;
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--row-border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.voice-button.listening {
  background: var(--red-bright);
  animation: pulse 1.5s ease-in-out infinite;
}

.mic {
  width: 11px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 8px;
  position: relative;
}

.mic::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 8px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  left: -4px;
  top: 7px;
}

.listening-status {
  color: var(--muted);
  font-size: 0.78rem;
}

.composer-actions .btn-outline {
  margin-left: auto;
}

.translation-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  background: var(--chip-bg);
  padding: 0.75rem 0.95rem;
}

.translation-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.translation-card .eyebrow {
  color: var(--gold);
  margin: 0;
}

.translation-card p {
  margin: 0.4rem 0 0;
  line-height: 1.55;
}

.form-message {
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

.form-message.success {
  border-color: rgba(63, 174, 109, 0.5);
  background: rgba(63, 174, 109, 0.1);
}

.form-message.error {
  border-color: rgba(225, 24, 47, 0.55);
  background: rgba(225, 24, 47, 0.1);
  color: var(--red-bright);
}

/* Visual panel */
.visual-panel {
  display: grid;
  gap: 0.9rem;
}

.visual-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #0a0a0a;
  min-height: 26rem;
}

.visual-frame > img {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 26rem;
  object-fit: cover;
}

.visual-frame > img.visible {
  display: block;
  animation: reveal 0.6s ease both;
}

.image-placeholder {
  min-height: 26rem;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 2rem;
  color: #f3f3f3;
  background:
    radial-gradient(circle at 50% 42%, rgba(225, 24, 47, 0.16), transparent 45%),
    repeating-radial-gradient(circle at 50% 42%, transparent 0 38px, rgba(255, 255, 255, 0.025) 39px 40px);
}

.image-placeholder h2 {
  margin: 1.4rem 0 0.2rem;
  font-size: 1.75rem;
}

.image-placeholder p {
  max-width: 30ch;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.plate {
  width: 9.5rem;
  height: 9.5rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 16px rgba(255, 255, 255, 0.035);
}

.plate i {
  width: 4.6rem;
  height: 3.5rem;
  border-radius: 60% 40% 55% 45%;
  background: linear-gradient(140deg, var(--red-bright), var(--gold));
  transform: rotate(-18deg);
}

.image-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(7, 7, 7, 0.88);
  color: #f3f3f3;
  font-size: 0.9rem;
}

.image-loading i {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--red-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.frame-label {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 7, 7, 0.7);
  backdrop-filter: blur(8px);
  color: #f3f3f3;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Kitchen dashboard */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dashboard-title {
  margin-bottom: 0;
}

.dashboard-controls {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-controls select {
  min-width: 14rem;
}

.closed-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.7rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.closed-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--red);
}

.closed-toggle span {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.86rem;
  font-weight: 400;
}

.status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.75rem 0 1.15rem;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-chip b {
  color: var(--text);
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.order-card {
  padding: 1.15rem 1.2rem;
  border-top: 3px solid transparent;
}

.order-card[data-status="new"] {
  border-top-color: var(--red-bright);
}

.order-card[data-status="preparing"] {
  border-top-color: var(--gold);
}

.order-card[data-status="ready"] {
  border-top-color: #3fae6d;
}

.order-card[data-status="served"],
.order-card[data-status="cancelled"] {
  opacity: 0.62;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.order-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.order-card time {
  font-size: 0.72rem;
  color: var(--muted);
}

.status-pill {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill[data-status="new"] {
  color: var(--red-bright);
  border-color: rgba(225, 24, 47, 0.55);
}

.status-pill[data-status="preparing"] {
  color: var(--gold-soft);
  border-color: rgba(212, 163, 79, 0.55);
}

.status-pill[data-status="ready"] {
  color: #3fae6d;
  border-color: rgba(63, 174, 109, 0.55);
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0.7rem;
}

.order-meta .chip {
  padding: 0.28rem 0.6rem;
  font-size: 0.74rem;
}

.order-copy {
  margin: 0 0 0.85rem;
  min-height: 4.5rem;
  line-height: 1.6;
}

.order-card details {
  border-top: 1px solid var(--row-border);
  padding-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.order-card summary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.original-copy {
  margin: 0.4rem 0 0;
  line-height: 1.55;
}

.order-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--row-border);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.status-select {
  width: auto;
  height: 2.15rem;
  font-size: 0.78rem;
}

.empty-orders {
  text-align: center;
  padding: 4.5rem 1rem;
  color: var(--muted);
}

.empty-orders > span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: #3fae6d;
}

.empty-orders h3 {
  margin: 0 0 0.2rem;
  color: var(--text);
  font-size: 1.35rem;
}

.empty-orders p {
  margin: 0;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0 2.3rem;
  color: var(--muted);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  font-size: 0.88rem;
  flex-wrap: wrap;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(225, 24, 47, 0.18);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
}

@media (max-width: 980px) {
  .guest-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .visual-panel {
    order: -1;
  }

  .visual-frame,
  .visual-frame > img,
  .image-placeholder {
    min-height: 20rem;
  }

  .orders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .nav-wrap {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .nav {
    order: 3;
    width: 100%;
  }

  .nav .tab-btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.5rem 0.54rem;
    font-size: 0.76rem;
  }

  h1 {
    max-width: none;
  }

  .card {
    padding: 1.15rem 1.1rem;
  }

  .orders-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-wrap {
    flex-direction: column;
    gap: 0.35rem;
  }
}
