/* Canton Chilli - modular restaurant site
   Palette: red / white / black */

:root {
  --red: #b20016;
  --red-deep: #8a0011;
  --red-soft: #f7ecee;
  --black: #111111;
  --ink: #111111;
  --muted: #3a3a3a;
  --line: #dcdcdc;
  --white: #ffffff;
  --paper: #f7f7f7;
  --gold: #b8922a;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", "Noto Serif SC", "Times New Roman", serif;
  --font-body: "Manrope", "Noto Sans Arabic", "Noto Sans Devanagari", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

#showcase,
#menu,
#visit {
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: visible;
}

.page-shell {
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}

.header-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--red);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000000;
  white-space: nowrap;
}

.brand__zh {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.16em;
  margin-top: 0.15rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-links > a:not(.nav-cta):not(.nav-social) {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s;
}

.nav-links > a:not(.nav-cta):not(.nav-social):hover {
  color: var(--red);
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-social {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--black);
  border: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-social:hover {
  color: var(--red);
  border-color: var(--red);
}

.nav-social svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
}

.lang-switch select {
  min-height: 40px;
  max-width: 148px;
  padding: 0.4rem 0.55rem;
  border: 2px solid var(--red);
  background: var(--white);
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(178, 0, 22, 0.12);
}

.lang-switch select:focus {
  outline: none;
  border-color: var(--red-deep);
  box-shadow: 0 0 0 3px rgba(178, 0, 22, 0.18);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.95rem;
  background: var(--red);
  color: var(--white) !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--red-deep);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  padding: 0;
  place-items: center;
  flex-shrink: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2.5px;
  background: #000000;
  border-radius: 1px;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2.5px;
  background: #000000;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

/* Hero — mobile first */
.hero {
  position: relative;
  min-height: min(78vh, 620px);
  display: grid;
  place-items: end stretch;
  color: var(--white);
  overflow: hidden;
  background: var(--black);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: none;
  animation: heroZoom 1.2s var(--ease) both;
}

@keyframes heroZoom {
  from {
    transform: scale(1.04);
    opacity: 0.7;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.hero__panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Mobile: red band on top, photo below */
  background: linear-gradient(
    165deg,
    var(--red) 0%,
    var(--red) 54%,
    rgba(17, 17, 17, 0.28) 54.12%,
    rgba(17, 17, 17, 0.1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 2.4rem 0 2.6rem;
  justify-self: center;
  align-self: start;
  animation: heroRise 0.85s var(--ease) 0.08s both;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*
  Shared left rail for every language:
  one column, no letter-spacing on eyebrow (tracking makes small caps look inset),
  same display face as the title so first-glyph sidebearings match.
*/
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 21.5rem);
  margin: 0;
  padding: 0;
  text-align: left;
}

.hero__copy > * {
  display: block;
  margin-block: 0;
  margin-inline: 0;
  padding-inline: 0;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.hero__eyebrow {
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 8.2vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white);
}

.hero__subhead {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.1em;
  margin-top: 0.95rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.6vw, 1.3rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.96);
}

.hero__subhead span {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero__desc {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.88);
}

.hero__cta-wrap {
  margin-top: 1.5rem;
  width: auto;
  align-self: flex-start;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.hero__cta:hover {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}

@media (min-width: 761px) {
  .hero {
    min-height: min(72vh, 640px);
    place-items: center start;
  }

  .hero__media img {
    object-position: 68% center;
  }

  .hero__panel {
    background: linear-gradient(
      115deg,
      var(--red) 0%,
      var(--red) 46%,
      rgba(17, 17, 17, 0.22) 46.12%,
      rgba(17, 17, 17, 0.08) 100%
    );
  }

  .hero__content {
    width: min(1120px, calc(100% - 2rem));
    padding: 3.5rem 0 4rem;
    justify-self: center;
    align-self: center;
  }

  .hero__copy {
    width: min(100%, 22.5rem);
  }

  .hero__title {
    font-size: clamp(2.35rem, 4.8vw, 3.85rem);
    line-height: 1.05;
  }

  .hero__subhead {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
  }

  .hero__desc {
    font-size: 0.98rem;
  }

  .hero__cta {
    min-height: 46px;
  }
}

/* Section heads */
.section-head {
  margin-bottom: 1.75rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.75);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
}

/* Showcase */
.showcase {
  padding: 4rem 0 3.5rem;
  background: var(--white);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.showcase-card__media {
  display: block;
  overflow: hidden;
  background: var(--black);
  aspect-ratio: 4 / 3;
}

.showcase-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.showcase-card:hover .showcase-card__media img {
  transform: scale(1.04);
}

.showcase-card__meta {
  padding: 0.9rem 0 0.2rem;
}

.showcase-card__code {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 0.25rem;
}

.showcase-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}

.showcase-card__price {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
}

/* Editorial strip */
.editorial {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  min-height: 420px;
  background: var(--black);
  color: var(--white);
}

.editorial__media {
  min-height: 280px;
  overflow: hidden;
}

.editorial__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
}

.editorial__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
}

