/* Rare Cuisines brand layer, shared by the guest app and the staff screens.
   Colours come from rare-cuisines.vercel.app; the striped awning is taken from the three cabins. */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Poppins:wght@400;500;600&display=swap");

:root {
  color-scheme: dark;
  /* brand */
  --maroon: #6b1025;
  --maroon-deep: #4a0b1a;
  --gold: #d4af37;
  --gold-bright: #e4c547;
  --parrot: #5dbb63;
  --awning-red: #c8243a;   /* the logo's red, used for the stripes */
  /* surfaces and text */
  --charcoal: #1a1a1a;
  --surface: #231f1d;
  --surface-2: #2d2826;
  --line: rgba(243, 234, 216, 0.13);
  --ivory: #f3ead8;
  --muted: #b8ad9b;
  --ember: #ec6a5c;        /* readable red on charcoal */
  --danger: #ff7b6b;
  /* type */
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* scale: 12 14 16 20 25 32 40 */
  --t-xs: 0.75rem; --t-sm: 0.875rem; --t-md: 1rem; --t-lg: 1.25rem;
  --t-xl: 1.5625rem; --t-2xl: 2rem; --t-3xl: 2.5rem;
  --radius-sm: 8px; --radius: 14px; --radius-lg: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ivory);
  font: 400 var(--t-md)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; font-variant-numeric: lining-nums; }
.tile-no, .call-table, .ticket-table, .table-input, .table-chip strong { font-variant-numeric: lining-nums; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---- the awning: stripes with scalloped edge, like the cabins ---- */
.awning {
  --stripe: var(--awning-red);
  --w: 22px;
  --drop: 11px;
  height: calc(var(--h, 26px) + var(--drop));
  background: repeating-linear-gradient(90deg, var(--stripe) 0 var(--w), var(--ivory) var(--w) calc(var(--w) * 2));
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--drop)) no-repeat,
    radial-gradient(circle var(--drop) at 50% 0, #000 97%, #0000) bottom left / var(--w) var(--drop) repeat-x;
          mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--drop)) no-repeat,
    radial-gradient(circle var(--drop) at 50% 0, #000 97%, #0000) bottom left / var(--w) var(--drop) repeat-x;
}
.awning.cafe  { --stripe: var(--gold); }
.awning.meat  { --stripe: var(--awning-red); }
.awning.sip   { --stripe: var(--parrot); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.25rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  font-weight: 500; font-size: var(--t-md); text-decoration: none;
  transition: background 0.18s var(--ease), transform 0.12s var(--ease), border-color 0.18s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #231a05; font-weight: 600; }
.btn.primary:hover { background: var(--gold-bright); }
.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(255, 123, 107, 0.5); color: var(--danger); background: transparent; }
.btn.block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
}

/* ---- form fields ---- */
.field { display: grid; gap: 0.4rem; }
.field label, .label { font-size: var(--t-sm); color: var(--muted); font-weight: 500; }
.input, textarea.input {
  width: 100%; min-height: 48px; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
}
textarea.input { resize: vertical; min-height: 80px; line-height: 1.45; }
.input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25); }

/* ---- choice chips (sizes, add-ons, segmented controls) ---- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip > span {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 1rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: var(--t-sm); transition: border-color 0.15s, background 0.15s;
}
.chip input:checked + span { border-color: var(--gold); background: rgba(212, 175, 55, 0.14); color: var(--ivory); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.chip .extra { color: var(--muted); }

/* ---- dialogs as bottom sheets on phones, centred panels on large screens ---- */
dialog.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 92dvh;
  background: var(--surface); color: var(--ivory);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden;
  display: none; flex-direction: column;
}
dialog.sheet[open] { display: flex; animation: sheet-in 0.28s var(--ease); }
dialog.sheet::backdrop { background: rgba(8, 6, 5, 0.66); backdrop-filter: blur(3px); }
@media (min-width: 720px) {
  dialog.sheet { margin: auto; border-radius: var(--radius-lg); }
}
@keyframes sheet-in { from { transform: translateY(32px); opacity: 0; } }
.sheet-head { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.25rem 0.75rem; }
.sheet-head h2 { font-size: var(--t-2xl); flex: 1; }
.sheet-head > div { flex: 1; }
.sheet-body { padding: 0.5rem 1.25rem 1.25rem; overflow-y: auto; overscroll-behavior: contain; }
.sheet-foot { padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }

/* ---- toasts ---- */
.toasts { position: fixed; inset: 1rem auto auto 50%; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; transform: translateX(-50%); z-index: 50; display: grid; gap: 0.5rem; width: min(92vw, 420px); pointer-events: none; }
.toast {
  background: var(--ivory); color: #241c16; border-radius: var(--radius); padding: 0.8rem 1rem;
  font-size: var(--t-sm); font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: toast-in 0.25s var(--ease);
}
.toast.error { background: #ffd9d3; color: #5a0d0d; }
@keyframes toast-in { from { transform: translateY(-10px); opacity: 0; } }

@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; }
}
