/* =========================================================
   SISTA DUMPLING — CONCEPT E (MIMI-LIKE LAYOUT REVISION)
   Structure inspired by benchmark; all Sista brand content.
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Bild Poster";
  src: url("../assets/fonts/bild-poster-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bild Poster";
  src: url("../assets/fonts/bild-poster-semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../assets/fonts/inter-tight-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --cream: #f1efe2;
  --ink: #000000;
  --burgundy: #591414;
  --red: #f73e19;
  --pink: #f891da;
  --green: #003828;
  --yellow: #ffbb33;
  --lilac: #ab8df5;
  --blue: #9ec3f1;
  --olive: #7e6707;

  --muted: rgba(0, 0, 0, 0.6);
  --hairline: rgba(0, 0, 0, 0.14);

  --font-display: "Bild Poster", "Arial Narrow", Impact, sans-serif;
  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;

  --header-h: 66px;
  --wrap: 1280px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --radius: 2px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-open {
  overflow: hidden;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  padding: 0;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--muted);
}
.eyebrow--red {
  color: var(--red);
}
.eyebrow--green {
  color: var(--green);
}
.eyebrow--pink {
  color: var(--pink);
}

/* Left-aligned editorial chapter headings (benchmark rhythm) */
.chapter {
  max-width: 46rem;
  margin-inline: 0;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  text-align: left;
}
.chapter__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
}
.chapter__title--left {
  text-align: left;
}
.chapter__blurb {
  margin-top: 1rem;
  margin-inline: 0;
  max-width: 40rem;
  color: var(--muted);
}
.chapter__blurb + .chapter__blurb {
  margin-top: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.72em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn--solid {
  background: var(--red);
  color: var(--ink);
}
.btn--solid:hover {
  background: #d6310f;
}
.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn--cream {
  background: var(--cream);
  color: var(--ink);
}
.btn--cream:hover {
  background: var(--yellow);
}
.btn--sm {
  min-height: 40px;
  padding: 0.55em 1.05em;
  font-size: 0.68rem;
}
.btn--lg {
  min-height: 54px;
  padding: 0.9em 2.1em;
  font-size: 0.8rem;
}
.btn--block {
  width: 100%;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand img {
  width: 132px;
  height: auto;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.site-nav__link:hover {
  color: var(--red);
}
.site-nav__reserve {
  margin-left: 0.25rem;
}

/* mobile toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  position: relative;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle__bars {
  top: 50%;
  margin-top: -1px;
}
.nav-toggle__bars::before {
  content: "";
  top: -6px;
}
.nav-toggle__bars::after {
  content: "";
  top: 6px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateX(-50%) translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateX(-50%) translateY(-6px) rotate(-45deg);
}

/* full-screen mobile nav overlay (benchmark interaction) */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  background: var(--cream);
  visibility: hidden;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
}
.nav-overlay.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}
.nav-overlay__list {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  max-width: 26rem;
  margin-bottom: 1.75rem;
  text-align: center;
}
.nav-overlay__list a {
  display: block;
  padding: 0.7rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 8vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--hairline);
}
.nav-overlay__list a:hover {
  color: var(--red);
}