.editorial__text {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 32ch;
  font-size: 1rem;
}

/* Menu */
.menu-section {
  padding: 4rem 0 4.5rem;
  background: var(--white);
}

.menu-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
}

.menu-search {
  position: relative;
  width: min(320px, 100%);
}

.menu-search input {
  width: 100%;
  height: 48px;
  padding: 0 1rem 0 2.55rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--black);
  outline: none;
}

.menu-search input:focus {
  border-color: var(--red);
}

.menu-search input::placeholder {
  color: #666;
}

.menu-search svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.menu-cats {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  margin: 0 0 1.75rem;
}

.menu-cats__rail {
  width: min(1120px, calc(100% - 1rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: stretch;
  gap: 0.15rem;
  padding: 0.35rem 0 0.55rem;
}

.menu-cats__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--red);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.menu-cats__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-cats__arrow:hover:not(:disabled) {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.menu-cats__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.menu-cats__scroller {
  display: flex;
  gap: 0.2rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0.25rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.menu-cats__scroller::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cat-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0.7rem 0.85rem;
  min-height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}

.cat-btn__en {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cat-btn:hover,
.cat-btn.is-active {
  color: var(--red);
}

.menu-block {
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 72px);
}

.menu-block:last-child {
  border-bottom: none;
}

.menu-block__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--black);
}

.menu-block__note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  display: grid;
  grid-template-columns: 3.1rem 1fr auto;
  gap: 0.7rem 0.85rem;
  align-items: start;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.menu-item:first-child {
  border-top: none;
}

.menu-item--simple {
  grid-template-columns: 1fr auto;
}

.menu-item__code {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--red);
  padding-top: 0.12rem;
}

.menu-item__name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--black);
}

.menu-item__price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
}

.menu-item__price--label {
  font-weight: 500;
  font-style: italic;
  color: var(--muted);
}

.menu-item__sizes {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.2rem 0.75rem;
  justify-content: end;
  font-size: 0.8rem;
  color: var(--black);
  text-align: right;
}

.menu-item__sizes em {
  font-style: normal;
  color: var(--muted);
  margin-right: 0.2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.menu-empty {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--muted);
}

.family-packages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.family-pkg {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 0.55rem;
  background: var(--paper);
  border-top: 2px solid var(--red);
  text-align: center;
}

.family-pkg__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.family-pkg__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black);
}

.family-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.family-meta h4,
.family-entrees-title,
.drink-group__title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.family-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.family-entrees {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.3rem 1.25rem;
}

.family-entrees li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.family-entrees li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  background: var(--red);
}

.drink-group {
  margin-bottom: 1.25rem;
}

/* Visit */
.visit {
  padding: 4.5rem 0;
  background: var(--black);
  color: var(--white);
}

.visit .eyebrow {
  color: var(--gold);
}

.visit .section-title {
  color: var(--white);
}

.visit__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: start;
}

.visit__lead {
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36ch;
}

