/* Restaurant concept preview. Three looks, switched by data-concept on <html>. */

:root,
html[data-concept="smokehouse"] {
  --bg: #15110e;
  --surface: #1f1915;
  --field: #29211c;
  --ink: #f2e8da;
  --muted: #b9aa97;
  --line: rgba(242, 232, 218, 0.14);
  --line-strong: rgba(242, 232, 218, 0.32);
  --accent: #e4632e;
  --accent-ink: #1a0f08;
  --ph: #d9b44a;
  --ph-ink: #e5c25c;
  --display: "Alfa Slab One", "Rockwell", Georgia, serif;
  --display-track: 0.005em;
  --hero-size: clamp(2.3rem, 6.4vw, 5.2rem);
  color-scheme: dark;
}

html[data-concept="taqueria"] {
  --bg: #fff5e6;
  --surface: #ffe6c4;
  --field: #fffaf2;
  --ink: #2b1712;
  --muted: #6b4f43;
  --line: rgba(43, 23, 18, 0.14);
  --line-strong: rgba(43, 23, 18, 0.34);
  --accent: #c81e5b;
  --accent-ink: #ffffff;
  --ph: #b8901c;
  --ph-ink: #7d5f06;
  --display: "Shrikhand", "Cooper Black", Georgia, serif;
  --display-track: 0.01em;
  --hero-size: clamp(2.3rem, 6.6vw, 5.4rem);
  color-scheme: light;
}

