/* Master Class Qabab — design system in CSS (layout system inherited from the approved restaurant template).
   Breakpoints: mobile < 768 (design 390) · tablet 768–1199 (design 768) · desktop ≥ 1200 (design 1440). */

:root {
  --masa: #FCEDDD;  --masa-2: #F5DACA;  --white: #FFFFFF;  --chalk: #1D1A19;
  --red: #E51F26;  --red-deep: #A5141A;  --red-mid: #C7181F;  --red-glow: #F0413F;
  --flame: #F7931E;  --cream: #FCEDDD;
  --ink: #1E1A18;  --ink-2: #6A5B53;  --on-dark: #FCEDDD;
  --line-ink: rgba(30, 26, 24, .12);  --line-cream: rgba(252, 237, 221, .28);

  --shadow-card: 0 16px 30px rgba(30, 26, 24, .10);
  --shadow-float: 0 30px 60px rgba(30, 26, 24, .28);
  --shadow-photo: 0 24px 50px rgba(30, 26, 24, .42);
  --r-card: 24px; --r-hero: 28px; --r-photo: 20px;

  --display: "Big Shoulders Display", Impact, sans-serif;
  --sans: "Figtree", system-ui, sans-serif;

  /* grid — mobile first */
  --margin: 24px; --cols: 4; --gutter: 16px;
  --section-pad: 64px; --head-gap: 28px;

  /* display scale — mobile */
  --hero-word: 116px; --h1: 44px; --h2: 36px; --price: 26px; --stat: 40px;
}
@media (min-width: 768px) {
  :root { --margin: 48px; --cols: 8; --gutter: 16px; --section-pad: 88px; --head-gap: 40px;
    --hero-word: 190px; --h1: 56px; --h2: 44px; --price: 28px; --stat: 48px; }
}
@media (min-width: 1200px) {
  :root { --margin: max(48px, calc((100vw - 1080px) / 2)); --cols: 12; --gutter: 24px; --section-pad: 120px; --head-gap: 48px;
    --hero-word: clamp(260px, 22.2vw, 340px); --h1: 72px; --h2: 52px; --price: 30px; --stat: 56px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--masa); color: var(--ink); font: 400 15px/22px var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- text styles ---------- */
.t-hero { font: 900 var(--hero-word)/0.94 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.t-h1 { font: 900 var(--h1)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.t-h2 { font: 900 var(--h2)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.t-price { font: 800 var(--price)/1.07 var(--display); text-transform: uppercase; white-space: nowrap; }
.t-stat { font: 900 var(--stat)/1 var(--display); }
.t-item { font: 800 20px/24px var(--sans); letter-spacing: .03em; text-transform: uppercase; }
.t-card { font: 800 20px/24px var(--sans); }
.t-row { font: 800 17px/22px var(--sans); }
.t-body-l { font: 400 17px/28px var(--sans); }
.t-body { font: 400 15px/22px var(--sans); }
.t-caption { font: 500 14px/20px var(--sans); }
.t-label { font: 700 12px/16px var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.t-nav { font: 700 13px/16px var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.t-small { font: 500 12px/16px var(--sans); }
@media (max-width: 767px) { .t-item { font-size: 16px; line-height: 20px; } }
.c-ink2 { color: var(--ink-2); } .c-red { color: var(--red); } .c-flame { color: var(--flame); } .c-cream { color: var(--cream); } .c-white { color: #fff; }
.center { text-align: center; }

/* ---------- layout ---------- */
.container { padding-inline: var(--margin); width: 100%; }
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); }
.section { position: relative; padding-block: var(--section-pad); }
.bg-masa { background: var(--masa); } .bg-masa2 { background: var(--masa-2); } .bg-chalk { background: var(--chalk); color: var(--on-dark); }
.bg-deep { background: var(--red-deep); color: var(--cream); } .bg-red { background: var(--red); color: var(--cream); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- heading ---------- */
.heading { display: flex; flex-direction: column; gap: 10px; }
.heading .t-label { color: var(--red); }
.heading--center { align-items: center; text-align: center; }
.on-dark .heading .t-label, .bg-chalk .heading .t-label { color: var(--flame); }
.bg-deep .heading .t-label, .bg-red .heading .t-label { color: var(--cream); opacity: .85; }
@media (max-width: 767px) { .heading { gap: 6px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 800 13px/16px var(--sans); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transition: transform .15s ease, background .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; } .btn--red:hover { background: var(--red-deep); }
.btn--cream { background: var(--cream); color: var(--red); } .btn--cream:hover { background: #fff; }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--outline-light { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--cream); }
.btn--outline-light:hover { background: rgba(252,237,221,.12); }
.btn--block { width: 100%; }
@media (max-width: 767px) { .btn--block-m { width: 100%; } }
.plus { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; border: 0; display: grid; place-items: center; font: 700 24px/1 var(--sans); cursor: pointer; transition: background .2s, transform .15s; }
.plus:hover { background: var(--red-deep); transform: scale(1.06); }

/* ---------- chips ---------- */
.chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-ink); cursor: pointer;
  font: 700 13px/16px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); transition: background .2s, color .2s, box-shadow .2s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip.is-active, .chip[aria-selected="true"] { background: var(--red); color: #fff; box-shadow: none; }
@media (max-width: 767px) { .chips--bleed { margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); } }

/* ---------- ticker band (filled by layout.js) + brand strips ---------- */
.ticker { position: relative; height: 44px; overflow: hidden; pointer-events: none; color: var(--cream);
  border-block: 1.5px solid rgba(252, 237, 221, .55); display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker__track { display: flex; flex: none; width: max-content; animation: ticker 48s linear infinite; }
.ticker__item { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap;
  font: 900 21px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.ticker__item svg { flex: none; width: 13px; height: 13px; fill: currentColor; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }
/* thin brand line */
.redline { height: 4px; background: var(--red); }
/* wrapping-paper strip: white with small red dots (like the take-away paper) */
.paper { height: 12px; background-color: #fff;
  background-image: radial-gradient(circle, var(--red) 1.6px, transparent 2.1px); background-size: 14px 12px; background-position: 7px 6px; }
/* logo on dark / red surfaces sits on a cream plate so the black script stays readable */
.logo-plate { display: inline-block; background: var(--masa); border-radius: 18px; padding: 8px 12px; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 20; background: var(--masa); height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.site-header__logo img { width: 84px; height: auto; }
.site-header__left, .site-header__right { display: none; }
.site-header__compact { display: flex; align-items: center; gap: 8px; margin-right: -10px; }
.site-header__compact .btn { min-height: 38px; padding: 11px 18px; }
.burger { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; display: grid; place-content: center; gap: 5px; }
.burger span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--ink); }
.site-header a[aria-current="page"] { color: var(--red); }
@media (min-width: 768px) { .site-header { padding: 0 48px; } }
@media (min-width: 1200px) {
  .site-header { height: 96px; padding: 0 48px; display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-header__left, .site-header__right { display: flex; align-items: center; gap: 40px; }
  .site-header__right { justify-content: flex-end; }
  .site-header__logo { justify-self: center; } .site-header__logo img { width: 124px; filter: drop-shadow(0 8px 16px rgba(30,26,24,.10)); }
  .site-header__compact { display: none; }
  .site-header__left a:hover, .site-header__right a:not(.btn):hover { color: var(--red); }
}

/* ---------- overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: var(--red); color: var(--cream); display: flex; flex-direction: column; padding: 0 24px 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.overlay.is-open { opacity: 1; visibility: visible; }
.overlay__top { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.overlay__top img { width: 76px; }
.overlay__top .logo-plate { padding: 5px 8px; border-radius: 12px; }
.overlay__close { width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.overlay .ticker { margin-inline: -24px; }
.overlay__links { margin-top: 56px; display: flex; flex-direction: column; gap: 12px; }
.overlay__links a { font: 900 64px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.overlay__bottom { margin-top: auto; padding-top: 40px; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 768px) { .overlay { padding: 0 48px 64px; } .overlay .ticker { margin-inline: -48px; } .overlay__links a { font-size: 88px; } }
body.no-scroll { overflow: hidden; }

/* ---------- dish photo (studio, bg = masa) ---------- */
.dish-img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; -webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent 100%); mask-image: radial-gradient(closest-side, #000 86%, transparent 100%); }

/* ---------- category item ---------- */
.cat { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.cat .dish-img { width: 83%; transition: transform .35s ease; }
.cat:hover .dish-img { transform: translateY(-6px) rotate(-3deg) scale(1.03); }
.cat .t-caption { color: var(--ink-2); margin-top: -6px; }

/* ---------- dish card ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--masa); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 6px 24px 20px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.card .dish-img { width: 80%; margin: 0 auto; }
.card__name { margin-top: 8px; }
.card__meta { color: var(--ink-2); margin-top: 4px; }
.card__foot { margin-top: auto; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- menu row ---------- */
.row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-ink); }
.row__img { flex: none; width: 84px; height: 84px; border-radius: 16px; object-fit: cover; }
.row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row__text .t-body, .row__text .t-small { color: var(--ink-2); }
.row .plus { width: 36px; height: 36px; font-size: 20px; }
@media (max-width: 767px) { .row__img { width: 64px; height: 64px; } .row .t-price { font-size: 22px; } }

/* ---------- info rows (on red) ---------- */
.info-row { padding: 16px 0 12px; border-top: 1px solid var(--line-cream); display: flex; flex-direction: column; gap: 6px; }
.info-row .t-label { color: var(--on-dark); opacity: .8; }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font: 700 12px/16px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea { min-height: 52px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-ink); background: #fff; font: 400 15px/22px var(--sans); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,31,38,.15); }
.field textarea { resize: vertical; min-height: 52px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- map pin ---------- */
.pin { position: absolute; display: flex; align-items: center; gap: 0; transform: translate(-45px, -45px); }
.pin__dot { position: relative; width: 90px; height: 90px; border-radius: 50%; background: rgba(229,31,38,.18); display: grid; place-items: center; }
.pin__dot::after { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px #fff; }
.pin__dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(229,31,38,.25); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.pin__tag { margin-left: -14px; background: #fff; border-radius: 14px; padding: 10px 16px; box-shadow: var(--shadow-card); white-space: nowrap; }
.pin__tag .t-small { color: var(--ink-2); }

/* ---------- photo ---------- */
.photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-photo); box-shadow: var(--shadow-photo); }

/* ---------- footer ---------- */
.site-footer { background: var(--chalk); color: var(--on-dark); }
.site-footer__in { padding-block: 64px 40px; display: grid; gap: 32px; }
.site-footer__logo { justify-self: start; } .site-footer__logo.logo-plate { padding: 12px 16px; border-radius: 20px; }
.site-footer__logo img { width: 150px; }
@media (max-width: 767px) { .site-footer__info { order: 2; } .site-footer__links { order: 3; } .site-footer__bottom { order: 4; } }
.site-footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.site-footer__links a:hover { color: var(--flame); }
.site-footer__info { line-height: 26px; white-space: nowrap; }
.site-footer__bottom { border-top: 1px solid var(--line-cream); padding-top: 22px; display: flex; flex-direction: column; gap: 6px; opacity: .7; }
@media (min-width: 768px) {
  .site-footer__in { grid-template-columns: 260px 1fr; }
  .site-footer__logo img { width: 190px; }
  .site-footer__links { grid-template-columns: 170px 170px; align-content: start; }
  .site-footer__info { grid-column: 1 / -1; }
  .site-footer__bottom { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1200px) {
  .site-footer__in { grid-template-columns: 400px 1fr auto; padding-block: 80px 40px; }
  .site-footer__links { grid-template-columns: 200px 200px; }
  .site-footer__info { grid-column: auto; }
  .site-footer__bottom { margin-top: 90px; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .pin__dot::before { animation: none; } }