/* ---------- HERO ---------- */
.hero {
  padding-top: var(--header-h);
}
.hero__stage {
  position: relative;
}
.hero__split {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  height: 84svh;
  min-height: 520px;
  overflow: hidden;
}
.hero__pane {
  position: relative;
  overflow: hidden;
}
.hero__pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: clamp(150px, 40vw, 300px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero__logo img {
  width: 100%;
  filter: drop-shadow(0 4px 26px rgba(0, 0, 0, 0.45));
}
.hero__intro {
  text-align: center;
  padding-block: clamp(2.5rem, 6vw, 5rem) var(--section);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.015em;
  margin-top: 0.75rem;
  text-wrap: balance;
}
.hero__sub {
  margin: 1.25rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- MENUS ---------- */
.menus {
  border-top: 1px solid var(--hairline);
}
.menus__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.menus__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.4em;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1;
  letter-spacing: 0.01em;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.menus__link:hover {
  background: var(--ink);
  color: var(--cream);
}
.menus__link-note {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.menus__link:hover .menus__link-note {
  color: var(--cream);
}
.menus__photo {
  max-width: 520px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius);
}
.menus__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.menus__signature {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}
.menus__signature-desc {
  color: var(--muted);
}
.tag-best {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35em 0.7em;
  border-radius: var(--radius);
}
.dish-run {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 2;
  text-align: center;
}

/* ---------- STORY (restrained integration) ---------- */
.story {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.story__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.story__media {
  max-width: 420px;
  margin-inline: auto;
}
.story__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.story__title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}
.story__body {
  margin-top: 1.25rem;
  max-width: 46ch;
  display: grid;
  gap: 1rem;
  color: rgba(0, 0, 0, 0.78);
  font-size: 0.98rem;
}

/* ---------- GROUPS & EVENTS ---------- */
.groups {
  border-top: 1px solid var(--hairline);
}
.groups__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.groups__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.groups__gallery figure {
  overflow: hidden;
  border-radius: var(--radius);
}
.groups__gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.groups__gallery figure:hover img {
  transform: scale(1.03);
}

/* ---------- AT THE TABLE ---------- */
.attable {
  border-top: 1px solid var(--hairline);
}
.attable__themes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem 1.5rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.attable__themes li {
  position: relative;
}
.attable__themes li + li::before {
  content: "·";
  position: absolute;
  left: -0.85rem;
  color: var(--red);
}
.attable__lead {
  margin: 0 0 clamp(0.75rem, 1.6vw, 1.25rem);
  overflow: hidden;
  border-radius: var(--radius);
}
.attable__lead img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.attable__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}
.attable__row figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.attable__row img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.attable__row figure:hover img {
  transform: scale(1.03);
}

/* ---------- CONTACT ---------- */
.contact {
  border-top: 1px solid var(--hairline);
}
.contact__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
.venue {
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
}
.venue__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}
.venue__facts {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}
.venue__row {
  display: grid;
  gap: 0.2rem;
}
.venue__facts dd {
  max-width: 34ch;
}
.venue__facts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.venue__facts a:hover {
  color: var(--red);
}
.venue__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.venue__delivery {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
}
.venue__delivery a,
.contact__meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.venue__delivery a:hover,
.contact__meta a:hover {
  color: var(--red);
}
.venue__label {
  color: var(--muted);
  margin-right: 0.25rem;
}
.contact__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
.contact__meta .eyebrow {
  margin-bottom: 0.75rem;
}
.contact__meta ul {
  display: grid;
  gap: 0.25rem;
}

/* ---------- RESERVE ---------- */
.reserve {
  background: var(--burgundy);
  color: var(--cream);
  text-align: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}
.reserve__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.reserve .eyebrow {
  color: color-mix(in srgb, var(--cream) 65%, transparent);
}
.reserve__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
}
.reserve__body {
  color: color-mix(in srgb, var(--cream) 82%, transparent);
  max-width: 30rem;
}
.reserve__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-footer__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
.site-footer__logo img {
  width: 180px;
  height: auto;
}
.site-footer__tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: 1.25rem;
  max-width: 22ch;
  color: color-mix(in srgb, var(--cream) 88%, transparent);
}
.site-footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.site-footer__cols .eyebrow {
  color: color-mix(in srgb, var(--cream) 55%, transparent);
  margin-bottom: 0.85rem;
}
.site-footer__cols ul {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--cream) 82%, transparent);
}
.site-footer__cols a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer__cols a:hover {
  color: var(--pink);
}
.site-footer__copyright {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(241, 239, 226, 0.16);
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--cream) 55%, transparent);
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (min-width: 700px) {
  .hero__split {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    height: 86svh;
    min-height: 560px;
  }
  .groups__gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (min-width: 900px) {
  .attable__row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .story__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (max-width: 959px) {
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .groups__gallery img,
  .attable__row img {
    transition: none;
  }
  .groups__gallery figure:hover img,
  .attable__row figure:hover img {
    transform: none;
  }
}