html[data-concept="cafe"] {
  --bg: #f5efe6;
  --surface: #e9dfd0;
  --field: #fbf8f3;
  --ink: #2a2521;
  --muted: #675d54;
  --line: rgba(42, 37, 33, 0.14);
  --line-strong: rgba(42, 37, 33, 0.32);
  --accent: #3d5a47;
  --accent-ink: #f5efe6;
  --ph: #b8901c;
  --ph-ink: #7d5f06;
  --display: "Young Serif", Georgia, serif;
  --display-track: -0.01em;
  --hero-size: clamp(2.4rem, 6.8vw, 5.6rem);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 128px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

.sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Concept-specific media: only the active look shows */
[data-for] { display: none; }
html[data-concept="smokehouse"] [data-for="smokehouse"],
html[data-concept="taqueria"] [data-for="taqueria"],
html[data-concept="cafe"] [data-for="cafe"] { display: block; }

/* Placeholders */
.ph-pill {
  display: inline-block;
  border: 1.5px dashed var(--ph);
  background: color-mix(in srgb, var(--ph) 12%, transparent);
  color: var(--ph-ink);
  border-radius: 999px;
  padding: 0.18em 0.75em;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
}
.ph-pill--light { --ph: #e9c55a; --ph-ink: #f2d27a; }

.ph-chip {
  display: inline-block;
  border: 2px dashed var(--ph);
  color: var(--ph-ink);
  font-family: var(--display);
  letter-spacing: var(--display-track);
  line-height: 1.1;
  border-radius: 6px;
}
.ph-chip--sm { font-size: 0.95rem; padding: 0.35em 0.7em; }
.ph-chip--lg { --ph: #e9c55a; --ph-ink: #f6d983; font-size: clamp(1rem, 2.2vw, 1.35rem); padding: 0.45em 0.9em; background: rgba(0, 0, 0, 0.25); }

/* Banner */
.banner { background: #12100d; color: #efe5d4; border-bottom: 1px solid rgba(233, 197, 90, 0.4); }
.banner p { margin: 0; padding: 9px 16px; text-align: center; font-size: 0.82rem; line-height: 1.45; }

/* Top bar and switcher */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s ease;
}
.topbar__row { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { text-decoration: none; flex: 0 1 auto; min-width: 0; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--muted); padding: 6px 0; }
.nav a:hover { color: var(--ink); }
.cart-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; font-size: 0.92rem; padding: 8px 14px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); white-space: nowrap;
}
.cart-count b {
  display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 0.35em;
  border-radius: 999px; background: color-mix(in srgb, var(--accent-ink) 20%, transparent); font-size: 0.8rem;
}

.switcher-bar { border-top: 1px solid var(--line); background: var(--surface); transition: background-color 0.4s ease; }
.switcher-row { display: flex; align-items: center; gap: 16px; min-height: 54px; }
.switcher-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.switcher {
  display: grid; grid-template-columns: repeat(3, auto); gap: 4px;
  padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg);
}
.switch {
  appearance: none; border: 0; cursor: pointer; background: transparent;
  padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; color: var(--muted);
  transition: background-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.switch:hover { color: var(--ink); }
.switch[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(86vh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: #0d0b09; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 6, 4, 0.86) 0%, rgba(8, 6, 4, 0.55) 48%, rgba(8, 6, 4, 0.12) 100%),
    linear-gradient(0deg, rgba(8, 6, 4, 0.75) 0%, rgba(8, 6, 4, 0) 45%);
}
.hero .hero__img {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity 0.7s ease, transform 1.2s ease;
}
html[data-concept="smokehouse"] .hero__img[data-for="smokehouse"],
html[data-concept="taqueria"] .hero__img[data-for="taqueria"],
html[data-concept="cafe"] .hero__img[data-for="cafe"] { opacity: 1; transform: scale(1); }

.hero__inner { padding: clamp(72px, 12vw, 140px) 0 clamp(40px, 6vw, 72px); }
.hero__kicker {
  margin: 0 0 18px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #f0dfc4;
}
.hero__kicker span { border-left: 3px solid var(--accent); padding-left: 10px; }
.hero__name { margin: 0 0 18px; }
.hero__title {
  margin: 0; max-width: 15ch; font-family: var(--display); font-weight: 400; font-size: var(--hero-size);
  line-height: 1.02; letter-spacing: var(--display-track); text-wrap: balance;
}
.hero__sub { margin: 18px 0 0; max-width: 46ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #efe6d8; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__loc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 26px 0 0; font-weight: 600; color: #f5ecdf; }
.hero__note { margin: 14px 0 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.62); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.85); color: #fff; background: rgba(0, 0, 0, 0.15); }
.btn--ghost:hover { background: #fff; color: #111; }
.btn--ghost-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost-dark:hover { background: var(--ink); color: var(--bg); }
.btn--block { width: 100%; }

/* Sections */
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--alt { background: var(--surface); transition: background-color 0.4s ease; }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.sec-num { margin: 0 0 6px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.16em; color: var(--accent); }
.sec-title {
  margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: var(--display-track);
  font-size: clamp(2rem, 4.8vw, 3.5rem); line-height: 1.05; text-wrap: balance;
}
.sec-lede { margin: 14px 0 0; color: var(--muted); font-size: 1.05rem; max-width: 58ch; }

/* Menu */
.dish-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 20px); margin-bottom: clamp(36px, 5vw, 64px); }
.dish { margin: 0; }
.dish img, .reserve__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

.menu-cats { border-bottom: 1px solid var(--line); }
.cat { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 32px; padding: 36px 0; border-top: 1px solid var(--line-strong); }
.cat__title { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: var(--display-track); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.1; }
.cat__count { margin: 8px 0 0; font-size: 0.85rem; color: var(--muted); }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.item { padding: 16px 0 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.item__name { margin: 0; font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.item__desc { margin: 4px 0 12px; color: var(--muted); font-size: 0.93rem; line-height: 1.45; flex: 1; }
.item__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.add {
  appearance: none; cursor: pointer; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; min-height: 36px; padding: 0 16px; font-weight: 700; font-size: 0.88rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.add:hover, .add.is-added { background: var(--ink); color: var(--bg); }

/* Order */
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.cart { border-top: 3px solid var(--ink); padding-top: 18px; }
.cart__title, .form__title { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: var(--display-track); }
.cart__list { list-style: none; margin: 0; padding: 0; }
.cart__empty { margin: 8px 0 16px; color: var(--muted); }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line__name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.line__ctrl { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; }
.qbtn {
  appearance: none; border: 0; background: transparent; cursor: pointer; width: 34px; height: 34px; border-radius: 999px;
  font-size: 1.15rem; font-weight: 700; line-height: 1;
}
.qbtn:hover { background: var(--line); }
.qty { min-width: 1.6em; text-align: center; font-weight: 700; }
.line__meta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.remove { appearance: none; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 0.85rem; text-decoration: underline; padding: 4px 0; }
.remove:hover { color: var(--ink); }
.cart__total { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 0; font-weight: 700; font-size: 1.1rem; }

.form { display: grid; gap: 16px; min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field label, .seg legend { font-size: 0.85rem; font-weight: 700; }
.opt { font-weight: 500; color: var(--muted); }
input, select, textarea {
  width: 100%; min-width: 0; max-width: 100%; min-height: 48px;
  padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--field); font-size: 16px; line-height: 1.3;
}
textarea { resize: vertical; min-height: 72px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: #d0453b; }
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; display: block; }
.form__error { margin: 0; color: #d0453b; font-weight: 600; font-size: 0.92rem; min-height: 0; }
.form__error:empty { display: none; }
html[data-concept="smokehouse"] .form__error { color: #ff8a73; }
.form__fine { margin: -4px 0 0; font-size: 0.82rem; color: var(--muted); text-align: center; }

.seg { border: 0; margin: 0; padding: 0; display: flow-root; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.seg__opt { position: relative; cursor: pointer; float: left; width: calc(50% - 4px); }
.seg__opt + .seg__opt { margin-left: 8px; }
.seg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 10px;
  border: 1px solid var(--line-strong); font-weight: 700; background: var(--field);
}
.seg__opt input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.confirm { border: 2px solid var(--accent); border-radius: 14px; padding: clamp(20px, 3vw, 32px); background: var(--bg); }
.confirm:focus { outline: none; }
.confirm__tag { margin: 0; display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.confirm__title { margin: 8px 0 10px; font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.15; }
.confirm__body { margin: 0 0 14px; color: var(--muted); }
.confirm__body strong { color: var(--ink); }

/* Reserve */
.reserve-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.sec-head--side { margin-bottom: 0; }
.reserve__photo { margin: 28px 0 0; }

/* Visit */
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 3vw, 32px); }
.info { border-top: 3px solid var(--ink); padding-top: 16px; min-width: 0; }
.info__label { margin: 0 0 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.info__value { margin: 0 0 10px; }
.info__value .ph-pill { white-space: normal; font-size: 0.86rem; }
.info__note { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.footer p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.footer__links a { font-weight: 700; color: var(--ink); }
.footer__by { font-size: 0.8rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translate(-50%, 140%);
  max-width: calc(100% - 32px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 0.92rem; transition: transform 0.3s ease; pointer-events: none; text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); }

/* Tablet */
@media (max-width: 900px) {
  .cat { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 28px 0 8px; }
  .order-grid, .reserve-grid { grid-template-columns: minmax(0, 1fr); }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reserve__photo { max-width: 560px; }
}

/* Phone */
@media (max-width: 640px) {
  .nav { display: none; }
  .topbar__row { gap: 12px; min-height: 54px; justify-content: space-between; }
  .ph-chip--sm { font-size: 0.82rem; }
  .switcher-row { min-height: 52px; }
  .switcher-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .switcher { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .switch { padding: 8px 6px; font-size: 0.86rem; }
  .switch .long { display: none; }
  html { scroll-padding-top: 116px; }

  .hero { min-height: 78vh; }
  .hero__media::after {
    background: linear-gradient(0deg, rgba(8, 6, 4, 0.9) 0%, rgba(8, 6, 4, 0.6) 55%, rgba(8, 6, 4, 0.35) 100%);
  }
  .hero__ctas .btn { flex: 1 1 0; padding: 0 12px; font-size: 0.95rem; }

  .items { gap: 0 14px; }
  .item__name { font-size: 0.98rem; }
  .item__desc { font-size: 0.85rem; }
  .item .ph-pill { font-size: 0.7rem; padding: 0.15em 0.6em; }
  .add { min-height: 34px; padding: 0 12px; font-size: 0.82rem; }

  .info-grid { gap: 20px 14px; }
  .info__value .ph-pill { font-size: 0.76rem; }
  .info__note { font-size: 0.84rem; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}
