/* Rift Order — a restaurant's public website, menu/ordering, order tracking and driver pages.
   Warm and editorial: Fraunces for display, Inter for text, the restaurant's accent in --accent. */
:root {
  --cream: #fbf7f0; --paper: #ffffff; --sand: #f3ece0; --ink: #1c1917; --ink-2: #44403c; --muted: #78716c; --line: #e7e0d4; --line-2: #d6cdbf;
  --accent: #c2410c; --accent-ink: #fff; --good: #15803d; --good-bg: #ecfdf3; --bad: #b91c1c; --bad-bg: #fef2f2; --warn: #b45309; --warn-bg: #fffbeb;
  --serif: Fraunces, Georgia, "Times New Roman", serif; --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px; --r-sm: 9px; --shadow: 0 1px 2px rgba(28,25,23,.05), 0 6px 20px rgba(28,25,23,.06); --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; margin: 0 0 .4em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 500; }
h3 { font-size: 1.2rem; font-family: var(--sans); font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 650; text-decoration: none; transition: transform .1s, background .15s, filter .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: translateY(1px); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(28,25,23,.05); filter: none; }
.btn.light { background: #fff; border-color: #fff; color: var(--ink); }
.btn.hero-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn.hero-ghost:hover { background: rgba(255,255,255,.1); filter: none; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- header */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(251,247,240,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; }
.logo img { height: 42px; width: auto; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { text-decoration: none; font-weight: 550; color: var(--ink-2); }
.site-nav a:hover, .site-nav a.on { color: var(--ink); }
.open-dot { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.open-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.open-dot.on i { background: var(--good); box-shadow: 0 0 0 4px rgba(21,128,61,.14); }

/* ---- home */
.hero { position: relative; min-height: min(78vh, 720px); display: grid; align-items: end; color: #fff; background: #1c1917; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg.art { background: radial-gradient(ellipse at 18% 110%, color-mix(in srgb, var(--accent) 85%, #ffb86b) 0%, transparent 55%), radial-gradient(ellipse at 80% 120%, #7c2d12 0%, transparent 60%), radial-gradient(circle at 70% 20%, #292524 0%, #0c0a09 70%); }
.hero-bg.art::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,200,140,.5) 1px, transparent 1.4px); background-size: 42px 42px; mask-image: linear-gradient(to top, #000, transparent 70%); opacity: .35; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,10,9,.85), rgba(12,10,9,.1) 60%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 64px; }
.hero h1 { max-width: 13ch; }
.hero p.lede { font-size: 1.25rem; max-width: 44ch; color: rgba(255,255,255,.86); margin-bottom: 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 34px; font-size: .92rem; color: rgba(255,255,255,.8); }
.hero .facts b { color: #fff; display: block; font-weight: 650; }
.section { padding: 84px 0; }
.section.alt { background: var(--sand); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.about p { font-size: 1.12rem; color: var(--ink-2); white-space: pre-line; }
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dish { background: var(--paper); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.dish img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 8px; }
.dish .price { margin-top: auto; font-weight: 700; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }
.hours tr.today td { font-weight: 700; }
.map { height: 320px; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.site-foot { background: #1c1917; color: rgba(255,255,255,.72); padding: 46px 0; font-size: .92rem; }
.site-foot .wrap { display: flex; gap: 30px; justify-content: space-between; flex-wrap: wrap; }
.site-foot b { color: #fff; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.site-foot a { color: #fff; }
.powered { color: rgba(255,255,255,.45); font-size: .8rem; }

/* ---- menu + ordering */
.menu-page > main { min-width: 0; }
.menu-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 34px; align-items: start; padding-top: 34px; padding-bottom: 80px; }
.menu-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.notice { border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 18px; font-weight: 550; }
.notice.warn { background: var(--warn-bg); color: #7c3a06; }
.notice.bad { background: var(--bad-bg); color: #8f1515; }
.cat-nav { position: sticky; top: 70px; z-index: 30; background: var(--cream); display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; margin-bottom: 8px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; text-decoration: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.cat-nav a:hover, .cat-nav a.on { background: var(--ink); color: #fff; }
.menu-cat { padding-top: 26px; }
.menu-cat > h2 { font-size: 2rem; margin-bottom: 4px; }
.menu-cat > p { color: var(--muted); }
.menu-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 14px; }
.menu-item { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 14px; text-align: left; background: var(--paper); border: 1px solid transparent; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); transition: border-color .15s, transform .1s; width: 100%; }
.menu-item:hover { border-color: var(--line-2); }
.menu-item:active { transform: scale(.995); }
.menu-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.menu-item p { font-size: .9rem; color: var(--muted); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.menu-item .price { font-weight: 700; }
.menu-item img { width: 104px; height: 104px; object-fit: cover; border-radius: 10px; }
.menu-item .add { position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 1.3rem; line-height: 1; }
.menu-item.out { opacity: .55; }
.menu-item.out .add { display: none; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.tag { font-size: .72rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--sand); color: var(--ink-2); }
.tag.spicy { background: #fee2e2; color: #991b1b; } .tag.vegan, .tag.vegetarian { background: #dcfce7; color: #166534; } .tag.new { background: color-mix(in srgb, var(--accent) 15%, #fff); color: var(--accent); }
.tag.out { background: var(--ink); color: #fff; }

/* basket */
.basket { position: sticky; top: 90px; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: calc(100vh - 110px); overflow: hidden; }
.basket-head { padding: 18px 20px 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.basket-head h2 { font-size: 1.5rem; margin: 0; }
.basket-body { overflow-y: auto; padding: 8px 20px; flex: 1; }
.basket-empty { padding: 40px 10px; text-align: center; color: var(--muted); }
.b-line { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.b-line:last-child { border-bottom: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.qty button { width: 28px; height: 28px; border: 0; background: none; font-size: 1.05rem; font-weight: 700; }
.qty span { min-width: 18px; text-align: center; font-weight: 650; font-size: .9rem; }
.b-line b { display: block; font-size: .95rem; }
.b-line small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.b-line .amt { font-weight: 650; font-size: .95rem; }
.basket-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.row-t { display: flex; justify-content: space-between; font-size: .93rem; padding: 2px 0; color: var(--ink-2); }
.row-t.total { font-weight: 800; font-size: 1.15rem; color: var(--ink); padding-top: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand); padding: 4px; border-radius: 999px; margin-bottom: 12px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 9px; font-weight: 650; color: var(--ink-2); }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.seg button:disabled { opacity: .4; }
.mobile-basket { display: none; }

/* dialogs (item options + checkout) */
.scrim { position: fixed; inset: 0; background: rgba(28,25,23,.5); z-index: 60; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.dialog { background: var(--paper); border-radius: 18px; width: min(560px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: pop .22s var(--ease); }
.dialog.wide { width: min(720px, 100%); }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.dialog-head { padding: 22px 24px 10px; position: relative; }
.dialog-head h2 { font-size: 1.8rem; margin: 0 40px 6px 0; }
.dialog-head .x { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--sand); font-size: 1.4rem; }
.dialog-img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.dialog-body { padding: 4px 24px 18px; overflow-y: auto; flex: 1; }
.dialog-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.opt-group { margin: 16px 0; }
.opt-group h4 { margin: 0 0 8px; font-size: .98rem; display: flex; justify-content: space-between; }
.opt-group h4 span { font-weight: 550; font-size: .8rem; color: var(--muted); background: var(--sand); padding: 2px 9px; border-radius: 999px; }
.opt-group h4 span.req { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); }
.opt { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt input { width: 20px; height: 20px; accent-color: var(--accent); }
.opt span { flex: 1; }
.opt em { font-style: normal; color: var(--muted); font-size: .9rem; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: .82rem; font-weight: 650; margin-bottom: 5px; color: var(--ink-2); }
.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
textarea.input { min-height: 70px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .9rem; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pay-opt { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 13px 14px; margin-bottom: 8px; cursor: pointer; }
.pay-opt input { accent-color: var(--accent); width: 18px; height: 18px; }
.pay-opt small { display: block; color: var(--muted); }
.check-h { font-family: var(--sans); font-size: 1rem; font-weight: 750; margin: 18px 0 10px; }
.err { background: var(--bad-bg); color: #8f1515; border-radius: var(--r-sm); padding: 10px 14px; font-size: .92rem; margin: 8px 0; }
.hint { color: var(--muted); font-size: .84rem; }
.hp { position: absolute; left: -9999px; }

/* ---- tracking */
.track { max-width: 980px; margin: 0 auto; padding: 36px 24px 80px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
.card { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; }
.status-big { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); font-weight: 500; line-height: 1.05; margin: 6px 0 10px; }
.eta { font-size: 1.1rem; color: var(--ink-2); }
.eta b { color: var(--ink); }
.steps { list-style: none; padding: 0; margin: 22px 0 6px; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 20px 34px; color: var(--muted); font-weight: 550; }
.steps li::before { content: ""; position: absolute; left: 6px; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; }
.steps li::after { content: ""; position: absolute; left: 13px; top: 22px; bottom: 2px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--accent); border-color: var(--accent); }
.steps li.done::after { background: var(--accent); }
.steps li.now::before { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent); }
.track-map { height: 340px; border-radius: var(--r); overflow: hidden; margin-top: 18px; background: var(--sand); }
.courier { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 14px; border-radius: var(--r-sm); background: var(--sand); }
.courier .av { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.courier div { flex: 1; min-width: 0; }
.courier small { display: block; color: var(--muted); }
.lines { list-style: none; padding: 0; margin: 0; }
.lines li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.lines li small { display: block; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.timeline li { display: flex; gap: 12px; padding: 6px 0; }
.timeline time { color: var(--muted); width: 64px; flex: none; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--sand); }
.pill.good { background: var(--good-bg); color: var(--good); } .pill.bad { background: var(--bad-bg); color: var(--bad); }
.pin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.pin.home { background: var(--ink); } .pin.shop { background: var(--accent); } .pin.car { background: #2563eb; width: 22px; height: 22px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,.5), 0 2px 6px rgba(0,0,0,.35); } 50% { box-shadow: 0 0 0 10px rgba(37,99,235,0), 0 2px 6px rgba(0,0,0,.35); } }

/* ---- driver page */
.driver { max-width: 560px; margin: 0 auto; padding: 20px 16px 60px; }
.driver .card { margin-bottom: 14px; padding: 18px; }
.share { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.share .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); display: inline-block; margin-right: 8px; }
.share .dot.on { background: var(--good); }
.drop h3 { margin: 0; font-size: 1.15rem; }
.drop .addr { font-size: 1.05rem; font-weight: 600; margin: 8px 0 2px; }
.drop .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

@media (max-width: 960px) {
  .menu-page { grid-template-columns: minmax(0, 1fr); }
  .menu-items { grid-template-columns: minmax(0, 1fr); }
  .basket { position: fixed; inset: auto 0 0 0; top: auto; max-height: 86dvh; border-radius: 18px 18px 0 0; z-index: 50; transform: translateY(110%); transition: transform .25s var(--ease); }
  .basket.open { transform: none; }
  .mobile-basket { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; }
  .mobile-basket .btn { flex: 1; min-height: 56px; justify-content: space-between; }
  .split, .track { grid-template-columns: 1fr; }
  .site-nav a.hide-sm { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .scrim { padding: 0; align-items: end; }
  .dialog, .dialog.wide { width: 100%; border-radius: 18px 18px 0 0; max-height: 94dvh; }
}
@media (max-width: 560px) { .site-nav { gap: 14px; } .open-dot span { display: none; } .hero .wrap { padding-bottom: 40px; } .section { padding: 60px 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
