/* Lẩu Tiến Béo: layout as before (header with hotline and links, hero, product cards, branch card,
   news tabs, popup booking, cart bar, footer). Background is a deep brown, text stays light for contrast. */
:root {
  --bg: #8f1f27;
  --surface: #a52c34;
  --header: #6e161d;
  --fg: #fffaf5;
  --muted: #f5d2ca;
  --accent: #ffc247;
  --accent-ink: #5c1016;
  --red: #c8102e;
  --gold: #ffc247;
  --line: rgba(255, 244, 234, .2);
  --display: "Playfair Display", "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
  --body: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body);
  font-size: 16px; line-height: 1.6; overflow-x: hidden;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; text-wrap: balance; margin: 0; }
p { margin: 0; max-width: 65ch; }
.wrap { max-width: 1120px; margin: 0 auto; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.muted { color: var(--muted); }
.note { margin-top: 18px; color: var(--muted); font-size: 14px; }
section { padding-block: clamp(44px, 7vw, 84px); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.head { display: grid; gap: 10px; margin-bottom: 24px; }
.head h2, section h2 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; }
.section-foot { margin-top: 26px; display: flex; justify-content: center; }

/* Buttons and pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; border: 1.5px solid var(--gold);
  background: transparent; color: var(--gold); cursor: pointer;
}
.btn.solid, .submit, .add-btn { background: var(--gold); color: var(--accent-ink); border-color: var(--gold); }
.btn.light { color: var(--fg); border-color: var(--fg); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: #2e7d4f; color: #fff; }
.pill.closed { background: var(--muted); color: var(--accent-ink); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--header); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 19px; margin-right: auto; }
.brand img { border-radius: 50%; background: #fff; }
.brand em { font-style: normal; color: var(--gold); }
.hotline-box { display: grid; line-height: 1.1; }
.hotline-box small { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.hotline { color: var(--gold); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
#site-nav { display: flex; gap: 18px; }
#site-nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--fg); }
#site-nav a:hover { color: var(--gold); }
.nav-toggle {
  display: none; min-height: 40px; min-width: 40px; border: 1px solid var(--line); border-radius: 999px;
  background: none; color: var(--fg); font: inherit; font-size: 14px; padding: 0 14px; cursor: pointer;
}
@media (max-width: 900px) { .hotline-box { display: none; } }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  #site-nav { display: none; width: 100%; flex-direction: column; gap: 0; }
  #site-nav.open { display: flex; }
  #site-nav a { padding: 12px 0; font-size: 16px; border-top: 1px solid var(--line); }
}

/* Hero */
.hero { position: relative; border-top: 0; padding: 0; min-height: 440px; display: flex; align-items: center; color: var(--fg); overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(20, 8, 6, .85), rgba(20, 8, 6, .35)), url("/images/thit-bo-tha-lau-scaled.jpg") center top / cover no-repeat;
  transform: scale(1.18); transform-origin: center top; /* crops the text band at the bottom of the source photo */
}
.hero-copy { position: relative; z-index: 1; padding-block: 70px; }
.hero h1 { font-size: clamp(40px, 8vw, 76px); font-weight: 800; letter-spacing: -.02em; margin-top: 10px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lede { margin-top: 16px; font-size: clamp(17px, 2vw, 20px); color: var(--text, #fbe9e2); max-width: 560px; }
.status-line { margin-top: 20px; font-size: 15px; color: var(--text, #fbe9e2); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Menu page: banner, category bar, product cards */
.menu-page { padding-top: 0; border-top: 0; }
.menu-banner { background: var(--header); padding-block: clamp(32px, 6vw, 56px) clamp(24px, 4vw, 36px); color: var(--fg); }
.menu-banner h2 { font-size: clamp(40px, 7vw, 68px); font-weight: 800; color: var(--gold); letter-spacing: -.01em; }
.menu-banner p { margin-top: 12px; font-size: clamp(16px, 2vw, 18px); color: var(--muted); max-width: 620px; }
.menu-tabs {
  position: sticky; top: 64px; z-index: 15; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  background: var(--header); border-top: 1px solid var(--line); padding: 0 max(16px, env(safe-area-inset-left, 0px));
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs button {
  flex: 0 0 auto; background: none; border: 0; border-bottom: 4px solid transparent; color: var(--fg);
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .02em; padding: 16px 14px 13px; cursor: pointer;
}
.menu-tabs button[aria-pressed="true"] { border-bottom-color: var(--gold); color: var(--gold); font-weight: 800; }
.menu-body { padding-block: 40px 56px; }
@media (max-width: 760px) { .menu-tabs { top: 56px; } }

/* Menu groups */
.menu-group + .menu-group { margin-top: 44px; }
.group-title { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: inline-block; }
.menu { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .menu { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .menu { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.dish {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; min-width: 0; border-top: 4px solid var(--gold);
}
.dish .photo { aspect-ratio: 4 / 3; background: var(--bg); }
.dish .photo img { width: 100%; height: 100%; object-fit: cover; }
.dish .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dish .tag { align-self: flex-start; background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.dish h3 { font-size: 19px; font-weight: 700; }
.dish .desc { color: var(--muted); font-size: 14px; }
.dish .meta { margin-top: auto; display: grid; gap: 10px; padding-top: 10px; }
.price { font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.order-control { display: flex; gap: 8px; align-items: center; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { min-width: 36px; min-height: 36px; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 18px; cursor: pointer; }
.stepper output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.add-btn { flex: 1; min-height: 36px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }

/* COMBO tab: every combo poster in a grid */
.combo-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .combo-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .combo-grid { grid-template-columns: 1fr 1fr 1fr; } }
.combo-item { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; cursor: pointer; transition: transform .2s ease; }
.combo-item:hover { transform: translateY(-2px); }
.combo-item img { width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; object-fit: cover; }
.combo-item figcaption { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.combo-item figcaption strong { font-family: var(--display); font-size: 17px; color: var(--gold); }
.combo-item figcaption span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Combo slider on the home page */
.slider { max-width: 1000px; margin: 0 auto; }
.slides { position: relative; overflow: hidden; }
.track { display: flex; gap: 12px; transition: transform .6s ease; will-change: transform; }
.track figure { flex: 0 0 calc((100% - 36px) / 4); margin: 0; min-width: 0; }
.track img { width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
@media (prefers-reduced-motion: reduce) { .track { transition: none; } }
@media (max-width: 600px) { .track figure { flex-basis: calc((100% - 12px) / 2) !important; } }
.slide-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-top: 14px; max-width: none; }
.slide-caption strong { font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--gold); }
.slide-caption span { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.slider-nav button {
  width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--gold); background: transparent;
  color: var(--gold); font: inherit; font-size: 24px; line-height: 1; cursor: pointer;
}
.slider-nav span { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }

/* Branch card */
.branch-card { display: grid; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (min-width: 760px) { .branch-card { grid-template-columns: 1fr 1fr; } }
.branch-photo { aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden; }
/* The source photo has a text band at the bottom; crop it out. */
.branch-photo img { width: 100%; height: 118%; object-fit: cover; object-position: center top; }
.branch-body { padding: 20px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.branch-body > * { min-width: 0; overflow-wrap: anywhere; }
.branch-body .pill { justify-self: start; }
.branch-body h3 { font-size: clamp(22px, 6vw, 26px); font-weight: 800; line-height: 1.2; }

/* About */
.about { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .about { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.about h2 { margin: 10px 0 14px; font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.facts strong { font-family: var(--display); font-size: 26px; color: var(--gold); }
.facts span { color: var(--muted); font-size: 14px; text-align: right; }

/* News cards and tabs */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 8px; min-width: 0; align-content: start; border-top: 4px solid var(--gold); }
.card time { font-size: 13px; color: var(--muted); }
.card h3 { font-size: 20px; font-weight: 700; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: none; }
.tabs button {
  flex: 0 0 auto; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--gold);
  background: transparent; color: var(--gold); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--gold); color: var(--accent-ink); }

/* Booking and takeout forms */
.book { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .book { grid-template-columns: .85fr 1.15fr; } }
form { display: grid; gap: 14px; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
@media (min-width: 560px) { form { grid-template-columns: 1fr 1fr; } form .full { grid-column: 1 / -1; } }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); min-width: 0; }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; min-height: 46px; padding: 10px 14px; width: 100%; min-width: 0;
}
textarea { min-height: 76px; resize: vertical; }
.submit { min-height: 50px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.msg { font-size: 14px; min-height: 1.4em; }
.msg.error { color: #ffb4a8; }
.msg.ok { color: #9be3b0; }
.two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.hours { display: grid; gap: 10px; margin-top: 20px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; font-variant-numeric: tabular-nums; }

/* Booking popup */
dialog {
  width: min(520px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 18px;
  padding: 0; background: var(--surface); color: var(--fg); box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
dialog::backdrop { background: rgba(20, 8, 4, .6); }
#booking { display: grid; gap: 12px; padding: 22px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.dialog-head h2 { font-size: 28px; font-weight: 800; }
.close { border: 0; background: none; color: var(--fg); font-size: 28px; cursor: pointer; line-height: 1; }

/* Combo detail popup */
.combo-dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 0; position: fixed; }
.combo-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 999px; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.combo-dialog-photo { width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; object-fit: cover; }
.combo-dialog-info { padding: 18px 20px 22px; display: grid; gap: 10px; }
.combo-dialog-info h2 { font-size: 28px; font-weight: 800; color: var(--gold); }
.combo-meta { color: var(--muted); }
.combo-price { color: var(--gold); font-variant-numeric: tabular-nums; }
.combo-qty { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.combo-qty .add-btn { flex: 1; min-height: 44px; font-size: 15px; }
.combo-dialog-info h3 { font-size: 18px; font-weight: 700; margin-top: 6px; }
.combo-dishes { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--fg); }
.combo-note { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Cart bar and takeout drawer */
.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 25;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--header); color: var(--fg); border: 1px solid var(--line); border-radius: 16px; font: inherit; cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.cart-bar[hidden] { display: none; }
.cart-bar strong { color: var(--gold); }
.cart-bar .cart-go { font-weight: 700; }
.order-drawer {
  position: fixed; right: 12px; bottom: 84px; left: 12px; max-width: 400px; margin-left: auto; z-index: 30;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, .4); display: grid; gap: 12px; max-height: 70vh; overflow: auto;
}
.order-drawer[hidden] { display: none; }
.order-drawer form { display: grid; gap: 10px; padding: 0; background: none; border: 0; }
.order-head { display: flex; justify-content: space-between; align-items: center; }
.order-head button { border: 0; background: none; color: var(--fg); font-size: 24px; cursor: pointer; }
#order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#order-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.order-total { font-size: 15px; }

/* Footer */
footer { background: var(--header); color: var(--muted); padding-top: 36px; font-size: 14px; border-top: 1px solid var(--line); }
footer a { color: var(--fg); }
.foot { display: grid; gap: 20px; grid-template-columns: 1fr; padding-bottom: 24px; }
@media (min-width: 760px) { .foot { grid-template-columns: 2fr 1fr; align-items: end; } }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px 22px; align-content: start; }
.foot-links a { text-decoration: none; font-weight: 600; font-size: 15px; }
.foot-contact { display: grid; gap: 6px; }
.foot-contact small { color: var(--muted); display: inline-block; min-width: 64px; }
.foot-contact button { min-height: 36px; border-radius: 999px; border: 1px solid var(--gold); background: transparent; color: var(--gold); font: inherit; font-size: 13px; padding: 0 14px; cursor: pointer; justify-self: start; margin-top: 4px; }
.copy { text-align: center; padding-block: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