.contact-cards {
  display: grid;
  gap: 0;
  margin-top: 1.75rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.7rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-row:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-row dt {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-row dd {
  margin: 0;
  font-size: 1rem;
  color: var(--white);
}

.contact-row a:hover {
  color: var(--gold);
}

.contact-row--hours {
  align-items: start;
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.hours-list li {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7rem) 1fr;
  gap: 0.65rem;
  font-size: 0.95rem;
}

.hours-day {
  color: rgba(255, 255, 255, 0.78);
}

.hours-time {
  color: var(--white);
  font-weight: 600;
}

.hours-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.visit__map {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.visit__map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #222;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.visit__map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(20%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--directions {
  width: 100%;
  background: var(--red);
  color: var(--white);
}

.btn--directions:hover {
  background: var(--red-deep);
}

/* Footer */
.site-footer {
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.6);
  padding: 1.35rem 0;
  font-size: 0.84rem;
}

.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
}

.site-footer strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 980px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .editorial {
    grid-template-columns: 1fr;
  }

  .editorial__media {
    min-height: 240px;
    aspect-ratio: 16 / 9;
  }

  .visit__grid {
    grid-template-columns: 1fr;
  }

  .family-packages {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1rem 1.1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav-links.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links > a:not(.nav-cta):not(.nav-social) {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    min-height: 44px;
  }

  .nav-socials {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .lang-switch {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .lang-switch select {
    width: 100%;
    max-width: none;
    min-height: 48px;
    border-width: 2px;
    border-color: var(--red);
    font-size: 0.9rem;
  }

  .cat-btn {
    padding: 0.75rem 0.9rem;
  }

  .cat-btn__en {
    font-size: 0.72rem;
  }

  .menu-item__name {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .nav-cta {
    margin-top: 0.75rem;
    width: 100%;
  }

  .hours-list li {
    grid-template-columns: minmax(5rem, 6.5rem) 1fr;
  }

  .showcase {
    padding: 3rem 0;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .menu-item {
    grid-template-columns: 2.5rem 1fr;
  }

  .menu-item__price,
  .menu-item__sizes {
    grid-column: 2;
    justify-content: start;
    text-align: left;
  }

  .menu-item--simple {
    grid-template-columns: 1fr auto;
  }

  .menu-item--simple .menu-item__price {
    grid-column: auto;
  }

  .family-packages {
    grid-template-columns: repeat(2, 1fr);
  }

  .family-meta,
  .family-entrees {
    grid-template-columns: 1fr;
  }

  .editorial__copy {
    padding: 2rem 1.25rem 2.25rem;
  }

  .visit {
    padding: 3.25rem 0;
  }

  .contact-row {
    grid-template-columns: 4.75rem 1fr;
  }
}

@media (max-width: 400px) {
  .container,
  .header-inner,
  .menu-cats__rail,
  .footer-inner,
  .hero__content {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .menu-cats__rail {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    width: min(1120px, calc(100% - 0.75rem));
  }

  .menu-cats__arrow {
    width: 40px;
    min-height: 44px;
  }

  .scroll-fab {
    right: max(0.5rem, env(safe-area-inset-right, 0px));
    bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  }


  .brand__name {
    font-size: 1.1rem;
  }

  .brand__zh {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__content,
  .hero__media img,
  .reveal,
  .showcase-card__media img {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Scroll jump FABs — outside .page-shell so overflow clip cannot hide them */
.scroll-fab {
  position: fixed;
  z-index: 9999;
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  left: auto;
  top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 44px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  box-sizing: border-box;
}

.scroll-fab__btn {
  pointer-events: auto;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.24);
  cursor: pointer;
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease);
}

.scroll-fab__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-fab__btn:hover {
  background: var(--red-deep);
}

.scroll-fab__btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.scroll-fab__btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

@media (min-width: 761px) {
  .scroll-fab {
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: max(1.15rem, env(safe-area-inset-bottom, 0px));
    width: 52px;
  }

  .scroll-fab__btn {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    max-width: 52px;
  }

  .scroll-fab__btn svg {
    width: 24px;
    height: 24px;
  }

  .menu-cats__rail {
    width: min(1120px, calc(100% - 2rem));
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 0.35rem;
  }

  .menu-cats__arrow {
    width: 48px;
  }
}
