/* Ember & Elaichi: demo restaurant site */
:root {
  --oxblood: #2a0e13;
  --oxblood-2: #371219;
  --oxblood-3: #4a1a23;
  --cream: #f2e4cf;
  --cream-dim: #c9b8a0;
  --saffron: #e8a33d;
  --saffron-deep: #c47f1c;
  --cardamom: #9fbf8a;
  --line: rgba(242, 228, 207, 0.16);
  --display: "Rozha One", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(18px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--oxblood);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--display); line-height: 1.04; letter-spacing: -0.01em; }
h3 { font-family: var(--body); font-weight: 700; font-size: 1.0625rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - var(--gutter) * 2); margin-inline: auto; }
.muted { color: var(--cream-dim); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--saffron); color: var(--oxblood); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(42, 14, 19, 0.92), rgba(42, 14, 19, 0));
  backdrop-filter: blur(3px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--saffron); font-family: var(--display); font-size: 1.2rem; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--cream); font-weight: 500; font-size: 0.95rem; opacity: 0.85; }
.nav a:hover { opacity: 1; color: var(--saffron); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--saffron);
  background: var(--saffron); color: var(--oxblood);
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: #f3b650; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { background: rgba(242, 228, 207, 0.08); border-color: var(--cream-dim); }
.btn-small { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.link { background: none; border: 0; color: var(--cream-dim); text-decoration: underline; cursor: pointer; font: inherit; padding: 10px 0 0; display: block; margin: 0 auto; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 90px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(90% 55% at 50% 118%, rgba(232, 120, 40, 0.55), rgba(232, 163, 61, 0.12) 45%, transparent 70%),
    linear-gradient(180deg, #1d0a0e 0%, var(--oxblood) 55%, #3c1318 100%);
}
#embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { display: grid; gap: 26px; justify-items: start; }
.hero h1 { font-size: clamp(2.8rem, 8.2vw, 6.6rem); max-width: 12ch; color: var(--cream); }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 46ch; color: var(--cream-dim); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(42, 14, 19, 0.55);
  font-size: 0.9rem; font-weight: 500;
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--cream-dim); }
.status[data-open="true"]::before { background: var(--cardamom); box-shadow: 0 0 0 4px rgba(159, 191, 138, 0.25); }

/* Sections */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-alt { background: var(--oxblood-2); }
.section h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.split { display: grid; gap: clamp(32px, 6vw, 88px); grid-template-columns: 1fr; align-items: start; }
.prose { margin-top: 20px; max-width: 52ch; color: var(--cream-dim); }
.split-form .btn { margin-top: 28px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); display: grid; gap: 34px; }
.timeline li { position: relative; display: grid; gap: 4px; }
.timeline li::before { content: ""; position: absolute; left: -33px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 5px var(--oxblood); }
.timeline time { font-family: var(--display); font-size: 1.5rem; color: var(--saffron); }
.timeline p { color: var(--cream-dim); max-width: 44ch; }

/* Menu */
.menu-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 28px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.track { width: 46px; height: 26px; border-radius: 999px; background: var(--oxblood-3); border: 1px solid var(--line); position: relative; transition: background 0.2s; }
.track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--cream); transition: transform 0.2s; }
.switch input:checked + .track { background: var(--cardamom); }
.switch input:checked + .track::after { transform: translateX(20px); background: var(--oxblood); }
.switch input:focus-visible + .track { outline: 3px solid var(--saffron); outline-offset: 3px; }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--cream);
  font: 500 0.98rem/1 var(--body); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.tabs button:hover { background: rgba(242, 228, 207, 0.08); }
.tabs button[aria-selected="true"] { background: var(--cream); color: var(--oxblood); border-color: var(--cream); font-weight: 700; }

.dishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.dishes[hidden] { display: none; }
.dish { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.dish-head { display: flex; align-items: baseline; gap: 12px; }
.dish-head h3 { font-size: 1.18rem; }
.leader { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 20px; }
.price { font-weight: 700; color: var(--saffron); white-space: nowrap; }
.dish p { color: var(--cream-dim); max-width: 60ch; }
.tag { justify-self: start; font-size: 0.8rem; font-weight: 500; padding: 3px 11px; border-radius: 999px; border: 1px solid rgba(159, 191, 138, 0.5); color: var(--cardamom); }
.tag-pick { border-color: var(--saffron); color: var(--saffron); }
.dish.pick .dish-head h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: var(--saffron); }
.veg-only .dish:not([data-veg="true"]) { display: none; }
.note { margin-top: 24px; font-size: 0.92rem; color: var(--cream-dim); }

/* Form */
.card { background: var(--oxblood-2); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 38px); }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label, .label { font-weight: 700; font-size: 0.95rem; }
.opt { font-weight: 400; color: var(--cream-dim); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--oxblood);
  color: var(--cream); font: inherit; color-scheme: dark;
}
input::placeholder, textarea::placeholder { color: rgba(201, 184, 160, 0.6); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--saffron); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: #ff8a73; }
.err { color: #ff9f8c; min-height: 0; font-size: 0.88rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; width: fit-content; background: var(--oxblood); }
.stepper button { width: 46px; height: 46px; border: 0; background: transparent; color: var(--cream); font-size: 1.4rem; cursor: pointer; border-radius: 50%; }
.stepper button:hover { color: var(--saffron); }
.stepper output { min-width: 44px; text-align: center; font-weight: 700; font-size: 1.1rem; }
.done { display: grid; gap: 14px; text-align: center; }
.done h3 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; color: var(--saffron); }
.done p { color: var(--cream-dim); }
.demo-note { font-size: 0.85rem; margin-top: 8px; }

/* Visit */
.visit-grid { display: grid; gap: 36px; grid-template-columns: 1fr; margin-top: 36px; }
.visit-grid h3 { margin-bottom: 10px; color: var(--saffron); }
.hours { margin: 0; display: grid; gap: 8px; }
.hours div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.hours dt { color: var(--cream-dim); }
.hours dd { margin: 0; font-weight: 500; }
.visit-grid a { text-decoration-color: var(--saffron); text-underline-offset: 4px; }

/* Footer + float */
.site-footer { padding: 30px 0 90px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #0b2e18;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }

@media (min-width: 820px) {
  .split { grid-template-columns: 1.05fr 1fr; }
  .split-form { grid-template-columns: 1fr 1.1fr; }
  .visit-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .site-header { justify-content: space-between; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .brand span { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
